/* ============================================
   TANIA'S PORTFOLIO — style.css
   Aesthetic: Editorial × Collage
   ============================================ */

/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,300&family=DM+Mono:wght@300;400&display=swap');

:root {
    --bg:          #F2EDE6;
    --bg-dark:     #0E0E0E;
    --cream:       #FAF7F2;
    --ink:         #1A1A1A;
    --ink-light:   #555;
    --green:       #2A6B3F;
    --green-light: #5BAD72;
    --red:         #D14B35;
    --gold:        #C49A3C;
    --blue:        #2B4C8C;
    --white:       #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-ui:      'Syne', sans-serif;
    --font-mono:    'DM Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow:    0 8px 40px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 80px rgba(0,0,0,0.18);
}

/* ========== 2. GLOBAL RESET ========== */
/* Normalize browser default styles and apply base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    cursor: url('img/Cursor.png') 0 0, auto !important;
}
a, button { 
    text-decoration: none; 
    color: inherit; 
    cursor: url('img/Cursor.png') 0 0, auto !important;
}
em { font-family: var(--font-display); font-style: italic; font-weight: 300; }

/* ========== 3. NAVIGATION BAR ========== */
/* Fixed header with logo, navigation links, and availability status indicator */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4rem;
    backdrop-filter: blur(16px);
    background: rgba(242,237,230,0.75);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 400;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.7;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse 2s ease infinite;  /* Animated pulse effect for availability */
}
/* Pulsing animation: expands from center then fades */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91,173,114,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(91,173,114,0); }
}
/* --- 5 & 6. HERO + 3D CAROUSEL --- */
#hero {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
    gap: 2rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -3px;
}
.hero-title .line { display: block; }
.hero-title .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--green);
}
.hero-sub {
    margin-top: 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--ink-light);
    text-transform: uppercase;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    background: var(--ink);
    color: var(--bg);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}
.btn-primary {
    display: inline-block;
    margin-top: 2.5rem;
    background: var(--ink);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover {
    background: var(--green);
    transform: translateY(-2px);
}

/* The 3D spinning ring */
#hero .banner {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: visible;
}

#hero .slider {
    position: absolute;
    width: 220px;
    height: 280px;
    top: 12%;
    left: calc(50% - 110px);
    transform-style: preserve-3d;
    animation: spin3d 24s linear infinite;
    z-index: 2;
}

@keyframes spin3d {
    from { transform: perspective(1000px) rotateX(-16deg) rotateY(0deg); }
    to   { transform: perspective(1000px) rotateX(-16deg) rotateY(360deg); }
}

#hero .slider .item {
    position: absolute;
    inset: 0;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(380px);
}

/* Each item is already styled by .ocar-slide rules — just size it */
#hero .slider .item .ocar-slide {
    width: 220px;
    height: 280px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem;
    animation: none;
}

/* Center content — title sits in the middle of the spinning ring */
.banner-center {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

/* Responsive — slow down and shrink on mobile */
@media (max-width: 768px) {
    #hero .slider {
        width: 150px;
        height: 190px;
        left: calc(50% - 75px);
    }
    #hero .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(240px);
    }
    #hero .slider .item .ocar-slide {
        width: 150px;
        height: 190px;
    }
    .banner-center {
        left: 1.5rem;
        bottom: 2rem;
    }
}
@keyframes floatBob {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* ← add it right here */
.obj-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.9;
    background: rgba(242, 237, 230, 0.75);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}
/* Dots */
.ocar-dots {
    display: flex;
    gap: 7px;
    margin-top: 0.2rem;
}
.ocar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    transition: background 0.3s, transform 0.3s;
    cursor: none;
}
.ocar-dot.active {
    background: var(--ink);
    transform: scale(1.5);
}

/* ── VINYL ── */
.vinyl-obj .vinyl-disc {
    width: clamp(110px, 14vw, 170px);
    height: clamp(110px, 14vw, 170px);
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center,
        #111 0px, #111 4px, #222 4px, #222 10px);
    position: relative;
    animation: spinVinyl 6s linear infinite;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
@keyframes spinVinyl { to { transform: rotate(360deg); } }
.vinyl-inner-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 38%; height: 38%;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #000;
}
.vinyl-center-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 8%; height: 8%;
    border-radius: 50%;
    background: #000;
}

