/* ==========================================================
   Variksha Technologies - Main Stylesheet
   Dark navy + electric blue theme (from brand logo)
   ========================================================== */

:root {
  --bg: #030a18;
  --bg-alt: #050f22;
  --surface: #081730;
  --surface-2: #0c2040;
  --surface-3: #112a52;
  --line: rgba(96, 165, 250, 0.16);
  --line-strong: rgba(96, 165, 250, 0.34);

  --primary: #3b97ef;
  --primary-bright: #62b4ff;
  --primary-deep: #1f6fd1;
  --accent: #7dd3fc;

  --text: #eaf2ff;
  --text-muted: #9bb0cf;
  --text-dim: #6f86a8;

  --error: #f87171;
  --success: #34d399;

  --grad: linear-gradient(135deg, #1f6fd1 0%, #3b97ef 55%, #62b4ff 100%);
  --grad-text: linear-gradient(120deg, #62b4ff 0%, #a5d8ff 100%);
  --shadow-glow: 0 10px 40px -10px rgba(59, 151, 239, 0.55);
  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.8);

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 80px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow shared by all pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(59, 151, 239, 0.16), transparent 60%),
    radial-gradient(700px 500px at -5% 35%, rgba(31, 111, 209, 0.14), transparent 60%);
}

h1, h2, h3, h4, h5, h6 { font-family: 'Manrope', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
::selection { background: rgba(59, 151, 239, 0.4); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}
.material-symbols-outlined[data-weight="fill"] { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 6px; }

main { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font: 600 0.95rem 'Inter', sans-serif;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 14px 44px -8px rgba(98, 180, 255, 0.7); }
.btn-secondary { background: rgba(59, 151, 239, 0.1); color: var(--primary-bright); border-color: var(--line-strong); }
.btn-secondary:hover { background: rgba(59, 151, 239, 0.2); }
.btn-white { background: #fff; color: #06172f; }
.btn-white:hover { background: #e6f1ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(3, 10, 24, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease;
}
.navbar.scrolled { background: rgba(3, 10, 24, 0.92); border-bottom-color: var(--line); }
.nav-container {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  position: relative; display: block; padding: 0.55rem 0.95rem;
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(59, 151, 239, 0.1); }
.nav-links a.active { color: #fff; background: rgba(59, 151, 239, 0.16); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta .btn { padding: 0.65rem 1.35rem; font-size: 0.9rem; }

.mobile-menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(59, 151, 239, 0.1); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(3, 10, 24, 0.98); padding: 1.5rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all .3s ease; overflow-y: auto;
}
.mobile-nav.active { transform: none; opacity: 1; visibility: visible; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-nav-links a {
  display: block; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  font: 600 1.1rem 'Manrope', sans-serif; color: var(--text-muted);
}
.mobile-nav-links a.active, .mobile-nav-links a:hover { color: #fff; background: rgba(59, 151, 239, 0.14); }

/* ---------- Shared layout ---------- */
.section, .process-section, .timeline-section, .team-section, .experts-section, .trusted-section, .contact-section {
  max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem;
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header h2, .team-section > h2, .experts-section > h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.section-header h2::after {
  content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin: 1.1rem auto 0;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.hero-badge, .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 999px;
  font: 600 0.78rem 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-bright); background: rgba(59, 151, 239, 0.12); border: 1px solid var(--line-strong);
}
.highlight { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Page heroes ---------- */
.hero-split {
  max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem !important;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center;
}
.hero-split-content h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 1.4rem 0 1.4rem; }
.hero-split-content p { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-image-wrapper { position: relative; }
.hero-image-blur { position: absolute; inset: -8%; background: var(--grad); opacity: .28; filter: blur(70px); border-radius: 50%; }
.hero-image {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-card), 0 0 0 8px rgba(59, 151, 239, 0.05);
  aspect-ratio: 4 / 3.4;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 10, 24, 0) 40%, rgba(3, 10, 24, 0.75)); }

.hero, .contact-hero {
  position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 10, 24, 0.96) 0%, rgba(3, 10, 24, 0.8) 55%, rgba(3, 10, 24, 0.55) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content, .contact-hero-content { position: relative; max-width: calc(var(--maxw) - 3rem); width: 100%; margin: 0 auto; }
.hero-content h1, .contact-hero-content h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); margin: 1.2rem 0 1rem; max-width: 720px; }
.hero-content p, .contact-hero-content p { font-size: 1.15rem; color: #c3d4ee; max-width: 620px; }

.team-hero, .portfolio-hero {
  text-align: center; max-width: 820px; margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 3rem;
}
.team-hero h1, .portfolio-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin: 1.2rem 0 1.1rem; }
.team-hero p, .portfolio-hero p { color: var(--text-muted); font-size: 1.12rem; }

