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

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

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

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(80, 7, 36, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled #nav-logo-text {
    color: white;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fbbf24;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f472b6;
    bottom: 20%;
    left: 5%;
    opacity: 0.06;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fbbf24;
    top: 40%;
    right: 15%;
    opacity: 0.1;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: #fbbf24;
    top: 15%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.06;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: #f472b6;
    bottom: 30%;
    right: 8%;
    transform: rotate(30deg);
    opacity: 0.08;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fbbf24;
    top: 60%;
    left: 3%;
    opacity: 0.05;
}

.shape-diamond-1 {
    width: 80px;
    height: 80px;
    background: #fbbf24;
    top: 25%;
    right: 30%;
    transform: rotate(45deg);
    opacity: 0.07;
}

/* ===== FLOATING STAT CARDS ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

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

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

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

/* ===== HERO GEO ANIMATIONS ===== */
.hero-geo {
    animation: drift 20s ease-in-out infinite;
}

.shape-circle-1 { animation-delay: 0s; animation-duration: 25s; }
.shape-circle-2 { animation-delay: -5s; animation-duration: 20s; }
.shape-circle-3 { animation-delay: -10s; animation-duration: 18s; }
.shape-square-1 { animation-delay: -3s; animation-duration: 22s; }
.shape-square-2 { animation-delay: -7s; animation-duration: 16s; }
.shape-triangle-1 { animation-delay: -2s; animation-duration: 24s; }
.shape-diamond-1 { animation-delay: -8s; animation-duration: 19s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 15px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(7deg); }
}

/* ===== 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);
    }

    /* Stagger children */
    .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; }
}

/* Default: always visible for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    z-index: 1;
}

/* ===== PROCESS CARDS ===== */
.process-card {
    position: relative;
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    display: block;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    translate: 0;
    pointer-events: auto;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }

    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }

    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1,
    .shape-diamond-1 {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
