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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric animated shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d4a8 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d4a8 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: 50%;
    right: -100px;
    opacity: 0.05;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #34d4a8;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #ffffff;
    bottom: 20%;
    left: 15%;
    transform: rotate(20deg);
    opacity: 0.08;
    animation: spin-slow 25s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #34d4a8;
    top: 40%;
    right: 5%;
    opacity: 0.1;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border: 3px solid #34d4a8;
    border-radius: 50%;
    top: 30%;
    right: 15%;
    opacity: 0.15;
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, #34d4a8 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: 25%;
    opacity: 0.08;
    animation: float-slow 25s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll reveal — progressive enhancement, respects prefers-reduced-motion */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d4a8;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #34d4a8;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
