/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* --- Root Variables & Theme --- */
:root {
    /* Light Mode (Default) */
    --color-background: #FAF4ED;
    /* Warm Primary */
    --color-text: #2C3E50;
    /* Neutral Secondary */
    --color-accent: #E76F51;
    /* Accent Color */
    --nav-background: rgba(250, 244, 237, 0.85);
    --card-background: #ffffff;
    --border-color: rgba(44, 62, 80, 0.1);
    --section-alt-bg: #FFF4EF;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
}

[data-theme="dark"] {
    --color-background: #121212;
    --color-text: #e0e0e0;
    --color-accent: #F4A261;
    --nav-background: rgba(18, 18, 18, 0.9);
    --card-background: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.1);
    --section-alt-bg: #1a1a1a;
}

[data-theme="sepia"] {
    --color-background: #f4ecd8;
    --color-text: #5c4b37;
    --color-accent: #a0522d;
    --nav-background: rgba(244, 236, 216, 0.9);
    --card-background: #faf6eb;
    --border-color: rgba(92, 75, 55, 0.15);
    --section-alt-bg: #efe5d0;
}

[data-theme="ocean"] {
    --color-background: #0d1b2a;
    --color-text: #e0e1dd;
    --color-accent: #00b4d8;
    --nav-background: rgba(13, 27, 42, 0.9);
    --card-background: #1b263b;
    --border-color: rgba(0, 180, 216, 0.2);
    --section-alt-bg: #152238;
}

[data-theme="forest"] {
    --color-background: #1a2f1a;
    --color-text: #d4e3d4;
    --color-accent: #4ade80;
    --nav-background: rgba(26, 47, 26, 0.9);
    --card-background: #243524;
    --border-color: rgba(74, 222, 128, 0.2);
    --section-alt-bg: #1f3a1f;
}

/* Content page styles (contact, privacy, submit) */
.content-page,
main.content-page,
#submission,
.submit-page-section {
    background-color: var(--color-background) !important;
    min-height: calc(100vh - 80px);
}

.content-page .container,
#submission .container {
    background-color: transparent !important;
}

/* Form inputs for all themes */
.form input,
.form textarea,
.form-group input,
.form-group textarea {
    background-color: var(--card-background);
    color: var(--color-text);
    border-color: var(--border-color);
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--color-text);
    opacity: 0.6;
}

/* Modal content for all themes */
.modal-content {
    background-color: var(--card-background);
    color: var(--color-text);
}

/* Footer theme-aware styles */
.footer {
    background-color: var(--section-alt-bg, var(--color-background)) !important;
    color: var(--color-text);
}

.footer a {
    color: var(--color-accent);
}

.footer p,
.footer-links,
.footer-links a {
    color: var(--color-text);
}

/* Ensure footer text is dark in light themes */
:root .footer p,
:root .footer-links,
[data-theme="sepia"] .footer p,
[data-theme="sepia"] .footer-links {
    color: #2C3E50;
}

:root .footer a,
[data-theme="sepia"] .footer a {
    color: #E76F51;
}

/* Ensure footer text is white in dark themes */
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer-links,
[data-theme="ocean"] .footer p,
[data-theme="ocean"] .footer-links,
[data-theme="forest"] .footer p,
[data-theme="forest"] .footer-links {
    color: #ffffff;
}

[data-theme="dark"] .footer a,
[data-theme="ocean"] .footer a,
[data-theme="forest"] .footer a {
    color: var(--color-accent);
}

/* --- Theme Selector Dropdown --- */
.theme-selector {
    position: relative;
}

/* Mobile theme selector - hidden on desktop, shown on mobile */
.mobile-theme-selector {
    display: none;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(20deg);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
}

.theme-selector:hover .theme-dropdown,
.theme-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C3E50;
    /* Dark text for light themes */
    cursor: pointer;
    transition: background 0.2s ease;
}

.theme-option:hover {
    background: rgba(128, 128, 128, 0.15);
}

.theme-option:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.theme-option:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Dark text for light and sepia themes, light text for dark themes */
[data-theme="dark"] .theme-option,
[data-theme="ocean"] .theme-option,
[data-theme="forest"] .theme-option {
    color: #e0e0e0;
}

/* --- FAQ Accordion Styles --- */
.faq-section {
    padding: 4rem 0;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.faq-section .section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--color-text);
    opacity: 0.85;
    line-height: 1.7;
}

