/* General Styles */
html {
    font-size: 16px; /* This sets the base font size */
}
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    font-size: 1rem; /* 1rem = 16px */
}

/* Center and Box Content */
.container, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Styles */
h1, h2, h3, p {
    margin: 20px 20px 20px 20px; /* Adjusted to rem for consistency */
}

h1 {
    font-size: 3rem; /* Adjusted to rem for consistency */
    color: #007bb5;
}

h2 {
    color: #007bb5; /* Primary brand color */
    font-size: 2.25rem; /* Adjusted to rem */
    font-weight: bold;
}

h3 {
    color: #007bb5; /* Primary brand color */
    font-size: 1.5rem; /* Adjusted to rem */
}

p {
    font-size: 1.25rem; /* Adjusted to rem */
    margin: 20px 20px 40px 20px; /* Adjusted to rem for consistency */
}

/* Responsive Adjustments for Mobile Views */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem; /* Slightly smaller on tablets and small screens */
    }
    h2 {
        font-size: 1.75rem; /* Adjust heading size for better readability */
    }
    h3 {
        font-size: 1.25rem; /* Adjust heading size for better readability */
    }
    p {
        font-size: 1rem; /* Slightly smaller for better fit */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem; /* Even smaller on mobile phones */
    }
    h2 {
        font-size: 1.5rem; /* Further reduce for small screens */
    }
    h3 {
        font-size: 1.25rem; /* Consistent with 768px */
    }
    p {
        font-size: 1rem; /* Keep consistent for mobile phones */
    }
}

/* Header Styles */
header {
    background-color: #0073e6; /* Darker shade for better contrast */
    color: #fff;
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically centered */
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center; /* Ensure that the link wraps the content properly */
}

.logo a:hover .logo-image {
    opacity: 0.8; /* Example hover effect */
}

.logo-image {
    height: auto;
    max-height: 60px;
    width: auto;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #007bb5;
    border-radius: 5px;
}

.cta {
    background-color: #006bb3; /* Slightly darker CTA background */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: #005b99;
}

.nav-links.open {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #00aaff;
    text-align: center;
    padding: 20px;
}

.nav-links.open li {
    display: block;
    margin-bottom: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    align-items: flex-end; /* Align to the right side */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        align-items: flex-end; /* Align to the right side */
        margin-left: 10px; /* Add some space between the logo and the menu toggle */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #00aaff;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 10px;
    }
}

/* Hero Section Styles */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    background-color: #e0f7fa;
    border-bottom: 5px solid #00aaff;
}

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-content .btn-primary {
    background-color: #00aaff;
    color: #fff;
    padding: 15px 30px;
    margin-left: 10px;
    border-radius: 5px;
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease;
}

