* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --text-primary: #333;
    --text-secondary: #666;
    /* Use green accents in light theme */
    --accent-primary: #00b34a;
    --accent-secondary: #00ff66;
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
    /* Header-specific variables for light theme */
    --header-text: #111;
    --header-border: #111;
    --header-hover-bg: rgba(0,0,0,0.06);
    --header-hover-color: #111;
    /* Hero accent for light theme */
    --hero-accent-start: #e6fff0; /* very pale green */
    --hero-accent-end: #f8fff9; /* near-white green tint */
    --hero-accent-2: #e8fff6; /* soft aqua */
    --hero-accent-3: #fff9e6; /* soft warm yellow */
}

body.dark-mode {
    /* Dark / Black & Green theme variables */
    --bg-primary: #0b0b0b;
    --bg-secondary: #071010;
    --text-primary: #dfffe6;
    --text-secondary: #9fd8a8;
    --accent-primary: #00ff66;
    --accent-secondary: #00cc52;
    --border-color: #111111;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    --card-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.7);
    /* Header-specific variables for dark theme */
    --header-text: #ffffff;
    --header-border: rgba(255,255,255,0.16);
    --header-hover-bg: rgba(255,255,255,0.95);
    --header-hover-color: var(--accent-primary);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    /* Header should be dark (not green) */
    background: var(--bg-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--header-text);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-svg {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: block;
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Ensure SVG is visible and vibrant in light mode */
body:not(.dark-mode) .logo-svg {
    filter: brightness(1) saturate(1.1);
}

/* Enhance SVG visibility in dark mode with stronger glow */
body.dark-mode .logo-svg {
    filter: drop-shadow(0 0 4px rgba(0, 255, 102, 0.5)) brightness(1.05);
}

.logo-text {
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.theme-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 2px solid var(--header-border);
    color: var(--header-text);
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.18s ease;
}

.theme-btn:hover {
    background: var(--header-hover-bg);
    color: var(--header-hover-color);
}

.nav-link {
    color: var(--header-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-secondary);
    /* text-decoration: underline; */
    transform: translateY(-2px);
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--header-border);
    background: transparent;
    color: var(--header-text);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.18s ease;
    font-weight: 600;
}

.lang-btn:hover {
    background: var(--header-hover-bg);
    color: var(--header-hover-color);
}

.lang-btn.active {
    background: var(--header-hover-bg);
    color: var(--header-hover-color);
}

    /* Menu Toggle Button */
    .menu-toggle {
        display: none;
        flex-direction: column;
        background: transparent;
        border: none;
        cursor: pointer;
        gap: 5px;
        padding: 0.5rem;
        z-index: 101;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--header-text);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Nav Links Mobile Menu */
    .nav-links.mobile-open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
/* Hero Section */
.hero {
    /* Hero: layered accents in light theme, dark gradient in dark mode */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-accent-start) 0%, var(--bg-primary) 40%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    padding: 100px 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* stronger visible glows in light theme */
body:not(.dark-mode) .hero::before {
    content: "";
    position: absolute;
    left: -18%;
    top: -38%;
    width: 75%;
    height: 150%;
    background: radial-gradient(circle at 25% 20%, rgba(0,179,74,0.42) 0%, transparent 35%), radial-gradient(circle at 60% 40%, rgba(0,255,102,0.18) 0%, transparent 50%);
    transform: rotate(-18deg);
    filter: blur(14px);
    opacity: 1;
    pointer-events: none;
}

body:not(.dark-mode) .hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -28%;
    width: 62%;
    height: 120%;
    background: radial-gradient(circle at 80% 80%, rgba(255,239,176,0.9) 0%, transparent 40%), radial-gradient(circle at 90% 40%, rgba(232,255,246,0.8) 0%, transparent 40%);
    transform: rotate(12deg);
    filter: blur(18px);
    opacity: 1;
    pointer-events: none;
}

/* Ensure dark-mode keeps the dark hero look */
body.dark-mode .hero {
    /* Dark-mode hero base color requested by user */
    background: #090D0D;
    background-image: none;
    color: #ffffff;
}

/* Subtle green-only accents in dark mode (hero-only) */
/* Keep hero graphics hidden, but add soft green radial glows here */
body.dark-mode .hero-graphic {
    display: none !important;
    opacity: 0 !important;
}

