/* ===========================================================
   GLOBAL STYLES
=========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #0e0b1d;
    color: #fff;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('/assets/img/noise.png');
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

/* CINEMATIC GLOW */
.light-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(185,107,255,0.45), rgba(0,0,0,0));
    filter: blur(90px);
    z-index: -1;
}


/* ===========================================================
   NAVBAR
=========================================================== */
.navbar {
    width: 100%;
    padding: 18px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 14, 36, 0.55);
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: #b96bff;
}

.navbar nav {
    display: flex;
    gap: 24px;
}

.navbar nav a {
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    transition: 0.25s;
    font-size: 14px;
}

.navbar nav a:hover {
    color: #b96bff;
}

.btn-login {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #b96bff;
    color: #fff !important;
    transition: .25s;
}

.btn-login:hover {
    background: #b96bff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 20px;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

/* === NAVBAR LOGO GLOW === */
.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    left: -8px;
    top: -8px;
    width: 110%;
    height: 110%;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(185,107,255,0.25), transparent 70%);
    opacity: 0;
    filter: blur(12px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.0; }
    50% { opacity: 0.5; }
}

/* ===========================================================
   HERO SECTION FINAL
=========================================================== */
.hero {
    position: relative;
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 80px;
    padding-right: 80px;
    gap: 60px;
    background: radial-gradient(circle at top left, #512da8, #0e0b1d);
    overflow: hidden;
}

/* LEVEL 2 — AMBIENT MOVING GLOW */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(185,107,255,0.25), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(0,255,200,0.18), transparent 60%);
    animation: heroGlow 12s ease-in-out infinite alternate;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* LEVEL 3 — FLOATING PARTICLES */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.34);
    border-radius: 50%;
    filter: blur(2px);
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    100% { transform: translateY(-180px) scale(1.3); opacity: 0; }
}

/* LEVEL 4 — SPOTLIGHT BEHIND TEXT */
.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 3;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -60px;
    width: 380px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    filter: blur(35px);
    z-index: -1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(185,107,255,0.3);
}

.hero-content p {
    margin-top: 15px;
    font-size: 18px;
    opacity: .85;
}

/* HERO IMAGE */
.hero-img {
    position: relative;
    z-index: 3;
}

.hero-img img {
    width: 420px;
    filter: drop-shadow(0 0 25px rgba(185,107,255,0.4));
    animation: floatHero 4s ease-in-out infinite;
}

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

/* FLOATING LOGO */
.hero-floating-logo {
    position: absolute;
    bottom: 40px;
    right: 40px;
    opacity: 0.25;
    animation: floatLogo 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}

.hero-floating-logo img {
    width: 90px;
    filter: drop-shadow(0 0 12px rgba(185,107,255,0.35));
}

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


.btn-primary {
    display: inline-block;
    margin-top: 28px;
    background: #b96bff;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

/* SHIMMER BUTTON EFFECT */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; 
    left: -100%;
    width: 100%; 
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: .4s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: #a757ff;
    transform: translateY(-3px);
}

.hero-img img {
    width: 420px;
    filter: drop-shadow(0 0 25px rgba(185, 107, 255, 0.4));
    animation: float 4s ease-in-out infinite;
}

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


/* ===========================================================
   REVEAL ANIMATION
=========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}

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


/* ===========================================================
   ABOUT
=========================================================== */
.about {
    padding: 100px 80px 60px;
    text-align: center;
    background: #120f24;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    opacity: .85;
}


/* ===========================================================
   WHY KAVRA (NEW SECTION)
=========================================================== */
.why-kavra {
    padding: 120px 80px;
    background: #0f0c1f;
    text-align: center;
}

.why-kavra h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 24px;
    transition: .3s;
}

.why-box:hover {
    transform: translateY(-6px);
    border-color: #b96bff;
    box-shadow: 0 0 25px rgba(185,107,255,0.25);
}


/* ===========================================================
   SERVICES
=========================================================== */
.services {
    padding: 120px 80px;
    text-align: center;
    background: #120f24;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 45px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    transition: .25s;
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: #b96bff;
    box-shadow: 0 0 20px rgba(185, 107, 255, 0.3);
}

.service-box h3 {
    color: #b96bff;
    margin-bottom: 10px;
}


/* ===========================================================
   GALLERY (UPGRADED)
=========================================================== */
.gallery {
    padding: 120px 80px;
    background: #0e0b1d;
    text-align: center;
}

.gallery h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* PREMIUM GALLERY ITEM */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: .4s;
    border-radius: 16px;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    font-size: 16px;
    padding-top: 40px;
    opacity: 0;
    transition: .3s;
}

.gallery-item:hover .gallery-overlay {
    height: 100%;
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9990;
}

.lightbox img {
    width: 70%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}


/* ===========================================================
   TESTIMONI
=========================================================== */
.testimoni {
    padding: 120px 80px;
    background: #120f24;
    text-align: center;
}

.testimoni h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.testi-slider {
    display: flex;
    justify-content: center;
}

.testi-card {
    width: 360px;
    background: rgba(255,255,255,0.06);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    transition: .25s;
    display: none;
}

.testi-card:first-child {
    display: block;
}

.testi-card:hover {
    transform: translateY(-6px);
    border-color: #b96bff;
    box-shadow: 0 0 20px rgba(185,107,255,0.3);
}

.testi-card p {
    font-size: 16px;
    opacity: .85;
    margin-bottom: 14px;
}

.testi-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #b96bff;
}


/* ===========================================================
   CONTACT
=========================================================== */
.contact {
    padding: 100px 80px;
    background: #0e0b1d;
    text-align: center;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact p {
    opacity: .8;
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-box {
    background: rgba(255,255,255,0.05);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-box h3 {
    margin-bottom: 8px;
    color: #b96bff;
}

.contact-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #b96bff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}

.contact-btn:hover {
    background: #a757ff;
}


/* ===========================================================
   FOOTER
=========================================================== */
.footer {
    padding: 40px;
    background: #0d0a19;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}


/* FLOATING WHATSAPP */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    padding: 14px 20px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0,0,0,.3);
    text-decoration: none;
    z-index: 9000;
    transition: .25s;
    font-size: 14px;
}

.wa-float:hover {
    transform: scale(1.08);
}


/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 40px 80px;
    }

    .hero-img img {
        width: 320px;
    }

    .services,
    .gallery,
    .testimoni,
    .contact,
    .about,
    .why-kavra {
        padding: 80px 40px;
    }

    .navbar {
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .navbar nav {
        position: absolute;
        top: 60px;
        right: 16px;
        padding: 16px;
        background: rgba(16,14,36,0.96);
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        display: none;
        min-width: 180px;
    }

    .navbar.open nav {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    .testi-card {
        width: 100%;
    }

    .wa-float {
        right: 16px;
        bottom: 16px;
        font-size: 13px;
        padding: 10px 16px;
    }
}
