/* Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Orbitron:700|Open+Sans:400,700&display=swap');

:root {
    /* Primary Colors */
    --color-midnight-navy: #0C1B33;
    /* Deep space blue */
    --color-apollo-white: #F5F5F5;
    /* Soft moonlight white */
    --color-lunar-silver: #B0B3B8;
    /* Cool metallic gray */

    /* Accent Colors */
    --color-burnt-copper: #C7702E;
    /* Rusted metal orange */
    --color-saffron-gold: #FFB800;
    /* Subtle yellow highlight */
    --color-rocket-red: #C63D2F;
    /* Caution/red alert */

    /* Neutrals */
    --color-background: var(--color-midnight-navy);
    --color-text: var(--color-apollo-white);
    --color-muted-text: var(--color-lunar-silver);

    /* Buttons and Interactions */
    --color-button-bg: var(--color-saffron-gold);
    --color-button-hover: var(--color-burnt-copper);
    --color-link: var(--color-saffron-gold);
    --color-link-hover: var(--color-rocket-red);

    --color-bg: #0a0a0a;
    --color-bg-alt: #181818;
    --color-accent: #00ffe7;
    --color-accent2: #ffb300;
    --color-muted: #b0b0b0;
    --footer-bg: #111;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: 'Open Sans', Arial, sans-serif;
    scroll-behavior: smooth;
    min-height: 100%;
    padding-top: 64px;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', 'Open Sans', Arial, sans-serif;
    letter-spacing: 0.04em;
    margin: 0 0 0.5em 0;
}

h1.title {
    font-size: 3rem;
    text-shadow: 0 4px 32px var(--color-accent2), 0 1px 0 #000;
    animation: fadeInDown 1.2s cubic-bezier(.77, 0, .18, 1) 0.2s both;
}

h2 {
    font-size: 2rem;
    color: var(--color-saffron-gold);
}

p,
a,
button,
input,
textarea {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Hero Section */
#hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding-top: -2em;
}

#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5) blur(1px);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: 1400px;
    width: 95vw;
    margin: 0 auto;
    padding: 2em 2em;
    box-sizing: border-box;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    transform: translateY(-2em);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
    max-width: 1200px;
}

.hero-left {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #000;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.logo {
    width: 400px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 1.5em;
    animation: fadeIn 1.5s both, glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 2px rgba(184, 134, 11, 0.8)) drop-shadow(0 0 4px rgba(184, 134, 11, 0.6)) drop-shadow(0 0 6px rgba(184, 134, 11, 0.4)) drop-shadow(0 0 8px rgba(184, 134, 11, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 3px rgba(184, 134, 11, 0.9)) drop-shadow(0 0 6px rgba(184, 134, 11, 0.7)) drop-shadow(0 0 9px rgba(184, 134, 11, 0.5)) drop-shadow(0 0 12px rgba(184, 134, 11, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 2px rgba(184, 134, 11, 0.8)) drop-shadow(0 0 4px rgba(184, 134, 11, 0.6)) drop-shadow(0 0 6px rgba(184, 134, 11, 0.4)) drop-shadow(0 0 8px rgba(184, 134, 11, 0.2));
    }
}

.tagline {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 2em;
    animation: fadeInUp 1.2s 0.5s both;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-button-bg), var(--color-burnt-copper));
    color: #222;
    font-weight: bold;
    padding: 1em 2.5em;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 0 24px 0 var(--color-burnt-copper);
    transition: box-shadow 0.3s, background 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 1em;
    animation: fadeInUp 1.2s 0.8s both;
}

.cta-btn:hover {
    background: linear-gradient(90deg, var(--color-button-hover), var(--color-button-bg));
    color: var(--color-apollo-white);
    box-shadow: 0 0 48px 8px var(--color-burnt-copper);
}

/* Parallax About Section */
#about.parallax {
    background: url('../assets/about-bg.jpg') center/cover fixed no-repeat, var(--color-background);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-content {
    background: rgba(20, 33, 61, 0.85);
    padding: 2.5em 2em;
    border-radius: 18px;
    max-width: 1100px;
    width: 95vw;
    margin: 3em auto;
    box-shadow: 0 8px 32px 0 #0c1b33cc;
}

