/* Base Styles */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4F976, #60A5FA);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* Background Animation */
.bg-gradient-animate {
    background: linear-gradient(-45deg, #000000, #1a1a1a, #0d0d0d, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* Glassmorphism & 3D Tilt Base */
.nav-glass {
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-ios {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.glass-ios:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-ios::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%), rgba(212,249,118,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.glass-ios:hover::after {
    opacity: 1;
}

/* Typography */
.text-shimmer {
    background: linear-gradient(to right, #ffffff 20%, #60A5FA 40%, #60A5FA 60%, #ffffff 80%);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Floating Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Glow Effects */
.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Magnetic button */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

/* Stats counter style */
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Form inputs */
.form-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    width: 100%;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #D4F976;
    box-shadow: 0 0 0 4px rgba(212,249,118,0.06);
}

.form-input::placeholder {
    color: #475569;
}

/* ========================================
   Mobile Responsiveness Improvements
   ======================================== */

@media (max-width: 768px) {
    button, a.magnetic-btn, .px-4.py-2, .px-6.py-3 {
        min-height: 44px;
    }

    .font-heading.text-5xl, .font-heading.text-6xl, .font-heading.text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2.font-heading.text-4xl {
        font-size: 1.75rem;
    }

    body {
        overflow-x: hidden;
    }

    .glass-ios {
        padding: 1.25rem;
    }

    #mobile-menu .space-y-3>* {
        margin-bottom: 0.5rem;
    }

    input[type="text"], input[type="range"], textarea, select {
        font-size: 16px;
        min-height: 44px;
    }

    .flex.gap-2 {
        flex-wrap: wrap;
    }

    nav .flex.justify-between {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .min-h-screen {
        min-height: 85vh;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Small phones (375px and below) */
@media (max-width: 375px) {
    .font-heading.text-5xl, .font-heading.text-6xl, .font-heading.text-7xl {
        font-size: 2rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    #scroll-progress {
        display: none;
    }
}
