:root {
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #d4a574;
    --gold-color: #c9a961;
    --dark-bg: #0a0a0f;
    --dark-card: #1a1a2e;
    --light-bg: #f8f7f4;
    --light-card: #ffffff;
    --beige-bg: #faf8f5;
    --warm-white: #fefdfb;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-dark: #2d2d2d;
    --text-dark-secondary: #6b6b6b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #d4a574 100%);
    --gradient-warm: linear-gradient(135deg, #f4e4d7 0%, #dfc2a8 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-warm: 0 8px 30px rgba(201, 169, 97, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.web3-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 40px;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-social {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.nav-social a:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

.web3-nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links-centered {
    display: flex;
    gap: 45px;
}

.nav-links-centered a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.nav-links-centered a:hover {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Pill Buttons */
.pill-btn {
    position: relative;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s;
    overflow: hidden;
}

.pill-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.pill-btn.nav-btn {
    border: 0.6px solid rgba(255, 255, 255, 0.5);
    background: #000000;
    color: #ffffff;
    padding: 11px 29px;
    font-size: 14px;
    font-weight: 500;
}

.pill-btn.solid-white-btn {
    background: #ffffff;
    color: #000000;
    padding: 11px 29px;
    font-size: 14px;
    font-weight: 500;
    border: 0.6px solid rgba(255, 255, 255, 0.5);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    box-shadow: 0 2px 10px 1px rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   Animated Neon Glow Button (Hero CTA)
   ═══════════════════════════════════════════════════════════════ */
.neon-glow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5px; /* Thin border thickness like Lightswind */
    border-radius: 9999px;
    background: #000; /* Black rim to absorb shadow */
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Snappy click press scale */
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.neon-glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 255, 255, 0.2);
}

.neon-glow-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(77, 255, 255, 0.1);
}

/* Magic Spinning Border - Full Rainbow Replication */
.glow-border {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
    /* Manual stops to exactly replicate Lightswind's "in hsl increasing hue" from Red to Pink */
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 20%,
        #ff4d4d 30%,       /* Red */
        #ff994d 36%,       /* Orange */
        #e6ff4d 42%,       /* Yellow-Green */
        #4dff4d 48%,       /* Green */
        #4dffff 54%,       /* Cyan */
        #4d4dff 60%,       /* Blue */
        #cc4dff 66%,       /* Purple */
        #ff4d8b 70%,       /* Pink/Magenta */
        transparent 80%,
        transparent 100%
    );
    animation: rotateGlow 2s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Inner Button Background */
.neon-glow-btn .btn-content {
    position: relative;
    background: #0a0a0a; /* Sleek, pure dark grey for maximum contrast */
    color: #fff;
    min-width: 160px;
    height: 48px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

.neon-glow-btn:hover .btn-content {
    background: #111111; /* Slightly lighter on hover */
}

/* Text and Icon GSAP-style Snap Graphic Motion */
.btn-text, .btn-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Elastic bounce timing curve */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.btn-icon {
    transform: translateY(-40px);
    opacity: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-text {
    transform: translateY(0);
    opacity: 1;
}

/* When active (clicked), slide text out and bounce icon in */
.neon-glow-btn:active .btn-text {
    transform: translateY(40px);
    opacity: 0;
}

.neon-glow-btn:active .btn-icon {
    transform: translateY(0);
    opacity: 1;
}


/* Hero Section - Web3 Style */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

#sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

.web3-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 280px;
    padding-bottom: 102px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.badge-dot {
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
}

.hero-heading {
    max-width: 100%;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5.5vw, 64px);
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 700;
    background: linear-gradient(144.5deg, #ffffff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    margin-top: -16px; /* 40px gap minus 24px effective gap = -16px */
    line-height: 1.6;
}

@media (max-width: 768px) {
    .web3-nav {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    /* Hide social icons from nav on mobile — they're in the contact section */
    .nav-social {
        display: none;
    }

    /* Compact nav links so all 6 fit on small screens */
    .nav-links-centered {
        gap: 10px;
    }

    .nav-links-centered a {
        font-size: 12px;
        letter-spacing: 0;
    }

    .web3-hero {
        padding-top: 200px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-heading {
        font-size: clamp(28px, 6vw, 36px);
    }
}

/* Global dark content layer so video is readable but visible everywhere */
html {
    background: #000;
}

/* Ambient ocean-blue gradient — only applies BELOW the hero section */
body::before {
    content: '';
    position: fixed;
    top: 100vh;                 /* starts right after the hero ends */
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(10, 35, 60, 0.7) 0%, transparent 70%),
        radial-gradient(ellipse 80% 80% at 20% 100%, rgba(5, 25, 50, 0.55) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5,18,45,0.65) 0%, rgba(3,10,25,0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Sections - Web3 transparent overlay style */
.section {
    padding: 6rem 2rem;
    position: relative;
    background: transparent;
}

.alt-bg {
    background: transparent;
    position: relative;
}

/* Education section: deep navy overlay scoped to this section only */
#resume {
    position: relative;
    isolation: isolate;
}

#resume::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 13, 31, 0.85);  /* #050d1f at 85% */
    z-index: 0;
    pointer-events: none;
}

#resume .container {
    position: relative;
    z-index: 1;
}

/* Initial hidden state for GSAP (Education cards only) */
.edu-card {
    opacity: 0;
    transform: translateY(30px);
}

.alt-bg::before {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(144.5deg, #ffffff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    background: transparent;
    padding: 3rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.detail-item h4 {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: #e8e8e8;
    font-weight: 500;
}

/* About Read More Toggle */
.about-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.about-expanded.open {
    max-height: 2000px;
    opacity: 1;
}

/* On mobile, text wraps much more so 2000px isn't enough — override here
   (must be AFTER the global rule above so cascade order works correctly) */
@media (max-width: 768px) {
    .about-expanded.open {
        max-height: 4000px;
    }
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 1.2rem auto 0;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.read-more-btn #readMoreIcon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.read-more-btn.open #readMoreIcon {
    transform: rotate(180deg);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #c9a961;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(201, 169, 97, 0.5);
    letter-spacing: 0.3px;
}

.download-btn:hover {
    background: rgba(201, 169, 97, 0.1);
    border-color: #c9a961;
}

.download-btn:active {
    background: rgba(201, 169, 97, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   WORK EXPERIENCE — Vertical Timeline
   ═══════════════════════════════════════════════════════════════ */
.work-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Glowing vertical line on the left */
.work-timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        #00d4ff 0%,
        #4f8ef7 40%,
        rgba(79, 142, 247, 0.2) 100%
    );
    box-shadow:
        0 0 8px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.15);
}

/* Individual work card */
.work-card {
    position: relative;
    margin-bottom: 2.5rem;
    /* initial state for GSAP — will be animated in from the right */
    opacity: 0;
    transform: translateX(60px);
}

/* Timeline dot */
.work-card-dot.company-initial-dot {
    position: absolute;
    left: -40px; /* adjusted to perfectly center 28px dot on the 2px line */
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #2a4a6b;
    background: #0d1628;
    box-shadow: 0 0 10px rgba(42, 74, 107, 0.5);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #7bb3ff;
}

.work-card.current-role .work-card-dot.company-initial-dot {
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
    color: #00d4ff;
}

/* Inner card */
.work-card-inner {
    background: #0d1628;        /* fully opaque dark navy, as specified */
    border-radius: 16px;
    padding: 1.75rem 2rem;
    border-left: 3px solid #2a4a6b;    /* dimmer blue-grey for previous roles */
    transition: box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.work-card.current-role .work-card-inner {
    border-left: 4px solid #00d4ff;    /* visually dominant brighter cyan border */
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.15),   /* subtle cyan glow */
        0 4px 40px rgba(0, 212, 255, 0.08); /* wider subtle glow */
}

.work-card-inner:hover {
    box-shadow:
        0 0 0 1px rgba(79, 142, 247, 0.25),
        0 8px 50px rgba(79, 142, 247, 0.1);
}

.work-card.current-role .work-card-inner:hover {
    box-shadow:
        0 0 0 1px #00d4ff,
        0 8px 50px rgba(0, 212, 255, 0.2),
        0 0 30px rgba(0, 212, 255, 0.25);
}

/* Card header row */
.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.work-company {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.2rem 0;
}

.work-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.work-location {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.work-location i { font-size: 0.75rem; }

/* Date badge */
.work-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

.work-date-badge.current {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

/* Animated dot for current role */
.date-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 8px #00d4ff;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Contract badge inline pill */
.contract-badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Stat badges row */
.work-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.stat-badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-badge.stat-cyan {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.stat-badge.stat-blue {
    background: rgba(79, 142, 247, 0.2);
    border: 1px solid rgba(79, 142, 247, 0.4);
    color: #7bb3ff;
    box-shadow: 0 0 15px rgba(79, 142, 247, 0.2);
}

/* Bullet list */
.work-bullets {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.work-bullets li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════════════════════
   EDUCATION — Pill / Badge Tags
   ═══════════════════════════════════════════════════════════════ */
.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    /* Initial state for GSAP stagger animation */
}

.edu-tag {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    background: rgba(79, 142, 247, 0.15);
    border: 1px solid rgba(79, 142, 247, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: default;
    opacity: 0;                          /* start hidden for GSAP */
    transform: translateY(8px);          /* start slightly below */
}

.edu-tag:hover {
    background: rgba(79, 142, 247, 0.28);
    border-color: rgba(79, 142, 247, 0.7);
    color: #ffffff;
    box-shadow:
        0 0 16px rgba(79, 142, 247, 0.25),
        0 0 4px rgba(79, 142, 247, 0.15) inset;
}

/* ═══════════════════════════════════════════════════════════════
   Legacy Timeline (Education cards still use this)
   ═══════════════════════════════════════════════════════════════ */
/* Timeline */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding: 0;
}

.timeline-dot {
    display: none;
}

.timeline-content {
    background: rgba(8, 28, 55, 0.4);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(100, 160, 220, 0.12);
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.timeline-content:hover {
    border-color: rgba(100, 180, 255, 0.3);
    box-shadow: 0 0 40px rgba(30, 100, 200, 0.08);
    background: rgba(10, 35, 70, 0.5);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.timeline-content p {
    color: #888888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-list li {
    padding-left: 1.5rem;
    position: relative;
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    pointer-events: auto;
}

.timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Education specific list - grid layout */
#resume .timeline-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

#resume .timeline-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    position: static;
    cursor: default;
}

#resume .timeline-list li::before {
    content: '—';
    position: relative;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Disable custom cursor effects in Education section to prevent jitter */
#resume * {
    cursor: default !important;
}

/* Completely hide custom cursor in Education section */
#resume .cursor-dot,
#resume .cursor-outline {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Force cursor elements to not render over Education */
.cursor-dot:has(~ #resume:hover),
.cursor-outline:has(~ #resume:hover) {
    display: none !important;
}

/* Prevent any hover transforms or transitions in Education to stop glitch */
#resume .timeline-list li,
#resume .timeline-list li::before,
#resume .timeline-content,
#resume .timeline-item {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: auto !important;
}


/* ═══════════════════════════════════════════════════════════════
   SKILLS — Tech Badge Pill Grid
   ═══════════════════════════════════════════════════════════════ */
.skills-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 860px;
    margin: 2.5rem auto 0;
}

/* Base pill */
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    font-family: 'General Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    cursor: default;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(16px);
}

.skill-pill i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

/* Blue glow — Data tools */
.skill-pill.pill-data:hover {
    border-color: rgba(79, 142, 247, 0.6);
    box-shadow:
        0 0 18px rgba(79, 142, 247, 0.25),
        0 0 6px rgba(79, 142, 247, 0.12) inset;
    color: #7bb3ff;
    background: rgba(79, 142, 247, 0.1);
}
.skill-pill.pill-data:hover i { opacity: 1; color: #4f8ef7; }

/* Purple glow — AI tools */
.skill-pill.pill-ai:hover {
    border-color: rgba(167, 105, 255, 0.6);
    box-shadow:
        0 0 18px rgba(167, 105, 255, 0.25),
        0 0 6px rgba(167, 105, 255, 0.12) inset;
    color: #c08bff;
    background: rgba(167, 105, 255, 0.1);
}
.skill-pill.pill-ai:hover i { opacity: 1; color: #a769ff; }

/* Cyan glow — Cloud / Dev tools */
.skill-pill.pill-dev:hover {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow:
        0 0 18px rgba(0, 212, 255, 0.22),
        0 0 6px rgba(0, 212, 255, 0.1) inset;
    color: #4de8ff;
    background: rgba(0, 212, 255, 0.08);
}
.skill-pill.pill-dev:hover i { opacity: 1; color: #00d4ff; }

/* Skills Section */

.skills-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.skill-category-compact {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    border-left: 2px solid rgba(201, 169, 97, 0.4);
    padding-left: 1.5rem;
    transition: var(--transition);
}

.skill-category-compact:hover {
    border-left-color: rgba(201, 169, 97, 0.8);
    transform: translateX(5px);
}

.skill-category-compact h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e8e8e8;
}

.skill-category-compact h3 i {
    color: var(--accent-color);
}

.skill-category-compact p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
}

.skills-toggle-container {
    text-align: center;
    margin: 2rem 0;
}

.skills-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #c9a961;
    border: 1px solid rgba(201, 169, 97, 0.5);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.skills-toggle-btn:hover {
    background: rgba(201, 169, 97, 0.1);
    border-color: #c9a961;
}

.skills-toggle-btn:active {
    background: rgba(201, 169, 97, 0.15);
}

.skills-toggle-btn i {
    transition: transform 0.3s ease;
}

.skills-toggle-btn.active i {
    transform: rotate(180deg);
}

.skills-full-list {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.skills-full-list.hidden {
    max-height: 0;
    opacity: 0;
}

.skills-section {
    margin-bottom: 5rem;
}

.skills-section:last-child {
    margin-bottom: 0;
}

.skills-section-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
    font-weight: 400;
}

.skills-container {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    border: none;
    border-left: 1px solid rgba(201, 169, 97, 0.3);
    padding-left: 1.5rem;
}

.skill-category:hover {
    border-left-color: rgba(201, 169, 97, 0.6);
    transform: translateX(5px);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
}

.skill-category h3 i {
    color: var(--accent-color);
}

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

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 25px;
    color: #e8e8e8;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--gradient-gold);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: transparent;
    padding: 1.5rem;
    border-radius: 0;
    transition: var(--transition);
    border: none;
    border-left: 2px solid rgba(201, 169, 97, 0.3);
    padding-left: 1.5rem;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #e8e8e8;
    font-weight: 500;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Contact row — horizontal inline layout */
.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.contact-row-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.contact-row-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-row-email {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-row-email:hover {
    color: #00d4ff;
}

/* Bold clickable product names in About section */
.about-product-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-product-link:hover {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.contact-row-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.contact-social-centered {
    justify-content: center;
    margin-top: 0;
}

/* Social icon base — visible colors */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-form {
    background: transparent;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(201, 169, 97, 0.3);
    padding-left: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 10px;
    color: #e8e8e8;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
    background: #252525;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #c9a961;
    border: 1px solid rgba(201, 169, 97, 0.5);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    background: rgba(201, 169, 97, 0.1);
    border-color: #c9a961;
}

.submit-btn:active {
    background: rgba(201, 169, 97, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL EASTER EGG
   ═══════════════════════════════════════════════════════════════ */
.terminal-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 65, 0.1);
    overflow: hidden;
    position: relative;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-close { background: #ff5f56; }
.term-min { background: #ffbd2e; }
.term-max { background: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 255, 65, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    height: 380px;
    overflow-y: auto;
    color: #00ff41;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.4);
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #050505;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 4px;
}

.terminal-output {
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #00ff41;
    margin-right: 0.8rem;
    white-space: nowrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
    text-shadow: inherit;
}

/* Blinking cursor effect for the input */
.terminal-input:focus {
    outline: none;
}

/* Subtle scanline overlay to sell the CRT vibe */
.terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* Easter Egg Stars */
.easter-egg-star {
    position: absolute;
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    animation: starTwinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1)) drop-shadow(0 0 15px rgba(201, 169, 97, 0.8)) hue-rotate(20deg);
}

.easter-egg-star:hover {
    transform: scale(1.3) rotate(20deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)) drop-shadow(0 0 25px rgba(201, 169, 97, 1)) hue-rotate(20deg);
}

.easter-egg-star.collected {
    animation: starCollect 0.6s ease-out forwards;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }
}


/* Footer */
.footer {
    background: #0f0f0f;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-social a:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

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

.wave-signature-container {
    display: inline-block;
    margin-top: 0.5rem;
}

.wave-signature {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 6px rgba(180, 210, 230, 0.25));
    transition: filter 0.3s ease;
}

.wave-signature:hover {
    filter: drop-shadow(0 0 10px rgba(180, 210, 230, 0.45));
}


/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Enhanced scroll animations with smooth easing */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}



.timeline-item {
    transition: all 0.5s ease-out;
}

.timeline-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-container {
        justify-content: space-between;
    }

    .logo {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        background: var(--gradient-3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content-center {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: -1px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    /* Removed old bento grid responsive CSS */

} /* END @media (max-width: 968px) */

@media (max-width: 640px) {
    .section {
        padding: 4rem 1rem;
    }

    .about-text {
        padding: 2rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    /* Removed old bento grid mobile CSS */
}

/* Enhanced Interactive Animations */

/* Smooth section reveals */
section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.timeline-item:hover {
    border-left-color: #d4a574;
    padding-left: 2.5rem;
}

/* Skill tags bounce effect */
.skill-tag {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-tag:hover {
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}



/* Smooth section title animations */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Add subtle hover effect to navigation links */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Form input focus effects */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
    transform: translateY(-2px);
}

.contact-form input,
.contact-form textarea {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Social icons glow on hover */
.social-icon:hover {
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    transform: translateY(-5px) scale(1.1);
}

/* Add subtle parallax background to sections */
.section:not(.hero) {
    position: relative;
    background-attachment: fixed;
}

/* Smooth scroll indicator */
@keyframes float {

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

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

/* Make about section cards pop more on hover */
.detail-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-item:hover {
    transform: translateX(5px);
    color: #d4a574;
}

/* Enhance footer hover effects */
footer a:hover {
    color: #c9a961;
    transform: translateY(-2px);
}

footer a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Add glow to active states */
*:focus-visible {
    outline: 2px solid #c9a961;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================
   PROJECTS SECTION — REBUILT FROM SCRATCH
   ============================================ */

/* Tier wrapper */
.projects-tier {
    margin-bottom: 4.5rem;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.4px;
}

/* Grid layouts */
.projects-grid {
    display: grid;
    gap: 1.25rem;
}

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

.other-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ── CARD BASE ──────────────────────────────── */
.project-card {
    background: #0d1628;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;           /* clips the image to the rounded corners */
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.featured-card {
    min-height: 420px;
}

.other-grid .project-card {
    min-height: 380px;
}

.project-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-4px);
}

/* ── COVER IMAGE / GRADIENT ─────────────────── */
/* The wrapper IS the visible gradient — image sits on top */
.project-img-wrapper {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* no padding — spans full card width */
}

.project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Gradient fade from transparent to card bg at bottom of image */
.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 22, 40, 0) 50%,
        #0d1628 100%
    );
    pointer-events: none;
}

/* Full-card link for featured (page navigation) */
.project-full-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* ── CONTENT AREA ───────────────────────────── */
.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Row 1: Category badge LEFT, Client name RIGHT */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Category badge pill */
.project-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Badge colours by category */
.badge-ai       { background: rgba(0, 212, 255, 0.1);  border: 1px solid rgba(0, 212, 255, 0.3);  color: #00d4ff; }
.badge-data     { background: rgba(79, 142, 247, 0.1); border: 1px solid rgba(79, 142, 247, 0.3); color: #4f8ef7; }
.badge-finance  { background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.3); color: #c9a961; }
.badge-web      { background: rgba(181, 140, 255, 0.1);border: 1px solid rgba(181, 140, 255, 0.3);color: #b58cff; }

/* Client name (muted, right) */
.project-client {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

/* Row 2: Title */
.project-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;       /* ≈ 18-20px */
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

/* Row 3: Description */
.project-desc {
    font-size: 0.875rem;      /* 14px */
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Row 4: Tech pills */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.project-tech span {
    font-size: 0.75rem;       /* 12px */
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    line-height: 1.4;
}

/* Row 5: CTA footer */
.project-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
}

/* Shared CTA base */
.project-cta {
    position: relative;
    z-index: 20;              /* above the full-link overlay */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8125rem;     /* 13px */
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

/* GitHub button */
.cta-github {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.cta-github:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Live Demo button */
.cta-live {
    background: rgba(0, 212, 255, 0.07);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
}

.cta-live:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Case Study — clickable link */
.cta-case-study {
    background: rgba(201, 169, 97, 0.06);
    color: rgba(201, 169, 97, 0.85);
    border-color: rgba(201, 169, 97, 0.3);
    cursor: pointer;
}

.cta-case-study:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: rgba(201, 169, 97, 0.7);
    color: #c9a961;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
}

/* ── PROJECT GRADIENT FALLBACKS ─────────────── */
/* Each gradient shows through the image slot when image is missing */
.grad-cascade-ai     { background: linear-gradient(135deg, #0f1b5c 0%, #3b1560 100%); }
.grad-axio           { background: linear-gradient(135deg, #0d3d3a 0%, #0a1540 100%); }
.grad-savora         { background: linear-gradient(135deg, #c44b1a 0%, #7a0e2a 100%); }
.grad-silver-lining  { background: linear-gradient(135deg, #0a1a3a 0%, #4a3505 100%); }
.grad-network-rail   { background: linear-gradient(135deg, #1e2430 0%, #3a4454 100%); }
.grad-retail-insights{ background: linear-gradient(135deg, #0a3022 0%, #072a25 100%); }
.grad-southern-housing{ background: linear-gradient(135deg, #2a0a4a 0%, #0a0e35 100%); }
.grad-jp-morgan      { background: linear-gradient(135deg, #061830 0%, #1a1a2e 100%); }
.grad-nudge          { background: linear-gradient(135deg, #1a0a5c 0%, #3a0a70 100%); }
.grad-kineticiq      { background: linear-gradient(135deg, #003a4f 0%, #021830 100%); }
.grad-urbanfuel      { background: linear-gradient(135deg, #3a1a05 0%, #6a2e0a 100%); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .other-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .featured-grid,
    .other-grid { grid-template-columns: 1fr; }
    .featured-card,
    .other-grid .project-card { min-height: auto; }
}

/* ============================================
   END PROJECTS SECTION
   ============================================ */

/* Subtle section dividers */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(201, 169, 97, 0.3) 50%,
            transparent 100%);
}

.section:last-of-type::after {
    display: none;
}

/* Mobile responsive wave signature */
@media (max-width: 768px) {
    .wave-signature {
        width: 280px;
        height: 22px;
    }

    .wave-signature text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wave-signature {
        width: 240px;
        height: 20px;
    }

    .wave-signature text {
        font-size: 12px;
    }
}