*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #050e17 0%, #0a1a28 25%, #132b40 50%, #1e3f5c 75%, #2a5278 100%);
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(50, 184, 131, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -5%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(50, 184, 131, 0.06) 0%, transparent 70%);
    bottom: 15%;
    left: -5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(50, 184, 131, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Header scroll state */
header.scrolled {
    background: rgba(5, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(50, 184, 131, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050e17;
}
::-webkit-scrollbar-thumb {
    background: #2a5278;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #32b883;
}

/* Selection color */
::selection {
    background: rgba(50, 184, 131, 0.3);
    color: #f0f4f8;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Map container for dark theme */
iframe[title*="Google Maps"] {
    border-radius: 0 0 1rem 1rem;
}
