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

:root {
    --bg: #06090f;
    --bg-elevated: #0c1220;
    --bg-card: #111a2e;
    --border: rgba(59, 130, 246, 0.12);
    --border-hover: rgba(59, 130, 246, 0.3);
    --blue-primary: #2563eb;
    --blue-accent: #3b82f6;
    --blue-glow: #60a5fa;
    --blue-muted: #1e3a8a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #06090f 0%, #0c1a3a 50%, #0f172a 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --gradient-card: linear-gradient(160deg, rgba(30, 58, 138, 0.08), rgba(59, 130, 246, 0.04));
    --header-bg: rgba(6, 9, 15, 0.85);
    --header-bg-scrolled: rgba(6, 9, 15, 0.95);
    --mobile-menu-bg: rgba(6, 9, 15, 0.98);
    --noise-opacity: 0.03;
    --btn-ghost-bg: rgba(255, 255, 255, 0.05);
    --btn-ghost-hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-focus-bg: rgba(37, 99, 235, 0.05);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: #f1f5f9;
    --border: rgba(30, 58, 138, 0.12);
    --border-hover: rgba(30, 58, 138, 0.25);
    --blue-primary: #2563eb;
    --blue-accent: #3b82f6;
    --blue-glow: #1d4ed8;
    --blue-muted: #1e3a8a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #eff6ff 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --gradient-card: linear-gradient(160deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.03));
    --header-bg: rgba(248, 250, 252, 0.85);
    --header-bg-scrolled: rgba(248, 250, 252, 0.95);
    --mobile-menu-bg: rgba(248, 250, 252, 0.98);
    --noise-opacity: 0.015;
    --btn-ghost-bg: rgba(0, 0, 0, 0.04);
    --btn-ghost-hover-bg: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-focus-bg: rgba(37, 99, 235, 0.06);
}

html { scroll-behavior: smooth; }

html, body, header, .service-card, .why-card, .contact-form-card,
.form-group input, .form-group textarea, .scroll-top, .btn-ghost,
.why-icon, footer {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══ NOISE TEXTURE ═══ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity, 1);
}

