/* ── SHARED FONTS ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── NAV CARDS (Prismic Hover) ────────────────── */
.nav-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    /* Spring cubic-bezier: overshoots then snaps back = "springy" */
    transition:
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        filter 0.4s ease;
    will-change: transform;
}
.nav-card:hover {
    transform: scale(1.08) translateY(-4px);
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.15);
    filter: brightness(1.06);
}
.nav-card:active {
    transform: scale(1.02) translateY(-1px);
}
.nav-icon {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
}
.nav-label {
    font-family: 'Inter', 'Barlow Condensed', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: inherit;
    margin: 0;
}
.stat-box.dark .nav-label { color: #fff; }

/* ── WANNA KNOW MORE ──────────────────────────── */
.wanna-know-more {
    min-height: 70vh;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.wkm-inner {
    text-align: center;
    padding: 40px 20px;
}
.wkm-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 6vw, 6rem);
    font-weight: 900;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em;
}
.wkm-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: none; /* driven by GSAP */
    background: linear-gradient(135deg, #4ade80, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wkm-heading::after {
    content: 'Click to find out →';
    display: block;
    width: 100%;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0;
    color: #666;
    -webkit-text-fill-color: #666;
    background: none;
    margin-top: 20px;
    transition: opacity 0.4s ease 1s;
}
.wkm-heading.revealed::after {
    opacity: 1;
}

/* ── CARDS OVERLAY ────────────────────────────── */
.cards-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.94);
    backdrop-filter: blur(18px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cards-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.cards-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.overlay-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.overlay-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1) rotate(90deg);
}
.flip-cards-container {
    display: flex;
    gap: clamp(20px, 4vw, 60px);
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

/* ── 3D FLIP CARDS ────────────────────────────── */
.flip-card {
    width: clamp(260px, 32vw, 380px);
    height: clamp(320px, 40vh, 460px);
    perspective: 1200px;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}
.flip-card-inner.flipped {
    transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    text-align: center;
}
.flip-card-front {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.flip-card-back {
    background: linear-gradient(145deg, #0d1117, #161b22);
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 60px rgba(74, 222, 128, 0.15);
    transform: rotateY(180deg);
}
.flip-card-front h3,
.flip-card-back h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.flip-card-front p,
.flip-card-back p {
    font-family: 'Inter', sans-serif;
    color: #aaa;
    font-size: 0.95rem;
}

/* Profiles card */
.profile-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.profile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.25s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.profile-link:hover {
    transform: scale(1.04);
}
.github-link  { background: rgba(255,255,255,0.08); }
.github-link:hover { background: rgba(255,255,255,0.16); }
.linkedin-link { background: rgba(10,102,194,0.25); }
.linkedin-link:hover { background: rgba(10,102,194,0.4); }
.leetcode-link { background: rgba(255,161,22,0.2); }
.leetcode-link:hover { background: rgba(255,161,22,0.35); }
.dsa-streak {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
    width: 100%;
    text-align: center;
}

/* Resume card */
.resume-emoji {
    font-size: 3.5rem;
    line-height: 1;
}
.resume-card .flip-card-front {
    background: linear-gradient(145deg, #1e293b, #0f172a);
}
.resume-card .flip-card-back {
    background: linear-gradient(145deg, #14532d, #052e16);
    border-color: rgba(74,222,128,0.5);
}
.resume-card:hover .flip-card-front {
    box-shadow: 0 0 40px rgba(74,222,128,0.2);
}

/* ── SUB-PAGE SHARED STYLES ───────────────────── */
.page-wrapper {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}
.go-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    transition: background 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.go-back-btn:hover {
    background: rgba(74,222,128,0.2);
    transform: translateX(-4px) scale(1.04);
}
