/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
#site-header.scrolled {
    background: rgba(250, 245, 251, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}
#site-header.scrolled .font-heading { color: #401749; }

/* ===== HERO BLOBS ===== */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: #e8d0ef;
    top: -10%; left: -5%;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: #fde68a;
    top: 20%; right: -5%;
    animation-delay: -2s;
    animation-duration: 10s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: #f3e8f7;
    bottom: 5%; left: 30%;
    animation-delay: -4s;
    animation-duration: 12s;
}
.blob-4 {
    width: 200px; height: 200px;
    background: #fcd34d;
    top: 60%; left: 5%;
    animation-delay: -6s;
    animation-duration: 9s;
    opacity: 0.3;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shape {
    position: absolute;
    opacity: 0.15;
    animation: shapeDrift 12s ease-in-out infinite;
}
.shape-1 {
    width: 80px; height: 80px;
    background: #F5A623;
    top: 15%; left: 8%;
    border-radius: 16px;
    transform: rotate(45deg);
    animation-delay: 0s;
}
.shape-2 {
    width: 50px; height: 50px;
    background: #7B2D8E;
    top: 40%; left: 2%;
    border-radius: 50%;
    animation-delay: -3s;
    animation-duration: 14s;
}
.shape-3 {
    width: 120px; height: 120px;
    border: 4px solid #e8d0ef;
    top: 10%; right: 10%;
    border-radius: 24px;
    transform: rotate(20deg);
    animation-delay: -5s;
    animation-duration: 16s;
    opacity: 0.25;
}
.shape-4 {
    width: 0; height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #fde68a;
    bottom: 20%; right: 5%;
    opacity: 0.3;
    animation-delay: -7s;
    animation-duration: 11s;
}
@keyframes shapeDrift {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 45deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--rot, 45deg) + 10deg)); }
}
.shape-1 { --rot: 45deg; }
.shape-3 { --rot: 20deg; }

/* ===== HERO FLOAT CARDS ===== */
.hero-float-card {
    animation: floatCard 4s ease-in-out infinite;
}
.card-stat-1 { animation-delay: 0s; }
.card-stat-2 { animation-delay: -1.3s; }
.card-stat-3 { animation-delay: -2.6s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 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, #F5A623, #e8d0ef);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-card:hover::before { transform: scaleX(1); }

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123,45,142,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== ABOUT SHAPES ===== */
.about-shape {
    position: absolute;
    opacity: 0.08;
}
.shape-about-1 {
    width: 400px; height: 400px;
    background: #F5A623;
    top: -100px; right: -100px;
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite;
}
.shape-about-2 {
    width: 200px; height: 200px;
    background: #e8d0ef;
    bottom: -50px; left: 10%;
    border-radius: 40px;
    transform: rotate(45deg);
    animation: blobFloat 8s ease-in-out infinite reverse;
}
.shape-about-3 {
    width: 150px; height: 150px;
    border: 6px solid #fde68a;
    top: 30%; left: 5%;
    border-radius: 50%;
    animation: blobFloat 12s ease-in-out infinite;
    animation-delay: -4s;
}

/* ===== TESTIMONIAL SHAPES ===== */
.testi-shape {
    position: absolute;
    opacity: 0.06;
}
.shape-testi-1 {
    width: 600px; height: 600px;
    background: #F5A623;
    top: -200px; left: -200px;
    border-radius: 50%;
    animation: blobFloat 14s ease-in-out infinite;
}
.shape-testi-2 {
    width: 400px; height: 400px;
    background: #e8d0ef;
    bottom: -150px; right: -100px;
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

/* ===== CTA SHAPES ===== */
.cta-shape {
    position: absolute;
    opacity: 0.1;
}
.shape-cta-1 {
    width: 300px; height: 300px;
    background: #7B2D8E;
    top: -80px; left: -80px;
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite;
}
.shape-cta-2 {
    width: 200px; height: 200px;
    background: #e8d0ef;
    bottom: -60px; right: 10%;
    border-radius: 40px;
    transform: rotate(30deg);
    animation: blobFloat 8s ease-in-out infinite reverse;
}

/* ===== PROCESS STEPS ===== */
.process-step::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F5A623, #e8d0ef);
    border-radius: 2px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.process-step:hover::after { opacity: 1; }

/* ===== TESTIMONIAL CARDS ===== */
.testi-card {
    transition: transform 0.3s ease, background 0.3s ease;
}
.testi-card:hover {
    transform: translateY(-4px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-float-card { display: none; }
    .hero-card-main { width: 100% !important; position: relative !important; top: auto !important; right: auto !important; }
    #hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
    .about-shape, .testi-shape, .cta-shape { display: none; }
}
