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

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

::selection {
    background: #e04a2b;
    color: #fffdf7;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(224, 74, 43, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(235, 110, 77, 0.08);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(250, 204, 21, 0.1);
    border: 2px solid rgba(250, 204, 21, 0.2);
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(224, 74, 43, 0.1);
    top: 60%;
    left: 8%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-ring-1 {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(250, 204, 21, 0.15);
    border-radius: 50%;
    bottom: 15%;
    right: 20%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 253, 247, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 40%;
    left: 15%;
    animation: float-slow 22s ease-in-out infinite;
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 2s;
}

.card-stat-3 {
    animation-delay: 4s;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: content is always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Program Cards ===== */
.program-card {
    will-change: transform;
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile Menu ===== */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 5px;
    transform: rotate(-45deg) translate(5px, -5px);
    margin-left: 0;
    margin-right: 0;
}

.mobile-link {
    display: block;
    padding: 8px 0;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    will-change: transform;
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e04a2b;
    outline-offset: 2px;
}

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

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

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

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

/* ===== Print Styles ===== */
@media print {
    .floating-card,
    .geo-shape {
        display: none;
    }
    
    body {
        color: #111827;
        background: white;
    }
}
