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

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

body {
    background-color: #0f1d4a;
    color: #f0f4ff;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ── Geometric Background Shapes ── */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #5eead4;
    top: -200px;
    right: -200px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #5eead4;
    bottom: 10%;
    left: -150px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid #5eead4;
    top: 40%;
    right: -50px;
    opacity: 0.03;
    transform: rotate(15deg);
}

.geo-rect {
    width: 300px;
    height: 300px;
    background: #5eead4;
    top: 60%;
    left: 10%;
    border-radius: 40px;
    transform: rotate(45deg);
    opacity: 0.025;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #5eead4 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 25%;
    left: 5%;
    opacity: 0.06;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(15, 29, 74, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-link {
    display: block;
}

/* ── Scroll Reveal Animations ── */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Progressive enhancement: if JS is disabled, content is already visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .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: translate(0, 0);
}

/* ── Button Hover Effects ── */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1d4a;
}
::-webkit-scrollbar-thumb {
    background: #3b5bdb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c7cfa;
}

/* ── Selection ── */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0f4ff;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-triangle {
        border-left-width: 100px;
        border-right-width: 100px;
        border-bottom-width: 173px;
    }
    .geo-rect {
        width: 150px;
        height: 150px;
    }
}
