/* 
   AZ Solutions - Modern Design System 
   v2.0 - AI & Automation Theme
*/

:root {
    /* Core Palette */
    --black: #050505;
    --dark-gray: #121212;
    --medium-gray: #1E1E1E;
    --light-gray: #888888;
    --white: #ffffff;

    /* Accent Palette - Gold */
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dim: rgba(212, 175, 55, 0.1);
    --gold-glow: rgba(212, 175, 55, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Typography */
    --font-main: 'DM Sans', sans-serif;
    --font-display: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 8rem 2rem;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        /* Slightly smaller to prevent clipping */
        line-height: 1.2;
        word-wrap: break-word;
    }

    .section-title br {
        display: none;
        /* Remove break on mobile to let text flow naturally */
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--gold);
}

.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Section Standard */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-size: 3.3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--light-gray);
    max-width: 600px;
    margin-bottom: 4rem;
}

.section-header .section-subtitle,
.benefits-content .section-subtitle {
    margin: 0 auto 4rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeIn 0.8s ease-out forwards;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 160px;
}

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(50, 50, 100, 0.3) 0%, transparent 70%);
    animation-delay: -2s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Hero Content */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Trust Signals */
.trust-signals {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.trust-signals>span {
    display: block;
    font-size: 0.875rem;
    color: var(--light-gray);
    margin-bottom: 0.75rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

.separator {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Hero Visual (Glass Cards) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: absolute;
}

.hero-card-main {
    width: 340px;
    z-index: 2;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.hero-card-main:hover {
    transform: rotate(0deg) scale(1.02);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 10px;
}

.hero-card-float {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: floatCard 6s infinite ease-in-out;
}

.float-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.float-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: -3s;
}

.hero-card-float .icon {
    font-size: 1.5rem;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-label,
    .cta-buttons,
    .trust-logos {
        justify-content: center;
    }

    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-card-main {
        transform: rotate(0);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        height: 350px;
        transform: scale(0.9);
    }

    .hero-card-main {
        width: 300px;
    }

    .hero-card-float {
        transform: scale(0.9);
        margin-bottom: 1rem;
        /* Added spacing */
    }
}

/* =========================================
   Services Section (Bento Grid)
   ========================================= */
.services {
    background: var(--black);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

/* Services Grid - Modern Card Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
}

.service-card .icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.3;
}

.service-card > p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card .icon-box {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.35rem;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-dim);
    transform: translateY(-5px);
}

/* Grid Spans */
.bento-large {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 2;
}

/* Content Styling */
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: auto;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.feature-list li::before {
    content: "✓";
    color: var(--gold);
    font-weight: bold;
}

/* Visual Elements */
.bento-visual {
    margin-top: 2rem;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.visual-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.chart-bar {
    width: 30px;
    background: var(--gold);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    animation: growBar 2s infinite alternate ease-in-out;
}

.bar-1 {
    height: 40%;
    animation-delay: 0s;
}

.bar-2 {
    height: 70%;
    animation-delay: 0.5s;
}

.bar-3 {
    height: 55%;
    animation-delay: 1s;
}

@keyframes growBar {
    0% {
        transform: scaleY(0.8);
    }

    100% {
        transform: scaleY(1.1);
    }
}

.bento-content-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.text-col {
    flex: 1;
}

.visual-col {
    flex: 1;
    height: 100%;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-medium,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-content-row {
        flex-direction: column;
    }

    .visual-col {
        width: 100%;
        height: 150px;
    }
}

/* =========================================
   Social Proof Section
   ========================================= */
.social-proof {
    background: var(--black);
    padding-top: 0;
    /* Marquee is at top */
    position: relative;
    overflow: hidden;
}

/* Tech Stack Marquee */
.tech-stack-marquee {
    width: 100%;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 5rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-stack-marquee::before,
.tech-stack-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-stack-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--black), transparent);
}

.tech-stack-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--black), transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-gray);
    margin: 0 1rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.marquee-content span:hover {
    opacity: 1;
    color: var(--gold);
}

