/* ============================================================
   SynapTech — Dark Cinema Design System v3
   ui-ux-pro-max · Modern Dark · Liquid Glass · Enterprise
   Style: Cinematic Dark + Glassmorphism
   Font: Inter · Accent: #5E6AD2 · BG: #020203 → #0a0a0f
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-deep:       #020203;
    --bg-base:       #070709;
    --bg-elevated:   #0d0d12;
    --bg-surface:    rgba(255,255,255,0.04);
    --bg-surface-md: rgba(255,255,255,0.06);
    --bg-overlay:    rgba(255,255,255,0.08);

    /* Text */
    --fg:            #EDEDEF;
    --fg-muted:      #8A8F98;
    --fg-subtle:     rgba(255,255,255,0.35);

    /* Footer — WCAG AA on --bg-deep (#020203) */
    --footer-fg:           #EDEDEF;
    --footer-fg-muted:     #A8ADB5;
    --footer-fg-subtle:    #9499A3;
    --footer-fg-label:     #9CA3AF;

    /* Accent */
    --accent:        #5E6AD2;
    --accent-dark:   #4A56BE;
    --accent-light:  #818CF8;
    --accent-glow:   rgba(94,106,210,0.25);
    --accent-glow-lg:rgba(94,106,210,0.15);
    --green:         #22D3EE;
    --green-glow:    rgba(34,211,238,0.15);

    /* Borders */
    --border:        rgba(255,255,255,0.08);
    --border-md:     rgba(255,255,255,0.12);
    --border-accent: rgba(94,106,210,0.4);

    /* Radii */
    --radius-sm:  8px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Easing — Expo out (premium feel) */
    --ease:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);

    /* Shadows */
    --shadow-glow:    0 0 40px rgba(94,106,210,0.2);
    --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-card-lg: 0 20px 60px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--fg);
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; transition: all 0.2s var(--ease); }
img { max-width: 100%; display: block; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(94,106,210,0.4); border-radius: 3px; }

/* ── Selection ────────────────────────────────────── */
::selection { background: rgba(94,106,210,0.35); color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    background: transparent;
    padding: 1.25rem 0;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease);
    z-index: 1050 !important;
}
#mainNav.scrolled {
    background: rgba(7,7,9,0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
#mainNav .brand-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}
.brand-dot { color: var(--accent); }

#mainNav .nav-link {
    color: var(--fg-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    letter-spacing: 0.01em;
}
#mainNav .nav-link:hover { color: #fff; background: var(--bg-overlay); }
#mainNav .nav-link.active { color: #fff; }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.2s var(--ease) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-cta:hover {
    background: var(--accent-dark) !important;
    box-shadow: 0 0 30px var(--accent-glow), 0 4px 15px rgba(94,106,210,0.4) !important;
    transform: translateY(-1px);
}

.nav-link-builder {
    color: #a5b4fc !important;
    font-weight: 600;
}
.nav-link-builder:hover { color: #fff !important; }

/* Hamburger — always visible on dark bg */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.25) !important;
    background: rgba(255,255,255,0.07) !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px !important;
    z-index: 1060;
    position: relative;
}
.navbar-toggler:hover  { background: rgba(255,255,255,0.14) !important; }
.navbar-toggler:focus  { box-shadow: 0 0 0 2px rgba(94,106,210,0.4) !important; }
/* Use simple hex white — rgba in SVG data URL causes browser issues */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23EDEDEF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 1.35em !important;
    height: 1.35em !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(160deg, #0a0a0f 0%, var(--bg-deep) 60%, #070712 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    /* Do NOT clip fixed navbar — overflow:hidden only clips positioned children */
    isolation: isolate;
}

