/* Rohan Pandey — Warm navy/amber, high interactivity, “wow” UI */

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

:root {
    --bg: #0c1222;
    --bg-elevated: #151d2e;
    --bg-alt: #0f1625;
    --accent: #f59e0b;
    --accent-soft: #fbbf24;
    --accent-dim: rgba(245, 158, 11, 0.12);
    --accent-glow: rgba(245, 158, 11, 0.35);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 14px;
    --radius-lg: 22px;
    --font: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cpath d='M2 1L2 16L5 12L8 18L11 17L8 11L13 11Z' fill='%23f59e0b' stroke='%230c1222' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, default;
}

/* Accessible focus */
:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.75);
    outline-offset: 3px;
}

/* Fade-in only; keep content clickable so loader is the only blocker */
body:not(.loaded) .header,
body:not(.loaded) main,
body:not(.loaded) .footer,
body:not(.loaded) .cursor {
    opacity: 0;
    transition: opacity 0.7s ease;
}

body.loaded .header,
body.loaded main,
body.loaded .footer,
body.loaded .cursor {
    opacity: 1;
    transition: opacity 0.7s ease;
}

/* Loader — rocket blast-off */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}

.loader.done {
    opacity: 0;
    pointer-events: none;
}

.loader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: loader-rocket-up 2.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.loader-rocket-wrap {
    position: relative;
    z-index: 1;
}

.loader-rocket {
    width: 80px;
    height: 120px;
    display: block;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.35));
}

.loader-flame {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 56px;
    margin-top: -20px;
    z-index: 0;
}

.loader-flame-inner {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.9) 0%, rgba(251, 191, 36, 0.5) 40%, transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: loader-flame 0.15s ease-in-out infinite alternate;
}

@keyframes loader-rocket-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateY(-80px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(0.4);
        opacity: 0;
    }
}

@keyframes loader-flame {
    from { transform: scaleY(1) scaleX(1); opacity: 0.95; }
    to { transform: scaleY(1.15) scaleX(0.9); opacity: 0.85; }
}

.loader-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.35), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.25), transparent);
    background-size: 200% 200%;
    animation: loader-stars 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loader-stars {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (pointer: coarse) {
    body { cursor: auto; }
    * { cursor: auto; }
    a, button, [role="button"], input, textarea, .btn, label { cursor: pointer; }
}

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Header + nav underline */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 18, 34, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s, border-color 0.25s;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s, transform 0.2s;
}

.logo:hover {
    color: var(--accent-soft);
    transform: scale(1.02);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 1px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover {
    background: var(--accent-dim);
}

.btn-nav {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.bg-flair {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: hero-bg-shift 12s ease-in-out infinite alternate;
}

@keyframes hero-bg-shift {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.05); }
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-wrap {
    position: relative;
    text-align: center;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: fade-in-up 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 9vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease-in-out infinite;
}

.hero-title-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: clamp(3rem, 10vw, 5.5rem);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Ripple micro-interaction (set --rx/--ry on click) */
.btn::after,
.hackathon-card::after,
.publications-card::after,
.now-card::after,
.now-mini::after {
    content: '';
    position: absolute;
    left: var(--rx, 50%);
    top: var(--ry, 50%);
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245,158,11,0.35), rgba(245,158,11,0.12), transparent 65%);
    opacity: 0;
    pointer-events: none;
}

.ripple::after {
    animation: ripple 600ms ease-out;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.0; }
    18% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(22); opacity: 0; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: var(--bg);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.btn-small {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    opacity: 0.5;
}

.scroll-cue::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-cue 2.2s ease-in-out infinite;
}

@keyframes scroll-cue {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
    padding: 5.5rem 0;
    position: relative;
}

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

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 420px at 10% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
        radial-gradient(720px 520px at 90% 15%, rgba(251, 191, 36, 0.06), transparent 55%);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.in-view::before {
    opacity: 1;
    transform: translateY(0);
}

.section-alt::before {
    background:
        radial-gradient(900px 520px at 15% 10%, rgba(245, 158, 11, 0.09), transparent 62%),
        radial-gradient(700px 520px at 85% 30%, rgba(251, 191, 36, 0.05), transparent 58%);
}

/* Now section */
.now-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.2rem;
    margin-top: 1.25rem;
}

.now-card,
.now-mini {
    border: 1px solid var(--border);
    background: rgba(21, 29, 46, 0.55);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.now-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.now-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #fff;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent));
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12), 0 0 18px rgba(245, 158, 11, 0.3);
}

.now-time {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.now-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin: 0.5rem 0 1.1rem;
    color: var(--text-muted);
}

.now-list strong {
    color: #fff;
    font-weight: 700;
}

.now-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.now-mini {
    display: grid;
    gap: 0.7rem;
}

.now-mini-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
}

.now-mini-row span:first-child {
    color: rgba(226, 232, 240, 0.75);
    font-weight: 600;
}

.now-mini-row span:last-child {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 860px) {
    .now-grid {
        grid-template-columns: 1fr;
    }
}