/* Story (3 Acts) */
#story {
    background: #14213d;
    padding: 4em 0 4em 0;
    overflow-x: hidden;
}

#story>h2 {
    text-align: center;
    width: 100%;
}

.acts-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2em 0;
}

.act-panel {
    background: #18223aee;
    border-radius: 18px;
    min-width: 320px;
    max-width: 340px;
    padding: 2em 1.5em;
    box-shadow: 0 4px 32px 0 #0c1b33cc;
    text-align: center;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(.77, 0, .18, 1);
}

.act-panel:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 8px 48px 0 var(--color-saffron-gold);
}

.act-panel .story-text {
    text-align: left;
    margin: 0;
    line-height: 1.6;
}

.icon {
    margin: 1.5em 0;
    position: relative;
}

.icon::after {
    content: '';
    position: absolute;
    bottom: -0.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: #00FFE7;
    box-shadow: 0 0 8px #00FFE7;
}

.icon img {
    width: 48px;
    height: 48px;
    filter: brightness(1.2) drop-shadow(0 0 2px #000);
}

.icon img[src*="satellite"] {
    width: 48px;
    height: 48px;
    filter: brightness(1.2) drop-shadow(0 0 2px #000);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        filter: brightness(1.2) drop-shadow(0 0 2px #000);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.4) drop-shadow(0 0 8px var(--color-accent));
    }

    100% {
        transform: scale(1);
        filter: brightness(1.2) drop-shadow(0 0 2px #000);
    }
}

/* Specific style for airplane icon */
.icon img[src*="airplane"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--color-saffron-gold));
}

/* Specific style for water wheel icon */
.icon img[src*="steamboat-icon"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--color-saffron-gold));
}

/* Specific animation for airplane icon */
.icon img[src*="airplane"] {
    animation: iconFloat 2.5s ease-in-out infinite alternate;
}

/* Specific animation for water wheel icon */
.icon img[src*="steamboat-icon"] {
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes iconFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-10px);
    }
}


.icon img[src*="moon"] {
    animation: iconOrbit 3s linear infinite;
}

@keyframes iconOrbit {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(5px, -5px);
    }

    50% {
        transform: translate(0, -10px);
    }

    75% {
        transform: translate(-5px, -5px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Gondola Section */
#gondola {
    background: linear-gradient(120deg, var(--color-background) 60%, #14213d 100%);
    padding: 4em 0;
    text-align: center;
}

.gondola-graphic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.gondola-graphic {
    display: block;
    margin: 0 auto 2.5em auto;
}

.gondola-facts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: center;
}

.fact-icon img {
    width: 40px;
    margin-bottom: 0.5em;
    filter: drop-shadow(0 0 6px var(--color-saffron-gold));
    animation: iconPulse 2.5s infinite alternate;
}

.gondola-facts-list {
    text-align: left;
    margin: 2rem auto;
    max-width: 800px;
    padding-left: 0;
}

.gondola-facts-list li {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.gondola-facts-list .fact-icon {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.gondola-facts-list .fact-icon img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--color-burnt-copper));
}

.gondola-photos {
    display: flex;
    flex-direction: row;
    gap: 2.5em;
    justify-content: center;
    margin: 2.5em auto 0 auto;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
}

.gondola-photos figure {
    flex: 1 1 320px;
    max-width: 440px;
    margin: 0;
    text-align: center;
}

.gondola-photos .gondola-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 2px 24px 0 #0c1b3388;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gondola-photos .gondola-img-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
    border-radius: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gondola-photos .gondola-img-btn:hover .gondola-photo,
.gondola-photos .gondola-img-btn:focus .gondola-photo {
    box-shadow: 0 0 40px 8px var(--color-burnt-copper);
    transform: scale(1.05);
}

/* Call to Action */
#cta.dramatic-bg {
    background: linear-gradient(120deg, #14213d 60%, var(--color-background) 100%), url('../assets/cta-bg.jpg') center/cover no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4em 0;
}

.cta-content {
    background: rgba(20, 33, 61, 0.85);
    padding: 2.5em 2em;
    border-radius: 18px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 #0c1b33cc;
}