/* ═══ HEADER ═══ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255,255,255,0.6));
}

[data-theme="light"] .logo img {
    filter: none;
}

.logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--blue-glow); }

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-blue);
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 2px 15px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.5) !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ═══ THEME TOGGLE ═══ */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Dark mode: sun icon filled yellow/gold */
.theme-toggle .icon-sun { display: block; color: #fbbf24; fill: #fbbf24; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle:hover { border-color: #fbbf24; }
.theme-toggle:hover .icon-sun { color: #fde68a; fill: #fde68a; }

/* Light mode: moon icon filled dark */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; color: #1e293b; fill: #1e293b; }
[data-theme="light"] .theme-toggle:hover { border-color: #1e293b; }
[data-theme="light"] .theme-toggle:hover .icon-moon { color: #0f172a; fill: #0f172a; }

/* Light mode: reduce hero orb intensity */
[data-theme="light"] .hero-orb { opacity: 0.08; }

[data-theme="light"] .why-icon {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
}

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 8rem 5% 6rem;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px; height: 600px;
    background: var(--blue-primary);
    top: -200px; right: -100px;
}

.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--blue-glow);
    bottom: -100px; left: -50px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 860px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-glow);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--blue-glow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blue-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
    background: linear-gradient(90deg, var(--blue-glow), #a78bfa, #3b82f6, var(--blue-glow));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

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

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
    background: var(--btn-ghost-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    background: var(--btn-ghost-hover-bg);
    border-color: var(--blue-glow);
    transform: translateY(-3px);
}

/* ═══ STATS BAR ═══ */
.stats-bar {
    padding: 3rem 5%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ═══ SECTIONS COMMON ═══ */
.section { padding: 7rem 5%; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ═══ SERVICES ═══ */
.services { background: var(--bg); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1.5px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 30%, var(--blue-accent), #a78bfa, var(--blue-glow), transparent 70%);
    -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.4s ease;
    z-index: 0;
    animation: borderSpin 4s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.service-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 60px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 60px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.service-card:hover::after { opacity: 1; }

.service-card > * { position: relative; z-index: 1; }

.service-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: box-shadow 0.4s ease;
}

/* ═══ SERVICE ICON COLORS ═══ */
.sicon-cloud    { background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(37, 99, 235, 0.2); color: #3b82f6; }
.sicon-email    { background: rgba(234, 88, 12, 0.12); border: 1px solid rgba(234, 88, 12, 0.2); color: #f97316; }
.sicon-phone    { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.2); color: #10b981; }
.sicon-marketing{ background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.2); color: #a855f7; }
.sicon-security { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.sicon-intel    { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.2); color: #f59e0b; }
.sicon-dev      { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.2); color: #06b6d4; }
.sicon-vpn      { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.2); color: #22c55e; }
.sicon-consult  { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.2); color: #fbbf24; }

.service-card:hover .sicon-cloud    { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.service-card:hover .sicon-email    { box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); }
.service-card:hover .sicon-phone    { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.service-card:hover .sicon-marketing{ box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.service-card:hover .sicon-security { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.service-card:hover .sicon-intel    { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.service-card:hover .sicon-dev      { box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); }
.service-card:hover .sicon-vpn      { box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
.service-card:hover .sicon-consult  { box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }

.service-icon-wrap svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon-wrap svg {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.2) rotate(-8deg); }
    50% { transform: scale(0.95) rotate(4deg); }
    70% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.service-tag {
    padding: 0.25rem 0.7rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--blue-glow);
    font-weight: 500;
}

/* ═══ WHY US ═══ */
.why-us { background: var(--bg-elevated); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.why-card:hover {
    border-color: var(--border);
    background: rgba(37, 99, 235, 0.03);
}

.why-icon {
    width: 68px; height: 68px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    color: var(--white);
    animation: glowPulse 3s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon { animation-delay: 0.5s; }
.why-card:nth-child(3) .why-icon { animation-delay: 1s; }
.why-card:nth-child(4) .why-icon { animation-delay: 1.5s; }

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25); }
    50% { box-shadow: 0 8px 35px rgba(37, 99, 235, 0.45), 0 0 20px rgba(59, 130, 246, 0.2); }
}

.why-icon svg {
    width: 32px;
    height: 32px;
}

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

.why-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.2px;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ═══ CONTACT ═══ */
.contact { background: var(--bg); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
    width: 42px; height: 42px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-accent);
}

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

.contact-detail-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.contact-detail-text p {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-detail-text a {
    color: var(--blue-glow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-detail-text a:hover { color: var(--blue-accent); }
[data-theme="light"] .contact-detail-text a:hover { color: var(--blue-muted); }

.contact-form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-accent);
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══ FORM VALIDATION ═══ */
.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #22c55e;
}

.field-error {
    color: #f87171;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    display: none;
    font-weight: 500;
}

.field-error.visible { display: block; }

.form-msg {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-msg.form-success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-msg.form-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-question {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-glow);
    white-space: nowrap;
    min-width: fit-content;
    padding: 0.85rem 0;
}

.captcha-row .form-group { flex: 1; margin-bottom: 0; }

.captcha-refresh {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.7rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    border-color: var(--blue-accent);
    color: var(--blue-glow);
}

.honey-pot { position: absolute; left: -9999px; }

/* ═══ FOOTER ═══ */
footer {
    padding: 3rem 5% 2rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255,255,255,0.6));
}

[data-theme="light"] .footer-logo img {
    filter: none;
}

.footer-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--blue-glow); }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ═══ SCROLL TO TOP ═══ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--gradient-blue);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    color: var(--blue-glow);
}

.scroll-top:hover svg { color: var(--white); }

/* ═══ WHATSAPP BUTTON ═══ */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ═══ HERO ANIMATIONS ═══ */
.hero-content > * {
    opacity: 0;
    transform: translateY(25px);
    animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ SUBPAGE CONTENT ═══ */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 5% 4rem;
    min-height: 70vh;
}

.page-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
}

.page-content .page-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.page-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.page-content p,
.page-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.page-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.page-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--blue-accent);
    border-radius: 50%;
}

