/* ============================================================
   diplomatic.quest - McBling Diplomatic Chrome
   Aesthetic: McBling meets international diplomacy
   Layout: Horizontal-scroll, 7 panels
   Typography: Quicksand (display), Nunito (body), Fira Code (accent mono)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --diplomatic-navy: #0D0B2E;
    --plum-depth: #2D1B4E;
    --hot-pink-chrome: #FF69B4;
    --electric-orchid: #E040FB;
    --slate-periwinkle: #7B68EE;
    --chrome-silver: #C0C0C0;
    --pale-lavender: #F5E6FF;
    --rose-gold-glow: #FFB6C1;
    --rhinestone-white: #FFFAFC;

    --primary-sweep: linear-gradient(135deg, #FF69B4 0%, #E040FB 40%, #7B68EE 100%);
    --chrome-band: linear-gradient(90deg, #C0C0C0 0%, #FFFAFC 50%, #C0C0C0 100%);
    --night-sky: radial-gradient(ellipse at 30% 40%, #2D1B4E 0%, #0D0B2E 70%);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    background: var(--diplomatic-navy);
    color: var(--pale-lavender);
}

/* --- Scroll Container --- */
#scroll-container {
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#scroll-container::-webkit-scrollbar {
    height: 4px;
}

#scroll-container::-webkit-scrollbar-track {
    background: var(--diplomatic-navy);
}

#scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FF69B4 0%, #E040FB 50%, #7B68EE 100%);
    border-radius: 2px;
}

#panels-wrapper {
    display: flex;
    flex-direction: row;
    width: 700vw;
    height: 100vh;
}

/* --- Panel Base --- */
.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* --- Chrome Dividers --- */
.chrome-divider {
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #FF69B4 0%, #C0C0C0 50%, #FF69B4 100%);
    z-index: 10;
}

/* --- Rhinestone Fields --- */
.rhinestone-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.rhinestone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFAFC 0%, #FFB6C1 30%, transparent 70%);
    animation: twinkle var(--twinkle-duration, 2s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- Panel Navigation Dots --- */
.panel-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(13, 11, 46, 0.7);
    backdrop-filter: blur(8px);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.nav-dot:hover {
    background: rgba(255, 105, 180, 0.5);
    transform: scale(1.3);
}

.nav-dot.active {
    background: linear-gradient(135deg, #FF69B4 0%, #E040FB 100%);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(224, 64, 251, 0.5);
    border-color: transparent;
}

/* --- Typography --- */
.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 10vw, 120px);
    letter-spacing: -0.01em;
    line-height: 1.1;
    background: linear-gradient(135deg, #FF69B4 0%, #E040FB 40%, #7B68EE 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    animation: gradientShimmer 6s ease-in-out infinite;
}

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

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 2vw, 20px);
    color: var(--rose-gold-glow);
    margin-top: 20px;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0.85;
}

.foyer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 56px);
    letter-spacing: -0.01em;
    line-height: 1.3;
    background: linear-gradient(135deg, #FF69B4 0%, #E040FB 40%, #7B68EE 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 40px;
    text-align: center;
}

/* --- Node Labels (Circuit / SVG) --- */
.node-label {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    fill: var(--hot-pink-chrome);
}

.node-label-sm {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    fill: var(--slate-periwinkle);
}

.frame-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: var(--pale-lavender);
    letter-spacing: 0.02em;
}

.frame-code {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 400;
    fill: var(--hot-pink-chrome);
    letter-spacing: 0.05em;
}

/* --- Diplomatic Channel Border --- */
.diplomatic-channel {
    position: absolute;
    bottom: 30px;
    left: 5%;
    width: 90%;
    height: 30px;
    z-index: 3;
    opacity: 0.25;
}

.diplomatic-channel svg {
    width: 100%;
    height: 100%;
}

.data-packet {
    animation: packetTravel 6s linear infinite;
}

