﻿/* ================================================================
   SUMON MIAH PORTFOLIO â€” Premium White / Cream Design System
   Font: Plus Jakarta Sans (body) | Libre Baskerville (headings)
   Color: White / Cream / Deep Charcoal / Blue Accent
   ================================================================ */

/* CRITICAL: Active nav link style */
.nav-links a.active-link {
    color: var(--accent) !important;
    background: rgba(27,79,255,0.08);
}

/* ---------------------------------------------------------------- Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; }

/* ---------------------------------------------------------------- Design Tokens */
:root {
    --white:   #ffffff;
    --cream:   #faf8f5;
    --offwhite:#f4f1eb;
    --ink:     #1a1a2e;
    --ink-mid: #3d3d5c;
    --ink-soft:#7a7a9a;
    --accent:  #1b4fff;
    --accent-2:#e8402a;
    --gold:    #c9a84c;
    --border:  rgba(26,26,46,0.10);
    --shadow:  0 4px 32px rgba(26,26,46,0.08);
    --shadow-lg: 0 20px 60px rgba(26,26,46,0.14);
    --radius:  16px;
    --radius-sm:8px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------- Typography Helpers */
.sec-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.sec-label-bn { font-family: 'Hind Siliguri', sans-serif; }

.sec-heading {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 20px;
}
.sec-heading em { font-style: italic; color: var(--accent); }

.sec-sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.75;
}

.sec-header { margin-bottom: 60px; }
.sec-header.centered { text-align: center; }
.sec-header.centered .sec-sub { margin: 0 auto; }

/* ---------------------------------------------------------------- Layout */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}
.sec-pad { padding: 120px 0; }
.bg-offwhite { background: var(--offwhite); }
.text-c { text-align: center; }

/* ---------------------------------------------------------------- Custom Cursor */
.cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: opacity 0.3s;
}
.cursor-dot {
    width: 7px; height: 7px;
    background: var(--accent);
}
.cursor-ring {
    width: 38px; height: 38px;
    border: 1.5px solid var(--accent);
    transition: width 0.25s, height 0.25s, background 0.25s;
}
body:hover .cursor-dot, body:hover .cursor-ring { opacity: 1; }

/* ---------------------------------------------------------------- Preloader */
#preloader {
    position: fixed; inset: 0;
    background: var(--ink);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; display: none; }

.pre-logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}
.pre-logo span { color: var(--accent); }

.pre-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.pre-fill {
    height: 100%;
    background: var(--accent);
    width: 100%; /* already full â€” no animation delay */
}

/* ---------------------------------------------------------------- NAVIGATION */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 16px 5%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    padding: 12px 5%;
    box-shadow: var(--shadow);
}
.nav-wrap {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
}
.nav-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.nav-title-small { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; }

.nav-links {
    display: flex; align-items: center; gap: 6px;
}
.nav-links a {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-mid);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--offwhite); }
.nav-cta-btn {
    background: var(--ink) !important;
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}
.nav-cta-btn:hover { background: var(--accent) !important; }

.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    padding: 5px; border-radius: 8px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(26,26,46,0.5);
    z-index: 1100;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; right: 0;
    width: min(320px, 85vw); height: 100vh;
    background: var(--white);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-inner {
    padding: 40px 30px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 8px;
}
.drawer-avatar {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 10px;
}
.drawer-inner h3 { font-family: 'Libre Baskerville', serif; font-size: 1.3rem; color: var(--ink); }
.drawer-inner > p { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 20px; }
.drawer-inner ul { width: 100%; text-align: left; }
.drawer-inner ul li a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-mid); font-size: 0.95rem; font-weight: 500;
    transition: color var(--transition);
}
.drawer-inner ul li a:hover { color: var(--accent); }
.drawer-inner ul li a i { width: 20px; color: var(--accent); }
.drawer-socials {
    display: flex; gap: 16px; margin-top: 30px;
}
.drawer-socials a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border);
    color: var(--ink-mid); font-size: 0.9rem;
    transition: var(--transition);
}
.drawer-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------- HERO */
.hero {
    min-height: 100vh;
    background: var(--ink);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    perspective: 1200px;
}

