/* 
  CodeConnectAI — Design System 
  Theme: Cyberpunk / Modern Dark 
  Tokens: Neon Cyan, Neon Violet, Neon Gold 
*/

:root {
    --neon-cyan: #00e5ff;
    --neon-violet: #7c3aed;
    --neon-gold: #f59e0b;
    --dark-950: #030712;
    --dark-900: #050a18;
    --dark-800: #0a1628;
    --dark-700: #101d35;
    --glass-bg: rgba(10, 22, 45, 0.55);
    --glass-border: rgba(0, 229, 255, 0.08);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--dark-900); 
    color: #e2e8f0; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Reserve space for fixed header */
}

/* --- Background Pattern & Orbs --- */
.bg-grid-pattern {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.orb {
    position: fixed; border-radius: 50%; filter: blur(120px); opacity: 0.12; pointer-events: none; z-index: 0;
}
.orb-1 { width: 700px; height: 700px; top: -15%; right: -10%; background: var(--neon-cyan); animation: orbFloat1 18s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; bottom: -10%; left: -10%; background: var(--neon-violet); animation: orbFloat2 22s ease-in-out infinite; }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 30%; background: var(--neon-gold); opacity: 0.06; animation: orbFloat3 15s ease-in-out infinite; }

@keyframes orbFloat1 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-40px, 30px) scale(1.05); } 66% { transform: translate(20px, -20px) scale(0.95); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px, -40px) scale(0.95); } 66% { transform: translate(-20px, 20px) scale(1.05); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(50px, -30px); } }

.noise-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 200px 200px;
}

/* --- Navbar & UI --- */
nav {
    background: white !important;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); /* Clean subtle border */
}

.navbar-scrolled {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link-hover { position: relative; color: #475569 !important; }
.nav-link-hover:hover { color: #0f172a !important; }
.nav-link-hover::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-link-hover:hover::after { width: 100%; }

.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 40;
    background: rgba(5, 10, 24, 0.97); backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav.active { display: flex; opacity: 1; }

.hamburger span { display: block; width: 24px; height: 2px; background: #0f172a; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Logo Containers --- */
.logo-container {
    background-color: transparent !important;
    padding: 0;
    height: 52px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    max-width: fit-content;
}

.logo-container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo-container img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* --- Cards & Glassmorphism --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

.gradient-border { position: relative; overflow: hidden; }
.gradient-border::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet), var(--neon-cyan));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.5s ease;
    animation: gradientShift 4s ease infinite;
}
.gradient-border:hover::before { opacity: 1; }

@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* --- Typography Gradients --- */
.text-gradient-cv {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    background-clip: text;
}
.text-gradient-cg {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Components --- */
.service-glow-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover .service-glow-bar { transform: scaleX(1); }

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--neon-cyan);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 12px 4px rgba(0, 229, 255, 0.15); }
}

.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 30%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(25deg); animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -60%; } 40%, 100% { left: 130%; } }

/* --- FAQ & Contact --- */
.form-input {
    width: 100%; padding: 14px 18px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; color: #e2e8f0; outline: none;
    transition: all 0.3s ease;
}
.form-input:focus { border-color: var(--neon-cyan); background: rgba(255, 255, 255, 0.06); }

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
.faq-question { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 50;
    width: auto; height: 52px; padding: 0 28px;
    background: #25d366;
    border-radius: 50px; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; pointer-events: none;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4); }

/* --- Why Choose (Tiles) --- */
.why-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem; border-radius: 24px; transition: all 0.4s ease;
}
.why-tile:hover {
    background: rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.15);
    transform: translateY(-4px);
}
.why-tile-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.why-tile-title { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.why-tile-text { font-size: 1.05rem; color: #cbd5e1; line-height: 1.6; }

/* --- Testimonials --- */
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem; border-radius: 20px;
}
.testimonial-stars { color: #f59e0b; margin-bottom: 1rem; font-size: 0.875rem; }
.testimonial-text { color: #cbd5e1; font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.75rem;
}
.author-name { color: white; font-weight: 600; font-size: 0.875rem; }
.author-role { color: #64748b; font-size: 0.75rem; }

/* --- Cómo Funciona --- */
.timeline-connector {
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    opacity: 0.15;
    z-index: 5;
}

.step-circle {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    border: 4px solid var(--dark-900);
    position: relative;
    z-index: 10;
}

.section-glow-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.1), transparent);
}

/* --- Utilities --- */
.icon-wrap {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin-bottom: 1.5rem;
}
.icon-wrap-cyan { background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.15); }

/* --- Hero H1 Size --- */
.hero-h1 {
    font-size: 2rem !important; /* Mobile -20% */
}
@media (min-width: 1024px) {
    .hero-h1 {
        font-size: 4.25rem !important;
        letter-spacing: -0.02em;
    }
}

/* Section Title Resizing */
h2.font-display {
    font-size: 1.8rem !important; /* Mobile -20% from 2.25rem approx */
}
@media (min-width: 640px) {
    h2.font-display {
        font-size: 2.25rem !important; /* sm:text-4xl */
    }
}
@media (min-width: 1024px) {
    h2.font-display {
        font-size: 3rem !important; /* lg:text-5xl approx */
    }
}

/* --- Card Readability --- */
.glass-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* --- Partner Logos Visibility --- */
.partner-tag {
    filter: brightness(1.2);
    opacity: 0.9;
    transition: all 0.3s ease;
}
.partner-tag:hover {
    filter: brightness(1.5);
    opacity: 1;
}