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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(192, 96, 58, 0.1);
}

/* ========== 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 {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #C0603A;
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(245, 230, 211, 0.5);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(245, 230, 211, 0.1);
    border-radius: 50%;
    bottom: 10%;
    right: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(245, 230, 211, 0.12);
    top: 20%;
    right: 30%;
    animation: spin 20s linear infinite;
    transform-origin: center;
}

.geo-square {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(245, 230, 211, 0.3);
    top: 40%;
    left: 5%;
    animation: spin 15s linear infinite;
    transform-origin: center;
}

.geo-ring {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(245, 230, 211, 0.2);
    border-radius: 50%;
    bottom: 25%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== HERO PHOTO ========== */
.hero-photo {
    animation: heroPhotoFade 1s ease-out;
}

@keyframes heroPhotoFade {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* ========== CLASS CARDS ========== */
.class-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-4px);
}

/* ========== WHY US CARDS ========== */
.why-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* ========== SELECTION ========== */
::selection {
    background: #C0603A;
    color: #FDF8F3;
}