/* Ambient Blob Backgrounds */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.hero-bg-animation span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: blobFloat 12s ease-in-out infinite;
    will-change: transform;
}
.hero-bg-animation span:nth-child(1) {
    width: 700px; height: 700px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, #5E6AD2, transparent 70%);
    animation-delay: 0s;
    opacity: 0.15;
}
.hero-bg-animation span:nth-child(2) {
    width: 500px; height: 500px;
    top: 20%; right: 0;
    background: radial-gradient(circle, #7C3AED, transparent 70%);
    animation-delay: 4s;
    opacity: 0.1;
}
.hero-bg-animation span:nth-child(3) {
    width: 400px; height: 400px;
    bottom: -100px; left: 35%;
    background: radial-gradient(circle, #0EA5E9, transparent 70%);
    animation-delay: 8s;
    opacity: 0.08;
}
.hero-bg-animation span:nth-child(4) {
    width: 250px; height: 250px;
    top: 15%; left: 55%;
    background: radial-gradient(circle, #5E6AD2, transparent 70%);
    animation-delay: 2s;
    opacity: 0.1;
}
.hero-bg-animation span:nth-child(5) {
    width: 600px; height: 600px;
    bottom: -200px; right: 0;
    background: radial-gradient(circle, #4F46E5, transparent 70%);
    animation-delay: 6s;
    opacity: 0.08;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(0px, -40px) scale(1.05); }
    66%       { transform: translate(0px, 20px) scale(0.97); }
}

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

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-md);
    border: 1px solid var(--border-accent);
    color: var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s var(--ease) both;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -2px;
    margin: 1.25rem 0 1rem;
    animation: fadeInUp 0.9s var(--ease) 0.1s both;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.hero-title-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent-light) 70%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 12s ease-in-out infinite alternate;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--fg-muted);
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.9s var(--ease) 0.2s both;
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s var(--ease) 0.3s both;
}
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 0 0 0 var(--accent-glow);
    position: relative;
    overflow: hidden;
}
.hero-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.hero-btn-primary:hover {
    color: #fff;
    background: var(--accent-dark);
    box-shadow: 0 0 30px var(--accent-glow), 0 8px 25px rgba(94,106,210,0.4);
    transform: translateY(-2px);
}
.hero-btn-primary:hover::after { opacity: 1; }

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-md);
    color: var(--fg);
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-md);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    backdrop-filter: blur(10px);
}
.hero-btn-secondary:hover {
    color: #fff;
    background: var(--bg-overlay);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Hero Stats — tek satır, yan yana */
.hero-stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    animation: fadeInUp 0.9s var(--ease) 0.4s both;
}
.hero-stat {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 0.75rem;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }
.hero-stat:not(:first-child) {
    border-left: 1px solid var(--border);
}
.hero-stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.875rem;
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}
.hero-stat-label {
    font-size: 0.68rem;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
    line-height: 1.25;
    hyphens: auto;
}
.hero-stat-divider { display: none; }

