/* ============================================
   MacChin Multimedia Designers
   Modern Professional IT/Tech Company Website
   ============================================ */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --primary-glow: rgba(14, 165, 233, 0.2);
    --secondary: #d9137d;
    --secondary-glow: rgba(217, 19, 125, 0.15);
    --accent: #f59e0b;
    --purple: #8b5cf6;
    --green: #10b981;
    --dark: #020617;
    --dark-100: #0f172a;
    --dark-200: #1e293b;
    --dark-300: #334155;
    --gray-100: #f8fafc;
    --gray-200: #f1f5f9;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e1;
    --gray-500: #94a3b8;
    --gray-600: #64748b;
    --gray-700: #475569;
    --gray-800: #334155;
    --gray-900: #1e293b;
    --white: #ffffff;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--dark-100); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── SCROLL PROGRESS BAR ─────────────────── */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%; transition: width 0.1s linear;
}

/* ── LOADING SCREEN ──────────────────────── */
.loading-screen {
    position: fixed; inset: 0; z-index: 9998;
    background: var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-track { width: 240px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); animation: loaderFill 2.2s ease-in-out forwards; }
@keyframes loaderFill { 0% { width: 0; } 40% { width: 60%; } 70% { width: 80%; } 100% { width: 100%; } }
.loader-text { font-size: 13px; color: var(--gray-500); letter-spacing: 2px; text-transform: uppercase; }

/* ── TOP BAR ─────────────────────────────── */
.top-bar {
    background: var(--dark);
    color: var(--gray-500);
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-contact { display: flex; gap: 20px; align-items: center; }
.top-contact a { display: flex; align-items: center; gap: 6px; color: var(--gray-500); transition: color 0.2s; }
.top-contact a:hover { color: var(--primary-light); }
.top-social { display: flex; gap: 12px; align-items: center; }
.top-social a { color: var(--gray-600); transition: color 0.2s; }
.top-social a:hover { color: var(--primary); }
@media (max-width: 639px) { .top-bar { display: none; } }

/* ── NAVIGATION ──────────────────────────── */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-300);
    position: sticky; top: 0; z-index: 100;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border-bottom-color: transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: 20px;
    color: var(--dark-100); letter-spacing: -0.5px; flex-shrink: 0;
}
/* Real logo images */
.logo-img { height: 40px; width: auto; display: block; object-fit: contain; }
.loader-logo-img { height: 72px; width: auto; object-fit: contain; }


.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 900;
}
.logo span { color: var(--primary); }
.nav-menu { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-menu { display: flex; } }
.nav-link {
    font-family: var(--font-display); font-weight: 500; font-size: 14px;
    color: var(--gray-600); padding: 6px 14px; border-radius: var(--radius-sm);
    transition: var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(14,165,233,0.06); }
.nav-actions { display: none; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .nav-actions { display: flex; } }
.mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm); background: transparent;
    color: var(--gray-700); cursor: pointer; transition: var(--transition);
}
.mobile-toggle:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu {
    position: fixed; inset: 0; z-index: 200;
    background: var(--white); display: flex; flex-direction: column;
    padding: 0 28px 40px; transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; border-bottom: 1px solid var(--gray-200); margin-bottom: 32px; flex-shrink: 0;
}
.mobile-close {
    width: 40px; height: 40px; border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm); background: transparent;
    color: var(--gray-700); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.mobile-close:hover { border-color: var(--secondary); color: var(--secondary); }
.mobile-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-link {
    font-family: var(--font-display); font-weight: 600; font-size: 18px;
    color: var(--gray-800); padding: 14px 16px; border-radius: var(--radius);
    transition: var(--transition);
}
.mobile-link:hover { color: var(--primary); background: rgba(14,165,233,0.06); }
.mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    padding: 10px 22px; border-radius: var(--radius); border: none;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
    position: relative; overflow: hidden; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: transparent; color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.04); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.btn-dark { background: var(--dark-100); color: var(--white); }