/* BACKGROUND SLIDESHOW */
.hero-bg {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    transform: scale(1.04); /* slight zoom for Ken Burns effect */
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* OVERLAY â€” dark gradient for text readability */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(10, 10, 30, 0.88) 0%,
        rgba(10, 10, 30, 0.70) 50%,
        rgba(10, 10, 30, 0.35) 100%
    );
}

/* Particle container */
.particles {
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    animation: floatParticle linear infinite;
    will-change: transform;
}
@keyframes floatParticle {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* 3D Ring Carousel */
.hero-scene {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 5%;
    z-index: 4;
    transform-style: preserve-3d;
    pointer-events: none;
}

.ring-carousel {
    width: 240px; height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinRing 32s linear infinite;
    will-change: transform;
}

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

.ring-card {
    position: absolute;
    inset: 0;
    background: var(--bg) center/cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    border: 1.5px solid rgba(255,255,255,0.15);
    backface-visibility: hidden;
    will-change: transform;
}
.ring-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
    border-radius: inherit;
}

/* Hero text */
.hero-text {
    position: relative; z-index: 10;
    max-width: 680px;
    padding: 140px 5% 80px;
    will-change: transform;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 28px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 18px; border-radius: 50px;
    animation: fadeUp 0.6s 0.1s both;
}

.dot-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    animation: pulseDot 2s infinite;
    will-change: transform;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-name {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #fff;
    line-height: 0.95;
    margin-bottom: 22px;
    will-change: transform;
}
.hero-name .line-clip {
    display: block;
    animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
    will-change: transform, opacity;
}
.hero-name .line-clip:nth-child(1) { animation-delay: 0.15s; }
.hero-name .line-clip:nth-child(2) {
    animation-delay: 0.28s;
    font-style: italic;
    color: var(--accent);
}

.hero-role {
    font-size: 0.95rem; font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    animation: fadeUp 0.6s 0.38s both;
}
.hero-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 36px;
    animation: fadeUp 0.6s 0.46s both;
}

.hero-ctas {
    display: flex; gap: 14px; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.54s both;
}
.cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--ink);
    padding: 14px 32px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
}
.cta-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.cta-primary i { font-size: 0.9rem; }

.cta-ghost {
    display: inline-flex; align-items: center;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.cta-ghost:hover { border-color: #fff; color: #fff; }

.hero-scroll {
    position: absolute; bottom: 40px; left: 5%;
    display: flex; align-items: center; gap: 14px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    z-index: 10;
    opacity: 0; animation: fadeUp 0.8s 1.5s forwards;
}
.scroll-track {
    width: 40px; height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative; overflow: hidden;
}
.scroll-thumb {
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.6);
    animation: scrollThumb 2s ease infinite;
}
@keyframes scrollThumb { 0% { left: -100%; } 100% { left: 100%; } }

@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------- ABOUT */
.about { background: var(--white); }

.about-flex {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

/* Photo Stack */
.about-visual { position: relative; }

.photo-stack {
    position: relative;
    width: 100%; max-width: 380px;
    margin: 0 auto;
}
.photo-bg-card {
    position: absolute;
    top: -16px; left: -16px;
    right: 16px; bottom: -16px;
    background: var(--accent);
    border-radius: 24px;
    opacity: 0.12;
}
.main-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative; z-index: 1;
}

.photo-chip {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow);
    white-space: nowrap;
    animation: chipFloat 4s ease-in-out infinite;
}
.photo-chip i { color: var(--accent); }

.chip-1 { bottom: 30px; right: -30px; animation-delay: 0s; }
.chip-2 { top: 60px; right: -35px; animation-delay: 1.3s; }
.chip-3 { top: 30%; left: -30px; animation-delay: 0.6s; }

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

/* About text */
.bio-para {
    font-size: 1.05rem;
    color: var(--ink-mid);
    line-height: 1.85;
    margin-bottom: 20px;
}
.text-link {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    font-weight: 600;
    transition: opacity var(--transition);
}
.text-link:hover { opacity: 0.7; }

.bio-stats {
    display: flex; gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 36px 0;
}
.bstat {
    flex: 1; padding: 22px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background var(--transition);
}
.bstat:last-child { border-right: none; }
.bstat:hover { background: var(--offwhite); }
.bstat strong {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 6px;
}
.bstat span { font-size: 0.7rem; color: var(--ink-soft); line-height: 1.5; }