/* ── BOARDING PASS ── */
.boarding-obj .boarding-pass {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    width: clamp(180px, 20vw, 240px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border-left: 5px solid var(--red);
    font-family: var(--font-mono);
    transform: rotate(2deg);
}
.bp-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--ink-light);
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}
.bp-route {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.bp-city {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
}
.bp-arrow { color: var(--red); font-size: 1rem; }
.bp-barcode {
    height: 24px;
    background: repeating-linear-gradient(90deg,
        #111 0px, #111 2px, #fff 2px, #fff 4px);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.bp-name {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: var(--ink-light);
    text-transform: uppercase;
}

/* ── FLAG FOOTBALL ── */
.football-obj .football-field {
    width: clamp(140px, 18vw, 200px);
    height: clamp(95px, 12vw, 135px);
    background: #2D6A2D;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.ff-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 12%;
}
.ff-line { width: 1px; background: rgba(255,255,255,0.25); }
.ff-ball {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 1.8rem;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

/* ── PLANT ── */
.plant-obj .plant-pot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(70px, 9vw, 110px);
}
.plant-leaves {
    position: relative;
    width: 100%;
    height: clamp(60px, 8vw, 90px);
}
.leaf {
    position: absolute;
    border-radius: 50% 0 50% 0;
    background: var(--green);
}
.l1 { width: 55%; height: 55%; top: 20%; left: 10%; transform: rotate(-30deg); }
.l2 { width: 50%; height: 50%; top: 5%; right: 10%; transform: rotate(30deg) scaleX(-1); background: var(--green-light); }
.l3 { width: 40%; height: 60%; bottom: 0; left: 30%; background: #1d5c30; }
.pot-body {
    width: 70%;
    height: clamp(30px, 4vw, 44px);
    background: var(--gold);
    border-radius: 0 0 8px 8px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* ── DATA CHART ── */
.chart-obj .data-card {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    width: clamp(160px, 18vw, 210px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}
.dc-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.dc-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    margin-bottom: 0.8rem;
}
.dc-bar {
    flex: 1;
    background: linear-gradient(to top, var(--green), var(--green-light));
    border-radius: 3px 3px 0 0;
}
.dc-tag {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.28);
    letter-spacing: 1px;
}

/* ── STICKY NOTE ── */
.note-obj .sticky-note {
    width: clamp(120px, 14vw, 165px);
    background: #FFE97A;
    padding: 1.2rem;
    border-radius: 2px;
    box-shadow: 4px 5px 16px rgba(0,0,0,0.18), inset 0 -2px 0 rgba(0,0,0,0.05);
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    font-style: italic;
    color: #333;
    line-height: 1.5;
    transform: rotate(-3deg);
}
.note-lines { margin-top: 1rem; display: flex; flex-direction: column; gap: 6px; }
.note-lines div { height: 1px; background: rgba(0,0,0,0.12); }

/* ── BEADS ── */
.beads-obj .beads {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: rgba(255,255,255,0.6);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.bead {
    width: clamp(34px, 4vw, 46px);
    height: clamp(34px, 4vw, 46px);
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.2vw, 1.05rem);
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.bead:nth-child(2) { background: var(--red); }
.bead:nth-child(3) { background: var(--green); }
.bead:nth-child(4) { background: var(--blue); }
.bead:nth-child(5) { background: var(--gold); color: var(--ink); }

/* ── PRESSED FLOWER ── */
.flower-obj .pressed-flower {
    position: relative;
    width: clamp(80px, 10vw, 120px);
    height: clamp(80px, 10vw, 120px);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
.pf-petal {
    position: absolute;
    width: 45%; height: 60%;
    border-radius: 50% 50% 50% 0;
    background: #D4A0C0;
    top: 50%; left: 50%;
    transform-origin: 0% 100%;
    opacity: 0.85;
}
.p1 { transform: translate(-50%,-100%) rotate(0deg); }
.p2 { transform: translate(-50%,-100%) rotate(90deg); }
.p3 { transform: translate(-50%,-100%) rotate(180deg); }
.p4 { transform: translate(-50%,-100%) rotate(270deg); }
.pf-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 28%; height: 28%;
    border-radius: 50%;
    background: var(--gold);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--ink);
    opacity: 0.3;
    animation: scrollAnim 2s ease infinite;
    transform-origin: top;
}
@keyframes scrollAnim {
    0% { transform: scaleY(0); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: scaleY(1); opacity: 0; }
}
.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    opacity: 0.4;
    text-transform: uppercase;
}

/* ========== 7. ABOUT SECTION ========== */
/* Personal introduction with collage of experience cards and key statistics grid */
#about {
    min-height: 100vh;
    padding: 8rem clamp(1.5rem, 6vw, 6rem);
    background: var(--cream);
    position: relative;
}
.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--ink-light);
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.6;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: 5rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}
.about-intro p {
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.lang-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.8rem;
}
.pill {
    background: var(--ink);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* COLLAGE ZONE */
.collage-zone {
    position: relative;
    height: clamp(340px, 45vw, 520px);
    min-width: 0;
}
.collage-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    line-height: 1.4;
    transition: transform 0.3s ease, box-shadow 0.3s;
    cursor: default;
}
.collage-card:hover {
    transform: scale(1.06) rotate(0deg) !important;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}
