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

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

body {
    overflow-x: hidden;
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.shape-circle-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(69, 217, 171, 0.12);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(69, 217, 171, 0.06);
    animation: float-slow 8s ease-in-out infinite reverse;
}

.shape-triangle {
    position: absolute;
    top: 25%;
    right: 35%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(69, 217, 171, 0.08);
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    position: absolute;
    bottom: 20%;
    left: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(69, 217, 171, 0.25) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: float-slow 10s ease-in-out infinite;
}

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

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content is always visible if JS is disabled */
.no-js .reveal,
.js .reveal {
    /* JS will add .revealed class */
}

/* ===== NAV SCROLL STATE ===== */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #bar1 {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(69, 217, 171, 0.3);
    color: #0A1628;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1EC48C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #45D9AB;
}
