/* ============================================================
   AfriSkill AI - Main Stylesheet
   Premium Luxury Software Agency Design System
   ============================================================ */

/* --- CSS Variables (Luxury Agency Design System) --- */
:root {
    --bg-primary: #07080C;
    --bg-secondary: #0D1017;
    --surface: #12161F;
    --surface-elevated: #171C26;

    --text-primary: #F5F7FA;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --accent-gold: #D6B36A;
    --accent-gold-light: #F0D38A;
    --accent-interactive: #FFFFFF;

    --success: #35C98A;
    --warning: #E8B84A;
    --danger: #EF6262;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Legacy aliases — keep existing class contracts working */
    --primary: var(--bg-secondary);
    --secondary: var(--surface);
    --accent: var(--accent-gold);
    --accent-secondary: var(--accent-gold-light);
    --highlight: #C9A35A;
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --bg: var(--bg-primary);
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(22px) saturate(1.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(214, 179, 106, 0.08);
    --gradient: linear-gradient(180deg, #F5F7FA 0%, #E8E4DC 100%);
    --gradient-text: linear-gradient(135deg, #F5F7FA 0%, #F0D38A 55%, #D6B36A 100%);
    --gradient-gold: linear-gradient(135deg, #D6B36A 0%, #F0D38A 100%);
    --gradient-mesh: radial-gradient(ellipse 70% 50% at 18% 20%, rgba(214, 179, 106, 0.08), transparent 55%),
                     radial-gradient(ellipse 50% 40% at 88% 10%, rgba(240, 211, 138, 0.05), transparent 50%),
                     radial-gradient(ellipse 60% 50% at 70% 90%, rgba(18, 22, 31, 0.9), transparent 60%);
    --radius: var(--radius-lg);
    --font: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Serif Display', 'Georgia', serif;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-height: 84px;
    --container: 1320px;
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 5rem);
    --space-section: clamp(5rem, 10vw, 8.5rem);
    --touch-min: 44px;
    --container-pad: clamp(1.15rem, 4vw, 2rem);
    --text-xs: clamp(0.75rem, 1.5vw, 0.8125rem);
    --text-sm: clamp(0.875rem, 1.8vw, 0.9375rem);
    --text-base: clamp(1rem, 2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2.2vw, 1.25rem);
    --text-xl: clamp(1.5rem, 3vw, 2rem);
    --text-2xl: clamp(2rem, 4.5vw, 3.25rem);
    --text-3xl: clamp(2.5rem, 6vw, 4.5rem);
    --text-hero: clamp(2.6rem, 7.2vw, 5.75rem);
}

[data-theme="light"] {
    --bg-primary: #F6F3ED;
    --bg-secondary: #EFEAE2;
    --surface: #FFFFFF;
    --surface-elevated: #FBF9F4;
    --text-primary: #16181D;
    --text-secondary: #5C6370;
    --text-muted: #8A9099;
    --accent-gold: #B8923A;
    --accent-gold-light: #C9A85A;
    --accent-interactive: #16181D;
    --border: rgba(22, 24, 29, 0.08);
    --border-hover: rgba(22, 24, 29, 0.16);
    --primary: var(--bg-secondary);
    --secondary: var(--surface);
    --accent: var(--accent-gold);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --bg: var(--bg-primary);
    --card: rgba(255, 255, 255, 0.78);
    --card-hover: rgba(255, 255, 255, 0.95);
    --shadow: 0 8px 32px rgba(22, 24, 29, 0.06);
    --shadow-lg: 0 28px 80px rgba(22, 24, 29, 0.1);
    --shadow-glow: 0 0 40px rgba(184, 146, 58, 0.1);
    --gradient: linear-gradient(180deg, #16181D 0%, #2A2E38 100%);
    --gradient-text: linear-gradient(135deg, #16181D 0%, #B8923A 70%);
    --gradient-mesh: radial-gradient(ellipse 70% 50% at 18% 20%, rgba(184, 146, 58, 0.1), transparent 55%),
                     radial-gradient(ellipse 50% 40% at 88% 10%, rgba(201, 168, 90, 0.08), transparent 50%),
                     radial-gradient(ellipse 60% 50% at 70% 90%, rgba(239, 234, 226, 0.8), transparent 60%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section { padding: var(--space-section) 0; position: relative; }
.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: var(--text-lg);
    color: var(--muted);
    max-width: 640px;
    line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-header .section-subtitle { margin: 0 auto; }
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* --- Glass Card --- */
.glass-card {
    background: var(--card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 42%, rgba(214, 179, 106, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity var(--transition);
}
.glass-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}
.glass-card:hover::before { opacity: 1; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    min-height: var(--touch-min);
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}
.btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}
.btn-primary {
    background: var(--accent-interactive);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    letter-spacing: -0.01em;
}
[data-theme="light"] .btn-primary {
    background: #16181D;
    color: #F5F7FA;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    filter: brightness(1.06);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(214, 179, 106, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-icon { display: flex; align-items: center; }
.btn-magnetic { will-change: transform; }

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { font-size: 2rem; font-weight: 800; margin-bottom: 24px; text-align: center; }
.loader-bar { width: 200px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.loader-progress {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    animation: loaderProgress 1.5s ease forwards;
}
@keyframes loaderProgress { to { width: 100%; } }

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* --- Logo --- */
.logo-text { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.logo-accent {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    height: 70px;
}
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.85); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar-logo { display: flex; align-items: center; gap: 2px; z-index: 10; }

.navbar-menu { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover, .nav-item.active .nav-link { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-chevron { display: flex; transition: transform var(--transition); }
.has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--muted);
    border-radius: 8px;
    transition: all var(--transition);
}
.dropdown-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.navbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--muted);
    transition: all var(--transition);
}
.nav-action-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: flex; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 16px;
    padding: 0 24px;
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 16px 0;
    font-size: 1.5rem;
    color: var(--text);
    outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); }
.search-close { color: var(--muted); padding: 8px; }
.search-close:hover { color: var(--text); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(30px);
    padding: calc(var(--nav-height) + 24px) 24px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.mobile-submenu { padding-left: 16px; }
.mobile-submenu a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 1rem;
}
.mobile-menu .btn { margin-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-gradient { position: absolute; inset: 0; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; background: var(--accent); top: -10%; right: -10%; }
.shape-2 { width: 400px; height: 400px; background: var(--highlight); bottom: -10%; left: -5%; animation-delay: -7s; }
.shape-3 { width: 300px; height: 300px; background: var(--success); top: 40%; left: 50%; animation-delay: -14s; }
.shape-4 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #818CF8, transparent 70%);
    top: 15%;
    left: 25%;
    animation-delay: -4s;
    opacity: 0.35;
}
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    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: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.4;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 0 120px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 800px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-trust-badges { display: flex; flex-wrap: wrap; gap: 24px; }
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
}
.trust-badge-icon { color: var(--accent); display: flex; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 700px;
}
.hero-stat-card {
    padding: 24px;
    text-align: center;
}
.stat-icon { color: var(--accent); margin-bottom: 12px; display: flex; justify-content: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 0.8125rem; color: var(--muted); }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    animation: bounceScroll 2s ease infinite;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}
.trust-card { padding: 32px 24px; text-align: center; }
.trust-icon { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.trust-number { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.trust-label { font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}
.service-card { padding: 32px; position: relative; overflow: hidden; }
.service-icon-wrap { position: relative; width: 56px; height: 56px; margin-bottom: 20px; }
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.service-icon-glow {
    position: absolute;
    inset: -4px;
    background: var(--gradient);
    border-radius: 16px;
    opacity: 0;
    filter: blur(12px);
    transition: opacity var(--transition);
}
.service-card:hover .service-icon-glow { opacity: 0.3; }
.service-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }
.link-arrow { display: flex; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}
.project-card { overflow: hidden; }
.project-image-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-image { transform: scale(1.05); }
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-tags { display: flex; gap: 8px; }
.project-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    color: #fff;
}
.project-body { padding: 24px; }
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8125rem;
}
.project-price { font-weight: 700; color: var(--success); }
.project-tech { color: var(--muted); }
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.project-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.project-client { font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; }
.project-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

/* ============================================================
   VIDEOS
   ============================================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}
.video-card { overflow: hidden; cursor: pointer; }
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--secondary);
    overflow: hidden;
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--accent);
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    transition: all var(--transition);
}
.video-card:hover .video-play-btn {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}
.play-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: playPulse 2s ease infinite;
}
@keyframes playPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.video-info { padding: 20px; }
.video-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.video-desc { font-size: 0.875rem; color: var(--muted); }

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    z-index: 1;
}
.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: #fff;
    padding: 8px;
    z-index: 2;
}
.video-modal-player { width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; }
.video-modal-player iframe,
.video-modal-player video { width: 100%; height: 100%; border: none; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.why-content .section-subtitle { margin-bottom: 32px; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.why-card { padding: 28px; }
.why-icon-wrap { margin-bottom: 16px; }
.why-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    color: var(--highlight);
}
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--gradient);
    transform: translateX(-50%);
    transition: height 0.3s;
}
.process-step {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}
.step-left .step-card { grid-column: 1; text-align: right; }
.step-left .step-marker { grid-column: 2; }
.step-right .step-card { grid-column: 3; }
.step-right .step-marker { grid-column: 2; }
.step-marker { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.step-number { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.step-dot {
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: all var(--transition);
}
.process-step.active .step-dot { background: var(--accent); box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); }
.step-card { padding: 24px; }
.step-icon { color: var(--accent); margin-bottom: 12px; display: flex; }
.step-left .step-icon { justify-content: flex-end; }
.step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}
.tech-card {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tech-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}
.tech-icon-text { font-size: 1rem; }
.tech-name { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.tech-card:hover .tech-name { color: var(--text); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
    min-width: 100%;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-rating { display: flex; gap: 4px; color: #FBBF24; margin-bottom: 24px; }
.testimonial-review {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--text);
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { font-weight: 700; font-size: 1.125rem; color: #fff; }
.author-name { font-weight: 700; font-size: 1rem; }
.author-meta { font-size: 0.875rem; color: var(--muted); }
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}
.slider-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    transition: all var(--transition);
}
.slider-btn:hover { color: var(--text); border-color: var(--accent); background: rgba(37,99,235,0.1); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}
.faq-header .section-subtitle { margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: left;
    gap: 16px;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon { display: flex; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding-bottom: 24px; }
.faq-answer p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-form { padding: 40px; overflow: visible; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: visible; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--muted);
}
.required { color: #EF4444; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
    appearance: none;
    cursor: pointer;
    color-scheme: dark;
    background-color: #111827;
    color: #FFFFFF;
}
.form-group select option,
.form-group select optgroup {
    background-color: #111827;
    color: #FFFFFF;
}
.file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
}
.file-label:hover { border-color: var(--accent); color: var(--accent); }
.form-group input[type="file"] { display: none; }
.file-name { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}
.form-message.success { display: block; background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.form-message.error { display: block; background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.btn.loading .btn-text, .btn.loading .btn-icon { display: none; }
.btn.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: all var(--transition);
}
.contact-info-card:hover { transform: translateX(4px); }
.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-info-label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 2px; }
.contact-info-value { font-weight: 600; font-size: 0.9375rem; }
.contact-map { overflow: hidden; padding: 4px; }

/* Client Inquiry Form */
.inquiry-form-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.inquiry-trust-card { padding: 24px; margin-bottom: 20px; }
.inquiry-trust-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.inquiry-trust-list { list-style: none; }
.inquiry-trust-list li { padding: 8px 0; font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--border); }
.inquiry-trust-list li:last-child { border-bottom: none; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { padding: 80px 0; }
.newsletter-card {
    position: relative;
    padding: 64px;
    text-align: center;
    overflow: hidden;
}
.newsletter-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.newsletter-content { position: relative; margin-bottom: 32px; }
.newsletter-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.newsletter-subtitle { color: var(--muted); max-width: 500px; margin: 0 auto; }
.newsletter-form { position: relative; max-width: 500px; margin: 0 auto; }
.newsletter-input-wrap {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
}
.newsletter-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text);
    outline: none;
}
.newsletter-message { margin-top: 12px; font-size: 0.875rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 48px;
    margin-bottom: 64px;
    position: relative;
}
.footer-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin: 16px 0 24px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
    transition: all var(--transition);
}
.social-link:hover { color: var(--text); border-color: var(--accent); background: rgba(37,99,235,0.1); }
.footer-col-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-newsletter-text { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    font-size: 0.875rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    position: relative;
}
.footer-copyright { font-size: 0.8125rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8125rem; color: var(--muted); }
.footer-bottom-links a:hover { color: var(--text); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .videos-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .why-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .process-step { grid-template-columns: auto 1fr; gap: 24px; }
    .step-left .step-card, .step-right .step-card { grid-column: 2; text-align: left; }
    .step-left .step-marker, .step-right .step-marker { grid-column: 1; }
    .timeline-line, .timeline-progress { left: 8px; }
    .step-left .step-icon { justify-content: flex-start; }
    .navbar-menu { gap: 4px; }
    .nav-link { padding: 8px 12px; font-size: 0.875rem; }
}