.cta-content p {
    text-align: left;
}

/* Contact / Press Kit */
#contact {
    background: #14213d;
    padding: 4em 0;
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    max-width: 400px;
    margin: 2em auto 1em auto;
}

#contact-form input,
#contact-form textarea {
    background: #1a2336;
    border: 1px solid #2a3550;
    color: var(--color-text);
    border-radius: 8px;
    padding: 1em;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border: 1.5px solid var(--color-burnt-copper);
    outline: none;
}

#contact-form button {
    margin-top: 0.5em;
}

.contact-links {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1.2em;
    margin-top: 1em;
}

.social-icons img {
    width: 32px;
    filter: grayscale(1) brightness(1.5) drop-shadow(0 0 4px var(--color-burnt-copper));
    transition: filter 0.2s, transform 0.2s;
}

.social-icons a:hover img {
    filter: none;
    transform: scale(1.15) rotate(-8deg);
}

/* Footer */
footer {
    background: #131b2c;
    color: var(--text-light);
    padding: 2.5rem 0 1.5rem 0;
    font-size: 1.1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact a {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 0 auto;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #20222a;
    border-radius: 50%;
    box-shadow: 0 0 12px 0 var(--color-burnt-copper, #e6b86a);
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.footer-social a:hover img {
    filter: drop-shadow(0 0 8px var(--accent-color));
    transform: scale(1.15);
}

.footer-social img {
    width: 32px;
    height: 32px;
    display: block;
    filter: brightness(1.2) drop-shadow(0 0 2px #000);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 1.1rem;
}

.footer-divider {
    color: #fff;
    opacity: 0.5;
    font-size: 1.2rem;
}

.footer-copyright {
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #bfc9e0;
}

@media (max-width: 700px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .footer-links {
        gap: 0.5rem;
    }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(.77, 0, .18, 1), transform 1.2s cubic-bezier(.77, 0, .18, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: none;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Starfield Background (optional) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    animation: starfieldMove 60s linear infinite;
}

@keyframes starfieldMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100vw 100vh;
    }
}

/* Navigation Bar */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: none;
    border-bottom: none;
    transition: background 0.3s;
}

header#hero {
    background: transparent !important;
    border: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5em 1.5em;
}

.nav-logo img {
    max-height: 56px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--color-burnt-copper));
}

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

.nav-links li a {
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Orbitron', 'Open Sans', Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    padding: 0.5em 0.2em;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-link);
    text-shadow: 0 0 8px var(--color-burnt-copper);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--color-saffron-gold);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(12, 27, 51, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 184, 0, 0.1);
    color: var(--color-saffron-gold);
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Responsive Nav */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 64px;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        flex-direction: column;
        align-items: flex-end;
        width: 220px;
        height: calc(100vh - 64px);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.77, 0, .18, 1);
        box-shadow: -4px 0 24px 0 #000a;
        padding: 2em 1.5em 1em 1.5em;
        gap: 1.5em;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    /* Hide dropdown arrow on mobile */
    .dropdown-toggle::after {
        display: none;
    }

    /* Show all dropdown menu items directly on mobile */
    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: none;
        overflow: visible;
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 0.5em;
    }

    .dropdown,
    .dropdown-menu,
    .dropdown-menu li {
        margin: 0;
        padding: 0;
    }

    .dropdown>a,
    .dropdown-menu a {
        padding: 0;
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.3;
        display: block;
        color: inherit;
        background: none;
    }

    .dropdown-menu a {
        padding: 0;
    }

    .dropdown-toggle::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0.5em 0.7em;
    }

    .nav-links {
        width: 100vw;
        align-items: flex-start;
        left: 0;
        right: 0;
        top: 56px;
        padding: 2em 1em 1em 1.5em;
    }

    .logo {
        width: 120px;
    }

    .nav-logo img {
        max-height: 40px;
    }

    .hero-overlay {
        max-width: 100vw;
        width: 100vw;
        padding: 1.5em 0.5em;
    }
}

/* Push content below nav */
@media (max-width: 600px) {
    body {
        padding-top: 56px;
    }
}

