
:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0a0a12;
    --dark-light: #13131f;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-theme="light"] {
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.25);
    --secondary: #0891b2;
    --accent: #d97706;
    --dark: #f5f6fb;
    --dark-light: #ffffff;
    --text: #1a1a2e;
    --text-light: #565f78;
    --glass: rgba(10, 10, 30, 0.04);
    --glass-border: rgba(10, 10, 30, 0.1);
}
html[data-theme="light"] nav {
    background: rgba(245, 246, 251, 0.8);
}
html[data-theme="light"] nav.scrolled {
    background: rgba(245, 246, 251, 0.95);
    box-shadow: 0 10px 40px rgba(10, 10, 30, 0.08);
}
html[data-theme="light"] .chatbot-window {
    box-shadow: 0 20px 60px rgba(10, 10, 30, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { transition: background 0.4s ease, color 0.4s ease; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}
[lang="en"] { font-family: 'Space Grotesk', sans-serif; }

/* PRELOADER */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 25px;
    transition: opacity 0.8s, visibility 0.8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo-img {
    height: 80px;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}
.preloader-bar {
    width: 250px; height: 4px;
    background: var(--glass-border);
    border-radius: 10px; overflow: hidden;
}
.preloader-progress {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: loadProgress 2.5s ease forwards;
}
@keyframes loadProgress { to { width: 100%; } }
.preloader-text {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* PARTICLES */
#particles-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
}

/* NAVBAR */
nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
nav.scrolled {
    background: rgba(10, 10, 18, 0.95);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.logo {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
}
.logo img {
    height: 50px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);

}
.logo:hover img {
    filter: drop-shadow(0 0 20px var(--primary-glow));
    transform: scale(1.08) rotate(-2deg);
}
.logo .logo-text {
    display: inline-block;
    font-size: 1.4rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.nav-links {
    display: flex; gap: 8px; align-items: center;
}
.nav-link {
    cursor: pointer; font-weight: 600;
    color: var(--text); text-decoration: none;
    font-size: 0.9rem; padding: 10px 20px;
    border-radius: 12px; transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; box-shadow: 0 4px 15px var(--primary-glow);
}
.nav-actions {
    display: flex; gap: 10px; align-items: center;
}
.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%; border: none;
    background: var(--glass);
    color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.icon-btn:hover {
    background: var(--primary);
    color: #fff; transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    z-index: 1;
}
.hero-content { max-width: 900px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.hero-badge i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}
.hero-stat { text-align: center; }
.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}


/* ============================================================
   HERO MEDIA
   The hero clip (hero-video.mp4) is a real motion video: a slow
   cinematic zoom (1.74x -> 1.82x) plus a diagonal camera drift,
   rendered at 30fps so every frame moves smoothly, and cut so the
   last frame flows straight back into the first (seamless loop).
   Because the clip carries its own motion, NO css pan/zoom is
   stacked on the <video> - that would fight it and double-move it.
   ============================================================ */
#heroVisual { aspect-ratio: 16/10; }

#heroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    z-index: 1;
    background: #0a0a12;
    transform: translateZ(20px);
    /* Let clicks/hover reach #heroVisual so the 3D tilt keeps working,
       and stop Chrome from painting its own media UI over the clip. */
    pointer-events: none;
}

/* Chrome/Edge raise a native overlay on hover for autoplaying video:
   a Picture-in-Picture button, an "Enhance" quality pill, play/pause,
   volume and fullscreen. The clip is decorative, so suppress all of it. */
#heroVideo::-webkit-media-controls,
#heroVideo::-webkit-media-controls-panel,
#heroVideo::-webkit-media-controls-start-playback-button,
#heroVideo::-webkit-media-controls-play-button,
#heroVideo::-webkit-media-controls-toggle-playback-button,
#heroVideo::-webkit-media-controls-mute-button,
#heroVideo::-webkit-media-controls-volume-slider,
#heroVideo::-webkit-media-controls-time-remaining-time,
#heroVideo::-webkit-media-controls-timeline,
#heroVideo::-webkit-media-controls-current-time,
#heroVideo::-webkit-media-controls-seek-back-button,
#heroVideo::-webkit-media-controls-seek-forward-button,
#heroVideo::-webkit-media-controls-fullscreen-button,
#heroVideo::-webkit-media-controls-picture-in-picture-button,
#heroVideo::-webkit-media-controls-enter-picture-in-picture-button,
#heroVideo::-webkit-media-controls-leave-picture-in-picture-button,
#heroVideo::-webkit-media-controls-overlay,
#heroVideo::-webkit-media-controls-autoplay,
#heroVideo::-webkit-media-controls-closed-captions-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Belt-and-braces: no native controls even if the attribute is added later. */
#heroVideo::-webkit-media-controls-enclosure { display: none !important; }

/* Safari draws its own PiP / enhance affordances on the shadow tree too. */
#heroVideo::-webkit-media-controls-legacy-controls,
#heroVideo::-webkit-media-controls-fallback-container { display: none !important; }

/* Still-image fallback: only shown if the clip cannot play at all. */
@keyframes heroKenBurns {
    0%   { transform: scale(1.12) translate(0%, 0%); }
    50%  { transform: scale(1.24) translate(-2%, 1.5%); }
    100% { transform: scale(1.12) translate(0%, 0%); }
}
@keyframes heroVerticalPan {
    0%, 100% { transform: translateY(-8%); }
    50%      { transform: translateY(0%); }
}
#heroFallbackImg {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: none;
    z-index: 1;
    transform: translateZ(20px);
    animation: heroVerticalPan 14s ease-in-out infinite,
               heroKenBurns 22s ease-in-out infinite;
    will-change: transform;
}
#heroFallbackImg.is-on { display: block; }