@keyframes packetTravel {
    0% { transform: translateX(0); opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { transform: translateX(200px); opacity: 0.3; }
}

/* ============================================================
   PANEL 1: THE FOYER (HERO)
   ============================================================ */
.panel-foyer {
    background: radial-gradient(ellipse at 50% 50%, #2D1B4E 0%, #0D0B2E 60%);
    animation: foyerBreathe 20s ease-in-out infinite;
}

@keyframes foyerBreathe {
    0%, 100% {
        background: radial-gradient(ellipse at 50% 50%, #2D1B4E 0%, #0D0B2E 60%);
    }
    33% {
        background: radial-gradient(ellipse at 45% 45%, #2D1B4E 5%, #0D0B2E 65%);
    }
    66% {
        background: radial-gradient(ellipse at 55% 55%, #2D1B4E 3%, #0D0B2E 62%);
    }
}

.foyer-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.foyer-crest {
    opacity: 0.85;
    animation: crestFloat 6s ease-in-out infinite;
}

.foyer-crest-left {
    animation-delay: 0s;
}

.foyer-crest-right {
    transform: scaleX(-1);
    animation-name: crestFloatMirror;
    animation-delay: 3s;
}

@keyframes crestFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes crestFloatMirror {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-12px); }
}

/* ============================================================
   PANEL 2: THE CREDENTIALS HALL
   ============================================================ */
.panel-credentials {
    background: radial-gradient(ellipse at 60% 40%, #2D1B4E 0%, #0D0B2E 75%);
}

.credentials-content {
    padding: 60px 40px;
}

.credential-cards {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.credential-card {
    width: 300px;
    min-height: 320px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.9) 0%, rgba(13, 11, 46, 0.95) 100%);
    padding: 3px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.credential-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(90deg, #C0C0C0 0%, #FFFAFC 50%, #C0C0C0 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.credential-card:hover {
    box-shadow: 0 20px 60px rgba(224, 64, 251, 0.2), 0 0 30px rgba(255, 105, 180, 0.15);
}

.card-1 { transform: rotate(-2deg); }
.card-2 { transform: rotate(0.5deg); }
.card-3 { transform: rotate(2deg); }

.card-1:hover { transform: rotate(-2deg) translateY(-8px); }
.card-2:hover { transform: rotate(0.5deg) translateY(-8px); }
.card-3:hover { transform: rotate(2deg) translateY(-8px); }

.card-inner {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.95) 0%, rgba(13, 11, 46, 0.98) 100%);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 182, 193, 0.2);
    height: 100%;
}

.card-icon svg {
    display: block;
}

.card-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 24px;
    background: linear-gradient(135deg, #FF69B4 0%, #E040FB 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.card-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--pale-lavender);
    opacity: 0.85;
}

.card-code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--slate-periwinkle);
    margin-top: auto;
    padding-top: 8px;
}

/* ============================================================
   PANEL 3: THE TREATY CHAMBER
   ============================================================ */