/* Spotlight modal */
.spotlight {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.spotlight.open {
    opacity: 1;
    pointer-events: auto;
}

.spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.spotlight-dialog {
    position: relative;
    width: min(720px, 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(21, 29, 46, 0.92);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.spotlight-dialog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 420px at 20% 0%, rgba(245, 158, 11, 0.22), transparent 55%);
    pointer-events: none;
}

.spotlight-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(12, 18, 34, 0.35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.spotlight-close:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
}

.spotlight-content {
    position: relative;
    padding: 1.6rem 1.6rem 1.4rem;
}

.spotlight-kicker {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

.spotlight-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: #fff;
}

.spotlight-desc {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.spotlight-tags .tag {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(245, 158, 11, 0.09);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.85rem;
}

.spotlight-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.spotlight-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: #fff;
    background: rgba(12, 18, 34, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.spotlight-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
}

/* Case study pages */
.case-hero {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.9rem;
}

.case-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.case-subtitle {
    color: var(--text-muted);
    max-width: 64ch;
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.case-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.case-card {
    border: 1px solid var(--border);
    background: rgba(21, 29, 46, 0.55);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.case-card h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.case-card p,
.case-card li {
    color: var(--text-muted);
}

.case-card ul {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.case-meta {
    display: grid;
    gap: 0.7rem;
}

.case-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.case-meta-row span:first-child {
    color: rgba(226, 232, 240, 0.75);
    font-weight: 700;
}

.case-meta-row span:last-child {
    color: #fff;
    font-weight: 800;
}

.case-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.case-stack .chip {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(245, 158, 11, 0.09);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.85rem;
}

.case-media {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(900px 420px at 20% 0%, rgba(245, 158, 11, 0.20), transparent 55%),
        radial-gradient(700px 520px at 85% 30%, rgba(251, 191, 36, 0.08), transparent 58%),
        rgba(21, 29, 46, 0.55);
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.case-media::after {
    content: 'Screenshot / demo';
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.35);
    border: 1px solid var(--border);
}

@media (max-width: 860px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title-line {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible .section-title-line {
    width: 100%;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

/* About */
.about-grid {
    display: grid;
    gap: 2.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.skills-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

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

.skill-tag {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-dim);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
}

.timeline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-soft));
    border-radius: 1px;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline.drawn::after {
    height: 100%;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: transform 0.25s ease, background 0.25s ease;
}

.timeline-item summary {
    list-style: none;
}

.timeline-item summary::-webkit-details-marker {
    display: none;
}

.timeline-summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.timeline-summary-main {
    color: #fff;
    font-size: 1rem;
}

.timeline-summary-main strong {
    color: var(--accent);
}

.timeline-summary-dates {
    color: rgba(226, 232, 240, 0.75);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    white-space: nowrap;
}

.timeline-summary-icon {
    color: rgba(226, 232, 240, 0.7);
    transition: transform 0.2s ease, color 0.2s ease;
}

.timeline-item[open] .timeline-summary-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.timeline-details {
    margin-top: 0.75rem;
    padding-right: 0.25rem;
}

.timeline-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.timeline-details ul {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.35rem;
}

.timeline-details li {
    line-height: 1.5;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--accent-glow);
    transition: transform 0.25s ease;
}

.timeline-item:hover {
    transform: translateX(6px);
    background: var(--accent-dim);
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.3);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-meta {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.timeline-meta strong {
    color: var(--accent);
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Hackathons — symmetric cards */
.hackathon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hackathon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hackathon-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 40px var(--accent-dim);
}

.bento-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--accent-dim) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hackathon-card:hover .bento-glow {
    opacity: 1;
}

.hackathon-card-body {
    flex: 1;
    padding: 1.75rem 1.75rem 1rem;
    position: relative;
}

.hackathon-card .card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
}

.hackathon-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
    position: relative;
}

.hackathon-card .card-award {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    position: relative;
}

.hackathon-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    position: relative;
    transition: gap 0.25s ease;
}

.hackathon-card:hover .hackathon-card-footer {
    gap: 0.75rem;
}

.hackathon-card-footer i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.hackathon-card:hover .hackathon-card-footer i {
    transform: translateX(4px);
}

/* Publications CTA */
.publications-cta .section-sub {
    margin-bottom: 1.5rem;
}

.publications-card {
    display: block;
    position: relative;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.publications-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft), var(--accent));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.publications-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3), 0 0 48px var(--accent-dim);
}

.publications-card:hover::before {
    opacity: 1;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.publications-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.publications-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publications-card:hover .publications-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px var(--accent-dim);
}

.publications-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.publications-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 400px;
}

.publications-cta-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.publications-card:hover .publications-cta-text {
    gap: 0.75rem;
    text-decoration: underline;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 0;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.contact-item:hover {
    color: var(--accent);
    background: var(--accent-dim);
    padding-left: 0.85rem;
}

.contact-item i {
    width: 22px;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.contact-item:hover i {
    transform: scale(1.15);
}

.form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form button[type="submit"] {
    margin-top: 0.25rem;
}

.form-status {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #f87171; }

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

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

.footer p,
.footer a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Reveal + stagger */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal.stagger-1 { transition-delay: 0.05s; }
.reveal.stagger-2 { transition-delay: 0.1s; }
.reveal.stagger-3 { transition-delay: 0.15s; }
.reveal.stagger-4 { transition-delay: 0.2s; }
.reveal.stagger-5 { transition-delay: 0.25s; }
.reveal.stagger-6 { transition-delay: 0.3s; }
.reveal.stagger-7 { transition-delay: 0.35s; }
.reveal.stagger-8 { transition-delay: 0.4s; }

/* Mobile */
@media (max-width: 768px) {
    .nav,
    .btn-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-underline {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .hackathon-card {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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