/* 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: #FFF8F6;
    color: #3a1018;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf2f4; }
::-webkit-scrollbar-thumb { background: #f39aa8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #eb6b7e; }

/* Selection */
::selection { background: #f8c5ce; color: #5a1d28; }

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
    padding: 0;
}

#navbar.scrolled .font-display {
    color: #7B2D3B;
}

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

#mobileMenu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #fce4e8;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #faddd8;
    top: 50%;
    right: -3%;
    animation-delay: -3s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #f5c0b8;
    bottom: 10%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: geoFloat 6s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #f39aa8;
    animation-delay: 0s;
}

.geo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eb6b7e;
    animation-delay: -2s;
}

.geo-square {
    width: 60px;
    height: 60px;
    background: #f8c5ce;
    animation-delay: -4s;
}

.geo-diamond {
    width: 50px;
    height: 50px;
    background: #f5c0b8;
    transform: rotate(45deg);
    animation-delay: -1s;
}

.geo-circle-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eb6b7e;
    animation-delay: -3s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.geo-square.mid-rotate {
    animation-name: geoRotate;
}

@keyframes geoRotate {
    0%, 100% { transform: rotate(12deg) translateY(0); }
    50% { transform: rotate(22deg) translateY(-15px); }
}

/* Hero Cards */
.hero-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-card {
    width: 75%;
    height: 420px;
}

.stat-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.stat-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.stat-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

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

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateX(-4px); }
    50% { transform: translateY(-16px) translateX(-4px); }
}

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

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

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

/* Area Cards */
.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 59, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1.5rem;
}

.area-card:hover::after {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    border-color: #7B2D3B !important;
}

/* Smooth anchor offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-card {
        width: 90%;
        height: 350px;
    }

    .stat-card-1 {
        top: 2%;
        left: 2%;
    }

    .stat-card-2 {
        top: 38%;
        left: 2%;
    }

    .stat-card-3 {
        bottom: 2%;
        left: 5%;
    }

    .geo-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-card {
        width: 100%;
        height: 300px;
    }

    .stat-card-1, .stat-card-2, .stat-card-3 {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        margin-bottom: 12px;
    }

    #hero {
        padding-top: 100px;
    }
}
