/* ========================================
   Self-hosted Inter Font (GDPR compliant)
   ======================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========================================
   CSS Variables & Reset
   ======================================== */
/* Dark theme (default) */
:root {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: #1a1a25;
    --color-bg-card-hover: #22222f;
    --color-border: #2a2a3a;
    --color-text: #e4e4ed;
    --color-text-muted: #8888a0;
    --color-text-dim: #55556a;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #06b6d4;
    --color-accent-amber: #f59e0b;
    --color-accent-green: #22c55e;
    --color-accent-rose: #f43f5e;
    --color-accent-purple: #a855f7;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-text: linear-gradient(135deg, #6366f1, #06b6d4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(10, 10, 15, 0.85);
    --nav-mobile-bg: #2a2a3d;
    --nav-link-active-bg: rgba(99, 102, 241, 0.4);
    --nav-link-hover-bg: rgba(99, 102, 241, 0.35);
    --nav-link-color: #ffffff;
    --turnstile-theme: dark;
}

/* Light theme */
[data-theme="light"] {
    --color-bg: #f5f5f7;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f0f0f5;
    --color-border: #e0e0e8;
    --color-text: #1a1a2e;
    --color-text-muted: #5a5a72;
    --color-text-dim: #9090a8;
    --color-primary: #5558e6;
    --color-primary-light: #6366f1;
    --color-accent-blue: #2563eb;
    --color-accent-cyan: #0891b2;
    --color-accent-amber: #d97706;
    --color-accent-green: #16a34a;
    --color-accent-rose: #e11d48;
    --color-accent-purple: #9333ea;
    --gradient-primary: linear-gradient(135deg, #5558e6, #7c3aed, #9333ea);
    --gradient-text: linear-gradient(135deg, #5558e6, #0891b2);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.1);
    --header-bg: rgba(245, 245, 247, 0.9);
    --nav-mobile-bg: #ffffff;
    --nav-link-active-bg: rgba(99, 102, 241, 0.15);
    --nav-link-hover-bg: rgba(99, 102, 241, 0.1);
    --nav-link-color: #1a1a2e;
}

/* Smooth theme transition */
body,
.header,
.nav,
.service-card,
.stat,
.about-card,
.contact-card,
.contact-form,
.footer,
.cookie-banner,
.hero-card,
.skill-bar,
.social-link,
.btn-outline {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-cyan);
}

img { max-width: 100%; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 110;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 101;
    padding-right: 24px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.15);
}

/* Top Toggles — independent fixed bar, always centered, above everything */
.top-toggles {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 103;
    pointer-events: none;
}

.top-toggles .theme-toggle,
.top-toggles .style-toggle {
    pointer-events: auto;
}

/* Nav Controls (lang switcher only) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--color-border);
}

/* Language Switcher (inside nav) */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.lang-btn:hover {
    color: var(--color-text);
    background: rgba(99, 102, 241, 0.1);
}

.lang-btn.active {
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.15);
    cursor: default;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
    flex-shrink: 0;
    position: relative;
}