.mt-2 { margin-top: 2rem; }

.page-content a {
    color: var(--blue-glow);
    text-decoration: none;
    transition: color 0.3s;
}

.page-content a.btn-primary {
    color: var(--white);
}

.page-content a:hover { color: var(--blue-accent); }
.page-content a.btn-primary:hover { color: var(--white); }
[data-theme="light"] .page-content a:hover { color: var(--blue-muted); }
[data-theme="light"] .page-content a.btn-primary:hover { color: var(--white); }

/* ═══ ABOUT PAGE ═══ */
.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.about-value {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.about-value h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-value p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(20px);
        padding: 1.5rem 5%;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
    .mobile-toggle { display: block; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 7rem 5% 4rem; }
    .section { padding: 5rem 5%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .about-values { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .service-hero { padding: 8rem 5% 3rem; }
}

/* ═══ SERVICE CARD LINKS ═══ */
a.service-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ═══ PAGE TRANSITIONS ═══ */
body {
    animation: pageIn 0.4s ease;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.page-exit {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* ═══ SERVICE PAGE HERO ═══ */
.service-hero {
    padding: 10rem 5% 4rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.service-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--blue-glow);
}

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

.service-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.service-hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.service-hero-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
    margin-bottom: 2rem;
}

.service-back:hover { color: var(--blue-glow); }

/* ═══ SERVICE FEATURES ═══ */
.service-features {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.service-features-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ═══ SERVICE CTA ═══ */
.service-cta {
    padding: 5rem 5%;
    text-align: center;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.service-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.service-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══ HERO PARTICLES ═══ */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--blue-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
    z-index: 1;
}

.hero-particle:nth-child(1) { left: 15%; top: 30%; animation-duration: 18s; animation-delay: 0s; width: 3px; height: 3px; }
.hero-particle:nth-child(2) { left: 75%; top: 20%; animation-duration: 22s; animation-delay: -5s; width: 5px; height: 5px; opacity: 0.2; }
.hero-particle:nth-child(3) { left: 45%; top: 70%; animation-duration: 15s; animation-delay: -8s; width: 3px; height: 3px; }
.hero-particle:nth-child(4) { left: 85%; top: 60%; animation-duration: 20s; animation-delay: -3s; width: 4px; height: 4px; opacity: 0.25; }
.hero-particle:nth-child(5) { left: 25%; top: 80%; animation-duration: 25s; animation-delay: -12s; width: 3px; height: 3px; opacity: 0.2; }

@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    50% { transform: translate(40px, -60px) scale(1.5); opacity: 0.15; }
    90% { opacity: 0.3; }
    100% { transform: translate(-20px, -120px) scale(1); opacity: 0; }
}

/* ═══ HERO BADGE TYPING ═══ */
.hero-badge .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--blue-glow);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══ TECH MARQUEE ═══ */
.tech-marquee {
    padding: 2.5rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-inner {
    display: flex;
    width: fit-content;
    animation: marqueeScroll 35s linear infinite;
    will-change: transform;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.marquee-set {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.marquee-item:hover {
    color: var(--text-primary);
}

.marquee-item svg,
.marquee-item img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.marquee-item:hover svg,
.marquee-item:hover img {
    transform: scale(1.15);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-inner { animation-duration: 120s; }
    .hero-particle { animation: none; opacity: 0.15; }
    .hero h1 .gradient-text { animation: none; }
    .why-icon { animation: none; }
}