/* ------------------------------------------------------------
   Several independent elements drift at different speeds on top
   of the clip, so the frame keeps reading as "alive" rather than
   as a single flat looping video.
   ------------------------------------------------------------ */

/* 1. Orbiting colour glow */
@keyframes heroOrbit { to { transform: translateZ(20px) rotate(360deg); } }
.hero-motion-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1 / 1;
    margin-top: -75%;
    margin-left: -75%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(99, 102, 241, 0.32) 40deg,
        transparent 130deg,
        transparent 200deg,
        rgba(6, 182, 212, 0.28) 250deg,
        transparent 340deg);
    filter: blur(26px);
    mix-blend-mode: screen;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
    animation: heroOrbit 26s linear infinite;
    will-change: transform;
}

/* 2. Drifting grid */
@keyframes heroGridDrift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 0 34px, 34px 0; }
}
.hero-motion-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    background-image:
        repeating-linear-gradient(0deg,  rgba(255,255,255,.07) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 34px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
            mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
    animation: heroGridDrift 7s linear infinite;
}

/* 3. Light sweep travelling across the frame */
@keyframes heroSweep {
    0%   { transform: translateX(-130%) skewX(-18deg); }
    55%  { transform: translateX(130%)  skewX(-18deg); }
    100% { transform: translateX(130%)  skewX(-18deg); }
}
.hero-motion-sweep {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.16) 45%,
        rgba(165, 243, 252, 0.20) 55%,
        transparent);
    filter: blur(6px);
    pointer-events: none;
    z-index: 2;
    animation: heroSweep 9s ease-in-out infinite;
    will-change: transform;
}

/* 4. Rising particles */
@keyframes heroRise {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    15%  { opacity: 0.85; }
    100% { transform: translateY(-130px) scale(1.15); opacity: 0; }
}
.hero-motion-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.hero-motion-dots i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.9);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.9);
    animation: heroRise linear infinite;
}

/* 5. Vignette so the frame edges stay tidy */
.hero-motion-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(10, 10, 18, 0.55) 100%);
}

/* The glow layers on the frame float up & down too */
@keyframes heroFloatUpDown {
    0%, 100% { transform: translateY(-6px); }
    50%      { transform: translateY(6px); }
}
.hero-float-layer {
    animation: heroFloatUpDown 6s ease-in-out infinite;
    will-change: transform;
}
.hero-float-layer.slow {
    animation-duration: 10s;
    animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-motion-ring,
    .hero-motion-grid,
    .hero-motion-sweep,
    .hero-motion-dots i,
    .hero-float-layer,
    #heroFallbackImg { animation: none !important; }
    .hero-motion-dots { display: none; }
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; padding: 18px 45px;
    border-radius: 16px; cursor: pointer;
    font-weight: 700; font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--primary-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 18px 45px;
    border-radius: 16px; cursor: pointer;
    font-weight: 700; font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none;
    margin-right: 15px;
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--glass);
    transform: translateY(-3px);
}

/* SECTIONS */
section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.service-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99,102,241,0.15);
}
.service-card .number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.15);
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}
.service-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}
.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-card .learn-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: gap 0.3s;
}
.service-card .learn-more:hover { gap: 12px; }

