body {
    background-color: #FDFBF7;
    color: #3D3124;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.font-druk { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; letter-spacing: 0; }
.font-serif-italic { font-family: 'Playfair Display', serif; font-style: italic; }

html { scroll-behavior: smooth; }

/* Custom styling for giant text */
.giant-text {
    font-size: clamp(4rem, 15vw, 15rem);
    line-height: 0.8;
    color: #5C4B37;
    -webkit-text-stroke: 0px transparent;
}

/* Glassmorphism base for cards - simplified for performance */
.glass-card {
    background-color: rgba(255, 255, 255, 0.86);
    border: 2px solid rgba(214, 200, 179, 0.5);
    box-shadow: 0 2px 8px rgba(92, 75, 55, 0.05);
    transition: transform 0.2s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(92, 75, 55, 0.1) !important;
}

/* --- CLASS ANIMASI FILL SCRUB BARU --- */
.anim-fill-text-dark {
    color: #3D3124;
    -webkit-text-stroke: 0 transparent;
}
.anim-fill-text-light {
    color: #FDFBF7;
    -webkit-text-stroke: 0 transparent;
}
.anim-fill-text-brown {
    color: #A67B5B;
    -webkit-text-stroke: 0 transparent;
}
.anim-fill-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(214, 200, 179, 0.75);
    color: #3D3124;
}

#features,
#faq-use-cases {
    perspective: 1200px;
}

.book-open-card {
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.book-open-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(61, 49, 36, 0.18), rgba(255, 255, 255, 0) 42%);
    transition: opacity 0.2s ease;
}

.book-open-card::after {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    width: 2px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    background: rgba(61, 49, 36, 0.24);
    box-shadow: 0 0 18px rgba(61, 49, 36, 0.18);
    transition: opacity 0.2s ease;
}

.book-open-card.book-open-from-left::after {
    left: 0;
}

.book-open-card.book-open-from-right::before {
    background: linear-gradient(270deg, rgba(61, 49, 36, 0.18), rgba(255, 255, 255, 0) 42%);
}

.book-open-card.book-open-from-right::after {
    right: 0;
}

.book-open-card.is-opening::before {
    opacity: 1;
}

.book-open-card.is-opening::after {
    opacity: 1;
}

/* Pricing cards should always be visible */
#pricing .pricing-card.anim-fill-card {
    background-color: rgba(245, 239, 230, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(214, 200, 179, 0.5);
}

/* Pricing card text should always be visible */
#pricing .anim-fill-text-dark {
    color: #3D3124;
    -webkit-text-stroke: 0px transparent;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5EFE6; }
::-webkit-scrollbar-thumb { background: #D6C8B3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #A67B5B; }

#particleCanvas {
    display: block;
    z-index: 1 !important;
    opacity: 0.9;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #A67B5B, #3D3124);
    pointer-events: none;
}

.reveal-mask-up,
.reveal-mask-down,
.reveal-mask-left,
.reveal-mask-right {
    clip-path: inset(0);
    opacity: 1;
}

.reveal-scale,
.feature-card,
.stagger-reveal > * {
    opacity: 1;
}

.reveal-scale {
    transform: none;
}

.bg-white,
.bg-white\/50,
.bg-white\/80 {
    color: #3D3124;
}

.bg-cream-900 .anim-fill-card {
    background-color: rgba(92, 75, 55, 0.96);
    border-color: rgba(245, 239, 230, 0.16);
}

.bg-cream-900 .anim-fill-text-light,
.bg-cream-900 .footer-link {
    color: #FDFBF7;
}




.global-animated-dots {
    position: fixed;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("images/flustra-pattern.png");
    background-size: 72px 72px;
    background-repeat: repeat;
    animation: ambientDotDrift 18s ease-in-out infinite alternate, ambientDotPulse 7s ease-in-out infinite;
}

@keyframes ambientDotDrift {
    0% { transform: translate3d(-10px, -6px, 0) scale(1); }
    50% { transform: translate3d(18px, 14px, 0) scale(1.03); }
    100% { transform: translate3d(-4px, 24px, 0) scale(0.98); }
}

@keyframes ambientDotPulse {
    0%, 100% { filter: saturate(1); opacity: 0.18; }
    45% { filter: saturate(1.2); opacity: 0.28; }
    70% { filter: saturate(1.08); opacity: 0.22; }
}