.btn-dark:hover { background: var(--dark-200); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ── SECTION LAYOUT ──────────────────────── */
section { padding: 96px 0; }
.section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--primary); background: rgba(14,165,233,0.08);
    padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
    border: 1px solid rgba(14,165,233,0.15);
}
.section-badge.purple { color: var(--purple); background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.15); }
.section-badge.green { color: var(--green); background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.15); }
.section-badge.amber { color: var(--accent); background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.15); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header.left { text-align: left; margin-left: 0; }
.section-title { font-size: 36px; font-weight: 800; color: var(--dark-100); margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.15; }
@media (min-width: 768px) { .section-title { font-size: 42px; } }
.section-subtitle { font-size: 17px; color: var(--gray-600); line-height: 1.7; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-subtitle { color: var(--gray-400); }

/* ── HERO ────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    background: var(--dark);
    overflow: hidden; padding: 100px 0 80px;
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.18; animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -150px; right: -100px; animation-duration: 18s; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; left: -100px; animation-duration: 22s; animation-direction: reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--purple); top: 40%; left: 30%; animation-duration: 25s; opacity: 0.12; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 18px; border-radius: 100px; font-size: 13px; color: var(--primary-light);
    margin-bottom: 28px; backdrop-filter: blur(10px);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900; color: var(--white);
    line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 24px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--gray-400); margin-bottom: 40px;
    max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item {
    text-align: center; padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-display); font-weight: 800;
    font-size: 32px; color: var(--white); display: block; line-height: 1.1;
}
.stat-number span { color: var(--primary); }
.stat-label { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--gray-600); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--primary), transparent); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@media (max-width: 639px) { .stat-item { padding: 16px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); } .stat-item:last-child { border-bottom: none; } .hero-stats { flex-direction: column; } }

/* ── TRUSTED BY STRIP ────────────────────── */
.trusted-strip {
    background: var(--gray-100); border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200); padding: 24px 0; overflow: hidden;
}
.trusted-inner { display: flex; align-items: center; gap: 48px; overflow: hidden; }
.trusted-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); white-space: nowrap; flex-shrink: 0; }
.trusted-clients-track { display: flex; gap: 48px; animation: scroll-track 20s linear infinite; align-items: center; }
.trusted-client {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    color: var(--gray-400); white-space: nowrap; flex-shrink: 0; transition: var(--transition);
}
.trusted-client:hover { color: var(--gray-600); }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; }
@keyframes scroll-track { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SERVICES ────────────────────────────── */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 40px 36px;
    transition: var(--transition-slow); position: relative; overflow: hidden;
    cursor: default;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0; transition: var(--transition-slow);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2xl); border-color: rgba(14,165,233,0.3); }
.service-card:hover::before { opacity: 1; }
.service-num {
    position: absolute; top: 28px; right: 32px;
    font-family: var(--font-display); font-weight: 800; font-size: 48px;
    color: var(--gray-200); line-height: 1; pointer-events: none; select: none;
    transition: var(--transition);
}
.service-card:hover .service-num { color: rgba(14,165,233,0.12); }
.service-icon-wrap {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(14,165,233,0.06));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 28px;
    transition: var(--transition); border: 1px solid rgba(14,165,233,0.15);
}
.service-card:hover .service-icon-wrap { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-color: transparent; transform: scale(1.05); }
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.service-card > p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 28px; }
.service-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.service-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--gray-600);
}
.feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
    font-size: 12px; font-weight: 500; color: var(--gray-600);
    background: var(--gray-100); padding: 5px 12px; border-radius: 100px;
    border: 1px solid var(--gray-200);
}