/* --- IMPROVED MOBILE RESPONSIVENESS FOR ALL SECTIONS --- */
@media (max-width: 900px) {
    .acts-container {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    .act-panel {
        min-width: 90vw;
        max-width: 95vw;
    }

    .gondola-facts {
        flex-direction: column;
        gap: 1em;
    }

    .about-content,
    .cta-content {
        padding: 1.2em 0.7em;
        max-width: 95vw;
    }
}

@media (max-width: 600px) {
    h1.title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .about-content,
    .cta-content {
        padding: 1.2em 0.7em;
        max-width: 98vw;
    }

    .gondola-graphic {
        width: 90vw;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.7em;
    }

    #hero {
        min-height: 80vh;
        height: 80vh;
    }

    .hero-overlay {
        height: 80vh;
        padding-top: 2em;
    }

    #contact-form {
        max-width: 98vw;
    }
}

/* Responsive Images and Figures */
figure {
    margin: 0 0 1.5em 0;
    padding: 0;
    text-align: center;
}

.about-img,
.story-img,
.gondola-photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.5em auto;
    border-radius: 12px;
    box-shadow: 0 4px 32px 0 #000a;
}

figcaption {
    color: var(--color-muted-text);
    font-size: 0.98em;
    margin-top: 0.2em;
    font-style: italic;
}

@media (max-width: 900px) {

    .about-img,
    .story-img,
    .gondola-photo {
        max-width: 98vw;
    }
}

@media (max-width: 600px) {

    .about-img,
    .story-img,
    .gondola-photo {
        max-width: 99vw;
        border-radius: 8px;
    }
}

/* Center all section titles */
section>h2,
#about h2 {
    text-align: center;
    width: 100%;
}

.about-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2em;
}

.about-flex figure {
    flex: 1 1 350px;
    margin: 0;
}

.about-flex .about-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.about-flex .about-text {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.2em;
    }

    .about-flex .about-img {
        max-width: 98vw;
    }
}

.gondola-photos {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    justify-content: center;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.gondola-photos figure {
    flex: 1 1 200px;
    max-width: 260px;
    margin: 0;
    text-align: center;
}

.gondola-photos .gondola-photo {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 16px 0 #0c1b3388;
}

@media (max-width: 900px) {
    .gondola-photos {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    .gondola-photos figure {
        max-width: 98vw;
    }

    .gondola-photos .gondola-photo {
        max-width: 98vw;
    }
}

/* Modal Styles */
.gondola-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.gondola-modal.show {
    display: flex;
}

.gondola-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 27, 51, 0.92);
    z-index: 1;
}

.gondola-modal-content {
    position: relative;
    z-index: 2;
    background: #10192b;
    border-radius: 16px;
    box-shadow: 0 8px 48px 0 #0c1b33cc;
    padding: 2em 2em 1.5em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.gondola-modal-img {
    max-width: 70vw;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px 0 #0c1b33cc;
    margin-bottom: 1em;
}

.gondola-modal-caption {
    color: var(--color-muted-text);
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 0.5em;
}

.gondola-modal-close {
    position: absolute;
    top: 0.5em;
    right: 0.7em;
    background: none;
    border: none;
    color: var(--color-saffron-gold);
    font-size: 2.2em;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}

.gondola-modal-close:hover {
    color: var(--color-rocket-red);
}

@media (max-width: 900px) {
    .gondola-photos {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    .gondola-photos figure {
        max-width: 98vw;
    }

    .gondola-photos .gondola-photo {
        max-width: 98vw;
    }

    .gondola-modal-content {
        padding: 1em 0.5em 1em 0.5em;
    }

    .gondola-modal-img {
        max-width: 98vw;
        max-height: 40vh;
    }
}

@media (max-width: 1200px) {
    .gondola-photos {
        max-width: 98vw;
        gap: 1.2em;
    }

    .gondola-photos figure {
        max-width: 98vw;
    }

    .gondola-photos .gondola-photo {
        max-width: 98vw;
    }
}

@media (max-width: 900px) {
    .gondola-photos {
        flex-direction: column;
        align-items: center;
        gap: 1.2em;
    }

    .gondola-photos figure {
        max-width: 98vw;
    }

    .gondola-photos .gondola-photo {
        max-width: 98vw;
    }

    .gondola-facts-list {
        align-items: flex-start;
        margin: 2em auto 2em auto;
    }
}

.cta-btn-group {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--accent-color-dark);
}

/* Trailer Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 27, 51, 0.92);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    z-index: 2;
    background: #10192b;
    border-radius: 18px;
    box-shadow: 0 8px 48px 0 #0c1b33cc;
    padding: 2.5em 2.5em 2em 2.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
    animation: fadeInUp 0.6s cubic-bezier(.77, 0, .18, 1);
}

.modal-content h2 {
    color: var(--color-saffron-gold);
    font-family: 'Orbitron', 'Open Sans', Arial, sans-serif;
    font-size: 2rem;
    margin: 0 0 0.5em 0;
    text-align: center;
    letter-spacing: 0.04em;
}

.modal-close {
    position: absolute;
    top: 0.5em;
    right: 0.7em;
    background: none;
    border: none;
    color: var(--color-saffron-gold);
    font-size: 2.2em;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-rocket-red);
}

/* Call to Action Section */
#cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/centrifuge.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cta-image:hover img {
    transform: scale(1.05);
}

