/*
Theme Name: mChector SA Vibe
Author: mChector
Description: Premium Web Development Agency Theme for mchectordev.com
Version: 1.0
*/

/* ============================================
   mChector SA — Premium Web Dev Agency
   Domain: mchectordev.com
============================================ */

:root {
    --bg-dark: #050709;
    --bg-surface: rgba(14, 17, 28, 0.7);
    --primary: #00e5ff;
    --primary-dim: rgba(0, 229, 255, 0.15);
    --primary-glow: rgba(0, 229, 255, 0.35);
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text-main: #eef0f6;
    --text-muted: #7c8299;
    --text-dim: #4a5068;
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(0, 229, 255, 0.25);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-lg: 24px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

/* ── Elementor Compatibility ── */
.elementor-section,
.elementor-container,
.elementor-widget-wrap {
    position: relative;
}

/* Restore default cursor inside Elementor editor */
.elementor-editor-active body,
.elementor-editor-active * {
    cursor: auto !important;
}
.elementor-editor-active .cursor-dot,
.elementor-editor-active .cursor-outline {
    display: none !important;
}

/* ── Noise Texture Overlay ── */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9990;
}

/* ── Typography ── */
h1, h2, h3, h4, .logo { font-family: var(--font-heading); color: #fff; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ── Custom Cursor ── */
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999;
    transition: width 0.15s, height 0.15s;
    box-shadow: 0 0 8px var(--primary);
}
.cursor-outline {
    width: 36px; height: 36px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* ── Navigation ── */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(5, 7, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.9rem 5%;
}
.logo {
    font-size: 1.7rem; font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-extra { display: flex; align-items: center; gap: 1.5rem; }

/* ── Menu Toggle Button ── */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    transition: var(--transition);
    padding: 0;
}
.menu-toggle:hover {
    border-color: var(--border-active);
    background: var(--primary-dim);
    color: var(--primary);
}

/* ══════════════════════════════════════════
   MOBILE MENU DRAWER
══════════════════════════════════════════ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 9, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    background: #0a0d14;
    border-left: 1px solid var(--border-glass);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.mobile-menu-close {
    background: none;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}
.mobile-menu-close:hover {
    color: var(--primary);
    border-color: var(--border-active);
    background: var(--primary-dim);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    gap: 0;
    flex: 1;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
    letter-spacing: -0.02em;
}
.mobile-nav-links a:last-child {
    border-bottom: none;
}
.mobile-nav-links a span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary);
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.05em;
}
.mobile-nav-links a:hover {
    color: var(--text-main);
    padding-left: 0.5rem;
}
.mobile-nav-links a:hover span {
    opacity: 1;
}

.mobile-menu-footer {
    padding: 1.75rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
}
.mobile-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.mobile-social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.mobile-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; position: relative; overflow: hidden; z-index: 1;
    letter-spacing: 0.02em;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 24px var(--primary-glow);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 32px var(--primary-glow);
    color: var(--bg-dark);
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: -1;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    color: var(--text-main);
}

/* ── Section Shared ── */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 8px;
}
.section-label::before {
    content: '';
    display: inline-block; width: 24px; height: 1px;
    background: var(--primary);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-label { justify-content: center; }
.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Glass Panel ── */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ╔══════════════════════════════════╗
   ║  HERO SECTION                    ║
   ╚══════════════════════════════════╝ */
.hero-modern {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 0 5%;
    position: relative; overflow: hidden;
}

#bgCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0.7;
}

.hero-container {
    width: 100%; max-width: 1400px;
    margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
    z-index: 2; position: relative;
    padding-top: 6rem;
}

.hero-text-area { display: flex; flex-direction: column; align-items: flex-start; }

