:root {
    /* Colors - Premium Dark Theme */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(30, 30, 30, 0.6);
    --primary: #3b82f6;
    /* Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    /* Purple for gradients */
    --accent: #10b981;
    /* Green for success/money */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.relative {
    position: relative;
}

.z-10 {
    position: relative;
    z-index: 10;
}

.text-white {
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: var(--blur);
    z-index: 1000;
    transition: background 0.3s ease;
    border-bottom: var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: transparent;
    /* Removed badge background */
    padding: 0;
    box-shadow: none;
}

.logo:hover {
    transform: none;
    /* Removed scale */
    background: transparent;
    box-shadow: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    /* Glow effect */
}

/* Specific colors for the SVG parts can be adjusted inline or here if using classes */
.logo-icon rect {
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(45deg);
    /* Subtle interaction */
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #111;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    gap: 20px;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-anim {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.badge-hero {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: balance;
    /* Modern CSS for balanced headlines */
    max-width: 900px;
    /* Ensure wide container to prevent early wrapping */
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, #fff, #9ca3af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Animations - Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Class (handled by JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards / Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.pillar-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pillar-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services */
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Calculators */
.calculators {
    background: linear-gradient(180deg, var(--bg-dark), #0f0f0f);
}

.calculator-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.calc-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.inputs label {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.inputs input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
    font-family: inherit;
}

.inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.results {
    background: rgba(59, 130, 246, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box span {
    color: var(--text-muted);
}

.result-box strong {
    font-size: 1.5rem;
    color: #fff;
}

.highlight-box strong {
    color: var(--accent);
    font-size: 2rem;
}

.chart-placeholder {
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    border-radius: 8px;
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.bar-chart {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: flex-end;
    width: 100%;
    justify-content: center;
}

.bar {
    width: 60px;
    background: #ef4444;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.bar.target {
    background: var(--accent);
}

.bar span {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Success Cases (Parallax) */
.parallax-container {
    padding: 150px 0;
    position: relative;
    clip-path: inset(0);
    /* Necessary for fixed bg */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/case-study-bg.svg');
    /* Placeholder needed */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple CSS Parallax */
    z-index: 0;
    opacity: 0.3;
}

.case-card {
    max-width: 800px;
    margin: 0 auto;
}

.case-content {
    text-align: center;
}

.case-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e5e7eb;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric strong {
    display: block;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.metric span {
    color: #bbb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    padding: 0 10px;
    text-align: center;
    flex: 1;
}

.step-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 15px;
}

/* FAQ */
.faq {
    background: #0f0f0f;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    /* Approximate max height */
    padding-bottom: 20px;
}

/* Contact */
.contact-box {
    display: flex;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
}

.contact-info {
    flex: 1;
    padding: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

.contact-form {
    flex: 1;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
}

.info-list {
    list-style: none;
    margin-top: 40px;
}

.info-list li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #e5e7eb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-legal {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-4,
    .grid-2,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .calc-body {
        grid-template-columns: 1fr;
    }

    .contact-box {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        padding: 40px 20px;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        margin-left: -1px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Live Stats Dashboard */
.stats-dashboard {
    background: linear-gradient(180deg, #050505, var(--bg-dark));
}

.dashboard-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.dashboard-header {
    background: #0f2b1d;
    padding: 15px 20px;
    border-bottom: 2px solid #10b981;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
}

.dash-col {
    padding: 0 20px;
}

.border-left {
    border-left: 2px solid #333;
}

.dash-col h4 {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    padding-left: 10px;
    border-left: 3px solid #666;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #d1d5db;
}

.stat-row strong {
    color: #3b82f6;
}

.dashboard-footer {
    background: #111;
    padding: 10px 20px;
    text-align: right;
    border-top: 1px solid #333;
    color: #666;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .border-left {
        border-left: none;
        border-top: 1px solid #333;
        padding-top: 30px;
    }
}