/**
 * WeeSofty - Premium Modern Agency Stylesheet
 * Engineered for speed, clean hierarchy, and fluid responsiveness.
 */

:root {
    --bg: #08090d;
    --bg-alt: #0e1017;
    --surface: #12141e;
    --surface-hover: #181b28;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-cyan: #38bdf8;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(8, 9, 13, 0) 70%);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; max-width: 100%; }

/* Focus Accessibility */
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3.5vw, 1.5rem);
    box-sizing: border-box;
}

.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-alt { background-color: var(--bg-alt); }

/* Typography Hierarchy with Fluid Overflow-Proof Clamping */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 {
    font-size: clamp(1.85rem, 5.5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.45rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
}

p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    overflow-wrap: break-word;
    word-break: break-word;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: clamp(0.72rem, 2vw, 0.82rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 1rem;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    flex-shrink: 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section-header p {
    margin-top: 0.85rem;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

/* Buttons & CTAs */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .btn {
        width: 100%;
        padding: 0.85rem 1rem;
        white-space: normal;
    }
}

/* Navigation Bar */
.nav-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    background: rgba(8, 9, 13, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    height: 36px;
    flex-shrink: 0;
}

.nav-brand img {
    height: 36px;
    width: auto;
    max-width: 160px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active { color: #ffffff; }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #fff;
    border-radius: 6px;
    z-index: 1002;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
    transition: transform 0.25s ease;
}

.nav-toggle.open svg {
    transform: rotate(90deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Hero Section */
.hero {
    padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: 0;
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    width: 100%;
    max-width: 100%;
}

.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.15));
}

/* Trust / Intro Strip */
.trust-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    width: 100%;
    overflow: hidden;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.trust-pill {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-pill svg { width: 18px; height: 18px; color: var(--accent-cyan); flex-shrink: 0; }
.trust-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Service Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.6rem; color: #ffffff; }
.card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 600;
}

.card-footer svg { width: 16px; height: 16px; transition: var(--transition); flex-shrink: 0; }
.card:hover .card-footer svg { transform: translateX(4px); }

/* Why WeeSofty */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
    width: 100%;
}

.why-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.why-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.why-item h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.9rem; }

/* Client Showcase (Brands We Manage) */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.75rem;
    width: 100%;
}

.client-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.client-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.client-logo-wrapper {
    height: 52px;
    display: flex;
    align-items: center;
}

.client-logo-wrapper img { max-height: 48px; width: auto; max-width: 180px; }

.client-cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-cyan);
}

.client-name { font-size: 1.3rem; font-weight: 700; color: #ffffff; }
.client-desc { font-size: 0.95rem; line-height: 1.6; }

.client-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.client-link:hover { color: #ffffff; }

/* How We Work Timeline */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent) 50%, var(--accent-purple) 100%);
}

.timeline-step {
    display: flex;
    gap: 1.75rem;
    position: relative;
    margin-bottom: 2.25rem;
    width: 100%;
}

.timeline-step:last-child { margin-bottom: 0; }

.timeline-node {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    z-index: 2;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    flex-grow: 1;
    transition: var(--transition);
    min-width: 0;
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #ffffff; }
.timeline-content p { font-size: 0.95rem; }

/* Spotlight Feature Banners */
.spotlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(56, 189, 248, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.spotlight-box.reversed { grid-template-columns: 0.8fr 1.2fr; }

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.spotlight-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: #e2e8f0;
    max-width: 100%;
}

.spotlight-codebox {
    background: rgba(8, 9, 13, 0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 2rem);
    font-family: monospace;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    color: #a5b4fc;
    overflow-x: auto;
    max-width: 100%;
    word-break: break-word;
}

/* Results / Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.25rem;
    width: 100%;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.2rem) 1.25rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.metric-number {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.metric-label { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); }

/* Testimonials Coming Soon / Grid */
.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.empty-state svg { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--accent-light); }

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.15); }

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: clamp(1rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 clamp(1rem, 3vw, 1.5rem) 1.25rem;
}

.faq-answer p { font-size: 0.95rem; line-height: 1.6; }

/* Final CTA Banner */
.cta-banner {
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2) 0%, rgba(18, 20, 30, 0.9) 70%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 600px; margin: 0 auto 2.2rem; font-size: clamp(1rem, 2.5vw, 1.15rem); }
.cta-banner .btn-group { justify-content: center; }

/* Contact Page Layout System */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.contact-card-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
}

/* Forms */
.form-group { margin-bottom: 1.35rem; position: relative; width: 100%; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; color: #e2e8f0; }

.form-control {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select.form-control option {
    background-color: #11131c;
    color: #ffffff;
}

textarea.form-control { min-height: 130px; resize: vertical; }

/* Custom Dark Service Select Dropdown */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-trigger:focus-visible,
.custom-select-wrapper.open .custom-select-trigger {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-select-trigger .select-arrow {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #11131c;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    padding: 0.4rem;
    margin: 0;
    z-index: 1050;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option.focused {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
}

.custom-select-option.selected {
    background: rgba(99, 102, 241, 0.28);
    color: #ffffff;
    font-weight: 600;
}

.custom-select-option .option-check {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    opacity: 0;
}

.custom-select-option.selected .option-check {
    opacity: 1;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    word-break: break-word;
}

.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }

/* Footer */
.footer {
    background: #050608;
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 3rem;
    width: 100%;
}

.footer-brand p { font-size: 0.92rem; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-size: 1rem; color: #ffffff; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.92rem; color: var(--text-muted); }
.footer-links a:hover { color: #ffffff; transform: translateX(3px); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-icon-btn:hover { color: #ffffff; border-color: var(--accent); background: rgba(99, 102, 241, 0.15); }
.social-icon-btn svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: #ffffff; }

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 997;
    transition: var(--transition);
}

.floating-whatsapp svg { width: 28px; height: 28px; }
.floating-whatsapp:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero .btn-group { justify-content: center; }
    .spotlight-box, .spotlight-box.reversed { grid-template-columns: 1fr; padding: 2rem 1.25rem; gap: 2rem; text-align: center; }
    .spotlight-tags { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .contact-layout-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: #0b0d15;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.75rem 1.5rem;
        gap: 1.25rem;
        transform: translateY(-130%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: 999;
        box-sizing: border-box;
        box-shadow: 0 16px 32px rgba(0,0,0,0.8);
    }
    .nav-menu.open {
        transform: translateY(0);
        pointer-events: all;
    }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-actions .btn { display: none; }
    .grid-3, .client-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .timeline::before { left: 19px; }
    .timeline-node { width: 40px; height: 40px; font-size: 0.9rem; }
    .timeline-step { gap: 0.85rem; }
    .timeline-content { padding: 1.25rem 1rem; }
}

@media (max-width: 640px) {
    .form-row-2col { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

@media (max-width: 380px) {
    .metrics-grid { grid-template-columns: 1fr; }
}
