@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

/*
 * CodeIdea Premium Tech Theme
 * Modern, Clean, Dark Mode with Neon Accents
 */

/* --- Preloader Styles --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #05070c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
    overflow: hidden;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden !important;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    z-index: 5;
}

.preloader-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    transform: scale(1.4);
    margin-bottom: 20px;
}

.preloader-logo .nexus-text {
    font-size: 1.8rem;
}

/* Scanline / CRT Effect */
.preloader-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(6, 182, 212, 0.03) 50%,
            transparent 100%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Terminal Design */
.preloader-terminal {
    width: 100%;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(6, 182, 212, 0.05);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.header-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.header-dot:nth-child(1) {
    background: #ff5f56;
    box-shadow: 0 0 10px rgba(255, 95, 86, 0.3);
}

.header-dot:nth-child(2) {
    background: #ffbd2e;
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.3);
}

.header-dot:nth-child(3) {
    background: #27c93f;
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.3);
}

.header-title {
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    color: rgba(255, 255, 255, 0.3);
    text-transform: lowercase;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 25px;
    font-family: 'Fira Code', monospace;
}

.terminal-text {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    min-height: 1.4rem;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.progress-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    box-shadow: 0 0 20px var(--accent-primary);
    border-radius: 10px;
    transition: width 0.2s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.progress-number {
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

:root {
    /* Colors */
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(10, 14, 23, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Accents - Neon Gradients */
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-cyan: #06b6d4;
    /* Cyan */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(90deg, #fff, var(--accent-cyan));

    /* Decoration */
    --blur-strength: 12px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --primary: #008f9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utilities --- */
.gradient-text {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    border: var(--border-glass);
    color: var(--text-main);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header --- */
/* --- Premium Floating Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    width: 95%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 15px 0;
    margin-top: 20px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.05), transparent);
    animation: header-scan 8s infinite linear;
    pointer-events: none;
}

@keyframes header-scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 35px;
}

/* --- Ultra-Modern Logo Redesign --- */
.logo-nexus {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.nexus-logo-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nexus-icon {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nexus-shape-1,
.nexus-shape-2,
.nexus-shape-3 {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nexus-shape-1 {
    transform: rotate(45deg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    z-index: 3;
    animation: nexus-float 4s infinite ease-in-out;
}

.nexus-shape-2 {
    transform: rotate(45deg);
    border-color: var(--accent-cyan);
    opacity: 0.6;
    z-index: 2;
    animation: nexus-float 4s infinite ease-in-out 0.5s;
}

.nexus-shape-3 {
    transform: rotate(45deg);
    border-color: rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    z-index: 1;
    border-style: dashed;
}

.nexus-core {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-cyan);
    z-index: 4;
    animation: nexus-pulse 2s infinite ease-in-out;
}

.logo-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.logo-nexus:hover .nexus-shape-1 {
    transform: rotate(225deg) scale(1.1);
}

.logo-nexus:hover .nexus-shape-2 {
    transform: rotate(-135deg) scale(0.85);
}

.logo-nexus:hover .nexus-shape-3 {
    transform: rotate(135deg) scale(1.2);
}

.nexus-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

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

@keyframes nexus-float {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-4px);
    }
}

@keyframes nexus-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    font-family: 'Fira Code', monospace;
}

.nav-link::before {
    content: '[';
    position: absolute;
    left: 4px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--accent-cyan);
}

.nav-link::after {
    content: ']';
    position: absolute;
    right: 4px;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
    color: var(--accent-cyan);
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 0.5;
    transform: translateX(0);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.btn-cta-nav {
    background: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    color: #000 !important;
    font-weight: 700;
    margin-left: 15px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-cta-nav:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--accent-cyan);
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

/* Language Switcher */
.lang-switch-wrapper {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 1;
}

.lang-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.4s ease;
}

.lang-switch.en .lang-indicator {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.lang-switch.en .lang-text {
    color: var(--accent-cyan);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background-color: #fff;
    transition: all 0.4s ease;
    border-radius: 2px;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    font-weight: 300;
}

.highlight-text {
    color: #fff;
    font-weight: 500;
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.btn-glow:hover .btn-shimmer {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.btn-slide i {
    transition: transform 0.3s ease;
}

.btn-slide:hover i {
    transform: translateX(5px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Code Window */
.code-window-wrapper {
    position: relative;
    perspective: 1000px;
}

.code-window {
    background: #1e1e2e;
    /* Draco Dark */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
}

.window-header {
    background: #2a2a3c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.window-title {
    flex-grow: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0.7;
}

.window-body {
    padding: 20px;
    display: flex;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 320px;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.2);
    padding-right: 20px;
    text-align: right;
    user-select: none;
}

.code-content {
    color: #a9b7c6;
}

/* Syntax Highlighting */
.code-keyword {
    color: #cc7832;
}

.code-function {
    color: #ffc66d;
}

.code-string {
    color: #6a8759;
}

.code-variable {
    color: #9876aa;
}

.code-class {
    color: #a9b7c6;
}

.code-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-cyan);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
}

.badge-ai {
    top: -20px;
    right: -20px;
    color: var(--accent-secondary);
}

.badge-speed {
    bottom: 40px;
    left: -30px;
    color: var(--accent-cyan);
    animation-delay: 2s;
}

.window-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 1;
}

/* Background Elements */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

/* --- Services --- */
#services {
    padding: 120px 0;
    background: radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, var(--bg-dark), #0f121e);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.03;
    pointer-events: none;
    border-radius: 50%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(6, 182, 212, 0.1) inset;
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .icon-box {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card h3::before {
    content: '</>';
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    opacity: 0.5;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    margin-bottom: 25px;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.card-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.card-code-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-family: monospace;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    user-select: none;
    z-index: 0;
    pointer-events: none;
}

/* --- Tech Stack Refinement --- */
#tech-stack {
    padding: 100px 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    position: relative;
}

.marquee-container {
    overflow: visible;
    /* Allow 3D overflow */
    position: relative;
    perspective: 1200px;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 250px;
    height: calc(100% + 40px);
    z-index: 5;
    pointer-events: none;
}

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

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

.tech-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    transform: rotateX(5deg) scale(1.02);
}

.marquee-row {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 15px 0;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
}

.scroll-left {
    animation: scroll 60s linear infinite;
}

.scroll-right {
    animation: scroll-reverse 60s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.3));
    transition: all 0.4s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    color: #fff;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    z-index: 10;
}

.tech-item:hover i {
    color: var(--accent-secondary);
    transform: rotate(360deg);
}

/* --- Portfolio --- */
#portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    overflow: hidden;
    position: relative;
    /* group-hover logic handled via child selectors */
}

.portfolio-img {
    height: 250px;
    width: 100%;
    background: #1a1f2e;
    position: relative;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .img-placeholder {
    transform: scale(1.1);
}

.bg-blue {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.bg-purple {
    background: linear-gradient(45deg, #581c87, #a855f7);
}

.bg-cyan {
    background: linear-gradient(45deg, #0e7490, #06b6d4);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Process Section Redesign --- */
#process {
    padding: 120px 0;
    background: linear-gradient(to bottom, #0f121e, var(--bg-dark));
    position: relative;
    overflow: hidden;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
}

/* Connecting Line (Only for desktop) */
@media (min-width: 1024px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 120px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg,
                var(--accent-cyan) 0%,
                var(--accent-primary) 50%,
                var(--accent-secondary) 100%);
        opacity: 0.1;
        z-index: 0;
    }
}

.process-step {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.process-step:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.process-step:hover::before {
    opacity: 1;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-num {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Fira Code', monospace;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.step-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.status-pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.status-running {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-deployed {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.process-step h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Step Connection Dot */
.step-dot {
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.process-step:hover .step-num {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* --- Contact Section Redesign --- */
#contact {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info .section-title {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 25px;
    line-height: 1.1;
}

.contact-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #25d366;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.status-dot-active {
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25d366;
    animation: pulse 2s infinite;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 45px;
    max-width: 500px;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-item h5 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.contact-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.contact-cta-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.cta-box:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.cta-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.cta-box.whatsapp:hover .cta-icon {
    background: #25d366;
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.cta-box.call:hover .cta-icon {
    background: var(--accent-cyan);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.cta-content span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    margin-bottom: 4px;
    opacity: 0.7;
}

.cta-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info .section-title {
        font-size: 2.8rem;
    }
}

footer {
    position: relative;
    padding: 120px 0 0;
    background: #080a0c;
    color: white;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: 0.5s;
}

.footer-brand img:hover {
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.4));
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin: 25px 0 35px;
    max-width: 350px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-menu-icons {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-menu-icons li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-menu-icons li a small {
    font-size: 0.5em;
    opacity: 0.5;
    margin-left: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-menu-icons li a i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: 0.3s;
}

.footer-menu-icons li a:hover {
    color: white;
    transform: translateX(10px);
}

.footer-menu-icons li a:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--primary);
}

.footer-contact .footer-menu-icons li a {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.footer-contact .footer-menu-icons li a .contact-country-label {
    margin-left: auto;
    margin-right: 0;
}

.footer-contact .footer-menu-icons li a:hover {
    border-color: var(--primary);
    transform: none;
}

.contact-country-label {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.contact-country-label.mex {
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.contact-country-label.usa {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.contact-info-item i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.legal-grid a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-grid a:hover {
    color: var(--primary);
}

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 80px 0 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 25px;
        text-align: center;
    }
}


/* --- Floating Dock & Modals --- */
.floating-dock {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02);
    z-index: 10000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: dockEntrance 1.2s 1s backwards cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #fff;
    font-size: 22px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-item:hover {
    transform: scale(1.15) translateX(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.dock-label {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dock-item:hover .dock-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes dockEntrance {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .floating-dock {
        right: 20px;
        bottom: 20px;
        padding: 8px;
        gap: 8px;
        border-radius: 20px;
    }

    .dock-item {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .dock-label {
        display: none;
    }
}

/* Modals */
.wa-modal,
.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wa-modal.active,
.qr-modal.active {
    display: flex;
}

.wa-modal-content,
.qr-modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-modal-close,
.qr-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
}

.wa-modal-close:hover,
.qr-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.wa-icon-large,
.qr-modal-icon {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 20px;
}

.wa-title,
.qr-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.wa-desc,
.qr-modal-desc {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 30px;
}

.wa-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-option-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wa-option-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.wa-option-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.wa-opt-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-opt-info {
    text-align: left;
}

.wa-opt-title {
    display: block;
    color: white;
    font-weight: 700;
}

.wa-opt-desc {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.wa-qr-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.wa-qr-btn:hover {
    background: var(--primary);
    color: white;
}

/* QR Canvas */
.qr-canvas-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.qr-contact-label {
    color: #94a3b8;
    font-weight: 600;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
}

/* --- Responsive Optimizations --- */

@media (max-width: 1024px) {
    .container {
        width: 92%;
        padding: 0 15px;
    }

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

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 20px;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 25px;
        width: 100%;
    }

    .hero-visual {
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        transform: scale(0.9);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    header {
        padding: 20px 0;
    }

    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.08);
        /* Glass effect */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        z-index: 1002;
    }

    .menu-toggle:active {
        transform: scale(0.95);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 7, 12, 0.98);
        /* Deeper dark for contrast */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        border: none;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger touch targets */
        padding: 15px 30px;
        width: 80%;
        text-align: center;
    }

    .btn-cta-nav {
        margin-left: 0;
        width: 80%;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .lang-switch-wrapper {
        margin: 20px 0;
        transform: scale(1.2);
    }

    /* Hero Typography */
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* Footer */
    footer {
        padding: 60px 0 100px;
        /* Extra padding bottom for dock */
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        /* Copyright at bottom */
        gap: 20px;
        padding-top: 30px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Floating Dock Mobile Adjustment */
    .floating-dock {
        right: 20px;
        bottom: 20px;
        padding: 8px;
        gap: 12px;
        /* Slight increase for touch */
        border-radius: 20px;
        background: rgba(20, 20, 30, 0.6);
        /* Darker background for visibility */
        border: 1px solid rgba(255, 255, 255, 0.12);
        flex-direction: row;
        /* Horizontal on mobile is often better, let's keep vertical for now but ensure fit */
    }

    .dock-item {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* --- Tech Stack Mobile --- */
    #tech-stack {
        padding: 60px 0;
    }

    .tech-marquee-wrapper {
        transform: none;
        gap: 25px;
    }

    .marquee-row {
        padding: 10px 0;
    }

    .marquee-track {
        gap: 20px;
    }

    .tech-item {
        padding: 10px 20px;
        font-size: 0.95rem;
        gap: 10px;
        border-radius: 12px;
    }

    .tech-item i {
        font-size: 1.2rem;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Preloader Logo Scaling for Mobile */
    .preloader-logo {
        transform: scale(0.9);
        flex-direction: column;
        gap: 15px;
    }

    .preloader-logo .nexus-text {
        font-size: 1.8rem;
    }
}

/* Hamburger Animation */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}