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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FFF8F0;
    color: #1a1412;
    overflow-x: hidden;
}

::selection {
    background: #C0593A;
    color: #FFF8F0;
}

/* ===== Navigation ===== */
#navbar {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 20, 18, 0.06);
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(26, 20, 18, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #C0593A !important;
}

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

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

/* Hamburger animation */
.hamburger-line {
    display: block;
    transition: all 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
    margin-left: 0;
}

/* ===== Hero Section ===== */
#hero {
    position: relative;
}

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

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

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

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

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

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 89, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: pulse-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 201, 160, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: pulse-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(192, 89, 58, 0.15);
    border-radius: 16px;
    top: 25%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 50px;
    height: 50px;
    background: rgba(192, 89, 58, 0.08);
    border-radius: 12px;
    bottom: 30%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(232, 201, 160, 0.2);
    top: 40%;
    right: 5%;
    transform: rotate(-15deg);
    animation: float 5s ease-in-out infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(192, 89, 58, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 15%;
    opacity: 0.5;
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

/* ===== Feature Cards ===== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }

/* ===== Button Hover Effects ===== */
a, button {
    cursor: pointer;
}

/* ===== Image Hover ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Smooth scrolling for anchor links ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1,
    .shape-dots {
        display: none;
    }
    
    #hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .geo-shape {
        display: none;
    }
    
    .shape-circle-1 {
        display: block;
        width: 250px;
        height: 250px;
    }
}

/* ===== Focus styles ===== */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #C0593A;
    outline-offset: 2px;
}

/* ===== Print styles ===== */
@media print {
    nav, #mobile-menu, .floating-card, .geo-shape {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
