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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== GEOMETRIC BACKGROUND SHAPES ========== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(194, 94, 62, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 149, 90, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(194, 94, 62, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 149, 90, 0.06);
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-rect {
    width: 120px;
    height: 120px;
    background: rgba(194, 94, 62, 0.04);
    border-radius: 24px;
    bottom: 10%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-medium 14s ease-in-out infinite reverse;
}

/* ========== FLOATING CARD ANIMATIONS ========== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card-1 { animation-delay: 0s; }
.stat-card-2 { animation-delay: 1.5s; }
.stat-card-3 { animation-delay: 3s; }
.stat-card-4 { animation-delay: 4.5s; }

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

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 10px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(15px, -25px) rotate(20deg); }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C25E3E, #D4955A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.nav-scrolled #navbar > div > div {
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 30px rgba(194, 94, 62, 0.1);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.menu-line {
    display: block;
}

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

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

.mobile-menu.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== CUSTOM SELECT ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5E56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(194, 94, 62, 0.2);
    color: #2A2220;
}

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

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

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

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

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 3px solid #C25E3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== UTILITY ========== */
.geo-pattern {
    background-color: rgba(255, 255, 255, 0.03);
}