.cta-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.museum-features {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
}

.museum-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.museum-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-image img {
        height: 250px;
    }
}

/* Centrifuge Section */
#centrifuge {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/johnsville-centrifuge.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    padding: 6rem 2rem;
}

.centrifuge-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centrifuge-content h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.centrifuge-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-weight: normal;
}

.centrifuge-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.centrifuge-tagline {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .centrifuge-content h2 {
        font-size: 2rem;
    }

    .centrifuge-content h3 {
        font-size: 1.2rem;
    }
}

/* Museum Hero Image */
.museum-hero {
    margin: 3rem auto;
    max-width: 1000px;
    text-align: center;
}

.museum-hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.museum-hero-img:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #000;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.modal-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    display: block;
}

.modal-trigger img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-trigger:hover img {
    transform: scale(1.05);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: -25px;
}

.modal-next {
    right: -25px;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

.gondola-preservation {
    max-width: 800px;
    margin: 2rem auto 2.5rem auto;
    text-align: left;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.6;
}

.aviation-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.aviation-content h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    text-shadow: 0 0 10px rgba(230, 184, 106, 0.3);
}

.aviation-content figure {
    margin: 2rem auto;
    max-width: 800px;
}

.aviation-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .aviation-content {
        padding: 2rem 1rem;
    }

    .aviation-content h2 {
        font-size: 2rem;
    }

    .aviation-content p {
        font-size: 1rem;
    }
}

.center-title {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5em;
}

#technology .about-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

#technology .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Enhanced Mobile Responsiveness */

