/* RESET & CUSTOM PROPERTIES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Technological Colors */
    --primary: #020617;
    /* Very Dark Blue/Black */
    --primary-light: #0f172a;
    --secondary: #4f46e5;
    /* Indigo 600 */
    --secondary-hover: #4338ca;
    --accent: #06b6d4;
    /* Cyan 500 */
    --whatsapp: #25D366;

    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 8rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-dark {
    background-color: var(--primary);
    color: var(--text-light);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.bg-dark .section-title {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 4rem;
}

.bg-dark .section-subtitle {
    color: #94a3b8;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    /* Modern slightly rounded edge */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

.bg-dark .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-dark .btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    color: white;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* For dark headers on specific inner pages */
.header.header-dark {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.header-dark.scrolled {
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
}

.header.header-dark .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.header.header-dark .nav-link:hover {
    color: white;
}

.header.header-dark .logo-text {
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo i {
    color: var(--secondary);
}

.logo-text {
    color: var(--text-dark);
}

.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.02);
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-normal);
}

.footer-logo-img:hover {
    transform: scale(1.02);
}


.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
}

.header.header-dark .mobile-toggle {
    color: white;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    display: flex;
    align-items: center;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* PROBLEMS SECTION */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.problem-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    /* Red */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link:hover {
    color: var(--secondary);
    gap: 0.75rem;
    /* slight movement */
}

/* BENEFITS SECTION (Dark) */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.benefits-image {
    position: relative;
}

.benefits-image-inner {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Simulated Growth Chart in CSS */
.growth-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-bar {
    width: 15%;
    background: linear-gradient(to top, rgba(79, 70, 229, 0.5), var(--secondary));
    border-radius: 6px 6px 0 0;
    animation: growBar 1.5s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.chart-bar:nth-child(1) {
    height: 30%;
    animation-delay: 0.1s;
}

.chart-bar:nth-child(2) {
    height: 45%;
    animation-delay: 0.3s;
}

.chart-bar:nth-child(3) {
    height: 60%;
    animation-delay: 0.5s;
    background: linear-gradient(to top, rgba(6, 182, 212, 0.5), var(--accent));
}

.chart-bar:nth-child(4) {
    height: 90%;
    animation-delay: 0.7s;
    background: linear-gradient(to top, rgba(37, 211, 102, 0.5), var(--whatsapp));
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* PROCESS SECTION */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    counter-reset: process-counter;
}

/* Dashed line connecting steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(to right, rgba(79, 70, 229, 0.3) 50%, transparent 50%);
    background-size: 15px 100%;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px var(--bg-alt);
    /* To cut the dashed line */
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SUCCESS CASES */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--primary);
    border-radius: 16px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    transform: translate(30%, -30%);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.case-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.case-industry {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.case-desc {
    color: #cbd5e1;
    font-style: italic;
}

/* CONTACT SECTION / CTA */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-hover), var(--secondary));
    color: white;
    text-align: center;
    padding: 6rem 0;
    border-radius: 20px;
    margin: 4rem 2rem;
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* FOOTER */
.footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* INNER PAGES HEADER */
.inner-hero {
    padding: 10rem 0 6rem;
    background-color: var(--primary);
    text-align: center;
    color: white;
}

.inner-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.inner-hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* CONTENT COMPONENT */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-top: -3rem;
    /* Overlap the hero */
    position: relative;
    z-index: 10;
}

.content-wrapper h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-wrapper ul li::before {
    content: '→';
    position: absolute;
    left: -0.5rem;
    color: var(--secondary);
    font-weight: bold;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ANIMATIONS (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media(max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .inner-hero {
        padding: 7rem 0 4rem;
    }

    .inner-hero h1 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-normal);
        z-index: 99;
    }

    .nav-menu a {
        font-size: 1.25rem;
        padding: 1rem 0;
    }

    .header.header-dark .nav-menu {
        background-color: var(--primary);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 100;
        position: relative;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefits-image-inner {
        padding: 1.5rem;
    }

    .case-stats {
        flex-direction: column;
        gap: 1rem;
    }
}