@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scrollbar-gutter: stable;
}

body {
    scroll-behavior: smooth;
    background-color: #000000;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Animation Delays */
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }

/* Gradient Animasyonu */
.bg-animate {
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
}

.sidebar-glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(18px);
}

/* Sonsuz Kaydırma Animasyonu */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

/* Hafif Wave Animasyonu */
@keyframes softWave {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    }
    50% {
        transform: translateY(-8px);
        text-shadow: 0 0 35px rgba(34, 211, 238, 0.4);
    }
}

.wave-char {
    display: inline-block;
    animation: softWave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.12s);
}

.gradient-char {
    color: #06b6d4;
}

/* Kenarlarda Portal Geçiş Efekti */
.mask-fade {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.nav-link-active {
    color: #22d3ee;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4;
    border-radius: 99px;
}

/* Giriş Animasyonu */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.reveal-delay-1 { animation-delay: 0.2s; }
.reveal-delay-2 { animation-delay: 0.4s; }

/* Mobil Menü Blur */
.mobile-glass {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

/* Değer Güncelleme Parlama Efekti */
@keyframes glowUpdate {
    0% { color: #fff; text-shadow: 0 0 0px transparent; }
    30% { color: #22d3ee; text-shadow: 0 0 15px rgba(34, 211, 238, 0.6); }
    100% { color: #fff; text-shadow: 0 0 0px transparent; }
}

.glow-update {
    animation: glowUpdate 1s ease-out;
}

/* Arka Plan Dişli Çark Animasyonu */
@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-bg {
    position: absolute;
    pointer-events: none;
    animation: spinGear 30s linear infinite;
    opacity: 0.04;
    z-index: 0;
}


