/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Colors */
    --bg:            #111318;
    --surface-1:     #171A22;
    --surface-2:     #1D2029;
    --surface-3:     #242833;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text:          #F5F7FA;
    --text-2:        rgba(245, 247, 250, 0.72);
    --text-3:        rgba(245, 247, 250, 0.50);
    --text-4:        rgba(245, 247, 250, 0.30);
    --accent:        #C1121F;
    --accent-hover:  #E0232F;
    --accent-glow:   rgba(193, 18, 31, 0.18);
    --accent-border: rgba(193, 18, 31, 0.28);

    /* Spacing */
    --section-py: 9rem;
    --container:  1280px;

    /* Radius */
    --r-sm:  0.5rem;
    --r-md:  0.875rem;
    --r-lg:  1.25rem;
    --r-xl:  1.75rem;
    --r-2xl: 2.5rem;

    /* Shadows */
    --shadow-card:       0 1px 3px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(193,18,31,0.12);
    --shadow-btn:        0 8px 24px rgba(193,18,31,0.35);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Motion */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io:     cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast:    180ms;
    --dur-normal:  380ms;
    --dur-slow:    680ms;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: #0a0c10;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#root {
    position: relative;
    z-index: 1;
}

/* ============================================================
   VIVID BACKGROUND (modern portfolio aesthetic)
   ============================================================ */
.bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(193, 18, 31, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 30%, rgba(120, 60, 180, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 70% 50% at 10% 80%, rgba(18, 100, 160, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #0a0c10 0%, #0d0f14 40%, #111318 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orb-float 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 18, 31, 0.18) 0%, rgba(193, 18, 31, 0.04) 40%, transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 60, 180, 0.12) 0%, rgba(80, 40, 140, 0.03) 50%, transparent 70%);
    top: 50%;
    right: -8%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(18, 100, 160, 0.08) 0%, transparent 60%);
    bottom: -5%;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -3%) scale(1.05); }
    66% { transform: translate(-2%, 2%) scale(0.98); }
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    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");
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 9999;
    transition: width 80ms linear;
    pointer-events: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
    padding: var(--section-py) 1.5rem;
    position: relative;
}

/* Subtle grid texture on all sections */
.section::before,
.projects-section::before,
#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above the grid */
.section > .container,
.projects-section > .projects-inner,
#contact > .footer-inner {
    position: relative;
    z-index: 1;
}

.projects-section { position: relative; }
#contact          { position: relative; }
.section-alt  { background: rgba(23, 26, 34, 0.6); }
.section-alt2 { background: rgba(29, 32, 41, 0.5); }

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.875rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 48ch;
    line-height: 1.75;
}

/* ============================================================
   REVEAL ANIMATIONS (scroll fade in)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(6px);
    transition:
        opacity  var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out),
        filter   var(--dur-slow) var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Fade-in-up for cards on scroll */
.reveal-fade {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity  calc(var(--dur-slow) + 100ms) var(--ease-out),
        transform calc(var(--dur-slow) + 100ms) var(--ease-out);
}

.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    #scroll-progress { display: none; }
    .bg-orb { animation: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.375rem 1.5rem;
    border-bottom: 1px solid transparent;
    transition:
        background    var(--dur-normal) var(--ease-io),
        border-color  var(--dur-normal) var(--ease-io),
        padding       var(--dur-normal) var(--ease-io),
        backdrop-filter var(--dur-normal) var(--ease-io);
}

#navbar.scrolled {
    background: rgba(17, 19, 24, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-logo-mark {
    width: 1.875rem;
    height: 1.875rem;
    background: var(--accent);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.8125rem;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--r-sm);
    transition:
        color       var(--dur-fast) ease,
        background  var(--dur-fast) ease;
    letter-spacing: 0.005em;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.875rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--r-md);
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    transition:
        background  var(--dur-fast) ease,
        transform   var(--dur-fast) ease,
        box-shadow  var(--dur-fast) ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.875rem;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--r-md);
    letter-spacing: -0.01em;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition:
        background    var(--dur-fast) ease,
        border-color  var(--dur-fast) ease,
        transform     var(--dur-fast) ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 720px;
    background: radial-gradient(
        ellipse at 50% 35%,
        rgba(193, 18, 31, 0.2) 0%,
        rgba(193, 18, 31, 0.08) 25%,
        rgba(160, 40, 80, 0.04) 45%,
        transparent 70%
    );
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 15%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 15%, transparent 100%);
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 400px;
        gap: 5rem;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
}

