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

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

body {
    background-color: #FDF8F4;
    color: #2A1F18;
}

::selection {
    background-color: #d14f28;
    color: #FDF8F4;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(253, 248, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 188, 148, 0.2);
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    box-shadow: 0 4px 30px rgba(42, 31, 24, 0.06);
}

/* ===== Hero Animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-shape {
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-shape.shape-circle-2 {
    animation: floatMedium 6s ease-in-out infinite;
    animation-delay: -2s;
}

.hero-shape.shape-circle-3 {
    animation: floatFast 5s ease-in-out infinite;
    animation-delay: -1s;
}

.hero-shape.shape-triangle {
    animation: floatMedium 7s ease-in-out infinite;
    animation-delay: -3s;
}

.hero-shape.shape-diamond {
    animation: floatSlow 9s ease-in-out infinite;
    animation-delay: -4s;
}

.hero-content {
    animation: slideInUp 0.8s ease-out both;
}

.hero-content:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-content:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-content:nth-child(4) {
    animation-delay: 0.3s;
}

.hero-content:nth-child(5) {
    animation-delay: 0.4s;
}

.hero-image {
    animation: scaleIn 1s ease-out 0.2s both;
}

.hero-float {
    animation: floatMedium 5s ease-in-out infinite;
    animation-delay: -1s;
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ===== Process Steps ===== */
.process-step {
    animation: slideInUp 0.6s ease-out both;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    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; }

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

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

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

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

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
    .hero-shape.shape-circle-1 {
        width: 60vh;
        height: 60vh;
    }
    
    .hero-shape.shape-circle-2 {
        width: 40vh;
        height: 40vh;
    }
}
