/* ==========================================
   YACHTMASTER PORTFOLIO — ITERATION N
   ========================================== */

:root {
    --bg-primary: #f5f5f0;
    --bg-secondary: #e8e8e0;
    --text-primary: #2a2a2a;
    --text-secondary: #5a5a5a;
    --card-bg: #ffffff;
    --card-border: #d0d0c8;

    --rose-gold: #b87653;
    --rose-light: #d4a574;
    --rose-dark: #8b5a3c;
    --watch-black: #0a0a0a;
    --dial-black: #1a1a1a;
    --steel: #c5c5c5;
    --steel-dark: #8a8a8a;

    --accent-teal: #2c5f7c;
    --accent-blue: #3a7d7c;
    --accent-bronze: #8b6f47;
    --accent-slate: #4a5568;
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-secondary: #a8a8a8;
    --card-bg: #1a1a1a;
    --card-border: #2a2a2a;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.4s, color 0.4s;
    overflow: hidden;
    height: 100vh;
}

/* ==========================================
   CARD BACKGROUND — 5 rows, higher opacity
   ========================================== */
.card-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.18;          /* was 0.08 — more visible */
    pointer-events: none;
}

.bg-card {
    position: absolute;
    width: 90px;
    height: 130px;
    border-radius: 8px;
    border: 2px solid var(--accent-bronze);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    background:
        radial-gradient(circle at 50% 50%, transparent 35%, var(--rose-gold) 35%, var(--rose-gold) 37%, transparent 37%),
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(184,118,83,0.12) 8px, rgba(184,118,83,0.12) 16px),
        linear-gradient(145deg, #faf9f0, #ede9dc);
}

/* --- Row 1: top 8%, right --- */
.bg-card[data-row="1"] { top: 8%;  animation: moveRight 42s linear infinite; }
.bg-card[data-row="1"][data-index="0"] { left:  0%; animation-delay:  0s; }
.bg-card[data-row="1"][data-index="1"] { left: 20%; animation-delay: -8.4s; }
.bg-card[data-row="1"][data-index="2"] { left: 40%; animation-delay:-16.8s; }
.bg-card[data-row="1"][data-index="3"] { left: 60%; animation-delay:-25.2s; }
.bg-card[data-row="1"][data-index="4"] { left: 80%; animation-delay:-33.6s; }

/* --- Row 2: 28%, left --- */
.bg-card[data-row="2"] { top: 28%; animation: moveLeft 46s linear infinite; }
.bg-card[data-row="2"][data-index="0"] { left:  0%; animation-delay:  0s; }
.bg-card[data-row="2"][data-index="1"] { left: 20%; animation-delay: -9.2s; }
.bg-card[data-row="2"][data-index="2"] { left: 40%; animation-delay:-18.4s; }
.bg-card[data-row="2"][data-index="3"] { left: 60%; animation-delay:-27.6s; }
.bg-card[data-row="2"][data-index="4"] { left: 80%; animation-delay:-36.8s; }

/* --- Row 3: 48%, right --- */
.bg-card[data-row="3"] { top: 48%; animation: moveRight 50s linear infinite; }
.bg-card[data-row="3"][data-index="0"] { left:  0%; animation-delay:  0s; }
.bg-card[data-row="3"][data-index="1"] { left: 20%; animation-delay:-10s;  }
.bg-card[data-row="3"][data-index="2"] { left: 40%; animation-delay:-20s;  }
.bg-card[data-row="3"][data-index="3"] { left: 60%; animation-delay:-30s;  }
.bg-card[data-row="3"][data-index="4"] { left: 80%; animation-delay:-40s;  }

/* --- Row 4: 68%, left --- */
.bg-card[data-row="4"] { top: 68%; animation: moveLeft 44s linear infinite; }
.bg-card[data-row="4"][data-index="0"] { left:  0%; animation-delay:  0s; }
.bg-card[data-row="4"][data-index="1"] { left: 20%; animation-delay: -8.8s; }
.bg-card[data-row="4"][data-index="2"] { left: 40%; animation-delay:-17.6s; }
.bg-card[data-row="4"][data-index="3"] { left: 60%; animation-delay:-26.4s; }
.bg-card[data-row="4"][data-index="4"] { left: 80%; animation-delay:-35.2s; }

