/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #5a5a6e;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #00ff88;
    --accent-orange: #ff6b35;
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-alt: linear-gradient(135deg, #7c3aed 0%, #ff6b35 100%);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Light Mode Overrides ===== */
:root.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-cyan: #0284c7;
    --accent-purple: #6d28d9;
    --accent-green: #16a34a;
    --accent-orange: #ea580c;
    --gradient-main: linear-gradient(135deg, #0284c7 0%, #6d28d9 100%);
    --gradient-alt: linear-gradient(135deg, #6d28d9 0%, #ea580c 100%);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(2, 132, 199, 0.15);
    --shadow-glow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

:root.light-mode #orbitGrad .grad-start { stop-color: #0284c7; }
:root.light-mode #orbitGrad .grad-end { stop-color: #6d28d9; }
:root.light-mode .orbit-ring { border-color: rgba(2, 132, 199, 0.25); }
:root.light-mode .orbit-center { background: rgba(2, 132, 199, 0.08); border-color: rgba(2, 132, 199, 0.3); }

/* Light Mode Navbar & Mobile Menu Override */
:root.light-mode .navbar {
    background: rgba(248, 250, 252, 0.8);
}
:root.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}
:root.light-mode .mobile-menu {
    background: rgba(248, 250, 252, 0.98);
}
:root.light-mode .nav-link-demo {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
}
:root.light-mode .nav-link-demo:hover {
    background: rgba(2, 132, 199, 0.15);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.15);
}
:root.light-mode .mobile-link-demo {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
}
:root.light-mode .mobile-link-demo:hover {
    background: rgba(2, 132, 199, 0.15);
}



/* Smooth theme transition */
body, .navbar, .service-card, .timeline-content, .about-card, .contact-form, .info-card, .footer, .mobile-menu, input, textarea, select {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* ===== Theme Toggle Style ===== */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 1rem;
    transition: background-color var(--transition), color var(--transition);
    z-index: 1001;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

:root.light-mode .theme-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

:root.light-mode .sun-icon { display: none; }
:root.light-mode .moon-icon { display: block; }


/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100%; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    -webkit-mask-image: url('../img/logo_only_clean.png');
    mask-image: url('../img/logo_only_clean.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link-demo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan) !important;
}
.nav-link-demo::after { display: none; }
.nav-link-demo:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.demo-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}
.mobile-link:hover { color: var(--accent-cyan); }
.mobile-link-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 4rem;
    overflow: hidden;
}
.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; flex: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.stat-item { display: flex; align-items: baseline; gap: 2px; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-suffix { font-size: 1.2rem; font-weight: 700; color: var(--accent-cyan); }
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tech-orbit {
    position: relative;
    width: 350px;
    height: 350px;
}
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { width: 200px; height: 200px; animation: orbitSpin 20s linear infinite; }
.ring-2 { width: 280px; height: 280px; animation: orbitSpin 30s linear infinite reverse; }
.ring-3 { width: 350px; height: 350px; animation: orbitSpin 40s linear infinite; }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}
#orbitGrad .grad-start { stop-color: #00d4ff; }
#orbitGrad .grad-end { stop-color: #7c3aed; }

