/* ═══════════════════════════════════════════════════════════
   PRINCE KHAN PORTFOLIO — style.css
   Design: Luxury Minimal · Warm Ivory · Premium Feel
═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
    --bg: #FFF9F4;
    --bg2: #FFF3EB;
    --card: #FFFFFF;
    --accent: #E8B4A0;
    --accent2: #D99A82;
    --highlight: #C9795D;
    --text: #1A1A1A;
    --text2: #5F5F5F;
    --text3: #9A9A9A;
    --border: rgba(0, 0, 0, 0.07);
    --border2: rgba(0, 0, 0, 0.12);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-h: 0 8px 32px rgba(201, 121, 93, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --radius-sm: 12px;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Outfit', sans-serif;
    --nav-h: 68px;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--sans);
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

::selection {
    background: rgba(232, 180, 160, 0.3);
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--highlight);
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    /* transition removed to allow smooth JS animation */
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(201, 121, 93, 0.5);
    border-radius: 50%;
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.2s;
}

.cursor-ring.hovered {
    width: 48px;
    height: 48px;
    background: rgba(201, 121, 93, 0.08);
    border-color: var(--highlight);
}

@media (hover: none) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ── CONTAINER ── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    background: rgba(255, 249, 244, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--highlight);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--highlight);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: left;
}

.nav-links a:hover {
    color: var(--highlight);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--text) !important;
    color: #fff !important;
    padding: 0.42rem 1.15rem;
    border-radius: 100px;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--highlight) !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(255, 249, 244, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 4vw;
    flex-direction: column;
    gap: 1.25rem;
}

.mob-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text2);
    transition: color 0.2s;
}

.mob-link:hover {
    color: var(--highlight);
}

.mob-cta {
    display: inline-block;
    background: var(--text);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: background 0.2s;
}

.mob-cta:hover {
    background: var(--highlight);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--sans);
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.2);
}

.btn-primary:hover {
    background: var(--highlight);
    box-shadow: 0 6px 24px rgba(201, 121, 93, 0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border2);
    box-shadow: var(--shadow);
}

.btn-ghost:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-h);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── SECTION SHARED ── */
section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg2);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 0.85rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--highlight);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-title-sm {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 2rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text2);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ════════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(201, 121, 93, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 121, 93, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 60%, transparent 100%);
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(245, 180, 140, 0.45) 0%, transparent 65%);
    top: -140px;
    right: -100px;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(215, 165, 145, 0.3) 0%, transparent 65%);
    bottom: -80px;
    left: -80px;
    animation: orbFloat 13s 3s ease-in-out infinite reverse;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(232, 200, 180, 0.25) 0%, transparent 65%);
    top: 40%;
    left: 35%;
    animation: orbFloat 8s 1s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -28px) scale(1.04);
    }

    66% {
        transform: translate(-14px, 18px) scale(0.96);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 4vw 2.5rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

/* ── HERO LEFT ── */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 0.35rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
    width: fit-content;
    animation: fadeDown 0.6s ease both;
}

.status-pulse {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
    }
}

.hero-greeting {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text2);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    animation: fadeUp 0.6s 0.05s ease both;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(3.4rem, 7.5vw, 6rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.name-line {
    display: block;
    animation: fadeUp 0.7s 0.1s ease both;
}

.accent-line {
    color: var(--highlight);
    font-style: italic;
}

/* Typing Animation */
.type-write {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 1s forwards ease-out;
}

.type-write-delayed {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 1s 1s forwards ease-out;
}

@keyframes typing {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s 0.22s ease both;
}

.h-badge {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.h-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-h);
    color: var(--highlight);
    border-color: var(--highlight);
}

.name-cursor {
    display: inline-block;
    width: 3px;
    background: var(--highlight);
    margin-left: 4px;
    vertical-align: baseline;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Roles Slider */
.hero-roles-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    animation: fadeUp 0.7s 0.22s ease both;
    overflow: hidden;
    height: 28px;
}

.roles-prefix {
    font-size: 1rem;
    font-weight: 300;
    color: var(--accent2);
    flex-shrink: 0;
}

.hero-roles-slider {
    position: relative;
    height: 28px;
    overflow: hidden;
    flex: 1;
}

.role-item {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--highlight);
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}

.role-item.active {
    opacity: 1;
    transform: translateY(0);
}

.role-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s 0.3s ease both;
}

.hero-desc strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    animation: fadeUp 0.7s 0.38s ease both;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s 0.46s ease both;
}

