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

:root {
    --bg: #0a0a0a;
    --fg: #ededed;
    --card: #121212;
    --primary: #22b8c5;
    --primary-fg: #050505;
    --muted: #8a8a8a;
    --border: #242424c0;
    --secondary: #1e1e1e
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased
}

.mono {
    font-family: 'JetBrains Mono', monospace
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid var(--border)
}

.nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s 0.2s ease forwards;
}

.hero-tag svg {
    width: 18px;
    height: 18px;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: .875rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    font-size: .875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s
}

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

/* Section wrapper */
.section {
    position: relative;
    z-index: 10;
    overflow: hidden
}

.section-bg {
    position: sticky;
    top: 0;
    height: 0;
    z-index: 0
}

.section-bg-inner {
    margin-top: 5%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1.5rem
}

.section-bg-text {
    user-select: none;
    white-space: nowrap;
    text-align: center;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 11rem);

    color: hsla(166, 94%, 49%, 0.964);
    transition: opacity .15s, transform .15s, color .15s
}

.section-content {
    position: relative;
    z-index: 10;
    min-height: 10vh;
    padding: 6rem 1.5rem
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

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

.s1 {
    transition-delay: .1s
}

.s2 {
    transition-delay: .2s
}

.s3 {
    transition-delay: .3s
}

.s4 {
    transition-delay: .4s
}


.s5 {
    transition-delay: .5s
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 1.5rem;
    transition: all .5s
}

.project-logo {
    height: 2.5rem;
    object-fit: contain;
    opacity: .7;
    transition: opacity .3s;
}

.card:hover {
    border-color: #22b8c5;
    box-shadow: 0 0 30px -5px #22b8c5
}

.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: .375rem;
    background: var(--secondary);
    color: var(--primary)
}

.text-primary {
    color: var(--primary)
}

.text-muted {
    color: var(--muted)
}

.text-gradient {
    background: linear-gradient(135deg, #22c2c5, #4aa5de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.glow {
    box-shadow: 0 0 30px -5px #22b8c5
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
    transition: border-color .5s
}

.timeline-item:hover {
    border-color: var(--primary)
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background .5s
}

.timeline-item:hover .timeline-dot {
    background: var(--primary)
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem
}

@media(min-width:640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .stats-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(min-width:768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr)
    }
}

.max-w-3xl {
    max-width: 48rem;
    margin: 0 auto;
    width: 100%
}

.max-w-5xl {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
    width: 100%
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg)
}

.btn-primary:hover {
    opacity: .9
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary)
}

.btn-outline:hover {
    background: rgba(34, 113, 197, 0.1)
}

/* Photo */
.photo-wrap {
    width: 16rem;
    height: 18rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border)
}

.photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.photo-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .5rem 1rem
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    text-align: center
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .3s
}

footer a:hover {
    color: var(--primary)
}

/* Mobile nav */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 1.5rem;
    cursor: pointer
}

@media(max-width:767px) {
    .nav-links {
        display: none
    }

    .mobile-toggle {
        display: block
    }
}

/* Utility */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center
}

.space-y>*+* {
    margin-top: 2rem
}

.space-y-lg>*+* {
    margin-top: 3rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-3 {
    margin-top: .75rem
}

.mt-4 {
    margin-top: 1rem
}

.mt-6 {
    margin-top: 1.5rem
}

.mt-8 {
    margin-top: 2rem
}

.mt-10 {
    margin-top: 2.5rem
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-3 {
    margin-bottom: .75rem
}

.mb-4 {
    margin-bottom: 1rem
}

.mb-10 {
    margin-bottom: 2.5rem
}

.mb-12 {
    margin-bottom: 3rem
}

.gap-2 {
    gap: .5rem
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.5rem
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap
}

.text-xs {
    font-size: .75rem
}

.text-sm {
    font-size: .875rem
}

.text-lg {
    font-size: 1.125rem
}

.text-xl {
    font-size: 1.25rem
}

.text-2xl {
    font-size: 1.5rem
}

.text-3xl {
    font-size: 1.875rem
}

.text-5xl {
    font-size: 3rem
}

.font-bold {
    font-weight: 700
}

.font-semibold {
    font-weight: 600
}

.font-medium {
    font-weight: 500
}

.leading-relaxed {
    line-height: 1.625
}

.leading-tight {
    line-height: 1.25
}

/* CARD BASE */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: scale(1);
    position: relative;
}

/* CONTENT */
.card-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    transition: all 0.4s ease;
    z-index: 2;
}

/* 🔥 HOVER EFFECT */
.project-card:hover {
    background-image: var(--bg);
    background-size: contain;
    /* 👈 key change */
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1.1);
    z-index: 999;
}

/* ✅ HIDE TEXT SMOOTHLY */
.project-card:hover .card-content {
    opacity: 0;
    transform: translateY(20px);
    /* nice slide down */
    pointer-events: none;
}