/* Hero Code Card */
.hero-visual {
    position: relative;
    padding: 1.5rem;
    animation: fadeInLeft 1s var(--ease) 0.3s both;
}
.hero-code-card {
    background: rgba(7,7,9,0.85);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card-lg), 0 0 60px rgba(94,106,210,0.08);
    position: relative;
}
.hero-code-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94,106,210,0.6), transparent);
}
.code-header {
    background: rgba(13,13,18,0.9);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red    { background: #FF5F57; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green  { background: #28C840; }
.code-filename   { color: var(--fg-muted); font-size: 0.78rem; margin-left: 0.5rem; font-family: 'Courier New', monospace; }
.code-body       { padding: 1.5rem; font-family: 'Courier New', 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 2; }
.code-line       { color: rgba(255,255,255,0.85); }
.code-kw  { color: #c084fc; }
.code-var { color: #93c5fd; }
.code-fn  { color: #34d399; }
.code-str { color: #fbbf24; }
.code-cm  { color: #4b5563; }
.code-num { color: #fb923c; }

/* Floating badges */
.hero-floating-badge {
    position: absolute;
    background: rgba(13,13,18,0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-md);
    color: var(--fg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.77rem;
    font-weight: 600;
    animation: floatBadge 8s ease-in-out infinite;
    will-change: transform;
    z-index: 10;
    box-shadow: var(--shadow-card);
}
.badge-1 { top: 10px; right: -10px; animation-delay: 0s; }
.badge-2 { bottom: 25%; left: -20px; animation-delay: 2.5s; }
.badge-3 { top: 42%; right: -15px; animation-delay: 5s; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeIn 1s var(--ease) 1s both;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    margin: 0 auto 0.5rem;
}
.scroll-wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    animation: scrollDown 2.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0%   { opacity: 1; transform: translateY(0); }
    80%  { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(0); }
}

/* Fallback hero container */
.hero-fallback-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    z-index: 3;
    max-width: 100%;
    overflow-x: clip;
}
.hero-fallback-container > .row { flex: 1; }

/* ── Hero Carousel ────────────────────────────────── */
.hero-carousel { width: 100%; flex: 1; position: relative; z-index: 3; }
.hero-carousel .carousel-inner { height: 100%; }
.hero-carousel .carousel-item {
    height: 100vh;
    display: flex;
    align-items: center;
}
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev { display: flex; align-items: center; }
.hero-carousel .carousel-item > .container { width: 100%; padding-top: 80px; }
.hero-carousel-indicators { bottom: 2rem; }
.hero-carousel-indicators button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    transition: all 0.3s var(--ease);
}
.hero-carousel-indicators button.active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px var(--accent-glow);
}
.hero-carousel-prev, .hero-carousel-next {
    width: 44px; height: 44px;
    background: var(--bg-surface-md);
    border-radius: 50%;
    top: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-md);
    transition: all 0.2s var(--ease);
}
.hero-carousel-prev:hover, .hero-carousel-next:hover {
    background: rgba(94,106,210,0.3);
    border-color: var(--border-accent);
}
.hero-carousel-prev { left: 1.5rem; }
.hero-carousel-next { right: 1.5rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(160deg, #0a0a0f 0%, var(--bg-deep) 100%);
    padding: 8rem 0 4rem;
    margin-top: -1px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    width: 800px; height: 400px;
    top: -200px; right: 0;
    background: radial-gradient(ellipse, rgba(94,106,210,0.12), transparent 70%);
    pointer-events: none;
}
.page-hero .hero-title { font-size: clamp(2rem, 4vw, 3.25rem); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-padding { padding: 6rem 0; }

/* Divider line with glow */
.section-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 12px var(--accent-glow);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(94,106,210,0.1);
    color: var(--accent-light);
    border: 1px solid rgba(94,106,210,0.25);
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-top: 0.625rem;
    color: #fff;
}
.section-title-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    color: var(--fg-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0.875rem auto 0;
    line-height: 1.8;
}

/* Light bg sections */
.section-light {
    background: var(--bg-base);
}
.section-mid {
    background: var(--bg-elevated);
}
.section-dark {
    background: var(--bg-deep);
}

/* ── VanillaTilt 3D support ───────────────────────── */
.js-tilt-glare { border-radius: inherit !important; overflow: hidden; }
/* transform-style: preserve-3d only on real hover/desktop — set by JS */

/* ============================================================
   GLASS CARD BASE
   ============================================================ */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.glass-card:hover {
    background: var(--bg-surface-md);
    border-color: var(--border-md);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(94,106,210,0.08);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    height: 84%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}
.service-card:has(.service-card-img) {
    padding-top: 1rem;
    margin-top: 0.85rem;
    margin-bottom: 0;
}
.service-cards-grid {
    --bs-gutter-y: 1rem;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94,106,210,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    background: var(--bg-surface-md);
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}
.service-icon {
    width: 56px; height: 56px;
    background: rgba(94,106,210,0.12);
    border: 1px solid rgba(94,106,210,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 1.375rem;
    transition: all 0.3s var(--ease);
}
.service-card:hover .service-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.service-card-img {
    margin: -3rem -0.75rem 1.25rem;
    height: 196px;
    overflow: hidden;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid var(--border-md);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 2;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card-img::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}
.service-card:hover .service-card-img {
    transform: translateY(-10px) scale(1.035);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.55),
        0 0 28px var(--accent-glow);
}
.service-card:hover .service-card-img img {
    transform: scale(1.12);
}
.service-detail-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
}
.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--fg); }
.service-desc   { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.7; flex: 1; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1.25rem;
    transition: gap 0.2s var(--ease);
}
.service-link:hover { gap: 0.7rem; color: #fff; }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}
.project-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-lg), 0 0 30px rgba(94,106,210,0.1);
}
.project-img {
    position: relative;
    height: 215px;
    overflow: hidden;
}
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
    will-change: transform;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,2,3,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-body { padding: 1.25rem 1.5rem 1.5rem; }
.project-category {
    display: inline-block;
    background: rgba(94,106,210,0.12);
    color: var(--accent-light);
    padding: 0.18rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.project-title { font-weight: 700; margin-bottom: 0.35rem; color: var(--fg); font-size: 1rem; }
.project-techs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.875rem; }
.tech-badge {
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}
.tech-badge:hover, .tech-badge.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card), 0 0 25px rgba(94,106,210,0.08);
}
.blog-img {
    position: relative;
    height: 195px;
    overflow: hidden;
}
.blog-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
    will-change: transform;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-cat-badge {
    position: absolute;
    top: 0.875rem; left: 0.875rem;
    background: var(--accent);
    color: #fff;
    padding: 0.22rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.blog-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 1rem; color: var(--fg-muted); font-size: 0.775rem; margin-bottom: 0.625rem; }