/* ── STATS COUNTER ───────────────────────── */
.stats-section { background: var(--dark); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-box { text-align: center; position: relative; }
.stat-box::after {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(255,255,255,0.08);
}
.stat-box:last-child::after { display: none; }
.stat-big-num {
    font-family: var(--font-display); font-weight: 900; font-size: 48px;
    color: var(--white); line-height: 1; display: block; letter-spacing: -1px;
}
.stat-big-num .stat-suffix { color: var(--primary); }
.stat-box-label { font-size: 14px; color: var(--gray-500); margin-top: 8px; letter-spacing: 0.3px; }
@media (max-width: 767px) { .stat-box::after { display: none; } }

/* ── PORTFOLIO ───────────────────────────── */
.portfolio { background: var(--gray-100); }
.portfolio-filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--font-display); font-weight: 600; font-size: 13px;
    padding: 8px 20px; border-radius: 100px; border: 1.5px solid var(--gray-300);
    background: var(--white); color: var(--gray-600); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary); color: var(--primary);
    background: rgba(14,165,233,0.06);
}
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: var(--transition-slow); cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2xl); border-color: rgba(14,165,233,0.25); }
.portfolio-card.hidden { display: none; }
.portfolio-thumb {
    aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.portfolio-thumb-inner {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 48px; transition: var(--transition-slow);
}
.portfolio-card:hover .portfolio-thumb-inner { transform: scale(1.05); }
.thumb-cyan { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.thumb-magenta { background: linear-gradient(135deg, #d9137d 0%, #a50f5e 100%); }
.thumb-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.thumb-dark { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.thumb-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.thumb-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.portfolio-overlay {
    position: absolute; inset: 0; background: rgba(2,6,23,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.overlay-link {
    width: 48px; height: 48px; border-radius: 50%; background: white;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); transform: scale(0.8); transition: var(--transition);
}
.portfolio-card:hover .overlay-link { transform: scale(1); }
.portfolio-info { padding: 24px; }
.portfolio-cat {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--primary);
    background: rgba(14,165,233,0.08); padding: 4px 10px; border-radius: 100px;
    margin-bottom: 10px;
}
.portfolio-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.portfolio-info p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── PROCESS ─────────────────────────────── */
.process { background: var(--white); }
.process-container { max-width: 860px; margin: 0 auto; }
.process-step {
    display: grid; grid-template-columns: 56px 1fr; gap: 24px;
    padding-bottom: 48px; position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.step-line-col { display: flex; flex-direction: column; align-items: center; }
.step-num-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    color: white; flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 0 0 8px rgba(14,165,233,0.1);
}
.step-connector {
    flex: 1; width: 2px; margin-top: 8px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(14,165,233,0.2) 100%);
    min-height: 40px;
}
.process-step:last-child .step-connector { display: none; }
.step-body { padding-top: 12px; padding-bottom: 8px; }
.step-tag {
    display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--primary); margin-bottom: 8px;
}
.step-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.step-body p { font-size: 15px; color: var(--gray-600); line-height: 1.75; }

/* ── TECH STACK ──────────────────────────── */
.tech-stack { background: var(--dark-100); padding: 80px 0; }
.tech-categories { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .tech-categories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-categories { grid-template-columns: repeat(4, 1fr); } }
.tech-category h4 {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--gray-500); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tech-list { display: flex; flex-direction: column; gap: 10px; }
.tech-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500; color: var(--gray-400);
    padding: 10px 14px; border-radius: var(--radius);
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.tech-item:hover { color: var(--white); background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.2); }
.tech-emoji { font-size: 18px; }

/* ── TESTIMONIALS ────────────────────────── */
.testimonials { background: var(--gray-100); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-slide { min-width: 100%; padding: 0 8px; }
.testimonials-grid-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .testimonials-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid-inner { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 32px;
    transition: var(--transition); position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(14,165,233,0.2); }
.quote-icon { color: var(--primary); opacity: 0.3; margin-bottom: 16px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { fill: var(--accent); color: var(--accent); }
.testimonial-text { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 15px; color: white;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--dark-100); }
.author-title { font-size: 13px; color: var(--gray-500); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gray-300); border: none; cursor: pointer;
    transition: var(--transition); padding: 0;
}
.slider-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }
.slider-prev, .slider-next {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gray-300);
    background: var(--white); color: var(--gray-600); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.slider-prev:hover, .slider-next:hover { border-color: var(--primary); color: var(--primary); }

/* ── PRICING ─────────────────────────────── */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
    background: var(--white); border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 40px 32px;
    transition: var(--transition-slow); position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pricing-card.featured {
    border-color: var(--primary); background: var(--dark-100);
    box-shadow: var(--shadow-glow);
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 11px; font-weight: 700;
    padding: 5px 16px; border-radius: 100px; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.pricing-header { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.pricing-card.featured .pricing-header { border-bottom-color: rgba(255,255,255,0.08); }
.pricing-plan { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 6px; }
.pricing-card.featured .pricing-plan { color: var(--gray-400); }
.pricing-plan-name { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pricing-card.featured .pricing-plan-name { color: var(--white); }
.pricing-price { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 8px; }
.price-currency { font-size: 20px; font-weight: 600; color: var(--gray-600); margin-top: 6px; }
.price-amount { font-size: 52px; font-weight: 900; line-height: 1; color: var(--dark-100); letter-spacing: -2px; }
.pricing-card.featured .price-currency { color: var(--gray-400); }
.pricing-card.featured .price-amount { color: var(--white); }
.price-desc { font-size: 14px; color: var(--gray-500); }
.pricing-card.featured .price-desc { color: var(--gray-400); }
.pricing-features-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-feat {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--gray-600);
}
.pricing-card.featured .pricing-feat { color: var(--gray-300); }
.pricing-feat svg { color: var(--green); flex-shrink: 0; }

/* ── CTA ─────────────────────────────────── */
.cta-section { background: var(--dark); padding: 96px 0; position: relative; overflow: hidden; }
.cta-bg-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(14,165,233,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: var(--white); margin-bottom: 16px; letter-spacing: -1px; line-height: 1.1; }
.cta-subtitle { font-size: 17px; color: var(--gray-400); margin-bottom: 40px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.cta-contact { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-contact-item { display: flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 14px; transition: color 0.2s; }
.cta-contact-item:hover { color: var(--primary-light); }
.cta-contact-item a { color: inherit; }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 64px; } }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--gray-500); line-height: 1.75; margin-bottom: 24px; max-width: 300px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.footer-col h4 {
    font-size: 13px; font-weight: 600; color: var(--white);
    text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--gray-500); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0; display: flex; flex-direction: column;
    gap: 12px; align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { font-size: 13px; color: var(--gray-600); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--gray-600); transition: color 0.2s; }
.footer-legal a:hover { color: var(--primary-light); }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── THEME TOGGLE BUTTON ─────────────────── */
.theme-toggle-btn {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300); background: transparent;
    color: var(--gray-600); cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-toggle-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.06); }

