/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

/* ── Geometric Shapes (Hero) ── */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #2dd4bf;
    border-radius: 50%;
    top: 10%;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: #2dd4bf;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #5eead4;
    top: 60%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    border: 4px solid #99f6e4;
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation: float 9s ease-in-out infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ── Scroll Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .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;
    }
}

/* ── Navbar Scroll State ── */
nav.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

nav.scrolled .text-midnight-200 {
    color: #cbd5e1 !important;
}

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

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

/* ── Selection Color ── */
::selection {
    background: #14b8a6;
    color: #020617;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
    .circle-1 {
        width: 200px;
        height: 200px;
        right: -40px;
    }
    
    .circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .square-1 {
        width: 60px;
        height: 60px;
    }
    
    .triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid #5eead4;
    }
    
    .ring-1 {
        width: 140px;
        height: 140px;
    }
}
