/* ============================================================
   KWIAT INDYGO — Landing Page Custom Styles
   Companion to Tailwind CSS (loaded via CDN)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Manrope:wght@400;500;600;700;800&display=swap');

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

/* === HOLISTIC AMBIENT BACKGROUND === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    /* Magnolia & Soft Violet glows + organic paper noise */
    background-image:
        radial-gradient(circle at 5% 10%, rgba(255, 240, 245, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 95% 15%, rgba(245, 230, 255, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(167, 139, 202, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 240, 245, 0.2) 0%, transparent 55%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 150px 150px;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
    background-color: #fdfbff;
    /* Magnolia White base */
}

/* === STATIC SIDE FLOWERS === */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -6;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23d6c1eb' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.5C14 19 16 17 16 14C16 11 14 9 12 9C10 9 8 11 8 14C8 17 10 19 12 21.5Z' opacity='0.8'/%3E%3Cpath d='M12 2.5C10 5 8 7 8 10C8 13 10 15 12 15C14 15 16 13 16 10C16 7 14 5 12 2.5Z' opacity='0.8'/%3E%3Cpath d='M2.5 12C5 14 7 16 10 16C13 16 15 14 15 12C15 10 13 8 10 8C7 8 5 10 2.5 12Z' opacity='0.8'/%3E%3Cpath d='M21.5 12C19 10 17 8 14 8C11 8 9 10 9 12C9 14 11 16 14 16C17 16 19 14 21.5 12Z' opacity='0.8'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23e2d6ef' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.5C14 19 16 17 16 14C16 11 14 9 12 9C10 9 8 11 8 14C8 17 10 19 12 21.5Z' opacity='0.8'/%3E%3Cpath d='M12 2.5C10 5 8 7 8 10C8 13 10 15 12 15C14 15 16 13 16 10C16 7 14 5 12 2.5Z' opacity='0.8'/%3E%3Cpath d='M2.5 12C5 14 7 16 10 16C13 16 15 14 15 12C15 10 13 8 10 8C7 8 5 10 2.5 12Z' opacity='0.8'/%3E%3Cpath d='M21.5 12C19 10 17 8 14 8C11 8 9 10 9 12C9 14 11 16 14 16C17 16 19 14 21.5 12Z' opacity='0.8'/%3E%3C/svg%3E");
    background-size: 50vw auto;
    background-repeat: no-repeat;
    /* Position the flowers so they are clipped by the screen edges */
    background-position: left -25vw top 10%, right -25vw bottom 10%;
    opacity: 0.15;
    /* Subtle and soft */
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.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;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* === HERO BACKGROUND ZOOM === */
.hero-bg-zoom {
    transition: transform 12s ease-out;
}

.hero-bg-zoom:hover {
    transform: scale(1.08);
}

/* === GRADIENT OVERLAYS === */
.gradient-hero {
    background: linear-gradient(135deg,
            rgba(26, 16, 64, 0.82) 0%,
            rgba(59, 45, 139, 0.60) 35%,
            rgba(123, 94, 167, 0.40) 65%,
            transparent 100%);
}

/* === HEADING FONT OVERRIDE === */
.font-display-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* === BADGE GLOW === */
.badge-glow {
    animation: badge-pulse 3s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 8px rgba(123, 94, 167, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(123, 94, 167, 0.5);
    }
}

/* === CARD HOVER EFFECTS === */
.card-hover {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 45, 139, 0.18);
}

/* === ICON ORB ANIMATION === */
.orb-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.3);
    animation: ring-pulse 5s ease-in-out infinite;
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

/* === FLOATING PARTICLES === */
.floating-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.6);
    animation: float-up 14s linear infinite;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.floating-particle:nth-child(1) {
    left: 12%;
    animation-delay: 0s;
}

.floating-particle:nth-child(2) {
    left: 28%;
    animation-delay: 3s;
}

.floating-particle:nth-child(3) {
    left: 45%;
    animation-delay: 6s;
}

.floating-particle:nth-child(4) {
    left: 62%;
    animation-delay: 1.5s;
}

.floating-particle:nth-child(5) {
    left: 80%;
    animation-delay: 4.5s;
}

.floating-particle:nth-child(6) {
    left: 92%;
    animation-delay: 7.5s;
}

/* === SPARKLE / TWINKLE === */
.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(240, 214, 138, 0.7);
    animation: sparkle-twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sparkle-twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.15;
        transform: scale(1.2);
    }
}

/* === MOBILE MENU === */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* === CTA SHIMMER === */
.cta-shimmer {
    position: relative;
    overflow: hidden;
}

.cta-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* === STAT COUNTER BORDER === */
.stat-divider:not(:last-child) {
    border-right: 1px solid rgba(123, 94, 167, 0.15);
}

@media (max-width: 768px) {
    .stat-divider:not(:last-child) {
        border-right: none;
    }
}

/* === SECTION SEPARATOR === */
.section-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
    margin: 0 auto 1.5rem;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}