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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(78, 205, 164, 0.3);
    color: #f0f4f8;
}

/* Scroll-reveal base — visible by default, animated via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only animate if user prefers motion and JS enables it */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion: keep everything visible, no transitions */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

/* Mobile menu line animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(0.25rem, 0.25rem);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(0.5rem);
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(0.25rem, -0.25rem);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1520;
}
::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 164, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 164, 0.5);
}

/* Select dropdown styling */
select option {
    background: #0D1B2A;
    color: #f0f4f8;
}

/* Image aspect ratio fallbacks */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* Smooth focus visible */
:focus-visible {
    outline: 2px solid #4ecda4;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Hero image loading */
.hero-img {
    will-change: transform;
}

/* Geometric shape float animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-8px) rotate(12deg); }
}

.geo-float {
    animation: float 6s ease-in-out infinite;
}

.geo-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
