/* ============================================
   LUMORA TENDA — Global Styles
   ============================================ */

/* ---- Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Heading font */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

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

::-webkit-scrollbar-track {
    background: #0a1035;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}


/* ============================================
   NAVBAR
   ============================================ */

/* Fixed Outer Corner Masks (Far Left & Far Right) */
/* These ensure the top rounded corners of the layout never disappear when scrolling */
#main-navbar::before,
#main-navbar::after {
    content: '';
    position: absolute;
    top: 19px;
    /* Overlap 1px with the top white bar */
    width: 20px;
    height: 20px;
    z-index: -1;
    pointer-events: none;
}

#main-navbar::before {
    left: 0;
    background: radial-gradient(circle at 100% 100%, transparent 19.5px, #ffffff 20.5px);
}

#main-navbar::after {
    right: 0;
    background: radial-gradient(circle at 0% 100%, transparent 19.5px, #ffffff 20.5px);
}

/* Glass effect for navbar background */
.navbar-glass {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Smart Navbar Hidden State */
.navbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0;
    pointer-events: none;
}

/* --- Logo Card (Protruding DOWN below the navbar) --- */
.navbar-logo-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-radius: 15px;
    box-shadow:
        0 10px 35px rgba(10, 16, 53, 0.15),
        0 2px 10px rgba(10, 16, 53, 0.08);
    padding: 8px 12px 16px 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When scrolled — logo card shrinks */
.navbar-logo-card.scrolled {
    padding: 6px 8px 12px 8px;
    border-radius: 12px;
    box-shadow:
        0 6px 20px rgba(10, 16, 53, 0.1),
        0 2px 6px rgba(10, 16, 53, 0.05);
}

.navbar-logo-card.scrolled img {
    height: 40px;
}

/* Nav Menu Hover Animation */
.nav-menu a:not(.no-hover-line) {
    position: relative;
    display: inline-block;
}

.nav-menu a:not(.no-hover-line)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #f8971d;
    transition: width 0.3s ease;
}

.nav-menu a:not(.no-hover-line):hover::after {
    width: 100%;
}

.navbar-logo-card img {
    height: 56px;
    width: 80px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.navbar-logo-card.scrolled img {
    height: 40px;
    width: 60px;
}

/* Subtle float animation for logo */
@keyframes logoFloat {

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

    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

.navbar-logo-card {
    animation: logoFloat 4s ease-in-out infinite;
}

/* --- Dropdown Menu --- */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease-out;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Nav Link Underline Animation --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #1e40af;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

/* --- Chevron Rotate --- */
.chevron-icon {
    transition: transform 0.25s ease;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}


/* ============================================
   HERO SECTION & CAROUSEL
   ============================================ */
.hero-overlay {
    background: linear-gradient(135deg,
            rgba(10, 16, 53, 0.78) 0%,
            rgba(30, 64, 175, 0.50) 50%,
            rgba(10, 16, 53, 0.68) 100%);
}

/* Swiper Customization */
.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 99px;
    background: #eab308;
    /* Yellow accent */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}


/* ============================================
   UTILITY & ANIMATIONS
   ============================================ */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 16, 53, 0.12);
}

/* Button hover lift */
.btn-lift {
    transition: all 0.3s ease;
}

.btn-lift:hover {
    transform: translateY(-2px);
}


/* --- Custom AOS Curtain Reveal --- */
[data-aos="reveal-right"] {
    clip-path: inset(0 100% 0 0);
    transition-property: clip-path;
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

[data-aos="reveal-right"].aos-animate {
    clip-path: inset(0 0 0 0);
}

/* --- Smooth Swiper Transition --- */
.hero-main-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* --- Navbar Hidden on Scroll --- */
.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}