.bio-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.bio-tags span {
    font-size: 0.78rem; font-weight: 600;
    color: var(--ink-mid);
    background: var(--offwhite);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition);
}
.bio-tags span:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ---------------------------------------------------------------- CAREER */
.career .sec-header { text-align: center; }
.career .sec-sub { margin: 0 auto; }

.career-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.career-block:hover { box-shadow: var(--shadow-lg); }

.career-meta {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 28px;
}
.career-badge {
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.career-badge img {
    height: 70px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.career-period { display: flex; flex-direction: column; gap: 4px; }
.period-pill {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 50px;
    background: var(--offwhite); color: var(--ink-soft);
    width: fit-content;
}
.active-pill { background: #dcfce7; color: #15803d; }

.career-period time { font-size: 0.82rem; color: var(--ink-soft); }

.career-content h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem; color: var(--ink);
    margin-bottom: 6px;
}
.career-content h4 {
    font-size: 0.9rem; font-weight: 500;
    color: var(--ink-soft); margin-bottom: 18px;
}
.career-content p {
    font-size: 1rem; color: var(--ink-mid);
    line-height: 1.8; margin-bottom: 24px;
}

.career-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 36px;
}
.career-tags span {
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 12px; border-radius: 50px;
    background: var(--offwhite);
    color: var(--ink-mid);
    border: 1px solid var(--border);
}

/* Career Image Strip */
.career-gallery {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.career-gallery::-webkit-scrollbar { height: 4px; }
.career-gallery::-webkit-scrollbar-track { background: var(--offwhite); border-radius: 4px; }
.career-gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.cg-item {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition);
}
.cg-item:hover { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ---------------------------------------------------------------- TRAVEL MASONRY */
.travel-sec { background: var(--white); }
.travel-sec .sec-header { text-align: center; }
.travel-sec .sec-sub { margin: 0 auto; }

.travel-masonry {
    columns: 4 250px;
    column-gap: 16px;
}
.tm-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    height: 220px;
    transition: transform var(--transition);
}
.tm-item.tm-big { height: 320px; }
.tm-item.tm-tall { height: 360px; }
.tm-item:hover { transform: scale(1.02); }
.tm-item:hover .tm-info { opacity: 1; transform: translateY(0); }

.tm-info {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.7) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 20px;
    opacity: 0; transform: translateY(10px);
    transition: var(--transition);
}
.tm-info span {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* ---------------------------------------------------------------- LIFE / CHAPTER GALLERY */
.chapter {
    margin-bottom: 72px;
}
.chapter-head {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.chapter-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.coffee-icon { background: #fff3e0; color: #e65c00; }

.chapter-head h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem; color: var(--ink);
    margin-bottom: 4px;
}
.chapter-head p { font-size: 0.88rem; color: var(--ink-soft); }

/* Horizontal scrolling strip */
.chapter-strip {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.chapter-strip::-webkit-scrollbar { height: 4px; }
.chapter-strip::-webkit-scrollbar-track { background: #e8e8f0; border-radius: 4px; }
.chapter-strip::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.cs-item {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 12px;
    background-size: cover; background-position: center;
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform var(--transition);
    position: relative;
    overflow: hidden;
}
.cs-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(26,26,46,0);
    transition: background var(--transition);
    border-radius: inherit;
}
.cs-item:hover::after { background: rgba(26,26,46,0.15); }
.cs-item:hover { transform: scale(1.03); }

/* ---------------------------------------------------------------- LIGHTBOX */
.lb-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,20,0.95);
    z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.lb-overlay.active { opacity: 1; visibility: visible; }

.lb-wrap {
    position: relative;
    max-width: 90vw; max-height: 90vh;
}
.lb-wrap img {
    max-width: 90vw; max-height: 85vh;
    object-fit: contain; border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff; border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition);
    cursor: pointer;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: -20px; right: -20px; }
.lb-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -60px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- ACADEMIA */
.academia-sec { background: var(--white); }
.academia-sec .sec-header { text-align: center; }

.edu-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px; margin-bottom: 60px;
}
.edu-card {
    border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
    position: relative; background: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.edu-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.edu-year {
    position: absolute; top: 28px; right: 28px;
    font-size: 3rem; font-weight: 800;
    color: var(--border);
    font-family: 'Libre Baskerville', serif;
    line-height: 1;
}
.edu-icon {
    width: 56px; height: 56px;
    background: var(--offwhite);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent);
    margin-bottom: 20px;
}
.edu-badge {
    display: inline-block;
    background: var(--accent); color: #fff;
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 50px;
    margin-bottom: 12px;
}
.edu-badge-gold { background: var(--gold); }

