/* =========================================
   DESIGN SYSTEM & VARIABLES
========================================= */
:root {
    /* Colors */
    --bg-main: #0a0a0f;
    --bg-darker: #050508;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;

    /* Neons/Accents */
    --accent-blue: #00f0ff;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Glassmorphism */
    --glass-bg: rgba(25, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-darker: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .logo {
    color: var(--text-main);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .service-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .cta-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

[data-theme="light"] .footer {
    background: #e2e8f0;
}

[data-theme="light"] .testimonials {
    background: linear-gradient(rgba(240, 248, 255, 0.90), rgba(240, 248, 255, 0.95)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32f7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
}

[data-theme="light"] .testimonials::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .client-avatar {
    border-color: var(--accent-blue);
    color: #000;
}

[data-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .menu-toggle .bar {
    background-color: var(--text-main);
}

[data-theme="light"] .testimonial-text {
    color: var(--text-main);
}

[data-theme="light"] .portfolio-card h3 {
    color: var(--text-main);
    text-shadow: none;
}

[data-theme="light"] .portfolio-card p {
    color: var(--text-muted);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, var(--bg-main) 0%, #e2e8f0 100%);
}

[data-theme="light"] .stat-item p {
    color: var(--text-muted);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: #ffffff;
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-main);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader .logo {
    font-size: 2rem;
    animation: pulse-logo 1.5s infinite alternate;
}

.loader .logo span {
    color: var(--accent-blue);
}

.glow-bar {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.glow-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loading-bar 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes pulse-logo {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 10px transparent;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }
}

@keyframes loading-bar {
    0% {
        left: -60%;
    }

    100% {
        left: 100%;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}


ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    max-width: 700px;
    margin: -2.5rem auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.bg-darker {
    background-color: var(--bg-darker);
    position: relative;
    z-index: 1;
}

/* Premium Tech Mesh Pattern for About Us section */
#nosotros {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#nosotros::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Base glowing orb for sections */
.section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

.text-center {
    text-align: center;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-blue);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hide custom cursor on mobile touch devices */
@media (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    a,
    button {
        cursor: pointer !important;
    }
}

/* =========================================
   UI COMPONENTS
========================================= */
.btn-primary,
.btn-primary-small,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-primary-small {
    background: var(--accent-gradient);
    padding: 0.5rem 1.5rem;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-md);
}

/* =========================================
   NAVIGATION
========================================= */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    z-index: 1000;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    padding: 0.6rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 240, 255, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary-small) {
    position: relative;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.btn-primary-small):hover {
    color: #fff;
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.9)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-md);
}

.stat-item h3 {
    font-size: 2.5rem;
    display: inline-block;
}

.stat-item span {
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-family: var(--font-heading);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-features {
    margin-top: var(--spacing-md);
}

.about-features li {
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.image-placeholder {
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-design {
    width: 200px;
    height: 200px;
    border: 10px solid transparent;
    border-image: var(--accent-gradient) 1;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin 15s linear infinite;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonials {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(rgba(10, 10, 15, 0.90), rgba(10, 10, 15, 0.95)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32f7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Glowing orb behind testimonials */
.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-radius: 20px;
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.quote-icon {
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e5;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--accent-blue), #0077ff);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
}

.client-details h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.client-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   PORTFOLIO / SUCCESS CASES
========================================= */
.portfolio-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0 var(--spacing-lg);
}

.portfolio-card {
    flex: 1 1 300px;
    max-width: 500px;
    height: 380px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: auto;
}

@media (min-width: 768px) {
    .portfolio-card {
        flex: 1 1 45%;
    }
}

.portfolio-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.portfolio-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-bg {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 15, 0) 0%,
            rgba(10, 10, 15, 0.4) 40%,
            rgba(10, 10, 15, 0.95) 100%);
    z-index: 2;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-lg);
    z-index: 3;
    pointer-events: none;
    /* Let hover events pass to card */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.portfolio-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-card p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   CONTACT / CTA GRID & LEAD GEN FORM
========================================= */
.cta-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-main) 0%, #0d0914 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-form {
    padding: var(--spacing-lg);
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #030305;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Noise overlay and subtle gradient for footer */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, rgba(139, 92, 246, 0.05) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 80%;
}


.footer h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--accent-blue);
}

.footer-contact li {
    color: var(--text-muted);
}

.footer-contact strong {
    color: var(--text-main);
}

.direct-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.direct-contact p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
}

/* =========================================
   ANIMATIONS & EFFECTS
========================================= */
@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes spin {
    100% {
        transform: rotate(405deg);
    }
}

/* Scroll Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* =========================================
   CTA SECTION
========================================= */
.cta-section {
    position: relative;
    z-index: 2;
}

.cta-box {
    position: relative;
    text-align: center;
    /* Center the text for Option 2 layout */
    padding: var(--spacing-xl) var(--spacing-md);
    background: rgba(10, 10, 15, 0.5);
    /* Base dark */
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Textured Background Layer */
.cta-box::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(15, 15, 20, 0.95) 0%, rgba(25, 25, 35, 0.98) 100%),
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    z-index: -1;
}

/* Animated Neon Border Layer */
.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--accent-blue) 25%,
            transparent 50%,
            var(--accent-purple) 75%,
            transparent 100%);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.cta-box h2,
.cta-box p,
.cta-box a {
    position: relative;
    z-index: 2;
    /* Keeps text above the backgrounds */
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.cta-box p {
    color: #e0e0e5;
    font-size: 1.15rem;
    max-width: 650px;
    /* Limit width since it's centered */
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    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);
    }
}

.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 15px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #1ebe57, #0f7669);
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s ease;
        z-index: 999;
        border-radius: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .nav-links a:not(.btn-primary-small) {
        font-size: 1.5rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: var(--spacing-md);
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }
}