.panel-treaty {
    background: radial-gradient(ellipse at 40% 50%, #2D1B4E 0%, #0D0B2E 70%);
}

.treaty-content {
    justify-content: center;
    align-items: center;
}

.treaty-document {
    position: relative;
    max-width: 700px;
    width: 90%;
}

.treaty-svg {
    width: 100%;
    height: auto;
    display: block;
}

.treaty-text-overlay {
    position: absolute;
    top: 18%;
    left: 18%;
    right: 15%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.treaty-line {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 1.4vw, 16px);
    line-height: 1.65;
    color: var(--pale-lavender);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.active .treaty-line {
    opacity: 0.75;
    transform: translateX(0);
}

.panel.active .treaty-line:nth-child(1) { transition-delay: 0.2s; }
.panel.active .treaty-line:nth-child(2) { transition-delay: 0.4s; }
.panel.active .treaty-line:nth-child(3) { transition-delay: 0.6s; }
.panel.active .treaty-line:nth-child(4) { transition-delay: 0.8s; }
.panel.active .treaty-line:nth-child(5) { transition-delay: 1.0s; }

/* Treaty seal pulse */
.treaty-seal-outer {
    animation: sealPulse 4s ease-in-out infinite;
}

.treaty-seal-inner {
    animation: sealPulse 4s ease-in-out infinite 0.5s;
}

@keyframes sealPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Seal handshake morph */
.seal-handshake {
    animation: handshakeMorph 6s ease-in-out infinite;
}

@keyframes handshakeMorph {
    0%, 100% {
        d: path("M275 400 Q280 390 290 395 L300 400 L310 395 Q320 390 325 400");
    }
    50% {
        d: path("M275 398 Q282 385 292 392 L300 398 L308 392 Q318 385 325 398");
    }
}

/* ============================================================
   PANEL 4: THE CIRCUIT ROOM
   ============================================================ */
.panel-circuit {
    background: var(--night-sky);
}

.circuit-content {
    justify-content: center;
    align-items: center;
}

.circuit-board {
    width: 90%;
    max-width: 1000px;
}

.circuit-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Circuit trace animation */
.circuit-trace {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.panel.active .circuit-trace {
    animation: traceReveal 3s linear forwards;
}

@keyframes traceReveal {
    to {
        stroke-dashoffset: 0;
    }
}

/* Staggered circuit trace reveal */
.panel.active .ct-main { animation-delay: 0s; animation-duration: 2.5s; }
.panel.active .ct-v1 { animation-delay: 0.3s; }
.panel.active .ct-v2 { animation-delay: 0.5s; }
.panel.active .ct-v3 { animation-delay: 0.7s; }
.panel.active .ct-v4 { animation-delay: 0.9s; }
.panel.active .ct-v5 { animation-delay: 1.1s; }
.panel.active .ct-d1 { animation-delay: 0.4s; }
.panel.active .ct-d2 { animation-delay: 0.6s; }
.panel.active .ct-d3 { animation-delay: 0.8s; }
.panel.active .ct-d4 { animation-delay: 1.0s; }
.panel.active .ct-cross1 { animation-delay: 1.2s; }
.panel.active .ct-cross2 { animation-delay: 1.4s; }

/* Treaty panel trace animations */
.panel.active .treaty-trace {
    animation: traceReveal 2s linear forwards;
    animation-delay: 0.5s;
}

.panel.active .treaty-trace-2 {
    animation: traceReveal 2s linear forwards;
    animation-delay: 0.8s;
}

/* Envoy panel trace animations */
.panel.active .envoy-trace {
    animation: traceReveal 2.5s linear forwards;
    animation-delay: 0.3s;
}

.panel.active .envoy-branch-1 {
    animation: traceReveal 1.5s linear forwards;
    animation-delay: 1.5s;
}

.panel.active .envoy-branch-2 {
    animation: traceReveal 1.5s linear forwards;
    animation-delay: 1.8s;
}

/* Continuous traveling light on active circuit panels */
.panel.active .circuit-trace.traveling {
    animation: travelingLight 3s linear infinite;
}

@keyframes travelingLight {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* ============================================================
   PANEL 5: THE AMBASSADOR'S GALLERY
   ============================================================ */
.panel-gallery {
    background: radial-gradient(ellipse at 50% 30%, #2D1B4E 0%, #0D0B2E 70%);
}

.gallery-content {
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.gallery-frames {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-frame {
    transition: transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.active .gallery-frame {
    opacity: 1;
    transform: translateY(0);
}

.panel.active .gallery-frame:nth-child(1) { transition-delay: 0.1s; }
.panel.active .gallery-frame:nth-child(2) { transition-delay: 0.3s; }
.panel.active .gallery-frame:nth-child(3) { transition-delay: 0.5s; }

.gallery-frame:hover {
    transform: scale(1.05) !important;
}

.frame-border {
    padding: 16px;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(13, 11, 46, 0.8) 100%);
}

.frame-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(90deg, #C0C0C0 0%, #FFFAFC 50%, #C0C0C0 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ============================================================
   PANEL 6: THE BALLROOM
   ============================================================ */
.panel-ballroom {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 105, 180, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(224, 64, 251, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 60%, #2D1B4E 0%, #0D0B2E 70%);
    animation: ballroomShimmer 15s ease-in-out infinite;
}

@keyframes ballroomShimmer {
    0%, 100% {
        background:
            radial-gradient(ellipse at 20% 30%, rgba(255, 105, 180, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 70%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, rgba(224, 64, 251, 0.1) 0%, transparent 60%),
            radial-gradient(ellipse at 30% 60%, #2D1B4E 0%, #0D0B2E 70%);
    }
    33% {
        background:
            radial-gradient(ellipse at 30% 40%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 60%, rgba(123, 104, 238, 0.2) 0%, transparent 50%),
            radial-gradient(ellipse at 55% 45%, rgba(224, 64, 251, 0.15) 0%, transparent 60%),
            radial-gradient(ellipse at 35% 55%, #2D1B4E 0%, #0D0B2E 70%);
    }
    66% {
        background:
            radial-gradient(ellipse at 25% 35%, rgba(255, 105, 180, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 75% 65%, rgba(123, 104, 238, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse at 45% 55%, rgba(224, 64, 251, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse at 40% 50%, #2D1B4E 0%, #0D0B2E 70%);
    }
}

.rhinestone-field-dense .rhinestone {
    animation-duration: var(--twinkle-duration, 1.5s);
}

.ballroom-content {
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.ballroom-decorations {
    position: relative;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.chrome-ribbon {
    width: 80%;
    height: auto;
    opacity: 0.6;
    animation: ribbonFloat 8s ease-in-out infinite;
}

.ribbon-1 { animation-delay: 0s; }
.ribbon-2 { animation-delay: 2.5s; }
.ribbon-3 { animation-delay: 5s; }

@keyframes ribbonFloat {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scaleX(1.02); opacity: 0.8; }
}

.envoy-network {
    width: 100%;
    max-width: 800px;
}

.envoy-network svg {
    width: 100%;
    height: auto;
}

.ballroom-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 2vw, 20px);
    color: var(--rose-gold-glow);
    text-align: center;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* ============================================================
   PANEL 7: THE DEPARTURE LOUNGE
   ============================================================ */
.panel-departure {
    background: var(--night-sky);
}

.departure-content {
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.departure-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #E040FB 0%, #7B68EE 40%, #2D1B4E 70%, transparent 100%);
    filter: blur(30px);
    opacity: 0.5;
    position: absolute;
    animation: orbMorph 12s ease-in-out infinite;
}

@keyframes orbMorph {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.4;
        background: radial-gradient(circle at 40% 40%, #E040FB 0%, #7B68EE 40%, #2D1B4E 70%, transparent 100%);
    }
    33% {
        transform: scale(1.2) translate(10px, -10px);
        opacity: 0.6;
        background: radial-gradient(circle at 50% 50%, #FF69B4 0%, #E040FB 40%, #2D1B4E 70%, transparent 100%);
    }
    66% {
        transform: scale(0.9) translate(-10px, 10px);
        opacity: 0.45;
        background: radial-gradient(circle at 35% 55%, #7B68EE 0%, #E040FB 40%, #2D1B4E 70%, transparent 100%);
    }
}

.departure-crest {
    opacity: 0.75;
    z-index: 2;
    animation: crestFloat 8s ease-in-out infinite;
}

.departure-domain {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 3vw, 32px);
    background: linear-gradient(135deg, #FF69B4 0%, #E040FB 40%, #7B68EE 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    z-index: 2;
}

.departure-tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--chrome-silver);
    letter-spacing: 0.08em;
    opacity: 0.6;
    z-index: 2;
}

/* ============================================================
   PANEL ACTIVE STATE ANIMATIONS
   ============================================================ */
.panel.active .panel-title,
.panel.active .hero-title {
    animation: gradientShimmer 6s ease-in-out infinite;
    background-size: 200% 200%;
}

/* Pause rhinestone animations for non-active panels */
.panel:not(.active) .rhinestone {
    animation-play-state: paused;
}

.panel.active .rhinestone {
    animation-play-state: running;
}

/* Pause non-visible panel animations for performance */
.panel:not(.active) .chrome-ribbon {
    animation-play-state: paused;
}

.panel.active .chrome-ribbon {
    animation-play-state: running;
}

/* ============================================================
   PANEL BOTTOM ACCENT LINE
   ============================================================ */
.panel::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #FF69B4 20%, #E040FB 50%, #7B68EE 80%, transparent 100%);
    opacity: 0.15;
}

.panel-departure::after {
    display: none;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .foyer-content {
        flex-direction: column;
        gap: 20px;
    }

    .foyer-crest svg {
        width: 100px;
        height: 120px;
    }

    .credential-cards {
        flex-direction: column;
        gap: 20px;
    }

    .credential-card {
        width: 260px;
        min-height: auto;
    }

    .card-1, .card-2, .card-3 {
        transform: none;
    }

    .card-1:hover, .card-2:hover, .card-3:hover {
        transform: translateY(-8px);
    }

    .gallery-frames {
        gap: 20px;
    }

    .frame-border svg {
        width: 180px;
        height: 270px;
    }

    .departure-orb {
        width: 120px;
        height: 120px;
    }

    .panel-nav {
        bottom: 12px;
        gap: 8px;
        padding: 6px 12px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .diplomatic-channel {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(36px, 12vw, 56px);
    }

    .panel-title {
        font-size: clamp(22px, 6vw, 36px);
        margin-bottom: 20px;
    }

    .panel-content {
        padding: 20px;
    }

    .credential-card {
        width: 220px;
    }

    .card-heading {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }

    .gallery-frames {
        gap: 12px;
    }

    .frame-border svg {
        width: 140px;
        height: 210px;
    }

    .frame-border {
        padding: 8px;
    }
}
