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

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

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

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 224, 200, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(253, 248, 240, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(253, 248, 240, 0.1);
    border: 2px solid rgba(253, 248, 240, 0.2);
    border-radius: 20px;
    top: 20%;
    left: 8%;
    transform: rotate(25deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(237, 201, 168, 0.15);
    top: 60%;
    right: 10%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(253, 248, 240, 0.25) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 40%;
    right: 5%;
}

/* Floating Cards Animation */
.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;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator::after {
    content: '';
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* Reveal Animations (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);
    }
    
    .card-showcase {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .card-showcase.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .testimonial-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-heading {
    color: #C0603A !important;
}

.nav-scrolled a:not(.bg-terra-500):not(.text-white) {
    color: #374151 !important;
}

/* Category Cards */
.category-card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.category-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #F3BDB5;
    color: #572B1F;
}
