/* ==========================================================================
   Base & Reset - DARK TECH THEME
   ========================================================================== */
:root {
    /* Dark Theme Colors */
    --bg-main: #09090b;       /* Nearly black */
    --bg-card: #18181b;       /* Dark gray for cards */
    --text-main: #f8fafc;     /* White text */
    --text-muted: #94a3b8;    /* Slate gray */
    
    /* Neon Accents from Logo */
    --accent-cyan: #00d2ff;
    --accent-purple: #928dab;
    --whatsapp: #25d366;
    
    /* Brand Gradients */
    --gradient-brand: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-text: linear-gradient(to right, #fff, #94a3b8);
    --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-main); }

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

/* Tech Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: var(--accent-cyan);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}
.ambient-glow-2 {
    position: absolute;
    bottom: -10%; left: -10%;
    width: 600px; height: 600px;
    background: var(--accent-purple);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text-main); }

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    transition: var(--transition); cursor: pointer; border: none; gap: 10px;
    position: relative; overflow: hidden;
}

.btn-primary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }

.btn-whatsapp {
    background: var(--gradient-whatsapp); color: #fff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(37, 211, 102, 0.5); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background-color: rgba(9, 9, 11, 0.7); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000;
    display: flex; align-items: center; transition: var(--transition);
}
.navbar.scrolled { height: 70px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; }

/* Invert logo for dark mode if it's the black text version. Wait, we have the white logo! */
.logo-img { max-height: 40px; width: auto; filter: brightness(0) invert(1); } 

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { padding-top: 140px; padding-bottom: 60px; position: relative; }
.hero .container { display: flex; align-items: center; gap: 48px; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 4rem; margin-bottom: 24px; letter-spacing: -1px; }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }

/* Image Glow Effect */
.hero-image::after {
    content: ''; position: absolute; top: 10%; left: 10%; width: 80%; height: 80%;
    background: var(--gradient-brand); filter: blur(60px); opacity: 0.3; z-index: -1;
}
.hero-image img {
    border-radius: 24px; max-height: 500px; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Interactive Glowing Cards (Tech Style)
   ========================================================================== */
.section { padding: 80px 0; position: relative; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

#cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    background-color: rgba(255, 255, 255, 0.05); /* Base subtle border */
    border-radius: 16px;
    padding: 1px; /* The 1px gap for the glowing border to show through */
    position: relative;
    overflow: hidden;
}

/* Mouse Hover Glow Logic (Controlled by JS) */
.tech-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(0, 210, 255, 0.15),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.tech-card:hover::before { opacity: 1; }

.tech-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(146, 141, 171, 0.4),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

/* The actual card content wrapper to sit above the glow */
.tech-card-content {
    background-color: var(--bg-card);
    border-radius: 15px; /* Slightly less than the parent to fit inside the 1px padding */
    position: relative;
    z-index: 2;
    padding: 40px 32px;
    height: 100%; /* Stretch to fill if grid items have different heights */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Container for all cards to manage global hover state */
#cards-grid:hover .tech-card::after { opacity: 1; }

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    background: rgba(0, 210, 255, 0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.tech-card h3 { font-size: 1.5rem; margin-bottom: 16px; position: relative; z-index: 3;}
.tech-card p { color: var(--text-muted); position: relative; z-index: 3;}

/* ==========================================================================
   Timeline / Process
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.timeline-step { text-align: center; padding: 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); transition: var(--transition); }
.timeline-step:hover { transform: translateY(-10px); border-color: rgba(0, 210, 255, 0.3); box-shadow: var(--shadow-glow); }
.step-number {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 800;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    margin-bottom: 16px;
}
.timeline-step:hover .step-number {
    background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0px;
}

/* ==========================================================================
   Requirements (Dark variant already matches)
   ========================================================================== */
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.req-item { display: flex; align-items: flex-start; gap: 20px; padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; transition: var(--transition); }
.req-item:hover { background: rgba(255,255,255,0.05); transform: translateX(10px); border-color: rgba(0, 210, 255, 0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.req-item i { color: var(--accent-purple); font-size: 2rem; transition: transform 0.3s; }
.req-item:hover i { transform: scale(1.1) rotate(5deg); color: var(--accent-cyan); }
.req-item h4 { font-size: 1.25rem; margin-bottom: 8px; }
.req-item p { color: var(--text-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 24px 0; background: transparent; border: none;
    font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-main);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--accent-cyan); }
.faq-question i { color: var(--text-muted); transition: 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--accent-cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 24px; }

/* ==========================================================================
   Social Proof / CTA Panel
   ========================================================================== */
.social-proof { border-top: 1px solid rgba(255,255,255,0.05); }

.cta-panel {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cta-panel::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 50%; height: 100%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-content {
    flex: 1;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.cta-content .section-title {
    text-align: left;
    margin-bottom: 24px;
    font-size: 3rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 450px;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cta-image-wrapper {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.cta-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
}

.tech-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #0b0c0f 0%, rgba(11,12,15,0) 100%);
    z-index: 1;
}

footer { padding: 80px 0 24px; background: #000000; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 300px; }
.footer-logo { max-height: 50px; filter: brightness(0) invert(1); }
.footer-links h4, .footer-contact h4 { font-size: 1.25rem; margin-bottom: 24px; color: var(--text-main); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--accent-cyan); transform: translateX(8px); }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--whatsapp); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; transition: var(--transition); }
.footer-wa:hover { color: #1ebc59; transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.875rem; }

/* ==========================================================================
   Expanding Cards (Innovative Profiles)
   ========================================================================== */
.expanding-cards-container {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 16px;
}

.expand-card {
    flex: 0.5; /* Base non-expanded size */
    background: var(--bg-card);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.expand-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 0;
}

.expand-card.active, .expand-card:hover {
    flex: 3; /* Expanded size */
    border-color: rgba(0, 210, 255, 0.3);
}

.expand-card.active::before, .expand-card:hover::before {
    opacity: 0.05;
}

.expand-icon {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    z-index: 2;
    transition: var(--transition);
}

.expand-card.active .expand-icon, .expand-card:hover .expand-icon {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-glow);
}

.expand-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    transition-delay: 0s;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* Only show content when expanded */
.expand-card.active .expand-content, .expand-card:hover .expand-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* Wait for flex expansion */
    pointer-events: auto;
}

.expand-content h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    white-space: nowrap; /* Keep title on one line */
}

.expand-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    /* Prevent text wrapping weirdly during animation */
    min-width: 300px; 
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-content p { margin: 0 auto 32px; }
    #cards-grid, .timeline, .req-grid { grid-template-columns: 1fr; }
    
    .expanding-cards-container {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }
    .expand-card {
        height: 100px; /* Base height for mobile */
        flex: none;
    }
    .expand-card.active, .expand-card:hover {
        height: 300px;
        flex: none;
    }
    .expand-content p {
        min-width: 0;
    }

    .cta-panel { flex-direction: column; }
    .cta-content { padding: 40px 24px; text-align: center; align-items: center; }
    .cta-content .section-title { text-align: center; font-size: 2.5rem; }
    .stats-row { justify-content: center; flex-wrap: wrap; }
    .tech-overlay { background: linear-gradient(0deg, #0b0c0f 0%, rgba(11,12,15,0) 100%); }
    .btn-whatsapp { align-self: center !important; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 16px auto 0; }
    .footer-links a:hover { transform: translateX(0); }
    .mobile-sticky { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-card); padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); z-index: 999;}
    body { padding-bottom: 80px; }
}
.mobile-sticky { display: none; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-logo {
    height: 100px; /* Increased from 50px */
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.loader-slogan {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    animation: fadeInOut 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 50%;
    background: var(--gradient-brand);
    border-radius: 4px;
    animation: loadingBar 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px var(--accent-cyan));}
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; color: white; }
    100% { opacity: 0.5; }
}

@keyframes loadingBar {
    0% { left: -50%; }
    100% { left: 150%; }
}