/* --- Row 5: 85%, right --- */
.bg-card[data-row="5"] { top: 85%; animation: moveRight 48s linear infinite; }
.bg-card[data-row="5"][data-index="0"] { left:  0%; animation-delay:  0s; }
.bg-card[data-row="5"][data-index="1"] { left: 20%; animation-delay: -9.6s; }
.bg-card[data-row="5"][data-index="2"] { left: 40%; animation-delay:-19.2s; }
.bg-card[data-row="5"][data-index="3"] { left: 60%; animation-delay:-28.8s; }
.bg-card[data-row="5"][data-index="4"] { left: 80%; animation-delay:-38.4s; }

@keyframes moveRight {
    from { transform: translateX(-140px) rotate(-3deg); }
    to   { transform: translateX(calc(100vw + 140px)) rotate(3deg); }
}
@keyframes moveLeft {
    from { transform: translateX(calc(100vw + 140px)) rotate(3deg); }
    to   { transform: translateX(-140px) rotate(-3deg); }
}

/* ==========================================
   TOP BAR
   ========================================== */
.theme-toggle {
    position: fixed; top:30px; left:30px;
    width:50px; height:50px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; z-index:1000;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.theme-toggle:hover { transform: scale(1.1) rotate(180deg); }
.toggle-icon { font-size:24px; }

.mini-time {
    position:fixed; top:30px; left:100px;
    font-size:16px; font-weight:600; letter-spacing:1px;
    color: var(--text-secondary);
    padding:12px 24px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius:25px; z-index:1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.home-button {
    position:fixed; top:30px; right:30px;
    width:50px; height:50px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; z-index:1000;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.home-button:hover { background: var(--accent-teal); color:white; transform:scale(1.1); }
.home-button.hidden { opacity:0; pointer-events:none; }

/* ==========================================
   WATCH SCENE — 780px
   ========================================== */
.watch-scene {
    position:fixed; inset:0;
    display:flex; align-items:center; justify-content:center;
    z-index:100;
    transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}
.watch-scene.minimized { transform:scale(0); opacity:0; pointer-events:none; }

.watch-assembly {
    position:relative;
    width:780px; height:780px;
}

/* ==========================================
   CROWN — positioned at 3 o'clock, BEHIND bezel
   ========================================== */
.crown {
    position:absolute;
    /* center of assembly is 390px. case starts ~38px in, so right edge of case ≈ 780-38=742 from left.
       We want crown to stick out just past bezel outer edge. */
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;   /* bezel is z:6, so crown tucks under */
}
.crown-body {
    width:24px; height:36px;
    background: linear-gradient(90deg, var(--rose-dark), var(--rose-gold), var(--rose-light));
    border-radius: 0 6px 6px 0;
    display:flex; flex-direction:column; justify-content:space-evenly;
    padding: 5px 3px;
    box-shadow: 0 0 12px rgba(184,118,83,0.6);
}
.crown-line { width:100%; height:3px; background:rgba(0,0,0,0.3); border-radius:1px; }

/* ==========================================
   BEZEL — z:6, rotates
   ========================================== */
.bezel {
    position:absolute;
    /* fill the assembly minus a small margin so crown peeks out */
    inset: 17px;
    border-radius:50%;
    background: linear-gradient(145deg, var(--rose-light) 0%, var(--rose-gold) 50%, var(--rose-dark) 100%);
    border: 10px solid var(--rose-dark);
    transform-origin:center;
    transition: transform 0.03s linear;   /* fast per-step for clicking feel */
    box-shadow:
        0 0 50px rgba(184,118,83,0.5),
        inset 0 0 40px rgba(0,0,0,0.3),
        inset 0 3px 8px rgba(255,255,255,0.4);
    z-index:6;
}

.bezel-markers { position:absolute; inset:0; border-radius:50%; }

.bezel-mark {
    position:absolute;
    top:10px; left:50%;
    width:3px; height:14px;
    background: var(--watch-black);
    margin-left:-1.5px;
    /* transform-origin Y = half the bezel diameter minus top offset.
       bezel inner diameter ≈ 780 - 44 - 10(border*2) = 726 → radius 363. origin from top = 363 */
    transform-origin: 50% 353px;
    opacity:0.7;
    z-index: 30;
    
}

/* Hour markers on bezel (12 / 3 / 6 / 9) */
.bezel-mark.hour {
    height: 50px;               /* longer */
    width: 10px;
    border-radius: 2px;
    opacity: 1;

    background: linear-gradient(
        180deg,
        var(--accent-red),
        #7a1212
    );

    box-shadow:
        0 0 10px rgba(179,32,32,0.75),
        inset 0 1px 2px rgba(255,255,255,0.3);
}

.bezel-mark.main {
    width:5px; height:24px; margin-left:-2.5px;
    opacity:1;
    background: linear-gradient(180deg, var(--watch-black), #1a1a1a);
}
.bezel-mark.main::after {
    content: attr(data-num);
    position:absolute;
    bottom:-24px; left:50%;
    transform: translateX(-50%) rotate(calc(-1 * var(--mark-angle)));
    font-size:14px; font-weight:900;
    color: var(--watch-black);
    font-family:'Lato',sans-serif;
    white-space:nowrap;
}

/* ==========================================
   CASE — static, sits on top of bezel visually
   ========================================== */
.case {
    position:absolute;
    /* inset slightly more than bezel so bezel ring shows around it */
    inset: 42px;
    border-radius:50%;
    background: radial-gradient(circle at 35% 35%, #2a2a2a 0%, var(--watch-black) 60%, #000 100%);
    box-shadow:
        0 35px 90px rgba(0,0,0,0.9),
        inset 0 0 70px rgba(0,0,0,0.9),
        inset 0 -12px 35px rgba(255,255,255,0.06);
    z-index:10;
}

.crystal {
    position:absolute; inset:12px; border-radius:50%;
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.18) 0%, transparent 65%);
    pointer-events:none; z-index:40;
}

/* ==========================================
   DIAL — rotates with bezel
   ========================================== */
.dial {
    position:absolute;
    inset:7px;
    border-radius:50%;
    background: var(--dial-black);
    overflow:visible;
    box-shadow: inset 0 0 90px rgba(0,0,0,0.95);
    z-index:20;
    transform-origin:center;
    /* JS sets transform: rotate() on this to match bezel */
    transition: transform 0.03s linear;
    z-index: 10;
}

.sunburst {
    position:absolute; inset:0;
    border-radius:50%;
    overflow:hidden;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255,255,255,0.035) 0deg, transparent 1deg,
        rgba(255,255,255,0.035) 2deg, transparent 3deg
    );
    animation: rotateSunburst 120s linear infinite;
}
@keyframes rotateSunburst { to { transform:rotate(360deg); } }

/* ==========================================
   INDICES
   ========================================== */
.indices { position:absolute; inset:0; }

.idx {
    position:absolute;
    top:50%; left:50%;
    width:5px; height:100%;
    margin-left:-2.5px; margin-top:-50%;
    transform: rotate(calc(var(--i) * 30deg));
}
.idx-mark {
    position:absolute;
    top:16px; left:50%;
    width:6px; height:24px; margin-left:-3px;
    background: linear-gradient(180deg, var(--rose-light), var(--rose-gold), var(--rose-dark));
    border-radius:2px;
    box-shadow: 0 0 15px rgba(184,118,83,0.9), inset 0 1px 2px rgba(255,255,255,0.5);
}
.idx-mark.big {
    width:10px; height:32px; margin-left:-5px;
    box-shadow: 0 0 20px rgba(184,118,83,1), inset 0 2px 3px rgba(255,255,255,0.6);
}

/* ==========================================
   DIAL BUTTONS — flush on the dial face
   Each one is positioned radially using the same
   rotate + translateY trick as indices, but we
   counter-rotate the text so it stays readable.
   ========================================== */
.dial-btn {
    position:absolute;
    top:50%; left:50%;
    /* the text pill */
    font-family:'Lato',sans-serif;
    font-size:11px; font-weight:800;
    letter-spacing:2px;
    color: rgba(255,255,255,0.9);
    background: rgba(184,118,83,0.35);
    border: 1px solid rgba(184,118,83,0.7);
    padding: 6px 14px;
    border-radius:20px;
    white-space:nowrap;
    cursor:pointer;
    /* position: rotate to the hour, then push outward.
       dial inner radius ≈ (780-84-56)/2 = 320px → use ~260px translateY to land inside dial near edge */
    transform:
        translate(-50%, -50%)
        rotate(calc(var(--btn-hour) * 30deg))
        translateY(-300px)
        rotate(calc(-1 * var(--btn-hour) * 30deg));


    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    z-index:26;
    /* kill pointer-events through overflow:hidden on dial — we need them,
       so the btn sits at z:26 which is above the dial's own stacking */
}
.dial-btn:hover {
    background: rgba(184,118,83,0.7);
    border-color: var(--rose-light);
    box-shadow: 0 0 14px rgba(184,118,83,0.8);
    color:#fff;
}
/* dial needs overflow visible so edge buttons aren't clipped/blocked */
.dial { overflow: visible; }

/* ==========================================
   BRAND TOP
   ========================================== */
.brand-top {
    position:absolute;
    top:88px; left:50%;
    transform:translateX(-50%);
    text-align:center; z-index:25;
}
.crown-logo { margin-bottom:6px; filter: drop-shadow(0 3px 8px rgba(184,118,83,0.9)); }
.brand-name {
    font-family:'Playfair Display',serif;
    font-size:25px; font-weight:700; letter-spacing:2.5px;
    color: var(--rose-gold);
    text-shadow: 0 0 15px rgba(184,118,83,0.9);
}
.brand-model { font-size:12px; font-weight:600; letter-spacing:1.2px; color:var(--steel); margin-top:3px; }

/* ==========================================
   CERT BOTTOM
   ========================================== */
.brand-bottom {
    position:absolute;
    bottom:110px; left:50%;
    transform:translateX(-50%);
    text-align:center; z-index:25;
}
.cert-line { font-size:14px; font-weight:600; letter-spacing:1.4px; color:var(--steel); line-height:1.6; }

/* ==========================================
   DATE
   ========================================== */
.date-box {
    position:absolute;
    top:50%; right:92px;
    transform:translateY(-50%);
    width:50px; height:35px;
    background:#fff;
    border: 2px solid var(--rose-dark);
    border-radius:3px;
    display:flex; align-items:center; justify-content:center;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    z-index:25;
}
.date-cyclops {
    position:absolute; top:-5px; width:100%; height:14px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.45) 0%, transparent 75%);
    border-radius:50%;
}
.date-num { font-family:'Lato',sans-serif; font-size:18px; font-weight:900; color:var(--watch-black); }