.cc-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.collage-card small { color: var(--ink-light); font-family: var(--font-mono); font-size: 0.7rem; }
.rotate-neg { transform: rotate(-4deg); }
.rotate-pos { transform: rotate(5deg); }

.c1 { top: 0;   left: 0;   width: 170px; background: #FFF3E6; transform: rotate(-2deg); }
.c2 { top: 30px; right: 40px; width: 160px; background: #E6F0FF; }
.c3 { top: 180px; left: 30px; width: 190px; background: #E6FFF0; }
.c4 { top: 240px; right: 10px; width: 165px; background: #FFE6E6; transform: rotate(3deg); }
.c5 { bottom: 20px; left: 80px; width: 175px; background: #FFFDE6; }

.vinyl-small { margin-top: 0.8rem; display: flex; justify-content: center; }
.vinyl-spin {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #333 18%, transparent 18%), 
                repeating-radial-gradient(circle at center, #222, #222 2px, #111 2px, #111 6px);
    animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.collage-sticker {
    position: absolute;
    bottom: 60px;
    right: -10px;
    background: var(--red);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transform: rotate(-8deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
    z-index: 5;
}

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 4rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--green);
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--ink-light);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* ========== 8. EXPERIENCE & EDUCATION TIMELINE ========== */
/* Vertical timeline with 8 items showing work history, education, and achievements */
/* Dark background: left spine with year labels, right cards with details */
/* CSS animation: items fade in and slide up when entering viewport */
#experience {
    min-height: 100vh;
    padding: 8rem clamp(1.5rem, 6vw, 6rem);
    background: var(--bg-dark);
    color: var(--white);
}
#experience .section-title { color: var(--white); }
#experience .section-label { color: rgba(255,255,255,0.4); }

.timeline {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.08);
}
.tl-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }

.tl-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    padding-top: 0.3rem;
}
.tl-card {
    padding: 0 0 0 3rem;
}
.tl-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--white);
}
.tl-card p { color: rgba(255,255,255,0.55); line-height: 1.7; font-size: 0.95rem; }
.tl-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}
.tl-tag.fintech  { background: rgba(43,76,140,0.4); color: #7AABFF; border: 1px solid rgba(43,76,140,0.6); }
.tl-tag.asia     { background: rgba(196,154,60,0.3); color: #E6C76A; border: 1px solid rgba(196,154,60,0.5); }
.tl-tag.award    { background: rgba(209,75,53,0.3); color: #F5957D; border: 1px solid rgba(209,75,53,0.5); }
.tl-tag.green    { background: rgba(42,107,63,0.4); color: #7ED4A0; border: 1px solid rgba(42,107,63,0.6); }
.tl-tag.edu      { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); }

.tl-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tl-skills span {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* ========== 9. ASIA ATLAS SECTION ========== */
/* Showcase of Asian travel experiences with scrolling marquee and postcard grid */
/* Celebrates the 7-country journey during semester abroad in 2025 */
#gallery {
    min-height: 100vh;
    padding: 8rem clamp(1.5rem, 6vw, 6rem);
    background: var(--bg);
    overflow: hidden;
}
.atlas-intro p {
    max-width: 600px;
    color: var(--ink-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

/* MARQUEE */
.country-marquee {
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 4rem;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    gap: 2rem;
    animation: marqueeScroll 20s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--ink-light);
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ATLAS GRID */
.atlas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
}
.atlas-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.atlas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.atlas-card > * {
    position: relative;
    z-index: 1;
}
.atlas-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.atlas-emoji {
    font-size: 3.5rem;
    flex-shrink: 0;
}
.atlas-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.atlas-info strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}
.atlas-info span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* Individual card styling */
.atlas-card:nth-child(1) {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border-left: 4px solid #C49A3C;
}
.atlas-card:nth-child(1):hover::before {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFECDB 100%);
    opacity: 1;
}
.atlas-card:nth-child(1) .atlas-info strong { color: #8B6F47; }
.atlas-card:nth-child(1) .atlas-info span { color: #A0826D; }

.atlas-card:nth-child(2) {
    background: linear-gradient(135deg, #E6F7F5 0%, #CCF0ED 100%);
    border-left: 4px solid #2A6B3F;
}
.atlas-card:nth-child(2):hover::before {
    background: linear-gradient(135deg, #F0FFFE 0%, #DDFCF9 100%);
    opacity: 1;
}
.atlas-card:nth-child(2) .atlas-info strong { color: #1A4D2E; }
.atlas-card:nth-child(2) .atlas-info span { color: #3D7F59; }

.atlas-card:nth-child(3) {
    background: linear-gradient(135deg, #FFF0E6 0%, #FFD9B3 100%);
    border-left: 4px solid #D14B35;
}
.atlas-card:nth-child(3):hover::before {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFEAD9 100%);
    opacity: 1;
}
.atlas-card:nth-child(3) .atlas-info strong { color: #A63D2C; }
.atlas-card:nth-child(3) .atlas-info span { color: #C4665D; }

.atlas-card:nth-child(4) {
    background: linear-gradient(135deg, #EBF0FF 0%, #D1DDFF 100%);
    border-left: 4px solid #2B4C8C;
}
.atlas-card:nth-child(4):hover::before {
    background: linear-gradient(135deg, #F5F9FF 0%, #E0ECFF 100%);
    opacity: 1;
}
.atlas-card:nth-child(4) .atlas-info strong { color: #1C3563; }
.atlas-card:nth-child(4) .atlas-info span { color: #445A8C; }

.ac-big  { grid-column: span 1; }
.ac-small { grid-column: span 1; }
.ac-full {
    grid-column: span 2;
    background: linear-gradient(135deg, #0E0E0E 0%, #2A2A2A 100%);
    color: var(--white);
    border: 2px solid rgba(42, 107, 63, 0.3);
}
.ac-full:hover {
    border-color: var(--green);
    box-shadow: 0 20px 80px rgba(42, 107, 63, 0.2);
}
.ac-full .atlas-info strong { color: var(--white); }
.ac-full .atlas-info span { color: rgba(255,255,255,0.6); }

/* POSTCARD GRID */
.postcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.postcard {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    background: #fdfaf5;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.postcard:hover { transform: translateY(-6px) rotate(0.5deg); box-shadow: 6px 16px 40px rgba(0,0,0,0.18); }

/* ↓ taller + overflow hidden so photo fills it */
.pc-visual {
    height: 180px;
    overflow: hidden;
    position: relative;
}
/* ↓ photo fills the visual area */
.pc-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.postcard:hover .pc-visual img {
    transform: scale(1.06);
}

/* ↓ remove gradient backgrounds, no longer needed */
.pc-visual-sg, .pc-visual-bkk, .pc-visual-seoul { background: none; }
.pc-kyoto .pc-visual { background: none; }
.pc-torii::before { content: ''; }
.pc-merlion, .pc-tuk, .pc-gate { display: none; }

.pc-stamp {
    position: absolute; top: 0.7rem; right: 0.7rem;
    font-size: 1.4rem; background: rgba(255,255,255,0.9);
    border-radius: 4px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2); z-index: 2;
}
.pc-postmark {
    position: absolute; top: 0.6rem; left: 0.7rem;
    font-family: var(--font-mono); font-size: 0.5rem;
    letter-spacing: 1.5px; color: rgba(255,255,255,0.9);
    text-transform: uppercase; z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.pc-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; border-top: 1px dashed rgba(0,0,0,0.1); }
.pc-city { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pc-country { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.4rem; }
.pc-note { font-size: 0.78rem; color: var(--ink-light); line-height: 1.55; }
.atlas-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3.5rem 3rem;
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #FAF7F2 0%, #F2EDE6 100%);
    border: 2px solid rgba(42, 107, 63, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}
.atlas-footer:hover {
    border-color: var(--green);
    box-shadow: 0 20px 60px rgba(42, 107, 63, 0.15);
    transform: translateY(-4px);
}
.atlas-footer-num {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--green);
}
.atlas-footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--ink);
    text-transform: uppercase;
    max-width: 500px;
    line-height: 1.8;
    text-align: center;
}

/* ========== 10. MUSIC SECTION ========== */
/* Large rotating vinyl record display paired with tag cloud of music genres */
/* Celebrates music as a personal identity and creative outlet for all experiences */
#music {
    min-height: 80vh;
    padding: 8rem clamp(1.5rem, 6vw, 6rem);
    background: var(--cream);
}
.music-desc {
    max-width: 550px;
    color: var(--ink-light);
    line-height: 1.8;
    margin-top: 1rem;
    font-size: 1.05rem;
}
.vinyl-stage {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.big-vinyl {
    width: clamp(180px, 22vw, 300px);
    height: clamp(180px, 22vw, 300px);
    border-radius: 50%;
    background: radial-gradient(circle at center, #3A3A3A 20%, transparent 20%),
                repeating-radial-gradient(circle at center, #1a1a1a, #1a1a1a 3px, #2a2a2a 3px, #2a2a2a 8px);
    position: relative;
    flex-shrink: 0;
    animation: spin 8s linear infinite;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: white;
    text-align: center;
    line-height: 1.6;
    animation: counter-spin 8s linear infinite;
}
@keyframes counter-spin { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.needle {
    position: absolute;
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #888, #555);
    top: -30px;
    right: 20px;
    border-radius: 4px;
    transform-origin: top center;
    transform: rotate(20deg);
}
.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: 500px;
}
.genre {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}
.genre:hover { transform: scale(1.08); }
.g1 { background: #FFE6E6; color: var(--red); }
.g2 { background: #E6F0FF; color: var(--blue); }
.g3 { background: #FFF9E6; color: var(--gold); }
.g4 { background: #E6FFE6; color: var(--green); }
.g5 { background: #F5E6FF; color: #7A3BAA; }
.g6 { background: #FFE6F5; color: #AA3B7A; }
.g7 { background: #E6FFF5; color: #2A9B7A; }
.g8 { background: #FFF0E6; color: #C4673C; }
.g9 { background: #E6E6FF; color: #3C3CAA; }
.g10 { background: #1A1A1A; color: var(--white); }

/* ========== 11. CONTACT & FOOTER SECTION ========== */
/* Full-height dark section with large CTA headline and three social/contact links */
/* Invites collaboration and provides multiple ways to get in touch */
#contact {
    min-height: 70vh;
    padding: 8rem clamp(1.5rem, 6vw, 6rem);
    background: var(--bg-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 700px;
    margin-bottom: 1.5rem;
}
.contact-title em { color: var(--green-light); }
.contact-sub {
    color: rgba(255,255,255,0.45);
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
}
.contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 5rem; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    transition: all 0.25s;
}
.contact-link:hover {
    background: var(--green);
    border-color: var(--green);
    color: white;
    transform: translateY(-2px);
}
.footer-note {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
}

/* ========== 12. FLOATING MUSIC WIDGET ========== */
/* Fixed bottom-right corner glassmorphic widget showing current music status */
/* Displays animated music icon, title, and progress bar that loops continuously */
.music-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(0,0,0,0.08);
}
.music-disc {
    font-size: 1.3rem;
    animation: spin 4s linear infinite;
    display: block;
}
.music-info { display: flex; flex-direction: column; gap: 4px; }
.music-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--ink);
}
.music-bar {
    width: 80px;
    height: 3px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.music-progress {
    height: 100%;
    background: var(--green);
    border-radius: 10px;
    animation: progress 8s linear infinite;
    width: 0%;
}
@keyframes progress { from { width: 0%; } to { width: 100%; } }

/* ========== 13. RESPONSIVE DESIGN ========== */
/* Media queries for tablets, tablets, and mobile viewports */
/* Adapts layout, typography, grid columns, and spacing for smaller screens */

/* Large tablets: 1100px and below - Stack hero vertically */
@media (max-width: 1100px) {
    #hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-top: 7rem;
        gap: 2.5rem;
    }
    .hero-content { max-width: 100%; }
    .hero-cta { display: flex; justify-content: center; }
    .obj-carousel { width: 80%; max-width: 340px; }
}

/* Tablets: 900px and below - Single column layouts, hide nav links */
@media (max-width: 900px) {
    .nav { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .collage-zone { height: clamp(280px, 80vw, 400px); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .atlas-grid { grid-template-columns: 1fr; }
    .ac-big, .ac-small, .ac-full { grid-column: span 1; }
    .vinyl-stage { flex-direction: column; align-items: center; gap: 2rem; }
    .genre-cloud { justify-content: center; max-width: 100%; }
    .timeline::before { left: 70px; }
    .tl-item { grid-template-columns: 70px 1fr; gap: 1rem; }
    .postcard-grid { grid-template-columns: repeat(2,1fr); }
}

/* Small phones: 540px and below - Postcard grid to single column */
@media (max-width: 540px) {
    .postcard-grid { grid-template-columns: 1fr; }
}

/* Mobile phones: 500px and below - Reduce font sizes and spacing further */
@media (max-width: 500px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: 2.5rem; }
    .collage-zone { height: clamp(240px, 95vw, 340px); }
    .collage-card { font-size: 0.75rem; padding: 0.8rem 1rem; }
    .cc-emoji { font-size: 1.4rem; }
}