.h-stat {
    display: flex;
    flex-direction: column;
    padding-right: 1.75rem;
}

.h-stat-n {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.h-stat-l {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text3);
}

.h-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border2);
    margin-right: 1.75rem;
    flex-shrink: 0;
}

/* Social strip */
.hero-social {
    display: flex;
    gap: 0.6rem;
    animation: fadeUp 0.7s 0.52s ease both;
}

.h-social-link {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1.5px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.h-social-link:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-3px);
    box-shadow: var(--shadow-h);
}

/* ── HERO RIGHT ── */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 1s 0.3s ease both;
}

/* Photo scene */
.photo-scene {
    perspective: 1000px;
    width: min(360px, 100%);
    position: relative;
    z-index: 2;
}

.photo-tilt-inner {
    transform-style: preserve-3d;
    transition: transform 0.08s linear;
    position: relative;
}

.photo-frame {
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--border2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f5e6da, #ffe8d6, #ffd4bb);
    aspect-ratio: 3 / 4;
    position: relative;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.photo-frame:hover .photo-img {
    transform: scale(1.03);
}

/* Shine overlay */
.photo-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 28px;
    transition: background 0.1s;
}

.photo-frame-border {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text2);
}

/* Floating achievement cards */
.float-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    box-shadow: var(--shadow-h);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    z-index: 3;
}

.fc-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.fc-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.fc-sub {
    font-size: 0.68rem;
    color: var(--text2);
    font-weight: 400;
}

.fc-ieee {
    bottom: -15px;
    left: -40px;
    animation: fcFloat 6s ease-in-out infinite;
    top: auto;
}

.fc-gssoc {
    bottom: 20%;
    right: -45px;
    animation: fcFloat 7s 1.5s ease-in-out infinite;
    top: auto;
}

.fc-innovation {
    top: -15px;
    left: -15px;
    animation: fcFloat 6.5s 0.5s ease-in-out infinite;
}

.fc-google {
    top: 30px;
    right: -40px;
    animation: fcFloat 7s 2s ease-in-out infinite;
    bottom: auto;
}

.fc-dsa {
    top: 40%;
    left: -50px;
    animation: fcFloat 5s 1s ease-in-out infinite;
    bottom: auto;
}

@keyframes fcFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* Tech orbit pills */
.tech-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    max-width: 320px;
}

.tech-pill {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 0.28rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
    box-shadow: var(--shadow);
    animation: pillFloat calc(4s + var(--i) * 0.6s) ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
    transition: border-color 0.2s, color 0.2s;
}

.tech-pill:hover {
    border-color: var(--highlight);
    color: var(--highlight);
}

@keyframes pillFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 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: 2;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    animation: fadeIn 1.5s 1s ease both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
}

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text2);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 2rem;
}

.about-badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.about-badge:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-2px);
}

.ab-icon {
    font-size: 1.1rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.education-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.ed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ed-icon {
    font-size: 1.5rem;
}

.ed-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
}

.ed-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border2);
}

.ed-item {
    position: relative;
}

.ed-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--highlight);
    border-radius: 50%;
    border: 3px solid var(--card);
    box-shadow: 0 0 0 1px var(--border);
}

.ed-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--highlight);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.ed-degree {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.ed-inst {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 0.6rem;
}

.ed-desc {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
}

.about-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.asc-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--highlight);
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.asc-label {
    font-size: 0.875rem;
    color: var(--text2);
}

.about-quote-card {
    background: linear-gradient(135deg, rgba(232, 180, 160, 0.07), var(--card));
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-mark {
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 0.6;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.about-quote-card p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.75;
    font-style: italic;
}

.quote-author {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--highlight);
}

/* ════════════════════════════════════════════════════════
   SKILLS
════════════════════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.25s;
}

.skill-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-3px);
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.sc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sc-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.s-tag {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.28rem 0.8rem;
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--text2);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.s-tag:hover {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}

/* ════════════════════════════════════════════════════════
   RESEARCH
════════════════════════════════════════════════════════ */
.research-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.rm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.rm-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-2px);
}

.rm-num {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--highlight);
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.rm-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text2);
}

.papers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.paper-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    opacity: 0;
    transition: opacity 0.3s;
}

.paper-card:hover::before {
    opacity: 1;
}

.paper-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-3px);
}