.blog-title { font-weight: 700; line-height: 1.38; margin-bottom: 0.4rem; color: var(--fg); font-size: 0.975rem; }
.blog-summary { flex: 1; font-size: 0.875rem; color: var(--fg-muted); }
.blog-link {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    transition: gap 0.2s var(--ease);
}
.blog-link:hover { gap: 0.6rem; color: #fff; }
.blog-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    min-width: 0;
}
.blog-card-footer .blog-link {
    margin-top: 0;
    flex: 0 0 auto;
}
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
    margin-top: 0;
    flex: 1 1 10rem;
    min-width: 0;
    max-width: 100%;
}
.blog-card-footer .blog-tags {
    /* Card footer: keep chips from blowing out the row */
    justify-content: flex-end;
}
.blog-tag {
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}
.blog-card-footer .blog-tag {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.blog-tag:hover, .blog-tag.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.08;
    line-height: 1;
    font-family: serif;
}
.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.testimonial-comment {
    color: var(--fg-muted);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-md); }
.testimonial-avatar-placeholder {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.testimonial-card-full {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.testimonial-card-full::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.08;
    line-height: 1;
    font-family: serif;
}
.testimonial-card-full:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.testimonial-card-full .testimonial-comment { margin-bottom: 1.5rem; }
.testimonial-card-full .testimonial-author-name { font-weight: 700; color: var(--fg); }
.testimonial-card-full .testimonial-author-meta { color: var(--fg-muted); font-size: 0.875rem; }

/* ============================================================
   REFERENCES / LOGO WALL (infinite marquee)
   ============================================================ */
.references-section {
    background: var(--bg-base);
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 3.5rem 0;
}
.references-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 2.5rem;
}
.references-track {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.references-marquee {
    display: flex;
    width: max-content;
    align-items: center;
    animation: references-scroll 40s linear infinite;
}
.references-track:hover .references-marquee {
    animation-play-state: paused;
}
.references-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0;
}
.reference-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.25rem;
    flex-shrink: 0;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.reference-item:hover { transform: translateY(-2px); }
.reference-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    min-width: 140px;
    min-height: 145px;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.reference-logo-wrap.is-link { text-decoration: none; }
.reference-logo {
    display: block;
    height: 145px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.reference-item:hover .reference-logo { opacity: 1; }
/* Dark/black uploaded logos → light gray on site background */
.reference-logo-wrap.is-black-logo .reference-logo {
    filter: brightness(0) invert(0.72);
    opacity: 0.78;
}
.reference-item:hover .reference-logo-wrap.is-black-logo .reference-logo {
    filter: brightness(0) invert(0.88);
    opacity: 0.95;
}
@keyframes references-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .references-marquee { animation: none; }
    .references-track { overflow-x: auto; }
    .references-marquee { width: 100%; justify-content: center; flex-wrap: wrap; }
    .references-inner[aria-hidden="true"] { display: none; }
}
.reference-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    transition: color 0.2s;
    letter-spacing: 0.03em;
}
.reference-item:hover .reference-name { color: rgba(255,255,255,0.8); }

/* Text-only reference fallback pill */
.reference-name-pill {
    font-weight: 800;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    background: rgba(255,255,255,0.03);
}
.reference-item:hover .reference-name-pill {
    color: rgba(255,255,255,0.9);
    border-color: rgba(94,106,210,0.4);
    background: rgba(94,106,210,0.08);
    box-shadow: 0 0 20px rgba(94,106,210,0.12);
}