/* --- MOBILE PERFORMANCE OPTIMIZATIONS --- */
@media (max-width: 767px) {
    .hero-title-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-title-container h1 {
        width: 100%;
        overflow: visible;
        font-size: clamp(2rem, 9.5vw, 3.5rem);
        line-height: 0.95;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        gap: 0.375rem;
    }

    .hero-title-container .hero-word {
        max-width: 100%;
        white-space: nowrap;
    }

    #particleCanvas {
        opacity: 0.72;
    }

    /* Keep ambient dots light on mobile */
    .global-animated-dots {
        animation-duration: 24s, 9s;
        background-size: 64px 64px;
        opacity: 0.16;
    }
    
    /* Fallback colors for GSAP text fill animations when disabled on mobile */
    .anim-fill-text-dark {
        color: #3D3124;
        -webkit-text-stroke: 0px transparent;
    }
    .anim-fill-text-light {
        color: #FDFBF7;
        -webkit-text-stroke: 0px transparent;
    }
    .anim-fill-text-brown {
        color: #A67B5B;
        -webkit-text-stroke: 0px transparent;
    }
    
    /* Fallback for cards when GSAP fill animations are disabled */
    .bg-cream-900 .anim-fill-card {
        background-color: rgba(92, 75, 55, 1);
        border-color: rgba(92, 75, 55, 0.5);
    }
    .anim-fill-card:not(.bg-cream-900 .anim-fill-card) {
        background-color: rgba(245, 239, 230, 0.7);
        border-color: rgba(214, 200, 179, 0.5);
    }
    
    /* Remove heavy blurs to boost scroll FPS */
    .backdrop-blur-md, .backdrop-blur-sm, .glass-card, .anim-fill-card {
        backdrop-filter: none !important;
    }
    
    /* Disable background blobs completely on mobile. 
       Large blurs + mix-blend-mode will destroy mobile GPU performance 
       and cause the hero animation to stutter. */
    .animate-blob {
        display: none !important;
    }

    .floating-shape,
    .breathe,
    .breathe-slow,
    .breathe-slower,
    .float-y,
    .float-x,
    .float-rotate,
    .float-y-slow,
    .float-x-slow,
    .pulse-glow {
        animation: none !important;
    }
}

/* Hardware acceleration for hero animations */
.hero-line, .hero-desc, .hero-image-container {
    will-change: transform, opacity;
}

/* ======= FLOATING GEOMETRIC DECORATIONS ======= */
.floating-shape {
    position: absolute;
    pointer-events: none;
    will-change: auto;
}

.shape-circle {
    border-radius: 50%;
}

.shape-ring {
    border-radius: 50%;
    border: 3px solid currentColor;
    background: transparent !important;
}

.shape-dots {
    border-radius: 50%;
    background: transparent !important;
    background-image: url("../images/flustra-pattern.png") !important;
    background-size: 32px 32px;
    background-repeat: repeat;
}

.shape-line {
    height: 3px;
    border-radius: 2px;
}

.shape-square {
    border-radius: 8px;
}

/* ======= SMOOTH CURSOR TRAIL ======= */
.cursor-trail {
    pointer-events: none;
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A67B5B;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    display: none;
}

.cursor-glow {
    pointer-events: none;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 123, 91, 0.3) 0%, transparent 70%);
    z-index: 9998;
    display: none;
}

/* ======= SECTION MASKING / CLIP-PATH ======= */
.reveal-mask-up {
    clip-path: inset(0);
}

.reveal-mask-down {
    clip-path: inset(0);
}

.reveal-mask-left {
    clip-path: inset(0);
}

.reveal-mask-right {
    clip-path: inset(0);
}

.reveal-scale {
    transform: none;
    opacity: 1;
}

/* ======= 3D TILT EFFECT ======= */
.tilt-card {
    transform-style: flat;
    perspective: none;
}

.tilt-card-inner {
    transition: transform 0.2s ease;
    transform-style: flat;
}

