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

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

body {
    min-height: 100vh;
}

/* Selection color */
::selection {
    background-color: rgba(123, 45, 59, 0.2);
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

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

.geo-burgundy-circle {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -200px;
}

.geo-blush-square {
    width: 300px;
    height: 300px;
    background: rgba(255, 179, 200, 0.12);
    border-radius: 40px;
    top: 30%;
    right: 5%;
    transform: rotate(25deg);
}

.geo-burgundy-stripe {
    width: 8px;
    height: 400px;
    background: linear-gradient(to bottom, transparent, rgba(123, 45, 59, 0.15), transparent);
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-blush-dot {
    width: 20px;
    height: 20px;
    background: rgba(255, 79, 125, 0.3);
    border-radius: 50%;
    top: 25%;
    left: 15%;
}

.geo-burgundy-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(123, 45, 59, 0.05);
    bottom: 10%;
    right: 15%;
    transform: rotate(30deg);
}

/* Scroll line animation */
.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #a8a29e);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@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:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transform: translateY(40px);
        opacity: 0;
        transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.5s ease;
    }
    .service-card.revealed {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Approach cards */
.approach-card {
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .approach-card {
        transform: translateY(40px);
        opacity: 0;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .approach-card.revealed {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu .menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu .menu-line.active:nth-child(2) {
    opacity: 0;
}
#mobile-menu .menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .mobile-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
    #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
    #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
    #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
    #mobile-menu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
    .absolute.-bottom-6.-left-6 {
        animation: float 4s ease-in-out infinite;
    }
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .scroll-indicator { display: none; }
    body { color: #000; background: #fff; }
}