/* ============================================================
   ABOUT STATS
   ============================================================ */
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.625rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.about-stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-glow-lg);
}
.about-stat-card--primary {
    background: linear-gradient(135deg, rgba(94,106,210,0.15), rgba(94,106,210,0.05));
    border-color: rgba(94,106,210,0.3);
}
.about-stat-card--success {
    background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(34,211,238,0.04));
    border-color: rgba(34,211,238,0.25);
}
.about-stat-icon { font-size: 1.875rem; margin-bottom: 0.5rem; }
.about-stat-number { font-size: 2.125rem; font-weight: 800; line-height: 1; color: #fff; }
.about-stat-label { font-size: 0.775rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* ============================================================
   VMV CARDS
   ============================================================ */
.vmv-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s var(--ease);
}
.vmv-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.vmv-card--primary {
    background: linear-gradient(135deg, rgba(94,106,210,0.15), rgba(94,106,210,0.05));
    border-color: rgba(94,106,210,0.3);
}
.vmv-card--primary p { color: var(--fg-muted); }
.vmv-icon {
    width: 52px; height: 52px;
    background: rgba(94,106,210,0.12);
    border: 1px solid rgba(94,106,210,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}
.vmv-card--primary .vmv-icon { background: rgba(94,106,210,0.2); }

/* ============================================================
   TEAM
   ============================================================ */
.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.625rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.team-photo img, .team-photo-placeholder {
    width: 96px; height: 96px;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}
.team-photo img { border: 2px solid var(--border-md); border-radius: 50%; }
.team-photo-placeholder {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.team-social-link {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s var(--ease);
}
.team-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.filter-tab {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s var(--ease);
    background: var(--bg-surface);
}
.filter-tab:hover {
    border-color: var(--border-md);
    color: var(--fg);
    background: var(--bg-overlay);
}
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-icon {
    width: 44px; height: 44px;
    background: rgba(94,106,210,0.1);
    border: 1px solid rgba(94,106,210,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(10px);
}
.contact-map {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-deep);
    line-height: 0;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    /* Google Maps embed — dark theme via CSS filter */
    filter: invert(92%) hue-rotate(180deg) brightness(0.92) contrast(0.94) saturate(0.82);
}
.phone-input-wrap .iti { width: 100%; display: block; }
.phone-input-wrap .iti__tel-input.form-control-lg {
    padding-left: 6.25rem;
}
.phone-input-wrap .iti__country-container {
    padding: 0;
}
.phone-input-wrap .iti__selected-country {
    background: var(--bg-surface) !important;
    border-right: 1px solid var(--border-md);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 0.5rem 0 0.75rem;
}
.phone-input-wrap .iti__selected-country:hover,
.phone-input-wrap .iti__selected-country:focus {
    background: var(--bg-surface-md) !important;
}
.phone-input-wrap .iti__selected-dial-code {
    color: var(--fg);
    font-size: 0.95rem;
    margin-left: 0.35rem;
}
.phone-input-wrap .iti__arrow {
    border-top-color: var(--fg-muted);
    margin-left: 0.35rem;
}
.phone-input-wrap .iti__dropdown-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    color-scheme: dark;
}
.phone-input-wrap .iti__search-input {
    background: var(--bg-surface);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    color: var(--fg);
    margin: 0.5rem;
    width: calc(100% - 1rem);
}
.phone-input-wrap .iti__search-input::placeholder {
    color: var(--fg-subtle);
}
.phone-input-wrap .iti__country-list {
    max-height: 220px;
}
.phone-input-wrap .iti__country {
    color: var(--fg);
    padding: 0.5rem 0.75rem;
}
.phone-input-wrap .iti__country.iti__highlight {
    background: rgba(94, 106, 210, 0.18);
}
.phone-input-wrap .iti__divider {
    border-color: var(--border);
    margin: 0.25rem 0;
}
.social-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s var(--ease);
}
.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================================
   CAREER
   ============================================================ */
.culture-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s var(--ease);
}
.culture-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}
.career-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    transition: all 0.25s var(--ease);
}
.career-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 20px rgba(94,106,210,0.08);
    transform: translateX(4px);
}
.career-title { color: var(--fg); }
.apply-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 5rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.hover-shadow { transition: all 0.2s var(--ease); }
.hover-shadow:hover { transform: translateY(-2px); border-color: var(--border-md) !important; }
.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-info-item:last-child { border-bottom: none; }
.sidebar-cta {
    background: linear-gradient(135deg, rgba(94,106,210,0.2), rgba(94,106,210,0.08));
    border: 1px solid rgba(94,106,210,0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.sidebar-cta h5 { color: #fff; }
.related-blog-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.related-blog-item:last-child { border-bottom: none; }
.related-blog-item img { width: 58px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-blog-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--fg);
    text-decoration: none;
}
.related-blog-title:hover { color: var(--accent-light); }
.blog-nav-title { color: var(--fg); }
.blog-nav-link:hover .blog-nav-title { color: var(--accent-light); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(160deg, #0d0d14 0%, #07070b 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 300px;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(94,106,210,0.15), transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.cta-desc { color: var(--fg-muted); font-size: 1.05rem; margin-bottom: 2.25rem; line-height: 1.7; }

/* ============================================================
   BUTTONS (global overrides)
   ============================================================ */
.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 600;
    transition: all 0.2s var(--ease) !important;
}
.btn-primary:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--accent-light) !important;
    border-color: rgba(94,106,210,0.5) !important;
    font-weight: 600;
    transition: all 0.2s var(--ease) !important;
}
.btn-outline-primary:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
}
.btn-light {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.btn-light:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.2) !important;
    color: var(--fg-muted) !important;
    font-weight: 600;
}
.btn-outline-light:hover {
    background: var(--bg-overlay) !important;
    color: #fff !important;
}