/* ABOUT GRID */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.about-content h1,
.about-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-content p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.about-stat {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}
.about-stat .number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stat .label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 8px;
}
.about-visual {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VALUES */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}
.value-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(99,102,241,0.1);
}
.value-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-right: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
}
.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.timeline-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* SERVICE DETAIL */
.service-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 120px;
    display: none;
}
.service-detail.active { display: block; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.detail-content h1,
.detail-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.detail-content p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.detail-visual {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.detail-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.feature-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}
.feature-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}
.feature-box i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.tech-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    text-decoration: none;
}
.back-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(-5px);
}

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-form {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}
/* Native dropdown option lists ignore the transparent --glass background,
   so give them a solid, theme-aware background/text explicitly to stay readable. */
.form-group select option {
    background: var(--dark-light);
    color: var(--text);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.info-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}
.info-box:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}
.info-box i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 40px;
}
.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.info-box p {
    color: var(--text-light);
    line-height: 1.6;
}
.map-embed {
    position: relative;
    margin-top: 12px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.map-embed:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
}
.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    filter: saturate(1.1);
}
.map-embed-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent 100%);
    color: #fff;
    font-size: 0.8rem;
    padding: 10px 14px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text);
    transition: var(--transition);
    text-decoration: none;
}
.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* PARTNERS */
.partners-section {
    padding: 60px 5%;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    border-top: 1px solid var(--glass-border);
}
.partners-ticker {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
}
.partners-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    padding-inline-end: 30px;
    border-inline-end: 1px solid rgba(99, 102, 241, 0.2);
}
.partners-viewport {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollPartners 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 110px;
    background: var(--glass);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    transition: var(--transition);
    overflow: hidden;
}
.partner-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}
.partner-logo img {
    height: 100%;
    max-height: 90px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
}
.partner-logo.logo-text-only::after {
    content: attr(data-name);
    color: var(--text);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
}
@keyframes scrollPartners {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* CHATBOT */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--primary-glow);
}
.chatbot-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 380px;
    max-height: 500px;
    background: var(--dark-light);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chatbot-window.active { display: flex; }
.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-message.bot {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-message.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--glass-border);
}
.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-family: inherit;
    outline: none;
}
.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero-title { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .chatbot-window { width: calc(100% - 40px); left: 20px; }
    .hero-stats { flex-wrap: wrap; gap: 30px; }
}

/* HERO SPLIT RESPONSIVE */
@media (max-width: 968px) {
    .hero-split { grid-template-columns: 1fr !important; gap: 40px !important; }
    .hero-split .hero-content { text-align: center !important; }
    .hero-split .hero-title { font-size: 2.5rem !important; text-align: center !important; }
    .hero-split .hero-desc { text-align: center !important; margin: 0 auto 30px !important; }
    .hero-split .hero-stats { justify-content: center !important; flex-wrap: wrap; gap: 25px !important; }
    .hero-visual-wrap { margin-top: 20px; }
    .visual-box { max-width: 100% !important; }
}
@media (max-width: 480px) {
    .hero-split .hero-title { font-size: 2rem !important; }
}

/* ===== Multi-page additions (SEO update) ===== */
a.logo, a.nav-link, a.service-card, a.back-btn, a.icon-btn { text-decoration: none; }
a.service-card { display: block; color: inherit; }
a.icon-btn { font-weight: 700; font-size: 0.85rem; }
.service-detail.page { display: block; padding: 140px 5% 40px; max-width: 1300px; }
.page-first { padding-top: 150px; }
.page-lead { max-width: 900px; margin: 0 auto 30px; text-align: center; color: var(--text-light); font-size: 1.1rem; line-height: 2; }
.cta-box {
    max-width: 1100px; margin: 60px auto 0; padding: 50px 40px; text-align: center;
    border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-border);
}
.cta-box h2 { font-size: 2rem; font-weight: 900; margin-bottom: 15px; }
.cta-box p { color: var(--text-light); margin-bottom: 25px; font-size: 1.05rem; }
.related-services { max-width: 1200px; margin: 60px auto 0; }
.related-services h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; }
.related-services ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.related-services a {
    display: block; padding: 14px 18px; border-radius: 14px; color: var(--text); text-decoration: none;
    background: var(--glass); border: 1px solid var(--glass-border); transition: var(--transition); font-weight: 600;
}
.related-services a:hover { border-color: var(--primary); color: var(--primary); }
.breadcrumbs { font-size: 0.9rem; color: var(--text-light); margin-bottom: 25px; }
.breadcrumbs a { color: var(--text-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.blog-empty { max-width: 800px; margin: 0 auto; text-align: center; color: var(--text-light); font-size: 1.1rem; line-height: 2; }
.site-footer {
    position: relative; z-index: 1; padding: 70px 5% 30px; margin-top: 60px;
    border-top: 1px solid var(--glass-border); background: var(--dark-light);
}
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 1.2fr; gap: 40px; }
.site-footer h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; color: var(--text); }
.site-footer p, .site-footer li, .site-footer a { color: var(--text-light); font-size: 0.95rem; line-height: 2; text-decoration: none; }
.site-footer ul { list-style: none; }
.site-footer a:hover { color: var(--primary); }
.footer-services ul { columns: 2; column-gap: 20px; }
.footer-brand .logo-text { font-size: 1.3rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-bottom { max-width: 1300px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-light); font-size: 0.85rem; }
@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-services ul { columns: 1; }
    .service-detail.page { padding-top: 110px; }
}

