/* The new 'Digital Oasis' styles will be added here */ 

:root {
    --brand-blue: #00A9FF;
    --brand-teal: #00E0C7;
    --dark-blue: #0F172A;
    --slate-gray: #475569;
    --light-gray: #F1F5F9;
    --text-primary: #1E293B; /* Darker text for better contrast */
    --text-secondary: #334155; /* Darker secondary text */
    --text-light: #E2E8F0; /* Light text for dark backgrounds */
    --text-light-secondary: #94A3B8; /* Light secondary text for dark backgrounds */
    --glass-bg: rgba(255, 255, 255, 0.1); /* Lighter glass background */
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-family: 'DM Sans', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-blue);
    color: var(--text-light);
    margin: 0;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body:not(.loading) {
    opacity: 1;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, var(--dark-blue), var(--brand-blue), var(--dark-blue), var(--brand-teal));
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2.5rem, 5vw, 3rem); text-align: center; }
p { color: var(--text-light-secondary); line-height: 1.7; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

main section p a {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 500;
}

main section p a:hover {
    text-decoration: underline;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: var(--text-light); 
    font-size: 22px; 
    font-weight: 500; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); 
}

.logo { height: 35px; margin-right: 12px; }

.nav-links { 
    display: none; /* Hidden by default on mobile */
    align-items: center; 
    gap: 25px; 
}

.nav-links a { 
    color: var(--text-light-secondary); 
    text-decoration: none; 
    font-size: 15px; 
    transition: color 0.3s; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); 
}

.nav-links a:hover { color: var(--text-light); }

.nav-links .cta-button { 
    background-color: var(--brand-blue); 
    color: white; 
    padding: 8px 18px; 
    border-radius: 50px; 
    font-weight: 500; 
}

.nav-links .cta-button:hover { 
    background-color: var(--brand-teal); 
    color: var(--dark-blue); 
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000; /* Higher z-index to ensure it's always clickable */
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile menu active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999; /* High z-index but below the toggle button */
        display: flex; /* Ensure it's displayed when active */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
        color: var(--text-light);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        color: var(--text-light);
    }

    .nav-links .cta-button {
        margin-top: 20px;
        padding: 12px 24px;
        font-size: 16px;
        background-color: var(--brand-blue);
        color: white;
    }

    .nav-links .cta-button:hover {
        background-color: var(--brand-teal);
        color: var(--dark-blue);
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 25px;
        transition: none;
        z-index: auto;
    }

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

/* --- Hero Section --- */
#hero {
    padding-top: 150px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content { max-width: 850px; }
.hero-text h1 {
    background: -webkit-linear-gradient(45deg, var(--brand-teal), var(--text-light), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: none;
}
.hero-text p { font-size: clamp(1.1rem, 2.5vw, 1.25rem); max-width: 750px; margin: 0 auto 30px; }
.hero-cta { 
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(45deg, var(--brand-blue), var(--brand-teal));
    color: white; font-size: 18px; font-weight: 500; text-decoration: none;
    padding: 15px 30px; border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 169, 255, 0.3); }
.hero-rating { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.hero-rating p { margin: 0; font-size: 14px; }
.hero-rating img { height: 25px; width: auto; }
.hero-image-container { margin-top: 80px; position: relative; }
.hero-image {
    max-width: 100%;
    width: 800px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- General Section Styling --- */
main > section { padding: 100px 0; }
.section-title { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-title h2 { margin-bottom: 15px; }

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}
.feature-icon {
    font-size: 2rem;
    color: var(--brand-teal);
    margin-bottom: 20px;
}

/* --- Benefits Section --- */
#benefits {
    /* The light background is removed to maintain the "Digital Oasis" theme */
    background-color: transparent; 
}

#benefits .section-title h2, .benefit-text h3 {
    color: var(--text-light);
}

#benefits .section-title p, .benefit-text p {
    color: var(--text-light-secondary);
}

.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-text h3 {
    font-size: 1.5rem;
    color: var(--brand-teal);
    margin-bottom: 15px;
}

/* --- Testimonials Section --- */
#testimonials { padding: 100px 0; overflow: hidden; }
.testimonial-scroller {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}
.testimonial-track { display: flex; gap: 30px; }
.testimonial-card {
    width: 380px;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.testimonial-card blockquote { margin: 0; }
.testimonial-card p { color: var(--text-light); font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.testimonial-card cite { font-style: normal; display: block; margin-top: 15px; color: var(--brand-teal); font-weight: 500; }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- FAQ Section --- */
#faq {
    background-color: transparent;
}
#faq .section-title p {
    color: var(--text-light-secondary);
}
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}
.faq-list details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
    border-radius: 15px;
    padding: 20px;
}
.faq-list summary {
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-teal);
    transition: transform 0.3s;
}
.faq-list details[open] summary::after {
    transform: rotate(45deg);
}
.faq-list details[open] p {
    margin-top: 15px;
    color: var(--text-light-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Final CTA Section --- */
#final-cta { text-align: center; }
#final-cta h2 { margin-bottom: 20px; }
#final-cta p { max-width: 550px; margin: 0 auto 40px; }

/* --- Footer --- */
footer {
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.footer-links, .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.footer-links a, .social-links a { color: var(--text-light-secondary); text-decoration: none; transition: color 0.3s; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.footer-links a:hover, .social-links a:hover { color: var(--text-light); }
.social-links a { font-size: 1.2rem; }
.copyright p { margin: 0; color: var(--text-light-secondary); font-size: 14px; }

/* --- Static Page Content --- */
.static-content {
    padding-top: 120px;
    padding-bottom: 80px;
}
.static-content h2 {
    text-align: left;
    color: var(--text-light);
}
.static-content a {
    color: var(--brand-teal);
    text-decoration: none;
}
.static-content a:hover {
    text-decoration: underline;
}
.static-content .hero-cta {
    margin-top: 20px;
    margin-bottom: 20px;
}

.video-container {
    margin: 2rem 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Calculator --- */
.calculator-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 40px auto;
}
.calculator-form .form-group {
    margin-bottom: 20px;
}
.calculator-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.calculator-form input {
    width: 100%;
    padding: 12px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
}
.calculator-form input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 224, 199, 0.3);
}
.calculator-result {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--brand-teal);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Newsletter Popup --- */
.newsletter-popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    max-width: 500px;
    width: 80%;
    text-align: center;
}

.newsletter-popup-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.newsletter-popup-close:hover,
.newsletter-popup-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Indie Makers Page */
.indie-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%; 
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.project {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-info .project-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-info .project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-light-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
} 