/* --- Feature Cards (Advanced Home) --- */
.features-section {
    padding: 5rem 0;
    background: var(--section-alt-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    margin: 0 auto;
    opacity: 0.85;
}

/* --- Stats Section --- */
.stats-section {
    padding: 3rem 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* --- Guidelines Box (Submit Page) --- */
.guidelines-box {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.guidelines-box h3 {
    margin-bottom: 1rem;
}

.guidelines-box ul {
    padding-left: 1.2rem;
}

/* --- Form Card (Submit Page) --- */
.form-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-card>p {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* --- Home Button (Works/Submit Pages) --- */
.home-button {
    display: inline-block;
    margin: 1.5rem 2rem;
    padding: 0.5rem 1rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.home-button:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    text-decoration: none;
}

/* --- Submit Page Section --- */
.submit-page-section {
    background: var(--section-alt-bg);
    min-height: calc(100vh - 80px);
}

.submission-header {
    text-align: center;
    margin-bottom: 3rem;
}

.submission-header h1 {
    margin-bottom: 0.5rem;
}


/* --- Global & Accessibility --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    /* Add padding for the sticky nav on all pages EXCEPT the works page */
    padding-top: 80px;
}

body.works-page {
    padding-top: 0;
    /* Remove padding for the snap-scroll page */
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
}

p,
li,
label,
ol {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 0;
}

.grid-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
}

/* --- Modern Sticky Navigation Bar --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    box-sizing: border-box;
    /* Allow dropdown to overflow */
    overflow: visible;
}

/* Full-width dual-underline hover effect for entire navbar */
.main-nav::before,
.main-nav::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #ff0000, #00ffff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.main-nav::after {
    bottom: 0;
}

.main-nav::before {
    top: 0;
    transform-origin: left;
}

.main-nav:hover::before,
.main-nav:hover::after {
    transform: scaleX(1);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    margin-left: auto;
    /* keep links aligned right even if other items exist */
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    /* for hover underline effect */
}

.nav-links a:hover {
    background-color: rgba(44, 62, 80, 0.05);
    text-decoration: none;
}

.nav-links a.active {
    background-color: var(--color-accent);
    color: white;
}