.edu-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem; color: var(--ink);
    margin-bottom: 4px; line-height: 1.3;
}
.edu-dept { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.edu-card > .edu-body > p { font-size: 0.93rem; color: var(--ink-mid); line-height: 1.75; }
.edu-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 16px;
    color: var(--accent); font-weight: 600; font-size: 0.88rem;
    transition: gap var(--transition);
}
.edu-link:hover { gap: 12px; }

/* Research */
.research-sec {
    border-top: 2px solid var(--border);
    padding-top: 50px;
}
.research-sec > h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem; color: var(--ink);
    margin-bottom: 28px;
}
.research-list { display: flex; flex-direction: column; gap: 2px; }

.res-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.res-item:hover {
    background: var(--offwhite);
    border-color: var(--border);
}
.res-icon {
    width: 42px; height: 42px;
    background: #fff2f2;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-2); font-size: 1.1rem;
    flex-shrink: 0;
}
.res-body { flex: 1; }
.res-body span { display: block; font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.res-body em { font-size: 0.78rem; color: var(--ink-soft); font-style: normal; }
.res-arrow { color: var(--ink-soft); font-size: 0.8rem; transition: transform var(--transition); }
.res-item:hover .res-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------------------------------------------------------------- BLOG */
.blog-sec .sec-header { text-align: center; }
.blog-sec .sec-sub { margin: 0 auto; }

.blog-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px; margin-bottom: 60px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.bc-cover {
    height: 220px;
    background-size: cover; background-position: center;
    position: relative;
}
.bc-cat {
    position: absolute; top: 16px; left: 16px;
    background: #fff; color: var(--ink);
    font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 50px;
    font-family: 'Hind Siliguri', sans-serif;
}

.bc-body { padding: 28px; }
.bc-body h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem; color: var(--ink);
    margin-bottom: 10px; line-height: 1.4;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 700;
}
.bc-body p {
    font-size: 0.88rem; color: var(--ink-soft);
    line-height: 1.7; margin-bottom: 20px;
    font-family: 'Hind Siliguri', sans-serif;
}