/* ==========================================
   HANDS — inside .case, OUTSIDE .dial, so they
   do NOT rotate when dial rotates.
   ========================================== */
.hands {
    position:absolute;
    /* match dial's inset so center aligns */
    inset:28px;
    z-index:30;
    pointer-events:none;   /* pass clicks through to dial buttons underneath */
}
.hand {
    position:absolute;
    bottom:50%; left:50%;
    transform-origin: bottom center;
    transition: transform 0.3s linear;
}
.hour {
    width: 24px;                 /* MUCH thicker */
    height: 170px;
    margin-left: -13px;

    background: linear-gradient(
        to top,
        var(--steel-dark),
        var(--steel)
    );

    clip-path: polygon(
        50% 0%,     /* razor tip */
        70% 18%,
        85% 100%,
        15% 100%,
        30% 18%
    );

    box-shadow:
        0 0 14px rgba(0,0,0,0.95),
        inset 0 2px 3px rgba(255,255,255,0.55);

    z-index: 32;
}
.minute {
    width: 15px;                 /* thicker */
    height: 245px;
    margin-left: -10px;

    background: linear-gradient(
        to top,
        var(--steel-dark),
        var(--steel)
    );

    clip-path: polygon(
        50% 0%,     /* ultra sharp */
        68% 14%,
        90% 100%,
        10% 100%,
        32% 14%
    );

    box-shadow:
        0 0 16px rgba(0,0,0,1),
        inset 0 2px 3px rgba(255,255,255,0.6);

    z-index: 33;
}
.second {
    width:4px; height:215px; margin-left:-2px;
    background: linear-gradient(to top, #d32f2f, #ff5555);
    border-radius:2px 2px 0 0;
    box-shadow: 0 0 15px rgba(211,47,47,0.9);
    z-index:34;
}
.hub {
    position:absolute; top:50%; left:50%;
    width:22px; height:22px; margin:-11px 0 0 -11px;
    background: radial-gradient(circle, var(--rose-light), var(--rose-gold), var(--rose-dark));
    border-radius:50%; z-index:35;
    box-shadow: 0 0 22px rgba(184,118,83,1), inset 0 3px 4px rgba(255,255,255,0.7);
}

/* ==========================================
   CONTENT ZONE
   ========================================== */
.content-zone {
    position:fixed; inset:0;
    display:flex; align-items:flex-start; justify-content:center;
    z-index:50;
    opacity:0; pointer-events:none;
    transition: opacity 0.5s;
}
.content-zone:not(.hidden) { opacity:1; pointer-events:all; }

/* OVERLAY */
.shuffle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.shuffle-overlay.hidden {
    display: none;
}

/* CARD CONTAINER */
.flip-card {
    width: 160px;
    height: 220px;
    perspective: 1200px;
    z-index: 10000;
}



.flip-card-face {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #faf9f0, #f0ede0);
    border-radius: 16px;
    border: 2px solid rgba(184,118,83,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    
}

.flip-card-face::after {
    content: attr(data-suit);
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #faf9f0, #f0ede0);
    border-radius: 16px;
    border: 2px solid rgba(184,118,83,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}


.flip-card-face.red {
    color: #c0392b;
}

.flip-card-back {
    transform: rotateY(180deg);
}
.flip-card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: kebabSpin 0.6s linear infinite;
}

@keyframes kebabSpin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

@keyframes cardFlip {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}


@keyframes shuffleSpin {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    25%  { transform: translateY(-12px) rotate(-6deg) scale(0.98); }
    50%  { transform: translateY(0) rotate(6deg) scale(1); }
    75%  { transform: translateY(12px) rotate(-3deg) scale(0.97); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}


/* ==========================================
   ACES — fixed left & right, same style as before
   Shift animation: on page change they slide in
   from their side, pause, slide back out.
   ========================================== */
.ace {
    position:absolute;
    top:50%; 
    width:140px; height:200px;
    background: linear-gradient(145deg, #faf9f0, #f5f4e8);
    border: 3px solid var(--accent-bronze);
    border-radius:12px;
    cursor:pointer;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, left 0.4s ease, right 0.4s ease, box-shadow 0.3s;
    z-index:60;
}

.left-ace {
    left:40px;
    transform: translateY(-50%) rotate(-3deg);
}
.left-ace:hover {
    transform: translateY(-50%) rotate(-1deg) scale(1.06);
    box-shadow: 0 20px 60px rgba(184,118,83,0.5);
}
/* shift-in animation state */
.left-ace.shift-in {
    transform: translateY(-50%) rotate(0deg) translateX(60px);
    box-shadow: 0 25px 70px rgba(184,118,83,0.7);
}

.right-ace {
    right:40px;
    transform: translateY(-50%) rotate(3deg);
}
.right-ace:hover {
    transform: translateY(-50%) rotate(1deg) scale(1.06);
    box-shadow: 0 20px 60px rgba(184,118,83,0.5);
}
.right-ace.shift-in {
    transform: translateY(-50%) rotate(0deg) translateX(-60px);
    box-shadow: 0 25px 70px rgba(184,118,83,0.7);
}

.ace-inner {
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    height:100%; gap:10px;
}
.ace-rank {
    font-family:'Playfair Display',serif;
    font-size:38px; font-weight:700;
    color: var(--accent-slate);
}
.ace-suit { font-size:52px; }
.ace-suit.black { color:#000; }
.ace-suit.red   { color:#8b0000; }
.ace-name {
    font-family:'Lato',sans-serif;
    font-size:12px; font-weight:800;
    letter-spacing:2px;
    color: var(--text-primary);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    width: calc(100vw - 380px);   /* room for aces on both sides */
    max-width: 1530px;
    height: 88vh;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius:20px;
    padding:55px;
    margin-top: 90px;
    overflow-y:auto;
    box-shadow: 0 35px 110px rgba(0,0,0,0.35);
    z-index:55;
}

.page { display:none; }
.page:not(.hidden) { display:block; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }

.page h2 {
    font-family:'Playfair Display',serif;
    font-size:42px; font-weight:700;
    color: var(--accent-teal);
    margin-bottom:30px; padding-bottom:20px;
    border-bottom: 3px solid var(--accent-teal);
}
.intro { font-size:18px; line-height:1.8; color:var(--text-primary); margin-bottom:30px; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.box h3 { font-size:20px; color:var(--accent-blue); margin-bottom:12px; }
.box ul { list-style:none; padding:0; }
.box li { padding:9px 0; border-bottom:1px solid var(--card-border); color:var(--text-secondary); }

/* contact inside about */
.contact-heading {
    font-size:20px; color:var(--accent-blue);
    margin: 36px 0 16px;
}
.contact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.contact-card {
    display:flex; flex-direction:column; gap:8px;
    padding:22px;
    background: var(--bg-secondary);
    border:1px solid var(--card-border);
    border-radius:12px;
    text-decoration:none;
    transition: all 0.3s;
}
.contact-card:hover { border-color:var(--accent-blue); transform:translateY(-4px); }
.contact-icon  { font-size:32px; }
.contact-label { font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--accent-blue); text-transform:uppercase; }
.contact-value { font-size:15px; color:var(--text-primary); }

/* projects */
.project-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:24px; }
.project {
    background: var(--bg-secondary);
    border:1px solid var(--card-border);
    border-radius:14px; padding:26px;
    transition: all 0.3s;
}
.project:hover { border-color:var(--accent-teal); transform:translateY(-5px); }
.project h3 { font-size:20px; color:var(--text-primary); margin-bottom:12px; }
.tags { display:flex; gap:8px; margin:14px 0; }
.tags span { font-size:11px; font-weight:700; padding:5px 12px; background:var(--accent-blue); color:#fff; border-radius:4px; }
.btn {
    font-family:'Lato',sans-serif; font-size:13px; font-weight:700;
    padding:10px 20px; background:transparent;
    border:2px solid var(--accent-teal); border-radius:8px;
    color:var(--accent-teal); cursor:pointer; transition:all 0.3s; margin-top:10px;
}
.btn:hover { background:var(--accent-teal); color:#fff; transform:translateY(-2px); }

/* achievements */
.ach-list { display:flex; flex-direction:column; gap:24px; }
.ach { display:flex; gap:24px; padding:24px; background:var(--bg-secondary); border:1px solid var(--card-border); border-radius:14px; }
.ach-icon { font-size:44px; }
.ach-info h3 { font-size:20px; color:var(--text-primary); margin-bottom:10px; }

/* ================= PROJECT DETAIL PAGES ================= */

.project-detail {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-width: 850px;
  margin: 0 auto;
}

.project-detail h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 18px;
}

.project-detail p {
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* Highlight sections */
.project-block {
  background: var(--bg-primary);
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* Action buttons */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.project-links a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}


/* scrollbar */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:var(--bg-secondary); }
::-webkit-scrollbar-thumb { background:var(--accent-teal); border-radius:4px; }

/* responsive */
@media (max-width:1200px) {
    .watch-assembly { width:620px; height:620px; }
    .grid-2, .contact-grid { grid-template-columns:1fr; }
}
