/* ============================================================
   LAST LATITUDE — Styles
   ============================================================ */

/* ---------- Colors & Variables ---------- */
:root {
    --polar-deep: #0b1a2e;
    --polar-blue: #1b3a5c;
    --polar-mid: #2c5a8a;
    --ice-blue: #7fb3d3;
    --ice-light: #c5dde9;
    --arctic-white: #f7f9fb;
    --white: #ffffff;
    --anthracite: #2b3035;
    --anthracite-light: #6b7280;
    --text-dark: #1a1e23;
    --text-medium: #4a5060;
    --text-light: #8a9099;
    --accent-red: #c0392b;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Bilingual ---------- */
html:not([data-lang="en"]) .lang-en { display: none; }
html[data-lang="en"] .lang-de { display: none; }

/* ---------- Layout ---------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
    background-color: rgba(11, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--white);
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}

/* Language Toggle */
.lang-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-left: 2rem;
    line-height: 1;
}

.lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background-image: url('images/hero-arctic.jpg');
    background-size: cover;
    background-position: center 40%;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 26, 46, 0.3) 0%,
        rgba(11, 26, 46, 0.15) 40%,
        rgba(11, 26, 46, 0.4) 80%,
        rgba(11, 26, 46, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease forwards 0.6s;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease forwards 0.9s;
}

.btn-explore {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 3rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease forwards 1.2s;
}

.btn-explore:hover {
    background: var(--white);
    color: var(--polar-deep);
    border-color: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroFadeIn 1.2s ease forwards 1.8s;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.6));
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}


/* ============================================================
   INTRO
   ============================================================ */
.intro {
    padding: 10rem 0;
    background: var(--white);
    text-align: center;
}

.intro h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--polar-deep);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.intro-text {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-medium);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
}


/* ============================================================
   EXPEDITION CARDS
   ============================================================ */
.expeditions {
    padding: 2rem 0 10rem;
    background: var(--white);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    position: relative;
    height: 550px;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 26, 46, 0.7) 0%,
        rgba(11, 26, 46, 0.1) 50%,
        rgba(11, 26, 46, 0.05) 100%
    );
    transition: background 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(11, 26, 46, 0.6) 0%,
        rgba(11, 26, 46, 0.05) 50%,
        transparent 100%
    );
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
    padding: 10rem 0;
    background: var(--arctic-white);
}

.gallery-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--polar-deep);
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    background: var(--ice-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Editorial grid layout */
.gallery-item:nth-child(1) {
    grid-column: span 7;
    height: 480px;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
    height: 480px;
}

.gallery-item:nth-child(3) {
    grid-column: span 5;
    height: 420px;
}

.gallery-item:nth-child(4) {
    grid-column: span 7;
    height: 420px;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
    height: 380px;
}

.gallery-item:nth-child(6) {
    grid-column: span 4;
    height: 380px;
}

.gallery-item:nth-child(7) {
    grid-column: span 4;
    height: 380px;
}

.gallery-item:nth-child(8) {
    grid-column: span 7;
    height: 450px;
}

.gallery-item:nth-child(9) {
    grid-column: span 5;
    height: 450px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 10rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center top;
}

.about-roles {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--polar-deep);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-medium);
    max-width: 480px;
}


/* ============================================================
   TIMELINE (WERDEGANG)
   ============================================================ */
.timeline {
    padding: 10rem 0;
    background: var(--white);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--polar-deep);
    margin-bottom: 4rem;
}

.timeline-list {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--ice-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--polar-mid);
    transform: translateX(-4px);
}

.timeline-item:last-child .timeline-marker {
    background: var(--accent-red);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--polar-deep);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}


/* ============================================================
   POLARSTERN
   ============================================================ */
.polarstern {
    padding: 10rem 0;
    background: var(--polar-deep);
    color: var(--white);
}

.polarstern .section-heading {
    color: var(--white);
}

.polarstern-intro {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    line-height: 1.9;
    margin-bottom: 5rem;
}

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

.stat {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--ice-blue);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.polarstern-details {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 700px;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.polarstern-details:last-child {
    margin-bottom: 0;
}


/* ============================================================
   LIFE ON BOARD
   ============================================================ */
.life-aboard {
    padding: 10rem 0;
    background: var(--arctic-white);
}

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

.life-aboard-card {
    background: var(--white);
    padding: 2.5rem;
}

.life-aboard-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--polar-deep);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.life-aboard-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}


/* ============================================================
   CLOSING
   ============================================================ */
.closing {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.closing-bg {
    position: absolute;
    inset: -10%;
    background-image: url('images/helicopter-red.jpg');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.closing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 26, 46, 0.4) 0%,
        rgba(11, 26, 46, 0.55) 100%
    );
}

.closing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.closing-quote {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.closing-subquote {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 6rem 0;
    background: var(--polar-deep);
    text-align: center;
    color: var(--white);
}

.footer-coming {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .nav-inner {
        padding: 1.2rem 2rem;
    }

    .intro,
    .gallery,
    .about {
        padding: 6rem 0;
    }

    .expeditions {
        padding: 2rem 0 6rem;
    }

    .cards {
        gap: 1rem;
    }

    .card {
        height: 450px;
    }

    .about-grid {
        gap: 3rem;
    }

    .about-image img {
        height: 450px;
    }

    .timeline {
        padding: 6rem 0;
    }

    .polarstern {
        padding: 6rem 0;
    }

    .polarstern-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .life-aboard {
        padding: 6rem 0;
    }

    .life-aboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) {
        height: 360px;
    }

    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        height: 320px;
    }

    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7) {
        height: 300px;
    }

    .gallery-item:nth-child(8),
    .gallery-item:nth-child(9) {
        height: 340px;
    }
}


/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Nav Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--polar-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.2em;
        color: var(--white);
    }

    .lang-toggle {
        margin-left: auto;
        margin-right: 1rem;
        z-index: 1001;
    }

    /* Hero Mobile */
    .hero-title {
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        letter-spacing: 0.25em;
    }

    .btn-explore {
        padding: 0.85rem 2.5rem;
    }

    /* Intro Mobile */
    .intro {
        padding: 5rem 0;
    }

    .intro-text {
        padding: 0;
    }

    /* Cards Mobile */
    .expeditions {
        padding: 0 0 5rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        height: 350px;
    }

    /* Gallery Mobile */
    .gallery {
        padding: 5rem 0;
    }

    .gallery-heading {
        margin-bottom: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-item:nth-child(n) {
        grid-column: 1 / -1;
        height: 260px;
    }

    /* Timeline Mobile */
    .timeline {
        padding: 5rem 0;
    }

    .timeline-list {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
    }

    /* Polarstern Mobile */
    .polarstern {
        padding: 5rem 0;
    }

    .polarstern-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Life on Board Mobile */
    .life-aboard {
        padding: 5rem 0;
    }

    .life-aboard-grid {
        grid-template-columns: 1fr;
    }

    /* About Mobile */
    .about {
        padding: 5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img {
        height: 400px;
    }

    /* Closing Mobile */
    .closing {
        height: 60vh;
        min-height: 400px;
    }

    /* Footer Mobile */
    .footer {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.1em;
    }

    .card {
        height: 280px;
    }

    .gallery-item:nth-child(n) {
        height: 220px;
    }

    .about-image img {
        height: 320px;
    }
}
