@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-padding-top: 6rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    z-index: 100;
    transition: width 0.05s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 300;
    color: #3b82f6;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#spotlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(650px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(59, 130, 246, 0.08), transparent 80%);
}

:is(.dark) #spotlight {
    background: radial-gradient(650px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(59, 130, 246, 0.13), transparent 80%);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-child:nth-child(1) {
    transition-delay: 0.06s;
}

.reveal-child:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-child:nth-child(3) {
    transition-delay: 0.18s;
}

.reveal-child:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-child:nth-child(5) {
    transition-delay: 0.30s;
}

.reveal-child:nth-child(6) {
    transition-delay: 0.36s;
}

.reveal-child:nth-child(7) {
    transition-delay: 0.42s;
}

.reveal-child:nth-child(8) {
    transition-delay: 0.48s;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link.active::after {
    width: 100%;
}

.glow-card {
    position: relative;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(
        350px circle at var(--card-mouse-x, -999px) var(--card-mouse-y, -999px),
        rgba(59, 130, 246, 0.45),
        rgba(139, 92, 246, 0.2),
        transparent 65%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

:is(.dark) .glow-card::before {
    background: radial-gradient(
        350px circle at var(--card-mouse-x, -999px) var(--card-mouse-y, -999px),
        rgba(96, 165, 250, 0.6),
        rgba(168, 85, 247, 0.35),
        transparent 65%
    );
}

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

.glow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

:is(.dark) .glow-card:hover {
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
}

.img-gallery-frame {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
    overflow: hidden;
}

:is(.dark) .img-gallery-frame {
    background: rgba(255, 255, 255, 0.03);
}

.project-img-wrap {
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.project-img-wrap img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-img-wrap:hover img {
    transform: scale(1.03);
}

.timeline-entry {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid;
    border-image: linear-gradient(to bottom, #d1d5db, transparent) 1;
}

:is(.dark) .timeline-entry {
    border-image: linear-gradient(to bottom, #374151, transparent) 1;
}

.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: #6b7280;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active .section-heading::after {
    width: 100%;
}

.swipe-deck {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.swipe-card:active {
    cursor: grabbing;
}