/* ===== Base & Reset ===== */
*, *::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;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #2dd4bf;
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fbbf24;
    bottom: -100px;
    left: -100px;
}

.shape-circle-3 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #5eead4;
    top: 30%;
    right: -50px;
    opacity: 0.05;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    border-radius: 24px;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #fbbf24;
    top: 60%;
    right: 5%;
    opacity: 0.06;
}

.shape-diamond {
    width: 250px;
    height: 250px;
    background: #14b8a6;
    top: 15%;
    left: -60px;
    transform: rotate(45deg);
    border-radius: 16px;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.3) 1px, transparent 1px);
    background-size: 24px 24px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.4;
}

/* ===== Floating Stat Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 0;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 35%;
    right: 0;
    animation-delay: -1.5s;
}

.card-3 {
    top: 65%;
    right: 15%;
    animation-delay: -3s;
}

.card-4 {
    top: 15%;
    right: 40%;
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(1deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Selection color ===== */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