/* Footer Mobile Improvements */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-social {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
    }

    .footer-social img {
        width: 28px;
        height: 28px;
    }

    .footer-copyright {
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-social {
        gap: 0.8rem;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    .footer-social img {
        width: 24px;
        height: 24px;
    }
}

/* Content Section Mobile Improvements */
@media (max-width: 900px) {

    .about-content,
    .aviation-content,
    .centrifuge-content,
    .cta-content {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        width: 95vw;
    }

    .about-content h2,
    .aviation-content h2,
    .centrifuge-content h2,
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-content p,
    .aviation-content p,
    .centrifuge-content p,
    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 600px) {

    .about-content,
    .aviation-content,
    .centrifuge-content,
    .cta-content {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
        width: 98vw;
    }

    .about-content h2,
    .aviation-content h2,
    .centrifuge-content h2,
    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-content p,
    .aviation-content p,
    .centrifuge-content p,
    .cta-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

/* Image and Figure Mobile Improvements */
@media (max-width: 900px) {

    .about-img,
    .story-img,
    .gondola-photo,
    .museum-hero-img {
        max-width: 100%;
        height: auto;
        margin: 1.5rem auto;
    }

    figure {
        margin: 1.5rem 0;
    }

    figcaption {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 600px) {

    .about-img,
    .story-img,
    .gondola-photo,
    .museum-hero-img {
        max-width: 100%;
        margin: 1rem auto;
    }

    figure {
        margin: 1rem 0;
    }

    figcaption {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
}

/* Modal Mobile Improvements */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        padding: 1rem;
        margin: 1rem;
    }

    .modal-img {
        max-width: 100%;
        max-height: 70vh;
    }

    .modal-caption {
        font-size: 1rem;
        margin-top: 0.8rem;
    }

    .modal-close {
        top: -35px;
        right: 0;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98vw;
        padding: 0.8rem;
        margin: 0.5rem;
    }

    .modal-img {
        max-height: 65vh;
    }

    .modal-caption {
        font-size: 0.9rem;
        margin-top: 0.6rem;
    }

    .modal-close {
        top: -30px;
        font-size: 1.6rem;
    }
}

/* CTA Grid Mobile Improvements */
@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .cta-image img {
        height: 250px;
    }

    .cta-image figcaption {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .cta-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-image img {
        height: 200px;
    }

    .cta-image figcaption {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
}

/* Story Section Mobile Improvements */
@media (max-width: 900px) {
    .acts-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .act-panel {
        min-width: 90vw;
        max-width: 95vw;
        padding: 1.5rem;
    }

    .act-panel h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .act-panel .story-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    .acts-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .act-panel {
        min-width: 95vw;
        max-width: 98vw;
        padding: 1rem;
    }

    .act-panel h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .act-panel .story-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Hero Section Mobile Improvements */
@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-overlay {
        height: auto;
        min-height: 100vh;
        padding: 1.5rem 1rem;
        transform: translateY(-1em);
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        min-height: 80vh;
    }

    .hero-left {
        text-align: center;
        align-items: center;
        order: 1;
    }

    .hero-right {
        order: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .video-container {
        max-width: 400px;
        width: 100%;
        display: block !important;
        visibility: visible !important;
    }

    .logo {
        width: 300px;
        max-width: 85vw;
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        font-size: 1.1rem;
        padding: 0.8em 2em;
    }
}

@media (max-width: 480px) {
    #hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-overlay {
        height: auto;
        min-height: 100vh;
        padding: 1rem 0.8rem;
        transform: translateY(-0.5em);
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-right {
        order: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .video-container {
        max-width: 300px;
        width: 100%;
        display: block !important;
        visibility: visible !important;
    }

    .logo {
        width: 250px;
        max-width: 90vw;
        margin-bottom: 0.8rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 0.7em 1.8em;
    }
}

/* Navigation Mobile Improvements */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.4em 1em;
    }

    .nav-logo img {
        max-height: 48px;
    }

    .nav-links {
        top: 56px;
        padding: 1.5em 1em 1em 1.5em;
    }
}

/* Museum Features Mobile Improvements */
@media (max-width: 768px) {
    .museum-features {
        margin: 1.5rem auto;
        max-width: 95vw;
    }

    .museum-features li {
        margin-bottom: 0.8rem;
        padding-left: 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .museum-features {
        margin: 1rem auto;
        max-width: 98vw;
    }

    .museum-features li {
        margin-bottom: 0.6rem;
        padding-left: 1rem;
        font-size: 0.95rem;
    }
}

/* Centrifuge Section Image Responsiveness */
.centrifuge-content .about-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Centrifuge Section Desktop & Mobile Styling */
.centrifuge-content {
    width: 95vw;
    max-width: 1100px;
    margin: 3em auto;
    box-sizing: border-box;
    overflow-x: hidden;
    background: rgba(20, 33, 61, 0.85);
    border-radius: 18px;
    padding: 2.5em 2em;
    box-shadow: 0 8px 32px 0 #0c1b33cc;
}

@media (max-width: 900px) {
    .centrifuge-content {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        width: 95vw;
        max-width: 98vw;
    }
}

@media (max-width: 600px) {
    .centrifuge-content {
        padding: 1rem 0.5rem;
        margin: 0 auto;
        width: 100vw;
        max-width: 100vw;
    }
}

@media (max-width: 900px) {
    body::before {
        animation: none !important;
        background-position: 0 0 !important;
    }
}