/* ── DARK MODE ───────────────────────────── */
[data-theme="dark"] {
    color-scheme: dark;
}

/* Dark mode body */
[data-theme="dark"] body { background: #020617; color: #94a3b8; }

/* Dark mode headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 { color: #f1f5f9; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }

/* Top bar — already dark, fine */

/* Navbar */
[data-theme="dark"] .navbar {
    background: rgba(2, 6, 23, 0.92);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .navbar.scrolled { background: rgba(2, 6, 23, 0.98); box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
[data-theme="dark"] .logo { color: #f1f5f9; }
[data-theme="dark"] .nav-link { color: #94a3b8; }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active { color: var(--primary); background: rgba(14,165,233,0.08); }
[data-theme="dark"] .mobile-toggle { border-color: rgba(255,255,255,0.1); color: #94a3b8; }
[data-theme="dark"] .mobile-toggle:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .btn-outline { color: #94a3b8; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.06); }
[data-theme="dark"] .theme-toggle-btn { border-color: rgba(255,255,255,0.1); color: #94a3b8; }
[data-theme="dark"] .theme-toggle-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.08); }

/* Mobile menu */
[data-theme="dark"] .mobile-menu { background: #0f172a; }
[data-theme="dark"] .mobile-menu-header { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .mobile-close { border-color: rgba(255,255,255,0.1); color: #94a3b8; }
[data-theme="dark"] .mobile-link { color: #e2e8f0; }
[data-theme="dark"] .mobile-link:hover { color: var(--primary); background: rgba(14,165,233,0.08); }

/* Trusted strip */
[data-theme="dark"] .trusted-strip { background: #0f172a; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .trusted-label { color: #475569; }
[data-theme="dark"] .trusted-client { color: #334155; }
[data-theme="dark"] .trusted-client:hover { color: #64748b; }
[data-theme="dark"] .client-dot { background: #334155; }

/* Services section */
[data-theme="dark"] .services { background: #0f172a; }
[data-theme="dark"] .service-card { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .service-card:hover { border-color: rgba(14,165,233,0.3); box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
[data-theme="dark"] .service-card h3 { color: #f1f5f9; }
[data-theme="dark"] .service-card > p { color: #94a3b8; }
[data-theme="dark"] .service-num { color: rgba(255,255,255,0.04); }
[data-theme="dark"] .service-card:hover .service-num { color: rgba(14,165,233,0.08); }
[data-theme="dark"] .service-icon-wrap { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.12); }
[data-theme="dark"] .service-feature { color: #94a3b8; }
[data-theme="dark"] .service-tag { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #64748b; }
[data-theme="dark"] .section-badge { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.18); }
[data-theme="dark"] .section-badge.purple { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.18); }
[data-theme="dark"] .section-badge.green { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.18); }
[data-theme="dark"] .section-badge.amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.18); }
[data-theme="dark"] .section-title { color: #f1f5f9; }
[data-theme="dark"] .section-subtitle { color: #94a3b8; }

/* Portfolio */
[data-theme="dark"] .portfolio { background: #020617; }
[data-theme="dark"] .portfolio-card { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .portfolio-card:hover { border-color: rgba(14,165,233,0.25); box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
[data-theme="dark"] .portfolio-info h3 { color: #f1f5f9; }
[data-theme="dark"] .portfolio-info p { color: #94a3b8; }
[data-theme="dark"] .filter-btn { background: #1e293b; border-color: rgba(255,255,255,0.08); color: #64748b; }
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(14,165,233,0.08); }

/* Process */
[data-theme="dark"] .process { background: #0f172a; }
[data-theme="dark"] .step-body h3 { color: #f1f5f9; }
[data-theme="dark"] .step-body p { color: #94a3b8; }

/* Testimonials */
[data-theme="dark"] .testimonials { background: #020617; }
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .testimonial-card:hover { border-color: rgba(14,165,233,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .testimonial-text { color: #94a3b8; }
[data-theme="dark"] .author-name { color: #f1f5f9; }
[data-theme="dark"] .author-title { color: #64748b; }
[data-theme="dark"] .slider-prev,
[data-theme="dark"] .slider-next { background: #1e293b; border-color: rgba(255,255,255,0.08); color: #64748b; }
[data-theme="dark"] .slider-prev:hover,
[data-theme="dark"] .slider-next:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .slider-dot { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .slider-dot.active { background: var(--primary); }

/* Pricing */
[data-theme="dark"] .pricing { background: #0f172a; }
[data-theme="dark"] .pricing-card { background: #1e293b; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .pricing-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .pricing-card.featured { background: #020617; border-color: var(--primary); }
[data-theme="dark"] .pricing-header { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .pricing-plan { color: #64748b; }
[data-theme="dark"] .pricing-plan-name { color: #f1f5f9; }
[data-theme="dark"] .price-currency { color: #64748b; }
[data-theme="dark"] .price-amount { color: #f1f5f9; }
[data-theme="dark"] .price-desc { color: #64748b; }
[data-theme="dark"] .pricing-feat { color: #94a3b8; }
[data-theme="dark"] .btn-dark { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .btn-dark:hover { background: #475569; }

/* CTA — already dark */
/* Tech stack — already dark */
/* Stats — already dark */
/* Footer — already dark */

/* Dark mode transition for smooth switching */
body,
.navbar,
.service-card,
.portfolio-card,
.testimonial-card,
.pricing-card,
.mobile-menu,
.trusted-strip,
.services,
.portfolio,
.process,
.testimonials,
.pricing,
.filter-btn,
.theme-toggle-btn,
.slider-prev,
.slider-next {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.25s ease, box-shadow 0.35s ease;
}

/* ── BACK TO TOP ─────────────────────────── */
#back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 500;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: white; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 14px rgba(14,165,233,0.4);
    opacity: 0; transform: translateY(12px);
    transition: var(--transition); pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14,165,233,0.5); }

/* ── COOKIE CONSENT BANNER ───────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
    background: var(--dark-100);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-icon { color: var(--accent); flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { display: block; font-size: 15px; color: white; margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.cookie-policy-link { color: var(--primary-light); text-decoration: underline; }
.cookie-policy-link:hover { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
[data-theme="light"] .cookie-banner { background: #1e293b; }

/* ── WHATSAPP FLOAT BUTTON ───────────────── */
.whatsapp-float {
    position: fixed; bottom: 88px; right: 28px; z-index: 500;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition); text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); pointer-events: auto; }
.whatsapp-tooltip {
    position: absolute; right: 60px; top: 50%; transform: translateX(8px) translateY(-50%);
    background: #1a1a2e; color: white; font-family: var(--font-display);
    font-size: 13px; font-weight: 600; white-space: nowrap;
    padding: 6px 12px; border-radius: var(--radius-sm);
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: #1a1a2e;
}

/* ── ICON SIZES ──────────────────────────── */
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