.hero-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    color: var(--text-3);
    background: var(--surface-1);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) ease,
                opacity var(--dur-fast) ease;
}

.hero-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-badge.is-accent {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.hero-title .accent-word {
    color: var(--accent);
}

.role-rotator {
    height: 3.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.role-container {
    transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.role-item {
    height: 3.75rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-3);
    font-style: italic;
    letter-spacing: -0.005em;
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.78;
    max-width: 48ch;
    margin-bottom: 2.5rem;
}

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

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
}

/* Hero Card (right side) */
.hero-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) ease,
                border-color var(--dur-normal) ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: var(--border-strong);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(193,18,31,0.45) 50%, transparent 95%);
}

.hero-card-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-4);
    margin-bottom: 1.75rem;
}

.cert-item {
    display: flex;
    gap: 0.875rem;
    padding-bottom: 1.125rem;
    margin-bottom: 1.125rem;
    border-bottom: 1px solid var(--border);
}

.cert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cert-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.6875rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.42;
    margin-bottom: 0.25rem;
}

.cert-id {
    font-size: 0.625rem;
    color: var(--text-4);
    font-family: monospace;
    letter-spacing: 0.02em;
}

/* ============================================================
   ABOUT / JOURNEY
   ============================================================ */
.journey-grid {
    display: grid;
    gap: 1.125rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px)  { .journey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .journey-grid { grid-template-columns: repeat(4, 1fr); } }

.journey-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.875rem;
    transition:
        border-color var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out);
}

.journey-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.journey-year {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
    margin-bottom: 0.5rem;
}

.journey-loc {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.journey-title {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.journey-desc {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.68;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.exp-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition:
        border-color var(--dur-normal) ease,
        box-shadow   var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out);
}

.exp-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.exp-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .exp-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.exp-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.exp-org {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-2);
    margin-top: 0.25rem;
}

.exp-meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

@media (max-width: 767px) {
    .exp-meta { text-align: left; align-items: flex-start; }
}

.exp-type-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    padding: 0.2rem 0.5rem;
    border-radius: 2rem;
}

.exp-date {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-3);
}

.exp-location {
    font-size: 0.625rem;
    color: var(--text-4);
}

.exp-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.exp-bullets li {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.65;
    padding-left: 1.125rem;
    position: relative;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
}

.exp-skills {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-4);
}

.exp-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: color var(--dur-fast) ease;
}

.exp-site-link:hover { color: var(--accent-hover); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section {
    padding: var(--section-py) 1.5rem;
    background: transparent;
}

.projects-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.projects-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .projects-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.projects-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text);
}

.projects-subtitle {
    font-size: 0.9375rem;
    color: var(--text-3);
    max-width: 30ch;
    line-height: 1.65;
}

/* Featured project */
.project-featured {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    transition:
        border-color var(--dur-normal) ease,
        box-shadow   var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out);
}

.project-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(193,18,31,0.5) 50%, transparent 92%);
}

.project-featured:hover {
    border-color: rgba(193, 18, 31, 0.28);
    box-shadow: 0 12px 56px rgba(0,0,0,0.45), 0 0 0 1px rgba(193,18,31,0.1);
    transform: translateY(-3px);
}

.project-featured-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .project-featured-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 3.5rem;
    }
}

.project-featured-content {
    flex: 1;
}

.project-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.project-featured-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 0.875rem;
    line-height: 1.05;
}

.project-featured-desc {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.8;
    max-width: 58ch;
    margin-bottom: 1.5rem;
}

.project-featured-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
}

.project-featured-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: flex-start;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-featured-actions {
        align-items: flex-end;
        justify-content: space-between;
        min-width: 180px;
    }
}

/* Grid cards */
.project-grid {
    display: grid;
    gap: 1.125rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px)  { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.project-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition:
        border-color var(--dur-normal) ease,
        box-shadow   var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out);
}

.project-card:hover {
    border-color: rgba(193, 18, 31, 0.22);
    box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(193,18,31,0.08);
    transform: translateY(-3px);
}

.project-card-inner {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-type {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    padding: 0.2rem 0.625rem;
    border-radius: 2rem;
}

.project-link-arrow {
    font-size: 1rem;
    color: var(--text-4);
    text-decoration: none;
    transition:
        color     var(--dur-fast) ease,
        transform var(--dur-fast) ease;
    display: inline-block;
    line-height: 1;
}

.project-card:hover .project-link-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.625rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.68;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.project-tech-item {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    transition: color var(--dur-fast) ease,
                background var(--dur-fast) ease,
                border-color var(--dur-fast) ease;
}

.project-card:hover .project-tech-item {
    color: var(--text-2);
    border-color: var(--border-strong);
}

.project-actions {
    margin-top: auto;
    padding-top: 0.25rem;
}

.project-link-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--dur-fast) ease;
}