@media (max-width: 900px) {
    .navbar-menu, .nav-cta { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    :root { --nav-height: 70px; }
    .section { padding: clamp(3.5rem, 10vw, 5rem) 0; }
    .section-header { margin-bottom: clamp(2rem, 5vw, 3rem); }
    .hero-content { padding: 60px 0 100px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; white-space: normal; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: clamp(1rem, 4vw, 1.5rem); }
    .newsletter-card { padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem); }
    .newsletter-input-wrap { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-newsletter-form { flex-direction: column; }
    .testimonial-card { padding: 32px 24px; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
    .btn { white-space: normal; text-align: center; }
    .search-input { font-size: clamp(1.125rem, 4vw, 1.5rem); }
    .mobile-menu { padding: calc(var(--nav-height) + 16px) 16px 24px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .navbar-actions .nav-cta { display: none; }
    .faq-question { font-size: 0.9375rem; padding: 18px 0; }
    .newsletter-section { padding: 48px 0; }
}

@media (max-width: 360px) {
    .logo-text, .logo-accent { font-size: 1.125rem; }
    .section-tag { font-size: 0.75rem; padding: 5px 12px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1400px; }
}

@media (min-width: 1920px) {
    :root { --container: 1600px; }
    .hero-title { font-size: clamp(3rem, 4vw, 5rem); }
}

@media (min-width: 2560px) {
    :root { --container: 1800px; }
}
