/* ==========================================================================
   CSS Variables - Refined for "Startup Corporate" Look & Rich Visuals
   ========================================================================== */
:root {
    /* Colors - High contrast, clinical, natural tech */
    --color-bg: #F4F4F2;
    /* Retained warm light grey */
    --color-bg-alt: #FFFFFF;
    --color-primary: #374548;
    /* Dark slate from logo */
    --color-primary-light: #52666B;
    --color-text: #161D1E;
    /* Darkened for better contrast */
    --color-text-light: #4A585B;
    /* Darkened for better readability */
    --color-accent: #E5E7E6;
    --color-border: #DCE0E1;

    /* Typography - Large and airy */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    /* Increased for modern startup feel */
    --container-width: 1200px;
    /* Slightly wider for split layouts */

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 20px 40px rgba(55, 69, 72, 0.08);
    --shadow-hover: 0 30px 60px rgba(55, 69, 72, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
strong {
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
    font-weight: 300;
}

.text-muted {
    color: #8A9A9D;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--space-xl) 0;
}

#contact.section-padding {
    padding: var(--space-lg) 0;
}

.bg-light {
    background-color: var(--color-bg);
}

.bg-white {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-primary);
}

.text-white {
    color: #FFFFFF !important;
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.85);
    /* Increased from 0.7 for better contrast */
    font-size: 1.15rem;
    font-weight: 300;
}

.mt-2 {
    margin-top: 1.5rem;
}

.content-grid-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reverse-mobile .split-image-container {
        order: -1;
    }

    /* Image shows first on mobile */
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-label.center-label {
    justify-content: center;
}

.section-label.center-label::before {
    display: none;
}

.section-label.ghost {
    color: rgba(255, 255, 255, 0.8);
    /* Increased from 0.5 for better contrast */
    justify-content: center;
}

.section-label.ghost::before {
    display: none;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: currentColor;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */
.lead {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.lead-white {
    font-size: 1.5rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Images and Visual Enhancements
   ========================================================================== */
.split-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/5;
    width: 100%;
}

.rounded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.glass-float-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    max-width: 300px;
}

.glass-float-card p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--color-primary-light);
}

.glass-float-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .glass-float-card {
        left: 5%;
        bottom: 5%;
        right: 5%;
        max-width: none;
    }
}

.paralax-bg {
    background-image: linear-gradient(rgba(244, 244, 242, 0.85), rgba(244, 244, 242, 0.98)), url('../img/hero-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.paralax-dark-bg {
    background-image: linear-gradient(rgba(55, 69, 72, 0.95), rgba(55, 69, 72, 0.98)), url('../img/about-image.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gradient-soft-bg {
    background: linear-gradient(135deg, var(--color-bg) 0%, #E8EBEA 100%);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Buttons & Calls to Action
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    background-color: var(--color-primary);
    color: #fff !important;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: #2C383A;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(55, 69, 72, 0.25);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.15rem;
    background-color: #25D366;
    color: white !important;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-alt);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 400;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-text);
    font-weight: 400;
    max-width: 750px;
    margin-bottom: 1.5rem;
}

.hero .support-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ==========================================================================
   How We Work Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.process-grid.four-steps {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid.four-steps {
        grid-template-columns: 1fr;
    }
}

.process-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.process-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.process-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.process-card:hover .step-icon {
    background: rgba(255, 255, 255, 1);
    color: var(--color-primary);
    transform: scale(1.1) rotate(5deg);
}

.step-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    font-family: monospace;
    transition: var(--transition-smooth);
}

.process-card:hover .step-number {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(10px);
}

.process-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
}

/* ==========================================================================
   Sectors Section
   ========================================================================== */
.sector-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.sector-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.sector-list li:hover {
    padding-left: 15px;
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.sector-list li:last-child {
    border-bottom: none;
}

.sector-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.sector-list li:hover .sector-bullet {
    transform: scale(1.5);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.bg-dark {
    background-color: var(--color-primary);
    position: relative;
}

.blob-bg-experience {
    position: absolute;
    top: -10%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.blob-bg-experience-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    z-index: 0;
}

.divider-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-bg);
    opacity: 0.3;
}

.mb-2 {
    margin-bottom: 2rem;
}

.stats-container {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 3rem;
    display: flex;
    align-items: center;
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-bg);
    font-family: monospace;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Increased from 0.6 for better contrast */
    font-weight: 400;
}

@media (max-width: 600px) {
    .stats-container {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.relative-overflow {
    position: relative;
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.blob-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(55, 69, 72, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.contact-container {
    max-width: 900px;
}

.contact-card {
    background-color: var(--color-bg-alt);
    padding: 6rem 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-bg), var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.mb-4 {
    margin-bottom: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.contact-item:hover {
    background-color: #fff;
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.direct-mail {
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.contact-icon {
    color: var(--color-primary);
}

.contact-method-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    line-height: 1;
    margin-bottom: 6px;
}

.contact-method-value {
    font-size: 1.2rem;
}

/* Modern Contact Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: none;
    background-color: #f4f4f4;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    background-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(55, 69, 72, 0.1);
}

.modern-form textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-card {
        padding: 3rem 2rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.fade-in {
    opacity: 0;
    transition: var(--transition-smooth);
}

.fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition-smooth);
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-smooth);
}

.fade-up.visible,
.fade-in.visible,
.fade-right.visible,
.fade-left.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary);
    padding: 2.5rem 0 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 0.3fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-logo-jumbo {
    height: 90px;
    filter: brightness(0) invert(1);
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: #FFF;
    padding-left: 5px;
    /* Tiny micro-interaction */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    transition: var(--transition-fast);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon span {
    display: none;
    /* Accessible hide text */
}

/* Default hover styles for icons */
.social-icon:hover {
    color: #FFF;
    transform: translateY(-3px);
    padding-left: 0 !important;
}

/* Specific Brand Colors on Hover */
.social-icon.linkedin-icon:hover,
.social-icon.linkedin-icon:focus,
.social-icon.linkedin-icon:active {
    background: #0A66C2 !important;
    color: #FFF !important;
}

.social-icon.whatsapp-icon:hover {
    background: #25D366;
}

.footer-col .contact-link {
    display: inline-block;
    color: #FFF;
    font-weight: 400;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
    color: #FFF;
}

.legal-links .separator {
    margin: 0 10px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}