.theme-toggle:hover {
    color: var(--color-primary-light);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

/* Sun icon visible in dark mode, moon in light */
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* Light mode specific overrides */
[data-theme="light"] .service-icon--purple { background: rgba(147, 51, 234, 0.1); }
[data-theme="light"] .service-icon--blue { background: rgba(37, 99, 235, 0.1); }
[data-theme="light"] .service-icon--cyan { background: rgba(8, 145, 178, 0.1); }
[data-theme="light"] .service-icon--amber { background: rgba(217, 119, 6, 0.1); }
[data-theme="light"] .service-icon--green { background: rgba(22, 163, 74, 0.1); }
[data-theme="light"] .service-icon--rose { background: rgba(225, 29, 72, 0.1); }

[data-theme="light"] .service-tags li {
    background: rgba(85, 88, 230, 0.08);
    border-color: rgba(85, 88, 230, 0.15);
}

[data-theme="light"] .fact-icon {
    background: rgba(85, 88, 230, 0.08);
}

[data-theme="light"] .contact-icon {
    background: rgba(85, 88, 230, 0.1);
}

[data-theme="light"] .social-link {
    background: var(--color-bg-elevated);
}

[data-theme="light"] .nav-overlay.open {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .whatsapp-fab {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Main
   ======================================== */
.main {
    padding-top: 64px;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ========================================
   Tab Panels
   ======================================== */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Slide in from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Hero (Home)
   ======================================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero visual cards */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.hero-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.hero-card:hover .hero-card-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.hero-card-icon svg {
    width: 100%;
    height: 100%;
}

.hero-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hero-card p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Stats */
.stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.stat:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.stat:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--color-bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-icon--purple { background: rgba(168, 85, 247, 0.15); color: var(--color-accent-purple); }
.service-icon--blue { background: rgba(59, 130, 246, 0.15); color: var(--color-accent-blue); }
.service-icon--cyan { background: rgba(6, 182, 212, 0.15); color: var(--color-accent-cyan); }
.service-icon--amber { background: rgba(245, 158, 11, 0.15); color: var(--color-accent-amber); }
.service-icon--green { background: rgba(34, 197, 94, 0.15); color: var(--color-accent-green); }
.service-icon--rose { background: rgba(244, 63, 94, 0.15); color: var(--color-accent-rose); }

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.service-tags li {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary-light);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========================================
   About
   ======================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.about-intro h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.skills-section {
    margin-top: 40px;
}

.skills-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-bar {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    opacity: 0.12;
    border-radius: var(--radius-sm);
    transition: width 1s ease;
}

.skill-bar.animated::after {
    width: var(--skill-width);
}

.skill-name {
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.about-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.facts-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fact-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.facts-list strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.facts-list span {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Approach */
.approach-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approach-item {
    display: flex;
    gap: 14px;
}

.approach-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
}

.approach-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.approach-item p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   Contact
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 15px;
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary-light);
    border-color: rgba(99, 102, 241, 0.3);
}

.social-link--whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.vat-info {
    font-size: 13px;
    color: var(--color-text-muted);
}

.vat-info strong {
    color: var(--color-text);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot - hidden from humans, visible to bots */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Turnstile widget spacing */
.cf-turnstile {
    margin-bottom: 20px;
}

/* Privacy checkbox */
.form-checkbox {
    margin-bottom: 20px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    transition: all var(--transition);
}

.btn-outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-dim);
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

/* ========================================
   Policy Pages
   ======================================== */
.policy-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-container {
    max-width: 800px;
}

.policy-container h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-updated {
    font-size: 13px;
    color: var(--color-text-dim);
    margin-bottom: 40px;
}

.policy-container h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.policy-container h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.policy-container p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-container ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.policy-container li {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.policy-table th,
.policy-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.policy-table th {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-table td {
    color: var(--color-text-muted);
}

.policy-table code {
    background: var(--color-bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-primary-light);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px 40px;
    }

    .hero-visual {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--nav-mobile-bg);
        border-left: 2px solid rgba(99, 102, 241, 0.4);
        flex-direction: column;
        padding: 80px 20px 24px;
        gap: 6px;
        transition: right var(--transition);
        z-index: 105;
    }

    .nav.open {
        right: 0;
    }

    .nav .nav-link {
        display: block;
        font-size: 15px;
        padding: 12px 16px;
        text-align: left;
        color: var(--nav-link-color) !important;
        border-radius: var(--radius-sm);
        font-weight: 500;
        letter-spacing: 0.02em;
        background: transparent;
        border: none;
    }

    .nav .nav-link:hover,
    .nav .nav-link:focus {
        color: var(--nav-link-color) !important;
        background: var(--nav-link-hover-bg);
    }

    .nav .nav-link.active {
        color: var(--nav-link-color) !important;
        background: var(--nav-link-active-bg);
        font-weight: 600;
        border-left: 3px solid #818cf8;
    }

    .nav .nav-controls {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border);
        gap: 12px;
        justify-content: center;
    }

    .nav .nav-lang {
        gap: 6px;
    }

    .nav .nav-lang .lang-btn {
        font-size: 13px;
        padding: 6px 12px;
        color: var(--nav-link-color);
    }

    .nav .nav-lang .lang-btn.active {
        color: var(--nav-link-color);
        background: var(--nav-link-active-bg);
    }

    .nav .nav-lang .lang-btn:hover {
        color: var(--nav-link-color);
        background: var(--nav-link-hover-bg);
    }

    /* Top toggles are already position:fixed, nothing to change here */

    .hero {
        padding: 40px 20px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-card {
        flex-direction: row;
        text-align: left;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 40px 20px;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.nav-overlay.open {
    display: block;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-fab svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-fab-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        padding: 14px;
        border-radius: 50%;
    }

    .whatsapp-fab-label {
        display: none;
    }
}