/* ---------- Home: process ---------- */
.process-section { text-align: center; }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.process-line { display: none; }
.process-step {
  position: relative; text-align: left; padding: 2.2rem 2rem 2rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.process-step::after { content: ''; position: absolute; left: 2rem; right: 2rem; top: 0; height: 2px; background: var(--grad); border-radius: 2px; }
.process-number {
  font: 800 2.6rem 'Manrope', sans-serif; line-height: 1; margin-bottom: 1.2rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .95;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.process-step p { color: var(--text-muted); font-size: .97rem; }

/* ---------- Home: why us ---------- */
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.why-us-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-us-images img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(98, 180, 255, .08), 0 18px 40px -18px rgba(31, 111, 209, .55), var(--shadow-card);
  filter: saturate(1.05) contrast(1.03);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.why-us-images img:nth-child(odd) { transform: translateY(1.5rem); }
.why-us-images img:hover { transform: translateY(-4px) scale(1.02); border-color: var(--primary-bright); box-shadow: 0 0 28px -4px rgba(98, 180, 255, .55), var(--shadow-card); }
.why-us-images img:nth-child(odd):hover { transform: translateY(calc(1.5rem - 4px)) scale(1.02); }
.grad-accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-us-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.why-us-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex; gap: 1.1rem; align-items: center; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(12, 32, 64, .75), rgba(8, 23, 48, .55));
  border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-item:hover { transform: translateX(6px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.feature-item .icon, .mv-card .icon, .value-card .icon, .contact-info-item .icon {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(59, 151, 239, 0.14); color: var(--primary-bright); border: 1px solid var(--line-strong);
}
.feature-item h4 { font-size: 1.08rem; margin-bottom: .25rem; }
.feature-item p { color: var(--text-muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative; max-width: calc(var(--maxw) - 0px); margin: 2rem auto 6rem; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong); width: calc(100% - 3rem);
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8, 30, 70, 0.93), rgba(3, 10, 24, 0.9)); }
.cta-content { position: relative; text-align: center; padding: 5rem 2rem; max-width: 780px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.cta-content p { color: #c3d4ee; font-size: 1.08rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .55; transition: opacity .45s ease, transform .6s ease; transform: scale(1.04);
}
.card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 23, 48, 0.55), rgba(3, 10, 24, 0.9)); opacity: 1; transition: opacity .45s ease; }
.card > *:not(.card-bg) { position: relative; z-index: 2; }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-card), 0 0 30px -10px rgba(59, 151, 239, 0.5); }
.card:hover .card-bg { opacity: .75; transform: scale(1); }
.card:hover::before { opacity: .9; }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.3rem;
  border-radius: 16px; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow);
}
.card-icon .material-symbols-outlined { font-size: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: .65rem; }
.card p { color: #c3d4ee; font-size: .96rem; flex: 1; margin-bottom: 1.4rem; }
.card:hover p { color: #c3d4ee; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--primary-bright); }
.card-link .material-symbols-outlined { font-size: 18px; transition: transform .25s ease; }
.card:hover .card-link .material-symbols-outlined { transform: translateX(5px); }

/* ---------- About ---------- */
.about-hero { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about-content h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin: 1.2rem 0 1.2rem; }
.about-content > p { color: var(--text-muted); font-size: 1.12rem; margin-bottom: 2rem; }
.mission-vision-cards { display: grid; gap: 1rem; }
.mv-card {
  display: flex; gap: 1.1rem; padding: 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.mv-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.mv-card p { color: var(--text-muted); font-size: .94rem; }
.about-image { position: relative; }
.about-image img { position: relative; z-index: 1; border-radius: 24px; border: 1px solid var(--line-strong); aspect-ratio: 4/4.4; width: 100%; object-fit: cover; box-shadow: var(--shadow-card); }
.about-image-blur { position: absolute; inset: -6%; background: var(--grad); opacity: .25; filter: blur(70px); border-radius: 50%; }

.timeline-section { text-align: center; }
.timeline { position: relative; }
.timeline-line { position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent); opacity: .6; }
.timeline-items { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.timeline-item { text-align: center; padding: 0 .5rem; }
.timeline-marker {
  width: 58px; height: 58px; margin: 0 auto 1.4rem; display: grid; place-items: center;
  border-radius: 50%; font: 700 .8rem 'Manrope', sans-serif; color: #fff;
  background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-strong), var(--shadow-glow);
}
.timeline-item > h3 { display: none; }
.timeline-item h4 { font-size: 1.2rem; margin-bottom: .55rem; color: var(--primary-bright); }
.timeline-item p { color: var(--text-muted); font-size: .96rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.value-card .icon { margin-bottom: 1.2rem; }
.value-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.value-card p { color: var(--text-muted); }
.value-card-span-2 { grid-column: span 2; }
.value-card-span-3 { grid-column: span 3; background: linear-gradient(120deg, rgba(31, 111, 209, 0.35), var(--surface) 70%); border-color: var(--line-strong); }
.value-card-large p { max-width: 640px; }
.stats-row { display: flex; gap: 3.5rem; margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat-value { font: 800 2.6rem 'Manrope', sans-serif; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-label { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }

.global-section { background: var(--bg-alt); border-block: 1px solid var(--line); }
.global-grid { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.global-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.global-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.8rem; }
.global-locations { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.global-locations li {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.global-locations .material-symbols-outlined { color: var(--primary-bright); font-size: 22px; }
.global-image img { border-radius: 24px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Team ---------- */
.team-section, .experts-section { text-align: left; }
.team-section > p, .experts-section > p { color: var(--text-muted) !important; margin-bottom: 2.5rem !important; max-width: 640px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.team-card { border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease; }
.team-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.team-card-image { position: relative; aspect-ratio: 4/4.4; overflow: hidden; }
.team-card-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .6s ease; }
.team-card:hover .team-card-image img { filter: grayscale(0); transform: scale(1.04); }
.team-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 23, 48, 0.9)); }
.team-card-image .badge { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; background: rgba(3, 10, 24, 0.75); backdrop-filter: blur(6px); }
.badge .material-symbols-outlined { font-size: 16px; }
.team-card-content { padding: 1.5rem; position: relative; }
.team-card-content h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.role { color: var(--primary-bright); font-weight: 600; font-size: .92rem; }
.experience { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }
.team-card-social { position: absolute; top: 1.4rem; right: 1.4rem; }
.team-card-social a, .footer-social a, .contact-social-links a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text-muted); background: rgba(59, 151, 239, 0.1); border: 1px solid var(--line);
  transition: all .25s ease;
}
.team-card-social a:hover, .footer-social a:hover, .contact-social-links a:hover { color: #fff; background: var(--primary-deep); border-color: var(--primary); transform: translateY(-2px); }
.team-card-social svg, .footer-social svg, .contact-social-links svg { width: 17px; height: 17px; }

.experts-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(120px, auto); gap: 1.25rem; }
.expert-card-large { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; border-radius: var(--radius); min-height: 420px; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.expert-card-large .bg-image { position: absolute; inset: 0; }
.expert-card-large .bg-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.expert-card-large:hover .bg-image img { transform: scale(1.05); }
.expert-card-large .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 10, 24, 0.97) 8%, rgba(3, 10, 24, 0.25) 65%); }
.expert-card-large .content { position: relative; padding: 2rem; }
.expert-card-large .content h3 { font-size: 1.7rem; margin: .3rem 0 .6rem; }
.expert-card-large .content p { color: #c3d4ee; margin-bottom: 1.2rem; max-width: 420px; font-size: .95rem; }
.expert-card-small {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease; grid-column: span 1;
}
.expert-card-small:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.expert-card-small img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.expert-card-small h4 { font-size: 1.02rem; }
.expert-card-small .role { font-size: .85rem; }

/* ---------- Portfolio ---------- */
.portfolio-filters { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 2.5rem; display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer;
  font: 600 .9rem 'Inter', sans-serif; color: var(--text-muted);
  background: rgba(59, 151, 239, 0.06); border: 1px solid var(--line); transition: all .25s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--line-strong); }
.filter-btn.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-glow); }
.portfolio-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.portfolio-item {
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); transition: transform .35s ease, opacity .3s ease, border-color .35s ease;
}
.portfolio-item:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.portfolio-item-image { aspect-ratio: 16/10; overflow: hidden; }
.portfolio-item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-item:hover .portfolio-item-image img { transform: scale(1.07); }
.portfolio-item-content { padding: 1.6rem; }
.category { display: inline-block; font: 600 .75rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-bright); margin-bottom: .6rem; }
.portfolio-item-content h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.portfolio-item-content p { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.2rem; }
.portfolio-item .link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--primary-bright); }
.portfolio-item .link .material-symbols-outlined { font-size: 18px; transition: transform .25s; }
.portfolio-item:hover .link .material-symbols-outlined { transform: translateX(5px); }
.load-more { text-align: center; padding: 3.5rem 1.5rem 6rem; }