.hero-content .btn-primary:hover {
    background-color: #007bb5;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Features Section Styles */
.features {
    padding: 50px 20px;
    background-color: #f4f4f9;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.feature-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0; /* Ensure no extra padding */
    margin: 0; /* Ensure no extra margin */
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 22%;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn’t add to width */
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3rem;
    color: #007bb5;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-item p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item a {
    color: #007bb5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-item a:hover {
    color: #005f8b;
    text-decoration: underline;
}

/* Media Queries for Features Section */
@media (max-width: 1024px) {
    .feature-item {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .feature-list {
        flex-direction: column;
    }

    .feature-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Ensuring no horizontal scroll */
body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Call to Action Section */
.cta-section {
    margin-top: 60px; /* Ensure space between CTA and previous section */
    padding: 50px 20px;
    background-color: #00aaff;
    color: #fff; /* Text colour */
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff; /* Text colour */
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: #007bb5;
    padding: 15px 30px;
    border-radius: 5px;
    color: #fff; /* Text colour */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease;
}

.cta-section .btn-primary:hover {
    background-color: #005f8b;
}

/* Footer Styles */
footer {
    padding: 20px;
    background-color: #007bb5;
    color: #fff; /* Text colour */
    text-align: center;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Align links in a row */
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #005f8b;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-links {
    display: flex;
    gap: 15px; /* Row layout */
    text-align: center;
}

.footer-links a {
    color: #fff; /* Text colour */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00aaff; /* Text colour */
}

.social-media {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    
}

.social-media a {
    transition: opacity 0.3s ease;
    color: #fff; /* Text colour */
    font-size: 2rem;
}

.social-media a img {
    width: 30px;
}

.social-media a:hover {
    opacity: 0.5;
}

.footer-content p {
    margin-top: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-image {
        margin-top: 20px;
    }

    .feature-list {
        flex-direction: column;
    }

    .feature-item {
        width: 100%;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column; /* Stack footer content on smaller screens */
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column; /* Stack footer links vertically */
        margin-bottom: 20px;
    }
}


/* General Styles for the About Section */
.about-section {
    padding: 50px 20px;
    background-color: #e0f7fa; /* Light blue background to fit the palette */
    text-align: center;
}

/* About Section List Styles */
.about-section ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
    margin: 20px 0;
    text-align: left; /* Align text to the left */
}

.about-section ul li {
    padding: 10px 0; /* Add space between items */
    position: relative;
    padding-left: 40px; /* Add space for custom bullet */
    font-size: 1.2rem; /* Slightly larger font size */
    color: #333; /* Darker text color */
}

.about-section ul li::before {
    content: '\f00c'; /* FontAwesome checkmark icon */
    font-family: "Font Awesome 6 Free"; /* Use FontAwesome icons */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #007bb5; /* Primary brand color */
    font-size: 1.5rem; /* Adjust icon size */
}

.about-section ul li:hover::before {
    color: #00aaff; /* Change icon color on hover */
}

.about-section ul li:hover {
    color: #00aaff; /* Change text color on hover */
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 50px 20px;
    background-color: #f4f4f9;
    text-align: center;
}

.testimonials-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Increased gap to give more space between testimonials */
}

.testimonial-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px; /* Increased padding for more content space */
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-item:hover {
    transform: translateY(-10px);
}

/* Media Queries for Testimonials */
@media (max-width: 768px) {
    .testimonial-item {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Articles Listing Section */
.articles-listing {
    padding: 50px 20px;
    background-color: #f4f4f9; /* Same background color as the main page */
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.article-tile {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-thumbnail {
    background-size: cover;
    background-position: center;
    height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* General Article Section Styles */
.article-section {
    padding: 50px 20px;
    background-color: #ffffff; /* Keep background clean for readability */
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styling for Lists */
.article-section ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-section ul li {
    margin-bottom: 10px;
}

/* Styling for Blockquotes */
.article-section blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #e0f7fa;
    border-left: 5px solid #007bb5;
    color: #555;
    font-style: italic;
}

/* Styling for Images */
.article-section img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

/* Styling for Links */
.article-section a {
    color: #007bb5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-section a:hover {
    color: #005f8b;
    text-decoration: underline;
}

/* Ensure responsive design */
@media (max-width: 768px) {
    .article-section {
        padding: 30px 15px;
    }
}

/* Download Section Styles */
.download-section {
    padding: 50px 20px;
    background-color: #e0f7fa; /* Light background color consistent with other sections */
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.download-buttons .btn-primary,
.download-buttons .btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease;
}

.download-buttons .btn-primary {
    background-color: #007bb5; /* Primary brand color */
}

.download-buttons .btn-primary:hover {
    background-color: #005f8b;
}

.download-buttons .btn-secondary {
    background-color: #00aaff; /* Secondary color for variation */
}

.download-buttons .btn-secondary:hover {
    background-color: #007bb5;
}

.download-screenshot {
    margin-top: 30px;
}

.download-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Download Section List Styles */
.download-section ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
    margin: 20px 0;
    text-align: left; /* Align text to the left */
}

.download-section ul li {
    padding: 10px 0; /* Add space between items */
    position: relative;
    padding-left: 40px; /* Add space for custom bullet */
    font-size: 1.2rem; /* Slightly larger font size */
    color: #333; /* Darker text color */
}

.download-section ul li::before {
    content: '\f00c'; /* FontAwesome checkmark icon */
    font-family: "Font Awesome 6 Free"; /* Use FontAwesome icons */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #007bb5; /* Primary brand color */
    font-size: 1.5rem; /* Adjust icon size */
}

.download-section ul li:hover::before {
    color: #00aaff; /* Change icon color on hover */
}

.download-section ul li:hover {
    color: #00aaff; /* Change text color on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-section p {
        font-size: 1rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 50px 20px;
    background-color: #f4f4f9;
    text-align: center;
}

.faq-section .container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ List Styles */
.faq-list {
    text-align: left;
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure content is hidden when collapsed */
}

/* FAQ Question Styles */
.faq-question {
    width: 100%;
    padding: 15px;
    background-color: #007bb5;
    color: #fff;
    font-size: 1.2rem;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #005f8b;
}

/* FAQ Answer Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

/* Active FAQ item - will be set dynamically */
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content size */
    padding: 15px;
}

.faq-item.active .faq-question {
    background-color: #005f8b;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 40px 10px;
    }
}

/* Terms and Privacy Section Styles */
.terms-privacy-section {
    padding: 50px 20px;
    background-color: #f4f4f9; /* Light background for readability */
    color: #333; /* Standard text color */
    line-height: 1.6;
}

.terms-privacy-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff; /* White background for the content */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.terms-privacy-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.terms-privacy-section ul li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

/* Links styling within the Terms and Privacy section */
.terms-privacy-section a {
    color: #007bb5;
    text-decoration: underline;
}

.terms-privacy-section a:hover {
    color: #00aaff;
    text-decoration: none;
}

/* Newsletter Popup Styling */
.newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 80%; /* Default width on mobile devices */
    max-width: 600px; /* Maximum width on larger screens */
    box-sizing: border-box;
    border-radius: 10px;
    display: none; /* Hidden by default */
}

/* Background Overlay for Newsletter Popup */
.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Black background with 50% opacity */
    display: none; /* Hidden by default */
    z-index: 999; /* Make sure it's above other elements */
}

.newsletter-popup-content {
    text-align: center;
}

.newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Media Queries for Better Responsiveness */
@media (min-width: 768px) {
    .newsletter-popup {
        width: 600px; /* On screens wider than 768px, set a fixed width */
    }
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bb5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005f8b;
}

/* Shop Section Styles */
.shop-button-container {
    text-align: center;
    margin-top: 30px;
}

.shop-button-container .btn-primary {
    background-color: #007bb5;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.shop-button-container .btn-primary:hover {
    background-color: #005f8b;
    color: #fff;
    text-decoration: none;
}

/* Indie Projects Section Styling */
.indie-projects {
    width: 100%;
    margin: 20px 0;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.project {
    display: flex;
    align-items: flex-start; /* Align items at the top */
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease-in-out;
}

.project-link:hover .project {
    box-shadow: 0 0 20px rgba(0, 115, 230, 0.7);
    border-radius: 10px;
}

.project-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    transition: box-shadow 0.3s ease-in-out;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure content is aligned at the top */
}

.project-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #0056b3;
    margin: 0;
    margin-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.project-description {
    color: #333;
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Ensure the description grows to fill available space */
}

.project-link:hover .project,
.project-logo:hover {
    box-shadow: none; /* Ensure no hover effect on mobile */
}

@media (min-width: 769px) {
    .project-link:hover .project,
    .project-logo:hover {
        box-shadow: 0 0 20px rgba(0, 115, 230, 0.7); /* Hover effect on larger screens */
    }
}
