/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Floating Boba Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.3), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(94, 234, 212, 0.15);
    animation: float-bubble linear infinite;
}

.bubble-1 { width: 80px; height: 80px; left: 10%; top: 20%; animation-duration: 8s; }
.bubble-2 { width: 50px; height: 50px; left: 25%; top: 60%; animation-duration: 6s; animation-delay: 1s; }
.bubble-3 { width: 100px; height: 100px; right: 15%; top: 30%; animation-duration: 10s; animation-delay: 2s; }
.bubble-4 { width: 35px; height: 35px; right: 25%; top: 70%; animation-duration: 7s; animation-delay: 0.5s; }
.bubble-5 { width: 60px; height: 60px; left: 5%; top: 75%; animation-duration: 9s; animation-delay: 3s; }
.bubble-6 { width: 45px; height: 45px; right: 8%; top: 15%; animation-duration: 11s; animation-delay: 1.5s; }

@keyframes float-bubble {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) translateX(20px) scale(1.02);
        opacity: 0.7;
    }
}

/* Hero Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(94, 234, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(13, 148, 136, 0.12) 0%, transparent 50%);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="true"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .navbar-logo {
    color: white;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #0f172a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}