/* ---------- Contact ---------- */
.contact-hero { min-height: 380px; }
.contact-section { padding-top: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; margin-top: -4rem; position: relative; z-index: 2; }
.contact-form-card, .contact-info-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 2.5rem; box-shadow: var(--shadow-card);
}
.contact-form-card h2, .contact-info-card h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.contact-form-card > .contact-form-container > p { color: var(--text-muted); margin-bottom: 1.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .45rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(3, 10, 24, 0.7); border: 1px solid var(--line); color: var(--text);
  font: 400 .97rem 'Inter', sans-serif; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239bb0cf' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group select option { background: #081730; color: var(--text); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 151, 239, 0.25); }
.form-error { background: rgba(248, 113, 113, 0.12) !important; color: var(--error) !important; border: 1px solid rgba(248, 113, 113, 0.35); }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success.show { display: block; }
.form-success .icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, 0.14); color: var(--success); }
.form-success .icon .material-symbols-outlined { font-size: 40px; }
.form-success p { color: var(--text-muted); }

.contact-info-card h3 { margin-bottom: 1.8rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item p { color: var(--text-muted); font-size: .95rem; }
.contact-info-item a:hover { color: var(--primary-bright); }
.contact-social { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-social h4 { font-size: .95rem; margin-bottom: .9rem; }
.contact-social-links { display: flex; gap: .6rem; }
.contact-map { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 210px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(185deg) saturate(.7) brightness(.95); }

.trusted-section { text-align: center; padding-top: 4rem; }
.trusted-section h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); font-weight: 600; margin-bottom: 2rem; }
.trusted-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3.2rem; }
.trusted-logos span { font: 800 1.25rem 'Manrope', sans-serif; letter-spacing: .06em; color: var(--text-dim); opacity: .75; transition: color .3s, opacity .3s; }
.trusted-logos span:hover { color: var(--primary-bright); opacity: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 3rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer-logo img { height: 56px; width: auto; margin-bottom: 1.1rem; mix-blend-mode: screen; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 340px; margin-bottom: 1.4rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-links h4, .footer-contact h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary-bright); margin-bottom: 1.2rem; }
.footer-links ul { display: grid; gap: .7rem; }
.footer-links a { color: var(--text-muted); font-size: .94rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-muted); font-size: .94rem; margin-bottom: .9rem; }
.footer-contact-item .material-symbols-outlined { color: var(--primary-bright); font-size: 20px; }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 1.5rem; color: var(--text-dim); font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.floating-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: .75rem; }
.floating-btn {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.6); transition: transform .25s ease;
}
.floating-btn:hover { transform: scale(1.1); }
.floating-btn.whatsapp { background: #25d366; }
.floating-btn.call { background: var(--grad); }
.floating-btn .tooltip {
  position: absolute; right: calc(100% + .7rem); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--surface-3); color: #fff; font-size: .8rem; font-weight: 500; padding: .35rem .75rem; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s ease; border: 1px solid var(--line);
}
.floating-btn:hover .tooltip { opacity: 1; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.card:hover, .js .reveal.in.team-card:hover, .js .reveal.in.portfolio-item:hover,
.js .reveal.in.value-card:hover, .js .reveal.in.expert-card-small:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .team-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: .5rem .7rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-split, .about-grid, .why-us-grid, .global-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-split { padding-top: calc(var(--nav-h) + 2.5rem) !important; }
  .process-grid, .timeline-items { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card-span-2, .value-card-span-3 { grid-column: auto; }
  .contact-grid { margin-top: -2.5rem; }
  .why-us-images { order: 2; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav-logo img { height: 40px; }
  .section, .process-section, .timeline-section, .team-section, .experts-section, .trusted-section, .contact-section { padding: 3.5rem 1.25rem; }
  .services-grid, .team-grid, .portfolio-grid, .experts-grid, .footer-grid { grid-template-columns: 1fr; }
  .expert-card-large { grid-column: auto; grid-row: auto; min-height: 380px; }
  .global-locations { grid-template-columns: 1fr; }
  .contact-form-card, .contact-info-card { padding: 1.6rem; }
  .cta-content { padding: 3.5rem 1.25rem; }
  .cta-section { width: calc(100% - 2.5rem); margin-bottom: 4rem; }
  .stats-row { gap: 2rem; }
  .hero-buttons .btn, .cta-buttons .btn { width: 100%; }
  .floating-btn .tooltip { display: none; }
}

/* ==========================================================
   v2 upgrades: cinematic hero, stats band, tech strip, filters
   ========================================================== */
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.1); transition: opacity 1.6s ease-in-out;
}
.slide.active { opacity: 1; animation: slidePan 12s linear forwards; }
@keyframes slidePan { from { transform: scale(1.1) translateX(0); } to { transform: scale(1.1) translateX(-3%); } }