.paper-card.featured {
    border-color: rgba(201, 121, 93, 0.25);
    background: linear-gradient(140deg, rgba(232, 180, 160, 0.05) 0%, #fff 100%);
}

.paper-card.featured::before {
    opacity: 1;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.ptag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
}

.ptag-feat {
    background: var(--highlight);
    color: #fff;
}

.ptag-ieee {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.ptag-ai {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.ptag-conf {
    background: rgba(201, 121, 93, 0.12);
    color: var(--highlight);
}

.ptag-env {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
}

.paper-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.paper-abstract {
    font-size: 0.855rem;
    color: var(--text2);
    line-height: 1.72;
    margin-bottom: 1rem;
}

.paper-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pm-item {
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--text2);
}

/* ════════════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.1rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-5px);
}

.project-thumb {
    height: 210px;
    position: relative;
    overflow: hidden;
}

.proj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .proj-img {
    transform: scale(1.06);
}

.proj-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-card:hover .proj-overlay {
    opacity: 1;
}

.proj-overlay-btn {
    background: var(--card);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 100px;
    border: 2px solid var(--highlight);
    transition: background 0.2s, color 0.2s;
}

.proj-overlay-btn:hover {
    background: var(--highlight);
    color: #fff;
}

.project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-type {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 0.35rem;
}

.proj-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.55rem;
}

.proj-desc {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.72;
    margin-bottom: 1.25rem;
    flex: 1;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ps-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border2) 6%, var(--border2) 94%, transparent);
}

.tl-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    margin-bottom: 2.75rem;
    position: relative;
}

.tl-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.4rem;
}

.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--card);
    border: 2.5px solid var(--highlight);
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(201, 121, 93, 0.15);
    transition: box-shadow 0.3s;
}

.tl-item:hover .tl-dot {
    box-shadow: 0 0 0 8px rgba(201, 121, 93, 0.12);
}

.tl-spacer {
    /* empty */
}

.tl-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.2s;
}

.tl-content:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-3px);
}

.tl-left {
    grid-column: 1;
}

.tl-right {
    grid-column: 3;
}

.tl-org {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 0.35rem;
}

.tl-title {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tl-date {
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 0.75rem;
}

.tl-desc {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.75;
}

.tl-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.tl-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════
   ACHIEVEMENTS
════════════════════════════════════════════════════════ */
.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.ach-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.2s;
}

.ach-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-2px);
}

.ach-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: block;
}

.ach-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.ach-desc {
    font-size: 0.82rem;
    color: var(--text2);
    line-height: 1.65;
}

/* ── CERTS ── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
}

.cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.cert-card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-2px);
}

.cert-ic {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.cert-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.cert-org {
    font-size: 0.73rem;
    color: var(--text2);
}

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4.5rem;
    align-items: start;
}

.contact-heading {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-heading em {
    font-style: italic;
    color: var(--highlight);
}

.contact-text {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.c-link:hover {
    border-color: var(--highlight);
    box-shadow: var(--shadow-h);
    transform: translateX(4px);
}

.c-link-ic {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.c-link-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 0.15rem;
}

.c-link-val {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.c-link-arr {
    margin-left: auto;
    color: var(--text2);
    font-size: 1rem;
}

.contact-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-heading {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text2);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border2);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(201, 121, 93, 0.14);
}

.form-textarea {
    min-height: 120px;
}

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text2);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--highlight);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.fsoc {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    transition: all 0.2s;
}

.fsoc:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text2);
}

/* ── BACK TO TOP ── */
#backTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 46px;
    height: 46px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
    cursor: pointer;
}

#backTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backTop:hover {
    background: var(--highlight);
}