/* ===== Mobile menu ===== */
.nav-toggle { display: none; }
@media (max-width: 968px) {
    .nav-toggle { display: flex; }
    nav .nav-links.open {
        display: flex; position: absolute; top: 80px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 15px 5%;
        background: var(--dark-light); border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    nav .nav-links.open .nav-link { padding: 14px 18px; text-align: start; }
}
@media (max-width: 480px) {
    .logo .logo-text { font-size: 1.05rem; white-space: nowrap; }
    .logo img { height: 40px; }
}

/* ===== Mobile layout fixes ===== */
@media (max-width: 968px) {
    section { padding: 70px 5%; }
    .page-first { padding-top: 120px; }
    .hero { min-height: auto; padding-bottom: 60px; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 2.2rem; }
    .contact-wrapper, .about-grid, .detail-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-form, .contact-info, .detail-content, .about-content, .detail-visual, .about-visual { min-width: 0; }
    .values-grid, .features-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}
@media (max-width: 600px) {
    nav { height: 68px; padding: 0 4%; }
    nav .nav-links.open { top: 68px; }
    .logo { gap: 8px; min-width: 0; }
    .logo img { height: 34px; width: auto; }
    .logo .logo-text { font-size: 0.95rem; white-space: nowrap; }
    .nav-actions { gap: 6px !important; flex-shrink: 0; }
    .icon-btn { width: 36px; height: 36px; }

    section { padding: 56px 5%; }
    .hero { padding-top: 100px !important; }
    .page-first, .service-detail.page { padding-top: 100px; }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: 1.85rem; line-height: 1.3; }
    .section-subtitle, .page-lead, .blog-empty { font-size: 1rem; }
    .about-content h1, .about-content h2, .detail-content h1 { font-size: 1.9rem; line-height: 1.35; }
    .about-content p, .detail-content p { font-size: 1rem; line-height: 1.9; }

    .hero-split .hero-title { font-size: 2rem !important; line-height: 1.25; }
    .hero-split .hero-desc { font-size: 1.05rem; }
    .hero-content div:has(> .btn-primary) { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px !important; }
    .hero-content .btn-primary, .hero-content .btn-outline { width: 100%; justify-content: center; margin: 0 !important; }
    .hero-split .hero-stats { flex-wrap: nowrap; justify-content: space-between !important; gap: 10px !important; }
    .hero-stat .number { font-size: 1.8rem; }
    .hero-stat .label { font-size: 0.8rem; }
    .btn-primary, .btn-outline { padding: 15px 28px; font-size: 1rem; }

    .service-card { padding: 28px 22px; }
    .value-card { padding: 26px 20px; }
    .feature-box { padding: 24px 20px; }
    .about-stats { gap: 12px; }
    .contact-form { padding: 28px 20px; }
    .info-box { padding: 20px; gap: 14px; }
    .cta-box { padding: 34px 20px; margin-top: 40px; }
    .cta-box h2 { font-size: 1.45rem; line-height: 1.45; }
    .related-services { margin-top: 40px; }
    .related-services h2 { font-size: 1.3rem; }
    .back-btn { font-size: 1rem; margin-bottom: 28px; }
    .tech-stack { gap: 8px; }

    .chatbot-toggle { width: 52px; height: 52px; bottom: 18px; left: 18px; }
    .chatbot-window { bottom: 82px; left: 12px; right: 12px; width: auto; max-height: 70vh; }
    .site-footer { padding: 50px 5% 90px; }
}
@media (max-width: 380px) {
    .logo .logo-text { font-size: 0.85rem; }
    .hero-split .hero-title { font-size: 1.75rem !important; }
    .hero-stat .number { font-size: 1.5rem; }
}

/* ===== Hide browser image overlays (Edge visual search, long-press image menu) ===== */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.img-shield { position: absolute; inset: 0; z-index: 3; background: transparent; }

section[id] { scroll-margin-top: 80px; }