/* Mobile hamburger menu styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile navigation styles */
@media (max-width: 767px) {

    /* Allow the mobile menu to render outside the navbar area */
    .main-nav {
        overflow: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        right: 0;
        width: 100%;
        height: calc(100dvh - 80px);
        background: var(--nav-background);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease, visibility 0.3s ease;
        z-index: 2000;
        /* ensure it overlays everything but modals */
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-radius: 0;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background-color: rgba(44, 62, 80, 0.1);
    }

    /* Show theme selector inside nav-links for hamburger menu on mobile */
    .nav-links .theme-selector {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-links .theme-selector .theme-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        background: transparent;
        border: none;
        border-radius: 0;
        font-size: 1.1rem;
    }

    .nav-links .theme-selector .theme-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        background: rgba(128, 128, 128, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links .theme-selector.active .theme-dropdown {
        max-height: 400px;
    }

    .nav-links .theme-selector .theme-option {
        padding: 0.75rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    /* Also show mobile theme button next to hamburger */
    .mobile-theme-selector {
        display: flex;
        margin-right: 0.75rem;
    }

    .mobile-theme-selector .theme-toggle-btn {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.75rem;
        background: var(--card-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-text);
    }

    .mobile-theme-selector .theme-toggle-btn span {
        display: inline;
    }

    .mobile-theme-selector .theme-dropdown {
        position: absolute;
        top: 100% !important;
        bottom: unset !important;
        left: unset !important;
        right: 0 !important;
        width: auto !important;
        min-width: 150px;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        z-index: 10000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        background: var(--card-background);
    }

    .mobile-theme-selector .theme-option {
        padding: 1rem 1.25rem;
        text-align: left;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-theme-selector .theme-option:last-child {
        border-bottom: none;
    }

    /* Ensure mobile dropdown is fully visible when open */
    .mobile-theme-selector .theme-dropdown.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Hamburger animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Gradient dual underline hover effect for navbar links */
.nav-links a::after,
.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #ff0000, #00ffff);
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.nav-links a::after {
    bottom: -4px;
}

.nav-links a::before {
    top: -4px;
    transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a:hover::before {
    transform: scaleX(1);
}

/* --- Hero Section (Home Page) --- */
.hero {
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    display: none;
    max-width: 100%;
    width: 350px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}

.subheadline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* --- Process Section (Home Page) --- */
.process-section {
    text-align: center;
}

.process-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.process-step img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* --- Submission Form (Shared) --- */
/* Full-width band to distinguish the submission section */
#submission {
    background-color: #FFF4EF;
    padding: 3rem 0;
}

/* Inner content box (transparent, lets the band show edge-to-edge) */
.submission-section {
    background: transparent;
}

.submission-section .grid-layout {
    align-items: start;
    gap: 1.5rem;
}

.submission-section .submission-content h2 {
    font-size: 1.8rem;
}

.submission-section .submission-content p,
.submission-section .submission-content li {
    font-size: 1rem;
}

.submission-section .submission-form-wrapper {
    max-width: 560px;
}

/* Center content and prevent left leakage */
.submission-section .submission-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.submission-section .submission-content ul {
    margin: 0 auto 1rem auto;
    padding-left: 1.2rem;
    text-align: left;
}

.submission-section .submission-form-wrapper {
    margin: 0 auto;
    width: 100%;
}

/* Red box highlight for the credit note line */
.submission-section .credit-note {
    background-color: #FFE9E9;
    border: 1px solid #ff4d4f;
    color: #9e1b1b;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.2);
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Buttons (Shared) --- */
.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.button-primary {
    background-color: var(--color-accent);
    color: white;
}

.button-primary:hover {
    background-color: #d95a3b;
    text-decoration: none;
}

/* Extra, more lively hover for buttons inside the submission section */
.submission-section .button {
    position: relative;
    overflow: hidden;
}

.submission-section .button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 120px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.submission-section .button:hover::after {
    opacity: 1;
}

.submission-section .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.15);
}

@media (min-width: 768px) {
    .submission-section .submission-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {

    /* Extra safety for mobile layout */
    #submission {
        padding: 2rem 0;
    }

    .submission-section .grid-layout {
        gap: 1.25rem;
    }

    .submission-section .submission-content {
        padding: 0 0.25rem;
    }

    .submission-section .submission-form-wrapper {
        max-width: 100%;
    }

    /* Modal sizing for small screens */
    .modal-content {
        width: 92%;
        max-width: 92%;
        padding: 1.25rem;
        border-radius: 10px;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    .modal-content p,
    .modal-content li {
        font-size: 0.95rem;
    }

    .close-button {
        top: 6px;
        right: 12px;
    }
}

/* --- Modal Styling (Shared) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Styles for "Our Ongoing Works" Page --- */
.works-page .story-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.works-page .story-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.works-page .media-content {
    flex: 1;
    background-color: #000;
    overflow: hidden;
}

.works-page .media-content img,
.works-page .media-content iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.works-page .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 5%;
}

.works-page .author-credit {
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.works-page .text-content p {
    max-width: 60ch;
}

/* --- Footer (Shared) --- */
.footer {
    background-color: var(--color-text);
    color: #f0f0f0;
    text-align: center;
}

.footer .container {
    padding: 2rem 1rem;
}

.footer p {
    margin: 0 auto;
}

.footer a {
    color: #fff;
}

.footer-links {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Media Queries for Desktop --- */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero .grid-layout {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-image {
        display: block;
        order: 2;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .submission-section .grid-layout {
        grid-template-columns: 1fr 1fr;
    }

    .works-page .story-section {
        flex-direction: row;
    }

    .works-page .layout-right-media {
        flex-direction: row-reverse;
    }

    .works-page .text-content {
        padding: 4rem 8%;
    }

    .works-page .text-content h2 {
        font-size: 3.5rem;
    }
}

/* --- Mobile responsiveness tweaks --- */
@media (max-width: 767px) {
    .container {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem 0.6rem;
    }

    /* Works page mobile: remove snap, use aspect-ratio for images */
    .works-page .story-container {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .works-page .story-section {
        height: auto;
        flex-direction: column;
    }

    .works-page .media-content {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .works-page .media-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .works-page .text-content {
        padding: 1.5rem;
    }

    /* Theme dropdown mobile fix */
    .theme-selector {
        position: static;
    }

    .theme-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-top: 0;
    }

    .theme-option {
        padding: 1rem;
        text-align: center;
        font-size: 1rem;
    }
}