.hero-cinematic {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: calc(var(--nav-h) + 2rem) 1.5rem 5rem;
}
.hero-cinematic .hero-overlay {
  background: radial-gradient(circle at 50% 45%, rgba(3, 10, 24, 0.55) 0%, rgba(3, 10, 24, 0.88) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-content-center { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content-center h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 1.4rem auto 1.4rem; max-width: 880px; }
.hero-content-center p { margin: 0 auto 2rem; font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1.45; color: #fff; max-width: 820px; text-wrap: balance; }
.hero-content-center .hero-buttons { justify-content: center; }
.hero-content-center > * { animation: heroIn .9s ease both; }
.hero-content-center > :nth-child(2) { animation-delay: .1s; }
.hero-content-center > :nth-child(3) { animation-delay: .2s; }
.hero-content-center > :nth-child(4) { animation-delay: .3s; }
.hero-content-center > :first-child { animation-delay: 0s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(3, 10, 24, 0.4);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.page-hero { min-height: 480px; }
.page-hero .hero-overlay, .contact-hero .hero-overlay {
  background: linear-gradient(90deg, rgba(3, 10, 24, 0.95) 0%, rgba(3, 10, 24, 0.78) 55%, rgba(3, 10, 24, 0.5) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

/* Stats band */
.stats-band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats-band-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.band-value { font: 800 clamp(2rem, 4vw, 3rem) 'Manrope', sans-serif; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band .stat-label { margin-top: .5rem; }
.stats-band-inner > div + div { border-left: 1px solid var(--line); }

/* Technology marquee */
.tech-strip { overflow: hidden; padding: 2rem 0; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
.tech-track span { font: 700 1.15rem 'Manrope', sans-serif; letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; }
.tech-track span::before { content: '◆'; color: var(--primary); margin-right: .9rem; font-size: .6rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services filters */
.svc-filters { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 2.5rem; }
.card[hidden] { display: none; }

@media (max-width: 900px) {
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-band-inner > div:nth-child(3) { border-left: 0; }
  .hero-cinematic { min-height: 92vh; }
}
@media (max-width: 640px) {
  .page-hero { min-height: 420px; }
  .stats-band-inner { gap: 1.5rem; padding: 2.2rem 1.25rem; }
  .tech-track { gap: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.active, .tech-track, .scroll-hint, .hero-content-center > * { animation: none !important; }
  .slide.active { transform: scale(1.05); }
}

/* Anti-spam honeypot: hidden from people, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