/* ════════════════════════════════════════════════════════
   KEYFRAMES (SHARED)
════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 5vw 3rem;
    }

    .hero-status-badge {
        margin: 0 auto 1.6rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-right {
        order: -1;
    }

    .photo-scene {
        width: min(280px, 80%);
    }

    .fc-dsa,
    .fc-innovation {
        display: none;
    }

    .fc-ieee {
        bottom: -5px;
        left: -10px;
        transform: scale(0.9);
        top: auto;
    }

    .fc-gssoc {
        bottom: 20%;
        right: -10px;
        transform: scale(0.9);
        top: auto;
    }

    .fc-google {
        top: 20px;
        right: -10px;
        transform: scale(0.9);
        bottom: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .research-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .papers-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Flatten timeline */
    .timeline::before {
        left: 24px;
    }

    .tl-item {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto;
    }

    .tl-left,
    .tl-right {
        grid-column: 2;
        grid-row: 1;
    }

    .tl-spacer {
        display: none;
    }

    .tl-center {
        grid-column: 1;
        grid-row: 1;
    }

    footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 640px) {
    section {
        padding: 5rem 0;
    }

    nav {
        padding: 0 4vw;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .research-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .h-stat-divider {
        display: none;
    }

    .h-stat {
        padding: 0;
        min-width: 70px;
    }

    .float-card {
        display: none;
    }

    .footer-nav {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero-name {
        font-size: 3rem;
    }

    .about-badges {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM SNAKE TIMELINE & LIGHTNING GLOW ACCENTS
═══════════════════════════════════════════════════════════ */

/* Custom Neon Energized Lightning Center Line override */
.snake-timeline::before {
    width: 2px !important;
    background: linear-gradient(to bottom,
            rgba(201, 121, 93, 0.15),
            var(--highlight) 15%,
            #E8B4A0 50%,
            var(--highlight) 85%,
            rgba(201, 121, 93, 0.15)) !important;
    box-shadow: 0 0 12px rgba(201, 121, 93, 0.6), 0 0 4px rgba(232, 180, 160, 0.3);
}

/* Lightning Breathing Dot Glows */
.pulse-lightning {
    background: var(--highlight) !important;
    border-color: #FFF9F4 !important;
    box-shadow: 0 0 0 4px rgba(201, 121, 93, 0.25), 0 0 12px rgba(201, 121, 93, 0.7) !important;
    animation: lightningPulse 2.5s infinite ease-in-out !important;
}

@keyframes lightningPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(201, 121, 93, 0.2), 0 0 10px rgba(201, 121, 93, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(201, 121, 93, 0.35), 0 0 18px rgba(201, 121, 93, 0.9);
        transform: scale(1.1);
        background: #FFF9F4 !important;
        border-color: var(--highlight) !important;
    }
}

/* Interactive Lightning Glow on Card Hover */
.lightning-hover {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.lightning-hover:hover {
    border-color: var(--highlight) !important;
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 12px 32px rgba(201, 121, 93, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 14px rgba(201, 121, 93, 0.25) !important;
}

/* Left side snake entries hover offset shift */
.tl-item:hover .tl-content.tl-left {
    transform: translate(-4px, -4px) scale(1.01) !important;
}

/* Right side snake entries hover offset shift */
.tl-item:hover .tl-content.tl-right {
    transform: translate(4px, -4px) scale(1.01) !important;
}

/* Flatten rules override ensuring perfect execution across mobile screens */
@media (max-width: 960px) {
    .snake-timeline::before {
        left: 24px !important;
    }

    .tl-item:hover .tl-content.tl-left,
    .tl-item:hover .tl-content.tl-right {
        transform: translateY(-4px) scale(1.01) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PROJECT LIGHTBOX GALLERIES & INTERACTIVE SLIDER MODAL
═══════════════════════════════════════════════════════════ */
.project-thumb {
    position: relative;
}

.gallery-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.75);
    color: #ffffff;
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-github-link:hover {
    color: var(--accent2) !important;
    transform: translateX(3px);
    transition: all 0.2s ease;
}

/* Modal Fullscreen Dark Glass Overlay Backdrop */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(12px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-content-wrap {
    position: relative;
    max-width: 85vw;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-modal img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lightbox UI Elements */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav.nav-prev {
    left: 4vw;
}

.lightbox-nav.nav-next {
    right: 4vw;
}

.lightbox-caption {
    color: #FFF9F4;
    margin-top: 1.25rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.lightbox-counter {
    color: var(--text3);
    font-size: 0.75rem;
    margin-top: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Mobile Responsiveness Override */
@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .lightbox-nav.nav-prev {
        left: 2vw;
    }

    .lightbox-nav.nav-next {
        right: 2vw;
    }

    .lightbox-close {
        top: 16px;
        right: 20px;
        font-size: 2rem;
    }
}

/* Premium Download CV Styling Additions */
.c-cv-download-btn {
    margin-top: 8px;
    /* Safe chronological layout spacer separation */
    background: rgba(201, 121, 93, 0.05);
    /* Soft premium Terracotta accent tint hint */
    border: 1px dashed rgba(201, 121, 93, 0.3) !important;
    /* Delineated structural asset indicator */
}

.c-cv-download-btn:hover {
    background: rgba(201, 121, 93, 0.1) !important;
    border: 1px solid #C9795D !important;
}

.c-cv-download-btn .cv-ic {
    background: #C9795D !important;
    /* Premium color anchor signature block */
    color: #FFF9F4 !important;
}

.c-cv-download-btn:hover .c-link-arr {
    transform: translateY(3px) !important;
    /* Clean micro-interaction downward push hint on hover */
}