.badge-modern {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid var(--border-active);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem; color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.hero-title-modern {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    display: flex; flex-direction: column;
}
.hero-title-modern em {
    font-style: italic;
    background: linear-gradient(110deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.line-reveal {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: lineReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.line-reveal.delay-1 { animation-delay: 0.15s; }
.line-reveal.delay-2 { animation-delay: 0.3s; }
@keyframes lineReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc-modern {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
    animation: fadeUp 0.8s 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta-modern {
    display: flex; align-items: center; gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
.link-modern {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}
.link-modern:hover { color: var(--primary); }
.link-modern i { transition: transform 0.3s; }
.link-modern:hover i { transform: translateX(4px); }

.hero-stats {
    display: flex; align-items: center; gap: 2rem;
    animation: fadeUp 0.8s 0.65s cubic-bezier(0.16,1,0.3,1) both;
}
.stat-item {
    display: flex; flex-direction: column;
    font-family: var(--font-heading);
}
.stat-item > *:first-child {
    font-size: 2rem; font-weight: 800;
    color: #fff; line-height: 1;
}
.stat-num { display: inline; }
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 4px;
}
.stat-divider {
    width: 1px; height: 36px;
    background: var(--border-glass);
}

/* ── Code Window ── */
.hero-code-area {
    position: relative;
    animation: fadeUp 0.8s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.code-window {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.code-window-header {
    display: flex; align-items: center;
    padding: 0.9rem 1.25rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 0.75rem;
}
.window-dots { display: flex; gap: 6px; }
.window-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window-title {
    font-family: var(--font-mono);
    font-size: 0.78rem; color: var(--text-dim);
    margin-left: 0.5rem;
}
.window-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 100px;
}
.window-badge.live {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.25);
    animation: pulseLive 2s infinite;
}
@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.code-body {
    padding: 1.5rem 1.75rem;
    min-height: 280px;
    background: #0d1117;
}
.code-content {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.75;
    color: #c9d1d9;
    white-space: pre;
    overflow: hidden;
}
.kw { color: #ff7b72; }
.fn { color: #d2a8ff; }
.str { color: #a5d6ff; }
.num { color: #79c0ff; }
.com { color: #6e7681; font-style: italic; }
.var { color: #ffa657; }
.prop { color: #7ee787; }

.type-cursor::after {
    content: '\25ae';
    animation: blink 0.8s infinite;
    color: var(--primary);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.code-window-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1.25rem;
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--text-dim);
}

.floating-badge {
    position: absolute;
    display: flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    background: rgba(14, 17, 28, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem; color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: floatBadge 4s ease-in-out infinite alternate;
}
.badge-react { top: -18px; right: 30px; border-color: rgba(97,218,251,0.3); }
.badge-react i { color: #61dafb; font-size: 1rem; }
.badge-node { bottom: 60px; left: -20px; border-color: rgba(104,160,99,0.3); animation-delay: 1s; }
.badge-node i { color: #68a063; font-size: 1rem; }
.badge-perf { bottom: -18px; right: 60px; border-color: rgba(0,229,255,0.3); animation-delay: 2s; }
.badge-perf i { color: var(--primary); font-size: 1rem; }

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2;
}
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.15em;
    writing-mode: vertical-rl;
}

/* ╔══════════════════════════════════╗
   ║  MARQUEE                         ║
   ╚══════════════════════════════════╝ */
.marquee-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
    background: rgba(255,255,255,0.015);
}
.marquee-track { overflow: hidden; }
.marquee-content {
    display: flex; align-items: center; gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-content span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0 1.5rem;
    letter-spacing: 0.05em;
}
.marquee-content .dot-sep {
    color: var(--primary);
    font-size: 0.5rem;
    padding: 0;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ╔══════════════════════════════════╗
   ║  SERVICES — BENTO GRID           ║
   ╚══════════════════════════════════╝ */
.services {
    padding: 6rem 5%;
    max-width: 1400px; margin: 0 auto;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.bento-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition-slow);
    position: relative; overflow: hidden;
}
.bento-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,229,255,0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}
.bento-card:hover::after { opacity: 1; }
.bento-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.bento-large { grid-column: span 5; }
.bento-tall { grid-column: span 3; grid-row: span 2; }
.bento-metric { grid-column: span 4; }
.bento-wide { grid-column: span 6; }
.bento-small { grid-column: span 3; }
.bento-code { grid-column: span 3; background: #0d1117; border-color: rgba(255,255,255,0.07); }

.bento-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    font-size: 1.5rem; color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.bento-card:hover .bento-icon {
    background: rgba(0,229,255,0.2);
    box-shadow: 0 0 20px var(--primary-glow);
}
.bento-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.bento-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.25rem;
}
.bento-tags span {
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--text-muted);
}
.bento-accent-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.bento-card:hover .bento-accent-line { transform: scaleX(1); }
.bento-glow {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 180px; height: 180px;
    background: var(--secondary);
    border-radius: 50%; filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}
.bento-metric {
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    background: rgba(0,229,255,0.04);
    border-color: rgba(0,229,255,0.1);
}
.metric-num {
    font-family: var(--font-heading);
    font-size: 4.5rem; font-weight: 800;
    line-height: 1; color: #fff;
    letter-spacing: -0.05em;
}
.metric-num span { color: var(--primary); }
.metric-label {
    font-size: 0.95rem; color: var(--text-muted);
    margin: 0.5rem 0 0.75rem;
    font-family: var(--font-mono);
}
.metric-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }

.bento-code { padding: 1.75rem; }
.mini-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: #c9d1d9;
}
.c-keyword { color: #ff7b72; }
.c-var { color: #ffa657; }
.c-num { color: #79c0ff; }
.c-comment { color: #6e7681; font-style: italic; }
.c-fn { color: #d2a8ff; }
.bento-code p { font-size: 0.82rem; color: var(--text-dim); }

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.service-card.visible { opacity: 1; transform: translateY(0); }

/* ╔══════════════════════════════════╗
   ║  PROCESS SECTION                 ║
   ╚══════════════════════════════════╝ */
.process-section {
    padding: 6rem 5%;
    border-top: 1px solid var(--border-glass);
    max-width: 1400px; margin: 0 auto;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.process-step {
    padding: 2rem;
    position: relative;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step.visible { opacity: 1; transform: translateY(0); }
.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }

.step-num {
    font-family: var(--font-mono);
    font-size: 3.5rem; font-weight: 400;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    margin-bottom: 1.5rem;
    user-select: none;
}
.process-step:hover .step-num { color: rgba(0,229,255,0.1); }
.step-content h3 { font-size: 1.15rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.step-connector {
    position: absolute;
    top: 3rem; right: 0;
    width: 1px; height: 40%;
    background: linear-gradient(to bottom, var(--border-glass), transparent);
}

/* ╔══════════════════════════════════╗
   ║  CONTACT                         ║
   ╚══════════════════════════════════╝ */
.contact {
    padding: 6rem 5%;
    max-width: 1400px; margin: 0 auto;
}
.contact-container {
    display: flex; flex-wrap: wrap;
    gap: 4rem; padding: 4rem;
    border-radius: 28px;
}
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item i {
    font-size: 1.2rem; color: var(--primary);
    background: var(--primary-dim);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-active);
    flex-shrink: 0;
}
.contact-item span { font-weight: 500; font-size: 0.95rem; }
.contact-form {
    flex: 1; min-width: 300px;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.input-group { position: relative; }
.input-group input,
.input-group textarea {
    width: 100%; padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: var(--transition); outline: none;
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: rgba(0,229,255,0.03);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.input-group label {
    position: absolute; left: 1.1rem; top: 1rem;
    color: var(--text-muted);
    transition: var(--transition); pointer-events: none;
    font-size: 0.9rem;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.55rem; left: 0.8rem;
    font-size: 0.75rem;
    background: var(--bg-dark);
    padding: 0 0.4rem;
    color: var(--primary);
    border-radius: 4px;
}
.submit-btn { border: none; width: 100%; }

/* ╔══════════════════════════════════╗
   ║  FOOTER                          ║
   ╚══════════════════════════════════╝ */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(5,7,9,0.8);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.88rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px; font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center; color: var(--text-dim);
    font-family: var(--font-mono); font-size: 0.78rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

/* ╔══════════════════════════════════╗
   ║  PORTFOLIO PAGE                  ║
   ╚══════════════════════════════════╝ */
.page-header {
    padding: 150px 5% 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(5,7,9,0) 0%, rgba(0,229,255,0.02) 100%);
    border-bottom: 1px solid var(--border-glass);
}
.page-header h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}
.page-header h1 span { color: var(--primary); }
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.portfolio-detailed-grid {
    padding: 5rem 5%;
    display: flex; flex-direction: column;
    gap: 5rem;
    max-width: 1400px; margin: 0 auto;
}
.detailed-project {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 3rem;
    transition: var(--transition-slow);
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.detailed-project.visible { opacity: 1; transform: translateY(0); }
.detailed-project:hover {
    border-color: var(--border-active);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.detailed-project:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.detailed-project:nth-child(even) .project-info { order: -1; }

.project-video-wrapper {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border-glass);
    aspect-ratio: 16/10; background: #111;
    position: relative;
}
.project-video-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    transition: transform 5s ease;
}
.detailed-project:hover .project-video-wrapper img { transform: scale(1.05) translateY(-2%); }

.project-info .category {
    font-family: var(--font-mono);
    color: var(--primary); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.75rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.project-info .category::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--primary); }
.project-info h2 { font-size: 2.2rem; margin-bottom: 1rem; letter-spacing: -0.03em; }
.project-info p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; font-size: 0.98rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.tech-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 5px;
}
.project-links { display: flex; gap: 1rem; }

/* ╔══════════════════════════════════╗
   ║  PRICING PAGE                    ║
   ╚══════════════════════════════════╝ */
.pricing-section {
    padding: 5rem 5%;
    max-width: 1200px; margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pricing-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2rem;
    transition: var(--transition-slow);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.pricing-card.visible { opacity: 1; transform: translateY(0); }
.pricing-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: rgba(255,255,255,0.06);
    transition: var(--transition);
}
.pricing-card:hover {
    border-color: var(--border-active);
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.pricing-card:hover::before,
.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.pricing-card.featured {
    border-color: rgba(0,229,255,0.15);
    box-shadow: 0 8px 32px rgba(0,229,255,0.08);
}
.pkg-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    border-radius: 14px;
    font-size: 1.6rem; color: var(--primary);
    margin-bottom: 1.5rem;
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.price {
    font-size: 2.8rem; font-weight: 800; color: #fff;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    display: flex; align-items: baseline; gap: 5px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-desc { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; min-height: 45px; }
.features-list { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.features-list li {
    position: relative; padding-left: 28px;
    margin-bottom: 0.9rem; color: var(--text-main); font-size: 0.92rem;
}
.features-list li i { position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 1.1rem; }
.pricing-card .btn { width: 100%; }

/* ╔══════════════════════════════════╗
   ║  RESPONSIVE                      ║
   ╚══════════════════════════════════╝ */
@media (max-width: 1100px) {
    .bento-large { grid-column: span 7; }
    .bento-tall { grid-column: span 5; }
    .bento-metric { grid-column: span 12; }
    .bento-wide { grid-column: span 8; }
    .bento-small { grid-column: span 4; }
    .bento-code { grid-column: span 12; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center; gap: 3rem; padding-top: 5rem;
    }
    .hero-text-area { align-items: center; }
    .hero-desc-modern { margin: 0 auto 2rem; }
    .hero-cta-modern { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-code-area { display: none; }
    .bento-large, .bento-tall, .bento-metric,
    .bento-wide, .bento-small, .bento-code { grid-column: span 12; }
    .nav-links, .nav-extra .btn-primary { display: none; }
    .menu-toggle { display: flex; }
    .contact-container { padding: 2rem; }
    .detailed-project, .detailed-project:nth-child(even) { grid-template-columns: 1fr; }
    .detailed-project:nth-child(even) .project-info { order: 1; }
    .process-steps { grid-template-columns: 1fr; }
    .step-connector { display: none; }
    /* Restore pointer cursor on mobile */
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
}

@media (max-width: 600px) {
    .hero-title-modern { font-size: 2.5rem; }
    .contact-container { padding: 1.5rem; flex-direction: column; gap: 2rem; }
    .hero-cta-modern { flex-direction: column; gap: 1.25rem; align-items: center; }
    .page-header { padding: 120px 5% 50px; }
    .portfolio-detailed-grid { gap: 3rem; }
    .detailed-project { padding: 1.5rem; gap: 2rem; }
    .project-info h2 { font-size: 1.6rem; }
}