.orbit-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}
.orbit-node::after {
    content: attr(data-label);
}
.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation: nodeFloat 4s ease-in-out infinite; }
.node-2 { right: 0; top: 50%; transform: translateY(-50%); animation: nodeFloat 4s ease-in-out infinite 1s; }
.node-3 { bottom: 0; left: 50%; transform: translateX(-50%); animation: nodeFloat 4s ease-in-out infinite 2s; }
.node-4 { left: 0; top: 50%; transform: translateY(-50%); animation: nodeFloat 4s ease-in-out infinite 3s; }
@keyframes nodeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}
.node-2 { animation-name: nodeFloatH; }
.node-4 { animation-name: nodeFloatH; }
@keyframes nodeFloatH {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    animation: scrollFadeInUp 1s ease 1s both;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}
.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes scrollFadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Sections ===== */
.section { padding: 6rem 0; position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services ===== */
.services { background: var(--bg-secondary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.service-icon svg { width: 32px; height: 32px; }
.service-icon-green { background: rgba(0, 255, 136, 0.1); color: var(--accent-green); }
.service-icon-blue { background: rgba(0, 212, 255, 0.1); color: var(--accent-cyan); }
.service-icon-purple { background: rgba(124, 58, 237, 0.1); color: var(--accent-purple); }
.service-icon-cyan { background: rgba(0, 212, 255, 0.1); color: var(--accent-cyan); }
.service-icon-orange { background: rgba(255, 107, 53, 0.1); color: var(--accent-orange); }
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}
.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: var(--transition);
}
.service-link:hover { color: var(--text-primary); }
.service-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tech-tag {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* ===== Solutions Timeline ===== */
.solutions-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.solutions-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}
.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    z-index: 1;
}
.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    flex: 1;
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.timeline-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== About ===== */
.about { background: var(--bg-secondary); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-card-stack { position: relative; height: 320px; }
.about-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.card-1 {
    top: 0;
    left: 0;
    right: 40px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.card-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}
.card-dot { width: 10px; height: 10px; border-radius: 50%; }
.card-dot.green { background: #00ff88; }
.card-dot.yellow { background: #ffbd2e; }
.card-dot.red { background: #ff5f57; }
.card-code {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    overflow-x: auto;
}
.code-keyword { color: var(--accent-purple); }
.code-class { color: var(--accent-cyan); }
.code-prop { color: #ffbd2e; }
.code-string { color: var(--accent-green); }
.code-fn { color: #ff6b35; }
.card-2 {
    bottom: 0;
    right: 0;
    width: 180px;
    padding: 1.5rem;
    z-index: 3;
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.metric { text-align: center; }
.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.metric-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.value-item:hover { border-color: var(--border-glow); }
.value-icon { font-size: 1.5rem; }
.value-item strong { display: block; font-size: 0.95rem; }
.value-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA Demo ===== */
.cta-demo { padding: 4rem 0; }
.cta-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 3rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-glow);
}
.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.cta-content p { color: var(--text-secondary); }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.form-status.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.info-card:hover { border-color: var(--border-glow); }
.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    flex-shrink: 0;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card strong { display: block; margin-bottom: 4px; }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 3;
}
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1rem; line-height: 1.6; }
.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-contact p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 1rem; }
.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
    color: var(--accent-cyan);
    border-color: var(--border-glow);
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-tech {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    opacity: 0.6;
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-left"].visible { transform: translateX(0); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-right"].visible { transform: translateX(0); }
[data-animate="scale-up"] { transform: scale(0.95); }
[data-animate="scale-up"].visible { transform: scale(1); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 6rem; min-height: auto; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { flex: none; }
    .tech-orbit { width: 280px; height: 280px; }
    .ring-3 { width: 280px; height: 280px; }
    
    /* Services: Maintain 2 columns on tablet */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-wide {
        grid-column: span 2;
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 1rem;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; text-align: center; padding: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Scroll Indicator: Responsive instead of hidden */
    .scroll-indicator {
        bottom: 1.5rem;
        gap: 6px;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    .scroll-mouse {
        width: 20px;
        height: 32px;
        border-width: 1.5px;
    }
    .scroll-mouse::after {
        width: 2px;
        height: 6px;
        top: 6px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .hero-visual { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .stat-divider { display: none; }
    
    /* Services: 1 column on mobile */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 1.5rem; }
    .service-card-wide { grid-column: span 1; }
    
    /* Solutions Timeline: reduce gap on mobile to prevent overflow */
    .timeline-item { gap: 1rem; }
    .solutions-timeline::before { left: 20px; }
    .timeline-number { width: 40px; height: 40px; font-size: 0.75rem; }
    .timeline-content { padding: 1.25rem 1.5rem; }

    /* CTA Card: Mobile optimization to prevent button overflow */
    .cta-card { padding: 2rem 1.25rem; gap: 1.5rem; }
    .cta-card .btn { width: 100%; justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 1rem; }
    .logo-main { font-size: 0.95rem; letter-spacing: 1px; }
    .logo-sub { font-size: 0.6rem; }
    .hamburger { padding: 4px; }
    
    /* About Card Stack Mobile Optimization */
    .about-card-stack { height: 260px; }
    .card-1 { right: 20px; }
    .card-code { padding: 1rem; font-size: 0.7rem; line-height: 1.6; }
    .card-2 { width: 130px; padding: 1rem; }
    .metric-value { font-size: 1.5rem; }
    .metric-label { font-size: 0.7rem; }
    
    /* Contact Form Mobile Optimization */
    .contact-form { padding: 1.5rem 1.25rem; }
}

/* Guard query for small heights */
@media (max-height: 580px) {
    .scroll-indicator {
        display: none !important;
    }
}

/* ===== References Section ===== */
.references {
    background: var(--bg-secondary);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.reference-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
}

.reference-logo:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.1);
}

/* Responsive References */
@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 480px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--bg-secondary);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--border-glow);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.08);
}

.testimonial-stars {
    color: #ffb703;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Clients Section ===== */
.clients {
    background: var(--bg-primary);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.client-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 280px;
}

.client-logo:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.1);
}

.client-logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* In Dark Mode: Invert colors to show white text/lines on transparent/dark background */
:root:not(.light-mode) .client-logo-img {
    filter: invert(1) contrast(1.1) brightness(1.2);
    mix-blend-mode: screen;
}

/* In Light Mode: Multiply white background so it blends seamlessly with the slate background */
:root.light-mode .client-logo-img {
    mix-blend-mode: multiply;
}

/* ===== FAQ Accordion ===== */
.faq {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.faq-item:hover {
    border-color: var(--border-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 20px rgba(0, 255, 136, 0.2);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 0 35px rgba(0, 255, 136, 0.4);
}

/* Pulse Animation Ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.8;
    z-index: -1;
    animation: whatsapp-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 150%);
    width: 90%;
    max-width: 800px;
    background: rgba(22, 22, 31, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    z-index: 10000;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

:root.light-mode .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(2, 132, 199, 0.05);
}

.cookie-banner.show {
    transform: translate(-50%, 0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.cookie-actions {
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 10px;
        padding: 1rem;
        width: calc(100% - 20px);
    }
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    .cookie-content p {
        text-align: center;
    }
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Contact Form Status ===== */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
    display: none;
    border: 1px solid transparent;
}

.form-status.success {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

:root.light-mode .form-status.success {
    background: rgba(22, 163, 74, 0.05);
    border-color: rgba(22, 163, 74, 0.2);
    color: #16a34a;
}

.form-status.error {
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