body.dark-mode .hero::before {
    content: "";
    position: absolute;
    left: -12%;
    top: -28%;
    width: 68%;
    height: 140%;
    background: radial-gradient(circle at 18% 20%, rgba(0,255,102,0.06) 0%, transparent 28%), radial-gradient(circle at 55% 40%, rgba(0,179,74,0.04) 0%, transparent 35%);
    transform: rotate(-12deg);
    filter: blur(26px);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

body.dark-mode .hero::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -22%;
    width: 64%;
    height: 120%;
    background: radial-gradient(circle at 80% 80%, rgba(0,255,102,0.04) 0%, transparent 30%);
    transform: rotate(10deg);
    filter: blur(18px);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* Styles for the inline SVG hero graphic */
.hero-graphic {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1; /* fully visible */
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Fish graphic: show only in light theme */

/* Hide fish in dark mode */
body.dark-mode .hero-fish {
    display: none;
}

@media (max-width: 768px) {
    /* no hero-fish present */
}

@media (max-width: 480px) {
    .hero-fish { display: none; }
}

/* Make hero graphic subtler on small screens */
@media (max-width: 768px) {
    .hero-graphic { opacity: 0.6; }
    .hero::before, .hero::after { opacity: 0.5; }
}

@media (max-width: 480px) {
    .hero-graphic { display: none; }
    .hero { padding: 50px 1rem; }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease;
}

/* Improve visibility in light theme: stronger text contrast and CTA color */
.hero h1,
.hero-content h1 {
    color: var(--text-primary);
    font-weight: 800;
}

.hero p,
.hero-content p,
.hero-description {
    color: var(--text-secondary);
}

/* In light theme ensure CTA is high-contrast (white text on green) */
body:not(.dark-mode) .cta-btn {
    color: #ffffff;
}

/* Make CTA a bit darker green on hover for clarity */
body:not(.dark-mode) .cta-btn:hover {
    filter: brightness(0.95);
}

.hero-description {
    font-size: 1rem !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-btn {
    padding: 12px 34px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #0b0b0b;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.cta-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

/* About Section */
.about {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 2rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.warning-text {
    background: rgba(0, 255, 102, 0.05);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 5px;
    color: var(--text-primary) !important;
    font-weight: 500;
}

body.dark-mode .warning-text {
    background: rgba(0, 204, 82, 0.06);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Scripts Section */
.scripts-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 2rem;
}

.scripts-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.scripts-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.script-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.script-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.script-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.script-features {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.script-code {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.copy-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #0b0b0b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

/* How to Run Section */
.how-to-run {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 2rem;
}

.how-to-run h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.how-to-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.how-to-content > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #0b0b0b;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 60px 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
}

.table-of-contents h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.toc-list li {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.toc-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow-hover);
}

.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

/* Highlight the TOC link for the About section with the hero/brand green */
.toc-list a[href="#about"] {
    color: var(--accent-primary);
    font-weight: 700;
}

.toc-list a[href="#about"]:hover {
    color: var(--accent-secondary);
}

.toc-list li:hover a {
    color: var(--accent-primary);
}

/* Conclusion Section */
.conclusion {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 2rem;
}

.conclusion h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.conclusion-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.conclusion-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    /* Footer should be dark (not green) */
    background: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    padding: 60px 2rem 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-color);
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:before {
    content: "→";
    opacity: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
    font-weight: 500;
}

.footer-section a:hover:before {
    opacity: 1;
    margin-left: -8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom p:first-child {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 0.85rem !important;
    opacity: 0.7;
    margin-top: 1rem !important;
    font-style: italic;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 5px;
    border-left: 3px solid var(--accent-primary);
}

body.dark-mode .footer-disclaimer {
    background: rgba(255, 193, 7, 0.08);
}

/* Contact Section */
.download {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: white;
    padding: 80px 2rem;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    padding: 12px 30px;
    background: white;
    color: var(--accent-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 2rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-details {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-email {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-email a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    padding: 60px 2rem 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-primary);
}

.footer-section h4 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:before {
    content: "→";
    opacity: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
    font-weight: 500;
}

.footer-section a:hover:before {
    opacity: 1;
    margin-left: -8px;
}

/* Footer Social Icons */
.footer-social-icons {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.footer-social-icons h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook {
    background: var(--accent-primary);
}

.social-icon.facebook:hover {
    background: var(--accent-secondary);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 179, 74, 0.25);
}

.social-icon.discord {
    background: var(--accent-primary);
}

.social-icon.discord:hover {
    background: var(--accent-secondary);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 179, 74, 0.25);
}

.social-icon.pinterest {
    background: #E60023;
}

.social-icon.pinterest:hover {
    background: #ad081b;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.4);
}

.social-icon.reddit {
    background: #FF4500;
}

.social-icon.reddit:hover {
    background: #cc3700;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.social-icon.youtube {
    background: #FF0000;
}

.social-icon.youtube:hover {
    background: #cc0000;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    /* text-decoration: underline; */
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.footer-bottom p strong {
    color: var(--text-primary);
}

.dmca-badge {
    margin-top: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dmca-badge:hover {
    opacity: 1;
}

.dmca-badge img {
    max-width: 200px;
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo-svg {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        width: 100%;
        z-index: 99;
    }

    /* Mobile language dropdown styling */
    .mobile-lang { display: none; }
    .nav-links.mobile-open .mobile-lang {
        display: flex;
        justify-content: center;
        padding-top: 0.25rem;
    }

    .mobile-lang select {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-weight: 600;
        cursor: pointer;
    }

    /* Visually hidden label helper */
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    /* Keep logo left and hamburger to the right on mobile */
    .logo { order: 1; }
    .menu-toggle { order: 2; margin-left: auto; }
    .controls { order: 3; display: none; }

    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-svg {
        width: 50px;
        height: 50px;
    }

    .controls {
        gap: 0.75rem;
    }

    .hero {
        padding: 60px 1.5rem;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features h2,
    .download h2,
    .contact h2,
    .about h2,
    .scripts-section h2,
    .how-to-run h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section {
        padding: 1rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        gap: 1rem;
        min-height: auto;
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.6rem;
        width: auto;
        justify-content: flex-start;
    }

    .logo-svg {
        width: 48px;
        height: 48px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
        text-align: center;
    }

    /* hide header controls on narrow screens to keep a clean single-line header */
    .controls {
        display: none;
    }

    .theme-btn, .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .language-selector {
        width: auto;
        gap: 0.3rem;
    }

    .hero {
        padding: 40px 1rem;
        min-height: 280px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .script-code {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .script-card {
        padding: 1rem;
    }

    .copy-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-section {
        padding: 0.8rem;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-section a,
    .footer-section p {
        font-size: 0.8rem;
    }

    .footer-social {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    input, textarea {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .contact-form button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .toc-item {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
