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

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

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

/* Background decorative shapes */
.bg-shapes {
    z-index: 0;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
}

.shape-circle--1 {
    top: 15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle--2 {
    bottom: 10%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, transparent 70%);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-circle--3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.03) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite;
}

.shape-tri {
    position: absolute;
    width: 0;
    height: 0;
}

.shape-tri--1 {
    top: 30%;
    right: 10%;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(52, 211, 153, 0.05);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0;
}

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

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d399;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #34d399 !important;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !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);
}

/* Scroll reveal */
.reveal-section {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-section:nth-child(2) { transition-delay: 0.1s; }
    .reveal-section:nth-child(3) { transition-delay: 0.2s; }
    .reveal-section:nth-child(4) { transition-delay: 0.3s; }
    .reveal-section:nth-child(5) { transition-delay: 0.4s; }
    .reveal-section:nth-child(6) { transition-delay: 0.5s; }
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* Selection */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a2d4a inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Pulse animation for hero dot */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.animate-pulse {
    animation: pulse-ring 2s infinite;
}

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