:root {
    /* Premium Corporate Palette */
    --primary-color: #0f172a;
    /* Midnight Blue - Authority */
    --secondary-color: #334155;
    /* Slate - Stability */
    --accent-color: #0ea5e9;
    /* Sky Blue - Trust & Innovation */
    --accent-hover: #0284c7;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --top-bar-height: 40px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: #f1f5f9;
    /* Light contrast background for fallback */
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    position: relative;
}

#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle effect */
    background: radial-gradient(circle at top right, #f8fafc, #e2e8f0);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
}

/* Utilities */
.text-accent {
    color: var(--accent-color);
}

.text-white {
    color: var(--white);
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: rgba(241, 245, 249, 0.85);
    /* More solid */
    backdrop-filter: blur(5px);
}

.dark-bg {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    z-index: 1;
    /* Keep contact section solid/on top if needed, or make transparent too */
}

.block-hidden-mobile {
    display: block;
}

.mt-20 {
    margin-top: 20px;
}

.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Scroll Animation */
/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.2s;
}

.delay-200 {
    transition-delay: 0.4s;
}

.delay-300 {
    transition-delay: 0.6s;
}

.delay-400 {
    transition-delay: 0.8s;
}

.delay-500 {
    transition-delay: 1.0s;
}

.delay-600 {
    transition-delay: 1.2s;
}

.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary-small {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    /* Force white text */
    background-color: #25D366;
    /* WhatsApp Green */
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-nav:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-nav i {
    font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    height: var(--top-bar-height);
    color: #cbd5e1;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact,
.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-contact i,
.top-right i {
    color: var(--accent-color);
    margin-right: 5px;
}

.top-right a {
    color: #cbd5e1;
}

.top-right a:hover {
    color: var(--white);
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: calc(100vh - var(--header-height) - var(--top-bar-height));
    min-height: 600px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.badige {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#hero h1 {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

#hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Brands Carousel (Infinite Scroll) */
.brands-section {
    padding: 40px 0;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brands-carousel::before,
.brands-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.brands-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.brands-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.brands-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
    opacity: 0.7;
    transition: 0.3s;
    user-select: none;
}

.brand-item:hover {
    color: var(--primary-color);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }

    /* Adjust based on gap */
}


/* Services */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sub-title {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Smaller min-width for mobile */
    gap: 40px;
    justify-content: center;
    /* Center items */
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.card-image {
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 40px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-list {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--accent-color);
}

/* Why Us */
.benefits-list {
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.b-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.b-text h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.stats-box {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.t-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* Contact */
.contact-form {
    background: var(--white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    margin: 0 auto;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
}

.block-btn {
    width: 100%;
}

/* Corporate Footer */
.corporate-footer {
    background-color: #020617;
    /* Even darker than primary */
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.brand-col p {
    margin-top: 20px;
    line-height: 1.8;
}

.footer-logo {
    color: var(--white);
    font-size: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: #94a3b8;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.contact-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Mobile Nav Styles */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    z-index: 999;
    visibility: hidden;
    /* Fix: Hide from DOM/Layout when closed */
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    /* Fix: Show when open */
}

.mobile-nav ul {
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        width: 100%;
        padding: 0 24px;
    }

    .block-hidden-mobile {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    #hero {
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Float */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #94a3b8;
    opacity: 0.7;
    transition: 0.3s;
}

.brand-item:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.process-step h4 {
    margin-top: 20px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    z-index: 2;
    position: relative;
}

/* Responsive Process */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        display: flex !important;
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: auto;
        left: 20px;
        /* Moved to LEFT */
        z-index: 2147483647;
        font-size: 2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border: 2px solid #fff;
    }
}

@media (max-width: 1200px) {
    .whatsapp-btn {
        display: flex !important;
        justify-content: center;
        align-items: center;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 2147483647 !important;
        bottom: 20px !important;
        right: 20px !important;
        /* BACK TO RIGHT */
        left: auto !important;
        position: fixed !important;
        border-radius: 50%;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }
}

/* Service Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Dark overlay */
    backdrop-filter: blur(8px);
    /* Glassmorphism */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    border: 1px solid var(--border-color);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.modal-body {
    text-align: center;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.impact-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

#modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Make service cards interactive */
.service-card {
    cursor: pointer;
}