.marquee-content .dot {
    color: var(--gold-dim);
    font-size: 1rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Case Studies Carousel */
.case-carousel-wrapper {
    position: relative;
    padding: 0 3rem;
}

.case-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.case-carousel::-webkit-scrollbar {
    display: none;
}

.case-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-dim);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-image-header {
    height: 200px;
    position: relative;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.badge {
    background: var(--gold);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-body {
    padding: 2rem;
}

.case-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.case-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat .label {
    font-size: 0.75rem;
    color: var(--light-gray);
    text-transform: uppercase;
}

.case-body p {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Responsive Social Proof */
@media (max-width: 768px) {
    .case-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    .case-card {
        min-width: 300px;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    text-align: center;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseBlob 4s infinite alternate;
}

@keyframes pulseBlob {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-info-row {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--gold);
}

.contact-link .icon {
    font-size: 1.2rem;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand .logo span {
    color: var(--gold);
}

.footer-links h4,
.footer-legal h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   Modal Styles
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* =========================================
   Header / Navigation
   ========================================= */
/* =========================================
   Header / Navigation
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-display);
    z-index: 1002;
    /* Ensure logo is above mobile menu overlay */
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light-gray);
}

nav a:hover {
    color: var(--gold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--white);
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* =========================================
   Benefits Section (Resultados)
   ========================================= */
.benefits {
    background: var(--black);
    position: relative;
}

.benefits-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.benefits-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.benefit-stat:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
}

.benefit-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.benefit-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.benefit-stat-description {
    font-size: 0.9rem;
    color: var(--light-gray);
}

@media (max-width: 992px) {
    .benefits-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits-stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Process Section (Metodología)
   ========================================= */
.process {
    background: linear-gradient(to bottom, var(--black), #0a0a0a);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
}

.process-step-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--gold);
    opacity: 0.5;
}

.process-step:nth-child(odd) .process-step-content::after {
    right: -40px;
}

.process-step:nth-child(even) .process-step-content::after {
    left: -40px;
}

.process-step-number {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.process-step-deliverables strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.process-step-deliverables ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.process-visual {
    width: 45%;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.process-visual-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px;
        gap: 2rem;
    }

    .process-step:nth-child(even) {
        flex-direction: column;
    }

    .process-step-content {
        width: 100%;
    }

    .process-step-content::after {
        display: none;
    }

    .process-visual {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .process-timeline::before {
        display: none;
    }

    .process-step {
        margin-left: 0;
        margin-bottom: 4rem;
    }

    .process-step-content {
        padding: 1.5rem;
    }
}

/* =========================================
   FAQ Section
   ========================================= */
.faq {
    background: var(--black);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.faq-question-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
}

.faq-item:hover .faq-question {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer-wrapper {
    max-height: 300px;
    /* Approximate max height */
    transition: max-height 0.5s ease-in;
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--white);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Quick Schedule Option in Modal */
.quick-schedule-option {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-calendly {
    background: #006BFF;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 107, 255, 0.3);
}

.btn-calendly:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 107, 255, 0.4);
    color: white;
}

.btn-calendly svg {
    flex-shrink: 0;
}

.quick-schedule-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
}

.modal-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--light-gray);
    font-size: 0.85rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.modal-divider span {
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.required {
    color: var(--gold);
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.form-privacy {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Responsive Footer/Modal */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .btn-calendly {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .modal-divider {
        margin: 1.25rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Compact Footer for Mobile */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-links h4,
    .footer-legal h4 {
        margin-bottom: 0.75rem;
    }

    .footer-links li,
    .footer-legal li {
        margin-bottom: 0.5rem;
    }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-widget svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Calendly Widget */
.calendly-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #006BFF;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}

.calendly-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.calendly-widget:hover .calendly-label {
    opacity: 1;
    transform: translateX(0);
}

.calendly-widget svg {
    width: 30px;
    height: 30px;
}

.calendly-label {
    position: absolute;
    right: 70px;
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
    animation: labelPulse 3s ease-in-out infinite;
}

.calendly-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--gold);
}

@keyframes labelPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
}

/* Mobile optimizations for floating widgets */
@media (max-width: 768px) {
    .whatsapp-widget,
    .calendly-widget {
        width: 56px;
        height: 56px;
        right: 16px;
    }

    .whatsapp-widget {
        bottom: 16px;
    }

    .calendly-widget {
        bottom: 82px;
    }

    .whatsapp-widget svg {
        width: 30px;
        height: 30px;
    }

    .calendly-widget svg {
        width: 26px;
        height: 26px;
    }

    .calendly-label {
        right: 64px;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-widget,
    .calendly-widget {
        width: 52px;
        height: 52px;
        right: 12px;
    }

    .whatsapp-widget {
        bottom: 12px;
    }

    .calendly-widget {
        bottom: 74px;
    }

    .whatsapp-widget svg {
        width: 28px;
        height: 28px;
    }

    .calendly-widget svg {
        width: 24px;
        height: 24px;
    }

    .calendly-label {
        display: none;
    }

    /* Reduce animation intensity on mobile for performance */
    .whatsapp-widget,
    .calendly-widget {
        animation: none;
    }
}

/* Safe area for notched phones (iPhone X+, etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 576px) {
        .whatsapp-widget {
            bottom: calc(12px + env(safe-area-inset-bottom));
        }

        .calendly-widget {
            bottom: calc(74px + env(safe-area-inset-bottom));
        }
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 107, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 107, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 107, 255, 0);
    }
}