:root {
    --bg-dark: #0f172a;
    /* Deep Navy for Header Scrolled/Form/Footer */
    --bg-light: #ffffff;
    /* Pure White for body sections */
    --bg-surface: #f1f5f9;
    /* Light Gray for intercalated sections */
    --bg-accent: #e5e9ec;
    /* New Reference Color (Form/Footer) */
    --blue-base: #073D69;
    /* Exact Blue from Reference */
    --blue-400: #3b82f6;
    /* Mid Blue */
    --blue-500: var(--blue-base);
    /* Primary Deep Blue */
    --blue-600: #052a4a;
    /* Darker shade of base blue */
    --accent-blue: #073D69;
    /* CTA Blue */
    --teal-400: #60a5fa;
    /* Compatibility alias */
    --teal-500: var(--blue-base);
    /* Compatibility alias */
    --teal-600: var(--blue-600);
    /* Compatibility alias */
    --emerald-500: var(--blue-base);
    /* Compatibility alias */
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-400: #94a3b8;
    --text-dark: #073D69;
    /* Using base blue for dark text headers */
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

h1 {
    color: var(--text-dark);
}

h2,
h3,
h4 {
    color: var(--text-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.align-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--teal-500);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--teal-400);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 212, 191, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--slate-400);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white) !important;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.form-separator {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-separator::before,
.form-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--teal-600);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
}

/* Hero */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    background-color: #020617;
    /* Even darker initial state */
    transition: background-color 2s ease-in-out;
}

.hero.revealed {
    background-color: var(--bg-surface);
}

/* Lighthouse Beam Effect */
.lighthouse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--beam-x, 50%) var(--beam-y, 50%), transparent 15%, rgba(2, 6, 23, 0.98) 45%);
    pointer-events: none;
    z-index: 15;
    opacity: 1;
    transition: opacity 1.4s ease-in-out;
}

.hero.revealed .lighthouse-overlay {
    opacity: 0.1;
    /* Almost transparent after reveal */
}

.hero .grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(to right, var(--blue-400), var(--blue-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-500);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-glass {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    transform: rotateY(-15deg) rotateX(10deg);
    box-shadow: 20px 40px 60px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    opacity: 0;
    filter: brightness(0.2) blur(5px);
    transition: opacity 2s ease, filter 2s ease, transform 0.8s ease;
}

.hero.revealed .dashboard-mockup {
    opacity: 1;
    filter: brightness(1) blur(0);
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.chart-container {
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 1rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100%;
    width: 100%;
}

.bar {
    flex: 1;
    background: var(--blue-500);
    opacity: 0.3;
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: barGrow 1.5s forwards cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.highlight-bar {
    background: var(--blue-500);
    opacity: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

@keyframes barGrow {
    from {
        height: 0;
    }

    to {
        height: var(--height);
    }
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: float 4s infinite ease-in-out;
}

.floating-badge span {
    font-weight: 600;
    color: var(--text-dark);
}

.emoji-large {
    font-size: 1.8rem;
    line-height: 1;
    display: inline-block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Sections */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.subtitle {
    color: var(--teal-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.secondary-bg {
    background-color: var(--bg-surface);
}

/* Problem Cards */
.card-problem {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-problem i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-problem h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-problem:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Services */
.card-service {
    padding: 1rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--teal-500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.benefit-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.benefit-list i {
    color: var(--teal-600);
    width: 18px;
}

.service-technical h3 {
    margin-bottom: 2rem;
    color: var(--teal-600);
}

.technical-grid {
    display: grid;
    gap: 1.2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-item i {
    color: var(--teal-500);
}

/* Methodology */
/* Methodology Timeline */
.steps-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.steps-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.step {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.step-card {
    width: 46%;
    padding: 1.2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.step-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--teal-600);
}

.step-icon-header i {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.step-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #e2e8f0;
}

.step-card h4 {
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Dots on the line */
.step-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    background: var(--blue-500);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Zig-Zag Positioning */
.step-left {
    justify-content: flex-start;
}

.step-right {
    justify-content: flex-end;
}

.step-left .step-card {
    margin-right: auto;
}

.step-right .step-card {
    margin-left: auto;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .steps-container::before {
        left: 30px;
    }

    .step {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .step-card {
        width: 100%;
        text-align: left;
    }

    .step-icon-header {
        justify-content: flex-start;
    }

    .step-dot {
        left: 30px;
    }

    .step-left .step-card,
    .step-right .step-card {
        margin: 0;
    }
}

/* Contact Form */
.contact-wrapper {
    padding: 4rem;
    background-color: var(--bg-accent);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-main);
}

.info-items {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--white);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-accent);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .tagline {
    margin-top: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    background-color: transparent;
    /* Changed from white backround */
    padding: 0;
    border-radius: 0;
}

.footer h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--blue-500);
}

.footer-contact i {
    color: var(--blue-500);
    width: 18px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-dark);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--blue-500);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    opacity: 0.8;
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 968px) {

    .grid-2,
    .grid-3,
    .hero .grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }


    .hero-content h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 580px) {

    .hero-actions {
        flex-direction: column;
    }

    .section-padding {
        padding: 4rem 0;
    }
}