/* ============================================================
   ACCORDION (dark theme)
   ============================================================ */
.accordion-item {
    background: var(--bg-surface) !important;
    border-color: var(--border) !important;
    color: var(--fg) !important;
}
.accordion-button {
    background: var(--bg-surface) !important;
    color: var(--fg) !important;
    box-shadow: none !important;
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background: var(--bg-elevated) !important;
    color: var(--accent-light) !important;
    box-shadow: none !important;
}
.accordion-button::after {
    filter: invert(1) brightness(0.8);
}
.accordion-body {
    background: var(--bg-elevated) !important;
    color: var(--fg-muted) !important;
}

/* ============================================================
   FORMS (dark theme)
   ============================================================ */
.form-control, .form-select {
    background: var(--bg-surface) !important;
    border-color: var(--border-md) !important;
    color: var(--fg) !important;
    border-radius: var(--radius-sm) !important;
    color-scheme: dark;
}
.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A8ADB5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select option,
.form-select optgroup {
    background-color: var(--bg-elevated);
    color: var(--fg);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-surface-md) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(94,106,210,0.15) !important;
    color: var(--fg) !important;
}
.form-control::placeholder { color: var(--fg-subtle) !important; }
.form-label { color: var(--fg-muted); font-size: 0.875rem; font-weight: 500; }
.form-text {
    color: var(--fg-muted) !important;
    font-size: 0.8125rem;
}

/* File input — dark theme (Bootstrap default button stays white) */
.testimonial-card-full input[type="file"].form-control,
.contact-form-card input[type="file"].form-control {
    color: var(--fg-muted);
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

.testimonial-card-full input[type="file"].form-control::file-selector-button,
.contact-form-card input[type="file"].form-control::file-selector-button {
    background: var(--bg-elevated);
    border: 1px solid var(--border-md);
    color: var(--fg);
    padding: 0.4rem 0.875rem;
    margin-right: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.testimonial-card-full input[type="file"].form-control::file-selector-button:hover,
.contact-form-card input[type="file"].form-control::file-selector-button:hover {
    background: var(--bg-surface-md);
    border-color: var(--border-accent);
}

.testimonial-card-full input[type="file"].form-control::-webkit-file-upload-button,
.contact-form-card input[type="file"].form-control::-webkit-file-upload-button {
    background: var(--bg-elevated);
    border: 1px solid var(--border-md);
    color: var(--fg);
    padding: 0.4rem 0.875rem;
    margin-right: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}

.testimonial-card-full input[type="file"].form-control:hover:not(:disabled):not([readonly])::file-selector-button,
.contact-form-card input[type="file"].form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background: var(--bg-surface-md);
    border-color: var(--border-accent);
}

.testimonial-card-full input[type="file"].form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button,
.contact-form-card input[type="file"].form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background: var(--bg-surface-md);
    border-color: var(--border-accent);
}

/* ============================================================
   PROSE CONTENT
   ============================================================ */
