/* ===== BASE & RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #e8b828;
    color: #0a1628;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== HERO ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(4, 10, 20, 0.88) 0%,
        rgba(10, 22, 40, 0.82) 40%,
        rgba(22, 45, 82, 0.75) 100%
    );
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shapes {
    z-index: 1;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: #e8b828;
    top: -100px;
    right: -80px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    border: 3px solid #e8b828;
    background: transparent;
    bottom: 15%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 86px 50px;
    border-color: transparent transparent #e8b828 transparent;
    opacity: 0.12;
    top: 25%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 12s linear infinite;
}

.geo-dots {
    position: absolute;
    opacity: 0.2;
    bottom: 20%;
    right: 10%;
}

.geo-dots--1 {
    display: grid;
    grid-template-columns: repeat(5, 12px);
    grid-template-rows: repeat(5, 12px);
    gap: 8px;
}

.geo-dots--1 span {
    width: 4px;
    height: 4px;
    background: #e8b828;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.geo-dots--1 span:nth-child(2) { animation-delay: 0.2s; }
.geo-dots--1 span:nth-child(3) { animation-delay: 0.4s; }
.geo-dots--1 span:nth-child(4) { animation-delay: 0.6s; }
.geo-dots--1 span:nth-child(5) { animation-delay: 0.8s; }
.geo-dots--1 span:nth-child(6) { animation-delay: 0.1s; }
.geo-dots--1 span:nth-child(7) { animation-delay: 0.3s; }
.geo-dots--1 span:nth-child(8) { animation-delay: 0.5s; }
.geo-dots--1 span:nth-child(9) { animation-delay: 0.7s; }
.geo-dots--1 span:nth-child(10) { animation-delay: 0.9s; }

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== STAT COUNTER ===== */
.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
    display: none;
}

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

.reveal[data-reveal-delay] {
    transition-delay: attr(data-reveal-delay);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .geo-circle, .geo-triangle {
        animation: none;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== COURSE CARDS ===== */
.course-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle--2 {
        display: none;
    }

    .geo-triangle {
        display: none;
    }

    .geo-dots {
        display: none;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .hero-shapes {
        display: none;
    }
}
