/* --- RESET & VARIABLES --- */
:root {
    --primary-blue: #3175f9;
    --primary-dark: #0f172a;
    --accent-cyan: #00d2ff;
    --accent-purple: #8b5cf6;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Marcellus', serif;
    --font-body: 'Poppins', sans-serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --gradient-primary: linear-gradient(135deg, #3175f9 0%, #00d2ff 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
}

/* --- UTILITIES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-blue {
    color: var(--primary-blue);
}

.d-none {
    display: none;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* --- HEADER (Right Aligned) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s;
}

header.scrolled nav {
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-blue);
}

/* Navigation Container - Pushes everything to the right */
.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    /* This pushes the container to the right */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--text-main);
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- BUTTONS (Magnetic & Hover) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: #ffffff !important;
    /* Force white text */
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(49, 117, 249, 0.4);
    color: #ffffff !important;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue) !important;
    border-color: #ffffff;
}

/* --- HERO SLIDER (Advanced) --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s linear;
    /* Ken Burns Effect */
}

.slide.active .slide-bg {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    color: #ffffff;
}

.slide-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out) 0.3s;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out) 0.5s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: #ffffff;
    color: var(--primary-blue);
}

/* --- BENTO GRID (Vibrant) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
    margin-top: 60px;
}

.bento-item {
    background: var(--bg-body);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Default gradient if image fails */
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 2;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

/* Vibrant Overlays */
.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
    transition: background 0.3s;
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(49, 117, 249, 0.9) 0%, rgba(49, 117, 249, 0.3) 60%, transparent 100%);
}

.bento-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.bento-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bento-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* --- FAQ ACCORDION --- */
.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: all 0.3s;
}

.accordion-header:hover {
    color: var(--primary-blue);
    background: #f8fafc;
}

.accordion-header.active {
    color: var(--primary-blue);
    background: #f0f9ff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    color: var(--text-light);
    background: #fff;
}

.accordion-content p {
    padding-bottom: 20px;
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding: 100px 0 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-item.large {
        grid-column: span 2;
        height: 400px;
    }

    .bento-item.medium {
        grid-column: span 1;
        height: 300px;
    }

    .bento-item {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: none;
    }

    /* Hide desktop nav */
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-dark);
    }

    /* Mobile Menu */
    .nav-links-mobile {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        gap: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links-mobile.active {
        right: 0;
    }

    .nav-links-mobile a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-dark);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }
}