.prose { line-height: 1.8; color: var(--fg-muted); }
.prose h1, .prose h2, .prose h3 { font-weight: 700; margin-top: 1.5em; margin-bottom: 0.5em; color: var(--fg); letter-spacing: -0.3px; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent-light); }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.quick-stat { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; }
.value-item { display: flex; align-items: center; padding: 0.5rem 0; font-size: 0.9rem; color: var(--fg-muted); }
.about-placeholder-img {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    border-radius: var(--radius-lg);
}
.service-detail-icon {
    width: 60px; height: 60px;
    background: rgba(94,106,210,0.1);
    border: 1px solid rgba(94,106,210,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    color: var(--accent-light);
}
.service-sidebar { position: sticky; top: 5rem; }
.service-sidebar-card, .service-sidebar-cta {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.service-sidebar-cta {
    background: linear-gradient(135deg, rgba(94,106,210,0.15), rgba(94,106,210,0.05));
    border-color: rgba(94,106,210,0.3);
    margin-top: 1rem;
}
.service-sidebar-cta h5 { color: #fff; }
.gallery-thumb {
    height: 100%; width: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease);
    filter: brightness(0.9);
}
.gallery-thumb:hover { transform: scale(1.04); filter: brightness(1.05); }
.tech-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-muted);
    transition: all 0.2s var(--ease);
}
.tech-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    color: var(--footer-fg-muted);
}
.footer-column-title {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--footer-fg-label);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.footer-brand-desc {
    color: var(--footer-fg-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    max-width: 280px;
}
.footer-contact-item {
    color: var(--footer-fg-muted);
}
.footer-contact-item a {
    color: var(--footer-fg-muted);
    text-decoration: none;
}
.footer-contact-item a:hover {
    color: var(--footer-fg);
}
.footer-copyright {
    font-size: 0.8rem;
    color: var(--footer-fg-subtle);
}
.footer-meta-link {
    display: inline;
    font-size: 0.8rem;
    color: var(--footer-fg-subtle);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.footer-meta-link:hover {
    color: var(--footer-fg);
}
.footer-link {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--footer-fg-muted) !important;
    font-size: 0.875rem;
    transition: color 0.2s var(--ease);
    line-height: 1.6;
    padding: 0.1rem 0;
    min-height: 28px;
}
.footer-link:hover { color: var(--footer-fg) !important; }
.hover-primary:hover { color: var(--accent-light) !important; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 52px; height: 52px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1040;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(7,7,9,0.97);
    border-top: 1px solid var(--border-accent);
    color: var(--fg);
    padding: 1rem 0;
    z-index: 2000;
    backdrop-filter: blur(20px);
    animation: slideUp 0.4s var(--ease);
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ============================================================
   ENTRY ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Glow border animation */
@keyframes glowBorder {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
    50%       { box-shadow: 0 0 30px rgba(94,106,210,0.35); }
}
.glow-border { animation: glowBorder 3s ease-in-out infinite; }

/* Loading skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-overlay) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ============================================================
   BLOG NAV
   ============================================================ */
.blog-nav-link:hover { border-color: var(--border-accent) !important; color: var(--fg) !important; }

/* ============================================================
   TEXT UTILITIES (dark override)
   ============================================================ */
.text-muted { color: var(--fg-muted) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.lead { color: var(--fg-muted); }
h1, h2, h3, h4, h5, h6 { color: var(--fg); }
.text-primary { color: var(--accent-light) !important; }
.bg-primary { background-color: var(--accent) !important; }

/* Badge dark */
.badge.bg-primary { background: var(--accent) !important; }
.badge.bg-secondary { background: var(--bg-overlay) !important; color: var(--fg-muted) !important; }

/* hr */
hr { border-color: var(--border); }

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints: 991 (lg), 768 (md), 576 (sm), 380 (xs)
   ============================================================ */

/* ── Tablet (≤ 991px) ─────────────────────────────── */
@media (max-width: 991px) {
    /* Hide 3D floating badges */
    .hero-floating-badge { display: none; }

    /* Navbar collapse — dark solid bg */
    .navbar-collapse {
        background: rgba(7,7,9,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
        position: relative;
        z-index: 1049;
    }
    #mainNav .nav-link {
        padding: 0.65rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: 0.925rem;
    }
    .nav-cta {
        display: block !important;
        text-align: center;
        margin-top: 0.5rem;
    }
    /* Ensure toggler always shows on mobile */
    .navbar-toggler { display: flex !important; align-items: center; justify-content: center; }

    /* Hero stats — tek satır, kompakt */
    .hero-stat {
        padding: 0 0.5rem;
    }
    .hero-stat-number { font-size: 1.5rem; }
    .hero-stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
    }

    /* Page hero smaller padding */
    .page-hero { padding: 6.5rem 0 3rem; }
}

/* ── Mobile (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        letter-spacing: -0.75px;
        line-height: 1.12;
    }
    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.875rem; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2rem); letter-spacing: -0.5px; }
    .section-desc  { font-size: 0.9rem; }

    /* Sections */
    .section-padding { padding: 3.5rem 0; }
    .cta-section     { padding: 4rem 0; }
    .page-hero       { padding: 5.5rem 0 2.5rem; }

    /* Hero fallback container */
    .hero-fallback-container {
        padding-top: 80px;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-fallback-container .hero-badge { margin: 0 auto 1rem; }
    .hero-fallback-container .hero-desc  { margin: 0 auto 1.75rem; }

    /* 3D canvas hidden on mobile — save battery */
    #hero3dCanvas { display: none !important; }

    /* Prevent horizontal bleed without creating nested scroll containers.
       overflow-x:hidden forces overflow-y:auto (CSS overflow pairing),
       which makes sections scroll internally on mobile. Use clip instead. */
    .hero-section,
    .hero-bg-animation,
    .page-hero,
    section {
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
    }

    /* Disable 3D transforms on mobile to prevent overflow */
    .service-card,
    .project-card,
    .blog-card,
    .testimonial-card {
        transform-style: flat !important;
        transform: none !important;
        will-change: auto !important;
    }

    /* Stats — tek satır, daha küçük */
    .hero-stat { padding: 0 0.35rem; }
    .hero-stat-number { font-size: 1.35rem; min-height: 1.5rem; }
    .hero-stat-label { font-size: 0.52rem; letter-spacing: 0.5px; }

    /* Buttons full-width on small mobile */
    .hero-actions { width: 100%; }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Cards */
    .service-card { padding: 1.5rem; }
    .service-card:has(.service-card-img) {
        margin-top: 0.7rem;
        margin-bottom: 0;
        padding-top: 0.65rem;
    }
    .service-cards-grid {
        --bs-gutter-y: 0.85rem;
    }
    .service-card-img {
        margin: -2.5rem -0.5rem 1rem;
        height: 168px;
    }
    .service-card:hover .service-card-img {
        transform: translateY(-6px) scale(1.02);
    }
    .testimonial-card { padding: 1.5rem; }
    .vmv-card { padding: 1.5rem; }
    .contact-form-card { padding: 1.375rem; }
    .apply-form-card { position: static; }

    /* About stats */
    .about-stats-grid { gap: 0.625rem; }
    .about-stat-card  { padding: 1.25rem; }
    .about-stat-number { font-size: 1.75rem; }

    /* References */
    .reference-item { padding: 0.75rem 1.1rem; }
-fix
    .references-marquee { animation-duration: 28s; }

    /* Footer */
    .footer .col-lg-4 { text-align: center; }
    .footer .col-lg-4 .d-flex { justify-content: center; }
    .footer .brand-logo { display: block; text-align: center; }
    .footer-brand-desc { place-self: center; text-align: center; }

    /* CTA section */
    .cta-title { font-size: 1.75rem; }
    .cta-desc  { font-size: 0.95rem; }

    /* Sidebar sticky off */
    .service-sidebar,
    .sidebar-card { position: static; }

    /* Blog detail */
    .blog-nav-link { font-size: 0.8rem; }
}

/* ── Small Mobile (≤ 576px) ───────────────────────── */
@media (max-width: 576px) {
    /* Tighter container */
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Hero title even smaller */
    .hero-title { font-size: clamp(1.875rem, 9vw, 2.5rem); }

    .hero-stat-number { font-size: 1.2rem; }
    .hero-stat-label { font-size: 0.48rem; }

    /* Cards full-width padding */
    .project-body { padding: 1rem 1.125rem 1.25rem; }
    .blog-body    { padding: 1rem 1.125rem 1.25rem; }

    /* Page hero */
    .page-hero { padding: 5rem 0 2rem; }
    .page-hero .hero-title { font-size: clamp(1.625rem, 8vw, 2.25rem); }

    /* Section badge */
    .section-badge { font-size: 0.67rem; letter-spacing: 1px; }

    /* Filter tabs wrap nicely */
    .filter-tabs { gap: 0.3rem; }
    .filter-tab  { font-size: 0.775rem; padding: 0.38rem 0.875rem; }

    /* CTA section */
    .cta-section .btn { width: 100%; text-align: center; }

    /* Cookie consent */
    .cookie-consent .container { flex-direction: column; gap: 0.75rem; }
}

/* ── Extra small (≤ 380px) ────────────────────────── */
@media (max-width: 380px) {
    .hero-title { font-size: 1.75rem; }
    .hero-stat-number { font-size: 1.375rem; }
    .hero-btn-primary,
    .hero-btn-secondary { padding: 0.7rem 1.25rem; font-size: 0.85rem; }
    .section-title { font-size: 1.5rem; }
}

/* ── Touch device — disable tilt ─────────────────── */
@media (hover: none) {
    .service-card:hover,
    .project-card:hover,
    .blog-card:hover,
    .testimonial-card:hover { transform: none !important; }
}