.bc-foot {
    display: flex; align-items: center; justify-content: space-between;
}
.bc-reacts { display: flex; gap: 14px; }
.react {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--ink-soft);
    font-weight: 600; padding: 6px 0;
    transition: color var(--transition);
    cursor: pointer;
}
.react:hover { color: var(--ink); }
.like-btn.liked { color: #e63946; }
.like-btn.liked i { font-weight: 900; }

.bc-read {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700;
    color: var(--accent);
    transition: gap var(--transition);
    font-family: 'Hind Siliguri', sans-serif;
}
.bc-read:hover { gap: 10px; }

/* ---------------------------------------------------------------- CONTACT */
.contact-sec { background: var(--white); }
.contact-sec .sec-header { text-align: center; }

.contact-flex {
    display: grid; grid-template-columns: 1fr 1.6fr;
    gap: 80px; align-items: start;
}
.contact-intro {
    font-size: 1.05rem; color: var(--ink-mid);
    line-height: 1.85; margin-bottom: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }

.cl-item {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
}
.cl-item:hover {
    background: var(--offwhite);
    transform: translateX(6px);
}
.cl-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.fb  { background: #e8effd; color: #1877f2; }
.ig  { background: #fce4ef; color: #c13584; }
.ac  { background: #e8f5e9; color: #2e7d32; }
.blog{ background: #fff3e0; color: #e65c00; }

.cl-text span { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.cl-text em { font-size: 0.8rem; color: var(--ink-soft); font-style: normal; }

/* Contact Form */
.contact-form {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 24px; padding: 40px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cf-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.cf-field input, .cf-field textarea {
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.93rem; color: var(--ink);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.cf-field input:focus, .cf-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(27,79,255,0.08);
}
.cf-submit {
    width: 100%; padding: 16px;
    background: var(--ink); color: #fff;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.cf-submit:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------------------------------------------------------------- FOOTER */
.site-footer {
    background: var(--ink); color: rgba(255,255,255,0.75);
    padding: 60px 0 30px;
}
.footer-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 30px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.2);
}
.footer-brand h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem; color: #fff; margin-bottom: 3px;
}
.footer-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a {
    padding: 7px 14px; border-radius: 8px;
    font-size: 0.82rem; color: rgba(255,255,255,0.55);
    transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 0.85rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-copy {
    padding-top: 28px; text-align: center;
    font-size: 0.78rem; color: rgba(255,255,255,0.3);
    line-height: 1.8;
}

/* ---------------------------------------------------------------- BACK TO TOP */
.btt {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--ink); color: #fff;
    border-radius: 50%; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 500; cursor: pointer;
}
.btt.show { opacity: 1; visibility: visible; }
.btt:hover { background: var(--accent); transform: translateY(-4px); }

/* ---------------------------------------------------------------- REVEAL ANIMATIONS â€” GPU accelerated */
[data-reveal] {
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
                transform 0.6s cubic-bezier(0.4,0,0.2,1);
    will-change: transform, opacity;
}

.js-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
}
.js-ready [data-reveal="left"]  { transform: translate3d(-40px, 0, 0); }
.js-ready [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js-ready [data-reveal].revealed { opacity: 1; transform: translate3d(0,0,0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    /* Hide 3D carousel on tablet/mobile â€” show bg slideshow only */
    .hero-scene { display: none; }

    /* Mobile hero: center text, full bg */
    .hero {
        align-items: flex-end;
        min-height: 100svh;
    }
    .hero-text {
        padding: 80px 6% 80px;
        max-width: 100%;
        text-align: center;
        width: 100%;
    }
    .hero-ctas { justify-content: center; }
    .hero-overlay {
        background: linear-gradient(
            to top,
            rgba(10,10,30,0.92) 0%,
            rgba(10,10,30,0.60) 50%,
            rgba(10,10,30,0.30) 100%
        );
    }

    .about-flex { grid-template-columns: 1fr; }
    .about-visual { order: -1; max-width: 300px; margin: 0 auto; }
    .chip-1, .chip-2, .chip-3 { display: none; }
    .edu-cards { grid-template-columns: 1fr; }
    .contact-flex { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .sec-pad { padding: 70px 0; }
    .sec-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }

    /* Hero mobile */
    .hero-name { font-size: clamp(2.8rem, 13vw, 4.5rem); }
    .hero-text { padding: 80px 6% 60px; }

    /* Career blocks */
    .career-block { padding: 24px 18px; }
    .career-meta { flex-wrap: wrap; gap: 10px; }
    .career-content h3 { font-size: 1.35rem; }

    /* Travel masonry */
    .travel-masonry { columns: 2 120px; column-gap: 10px; }
    .tm-item { height: 160px; margin-bottom: 10px; }
    .tm-item.tm-big { height: 240px; }
    .tm-item.tm-tall { height: 260px; }

    /* Chapter strip */
    .cs-item { flex: 0 0 150px; height: 150px; }
    .cg-item  { flex: 0 0 150px; height: 120px; }

    /* Blog cards */
    .blog-cards { grid-template-columns: 1fr; }
    .blog-card { max-width: 480px; margin: 0 auto; }

    /* Contact form */
    .cf-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { justify-content: center; }
    .footer-social { justify-content: center; }

    /* Lightbox nav on mobile */
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}

@media (max-width: 480px) {
    .travel-masonry { columns: 2 100px; column-gap: 8px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .cta-primary, .cta-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .bio-stats { grid-template-columns: 1fr 1fr; display: grid; }
    .bstat { border-right: none; border-bottom: 1px solid var(--border); }
    .career-gallery { gap: 8px; }
    .cg-item { flex: 0 0 130px; height: 100px; }
}


