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

* {
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    zoom: 1.1;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    overflow-x: hidden;
}

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

/* Loading Screen Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.animate-spin-reverse {
    animation: spin-reverse 1.5s linear infinite;
}

@keyframes loading-bar {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 60%;
    }
    100% {
        width: 100%;
        transform: translateX(0%);
    }
}

.animate-loading-bar {
    animation: loading-bar 2.5s ease-in-out;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-fade-in-up-delayed {
    animation: fadeInUp 1.4s ease-out 0.4s forwards;
    opacity: 0;
}

/* Scroll Section Animation */
.scroll-section {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2.5s infinite;
}

/* Floating Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.25;
    }
    33% {
        transform: translateY(-60px) translateX(50px);
        opacity: 0.5;
    }
    66% {
        transform: translateY(60px) translateX(-50px);
        opacity: 0.35;
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    33% {
        transform: translateY(70px) translateX(-60px);
        opacity: 0.6;
    }
    66% {
        transform: translateY(-50px) translateX(60px);
        opacity: 0.4;
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-80px) translateX(70px);
        opacity: 0.45;
    }
}

.animate-float {
    animation: float 15s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 18s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 20s ease-in-out infinite;
}

.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid rgba(220, 38, 38, 0.15);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dc2626, #991b1b);
    border: 2px solid #000000;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(220, 38, 38, 0.3);
    color: white;
}

/* Pulse Animation */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

.animate-pulse-red {
    animation: pulse-red 2s infinite;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(220, 38, 38, 0.15);
    }
    50% {
        text-shadow: 0 0 30px rgba(220, 38, 38, 0.6), 0 0 60px rgba(220, 38, 38, 0.3);
    }
}

.text-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Loading Screen Fade Out */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.fade-out {
    animation: fadeOut 0.6s ease-out forwards;
}

/* Card Hover Effects */
.group:hover .h-px {
    width: 96px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}