:root {
    --primary: #38bdf8;
    --bg-dark: #0f172a;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(56, 189, 248, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.glow-effect {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

/* --- Animation Styles --- */

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    display: block;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    animation: load 2.5s ease-in-out forwards;
}

@keyframes load {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    z-index: 10001;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out;
}

/* Animation Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(100px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.hero-visual {
    opacity: 0;
    transform: translateX(100px);
}

body {
    cursor: none;
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Base Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Animations from modules */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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