.project-link-btn:hover { color: var(--accent); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px)  { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .certs-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition:
        border-color var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out),
        box-shadow   var(--dur-normal) ease;
}

.cert-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.cert-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.cert-card-issuer {
    font-size: 0.6875rem;
    color: var(--text-3);
    margin-bottom: 0.25rem;
}

.cert-card-skills {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 0.75rem;
}

.cert-card-id {
    font-size: 0.5625rem;
    color: var(--text-4);
    font-family: monospace;
    margin-top: 0.375rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px)  { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .awards-grid { grid-template-columns: repeat(3, 1fr); } }

.awards-year {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--surface-3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.award-item {
    padding-left: 1.125rem;
    border-left: 2px solid var(--border);
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    margin-bottom: 1.625rem;
    transition: border-color var(--dur-normal) ease;
}

.award-item:last-child { margin-bottom: 0; }
.award-item:hover { border-left-color: var(--accent); }

.award-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
    line-height: 1.42;
}

.award-desc {
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.65;
    font-weight: 400;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leadership-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .leadership-grid {
        grid-template-columns: 1fr 380px;
        gap: 5rem;
    }
}

.leadership-list {
    display: flex;
    flex-direction: column;
    gap: 2.375rem;
}

.leadership-item {
    transition: transform var(--dur-normal) var(--ease-out);
    cursor: default;
}

.leadership-item:hover { transform: translateX(5px); }

.leadership-org {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.375rem;
}

.leadership-role {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.leadership-impact {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.68;
}

.leadership-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(193,18,31,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.leadership-card-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.leadership-quote {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
}

.leadership-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .leadership-full-card .leadership-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

.leadership-metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.leadership-metric-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
#contact {
    padding: var(--section-py) 1.5rem;
    background: rgba(23, 26, 34, 0.75);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text);
    margin-bottom: 3rem;
    line-height: 1;
}

.footer-heading .accent-word {
    color: var(--accent);
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem 2.25rem;
    min-width: 260px;
    flex: 1;
    max-width: 380px;
    text-align: left;
    text-decoration: none;
    transition:
        border-color var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out),
        box-shadow   var(--dur-normal) ease;
}

.contact-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.contact-card-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-4);
    margin-bottom: 0.5rem;
}

.contact-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.social-link {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-4);
    text-decoration: none;
    transition: color var(--dur-fast) ease,
                transform var(--dur-fast) var(--ease-out);
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-4);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-py: 5.5rem; }
    .hero-stats { gap: 1.75rem; flex-wrap: wrap; }
    .social-links { gap: 1.75rem; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 480px) {
    :root { --section-py: 4.5rem; }
    .hero-stats { gap: 1.25rem; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   HACKATHON WINNER STYLES (hero card)
   ============================================================ */
.cert-icon-gold {
    color: #D4A017;
    border-color: rgba(212, 160, 23, 0.3);
    background: rgba(212, 160, 23, 0.1);
}

.hack-winner-name {
    color: #D4A017;
    font-weight: 700;
}

/* ============================================================
   PINNED EXPERIENCE CARD
   ============================================================ */
.exp-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
    margin-bottom: 1rem;
}

.exp-card-pinned {
    border-color: var(--border-strong);
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
}

/* ============================================================
   AWARD WINNER (gold highlight)
   ============================================================ */
.award-item-winner {
    border-left-color: rgba(212, 160, 23, 0.4);
}

.award-item-winner:hover {
    border-left-color: #D4A017;
}

.award-item-winner .award-title {
    color: #D4A017;
}

/* ============================================================
   LEADERSHIP — CARD GRID LAYOUT
   ============================================================ */
.leadership-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px)  { .leadership-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .leadership-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.leadership-item-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    transition:
        border-color var(--dur-normal) ease,
        transform    var(--dur-normal) var(--ease-out);
}

.leadership-item-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.leadership-year-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
    background: var(--surface-3);
    border: 1px solid var(--border);
    padding: 0.175rem 0.5rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   LEADERSHIP — FULL-WIDTH MENTORSHIP CARD
   ============================================================ */
.leadership-full-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .leadership-full-card {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.leadership-full-card::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(193,18,31,0.07) 0%, transparent 70%);
    pointer-events: none;
}