.tilt-card:hover .tilt-card-inner {
    transform: rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

.tilt-glare {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.tilt-card:hover .tilt-glare {
    opacity: 1;
}

/* ======= MAGNETIC BUTTON ======= */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.magnetic-btn-content {
    position: relative;
    z-index: 1;
}

/* ======= PARALLAX CONTAINER ======= */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 120%;
    top: -10%;
    will-change: auto;
}

/* ======= WORD/CHARACTER SPLIT ======= */
.word-wrapper {
    display: inline-block;
    overflow: hidden;
}

.char-wrapper {
    display: inline-block;
    transform: none;
    opacity: 1;
}

/* ======= DRAWING ANIMATION (SVG LINES) ======= */
.draw-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.draw-line.animate {
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ======= SKEW ON SCROLL ======= */
.has-skew {
    transform: skewY(0deg);
    will-change: auto;
}

/* ======= SMOOTH IMAGE HOVER ZOOM ======= */
.img-zoom-container {
    overflow: hidden;
    border-radius: inherit;
}

.img-zoom {
    transition: transform 0.6s ease;
}

.img-zoom-container:hover .img-zoom {
    transform: scale(1.1);
}

/* ======= GLOW EFFECTS ======= */
.glow-text {
    text-shadow: 0 0 40px rgba(166, 123, 91, 0.5);
}

.glow-box {
    box-shadow: 0 0 60px rgba(166, 123, 91, 0.2);
}

/* ======= STAGGER DELAY UTILITIES ======= */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ======= RIPPLE EFFECT ======= */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ======= BREATHING ANIMATION ======= */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

.breathe-slow {
    animation: breathe 6s ease-in-out infinite;
}

.breathe-slower {
    animation: breathe 8s ease-in-out infinite;
}

/* ======= PULSE GLOW ======= */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(166, 123, 91, 0.2); }
    50% { box-shadow: 0 0 40px rgba(166, 123, 91, 0.4); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ======= FLOAT ANIMATION ======= */
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatX {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(20px); }
}

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

.float-y { animation: floatY 8s ease-in-out infinite; }
.float-x { animation: floatX 8s ease-in-out infinite; }
.float-rotate { animation: floatRotate 10s ease-in-out infinite; }
.float-y-slow { animation: floatY 12s ease-in-out infinite; }
.float-x-slow { animation: floatX 12s ease-in-out infinite; }

section {
    padding-top: 8rem;    /* Jarak atas sekitar 128px di desktop */
    padding-bottom: 8rem; /* Jarak bawah sekitar 128px di desktop */
}

/* Jika Anda menggunakan div sebagai section, Anda bisa menggunakan class ini: */
.section-spacing {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* --- MOBILE SECTION SPACING --- */
/* Menyesuaikan jarak di mobile agar layarnya tidak terlihat terlalu kosong */
@media (max-width: 767px) {
    section, .section-spacing {
        padding-top: 5rem;    /* Jarak atas sekitar 80px di mobile */
        padding-bottom: 5rem; /* Jarak bawah sekitar 80px di mobile */
    }
}

@media (min-width: 768px) {
    .tilt-card {
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    .tilt-card-inner {
        transform-style: preserve-3d;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
/* FAQ accordion smooth animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease-out, opacity 0.25s ease-out;
}
.faq-content.faq-open {
    max-height: 1000px;
    opacity: 1;
}
.faq-icon.faq-icon-rotated {
    transform: rotate(180deg);
}

/* Interactive element hover transitions */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: rgba(255,255,255,0.95);
}
.magnetic-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.magnetic-btn:hover {
    transform: translateY(-2px);
}

/* Mobile navigation */
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.96);
}

.hamburger-lines {
    position: relative;
    display: block;
    width: 24px;
    height: 18px;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
    transform-origin: center;
    transition: top 0.24s ease, transform 0.24s ease, opacity 0.18s ease;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 8px;
}

.hamburger-line:nth-child(3) {
    top: 16px;
}

.hamburger-lines.open .hamburger-line:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger-lines.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.25);
}

.hamburger-lines.open .hamburger-line:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

.mobile-menu-panel {
    display: flex;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.mobile-menu-panel.hidden {
    display: none;
}

.mobile-menu-panel.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mobile-menu-panel.is-closing {
    display: flex;
}

.mobile-menu-panel > a {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.24s ease;
}

.mobile-menu-panel.is-open > a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-panel.is-open > a:nth-child(1) {
    transition-delay: 0.04s;
}

.mobile-menu-panel.is-open > a:nth-child(2) {
    transition-delay: 0.08s;
}

.mobile-menu-panel.is-open > a:nth-child(3) {
    transition-delay: 0.12s;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}
