/* ═══════════════════════════════════════════════════════════
   NS-Tech Solutions – styles.css
   Color Palette (from logo):
     Navy/Dark: #162035, #1a2844, #1e3254
     Blue accent: #2196f3, #1a8fd1
     Teal/Cyan: #00c9b1, #00e5cc
     White: #f0f4ff, #ffffff
═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-900: #0e1829;
  --navy-800: #162035;
  --navy-700: #1a2844;
  --navy-600: #1e3254;
  --navy-500: #243a62;
  --navy-400: #2c4473;

  --teal-400: #00e5cc;
  --teal-500: #00c9b1;
  --teal-600: #00a896;
  --teal-glow: rgba(0, 229, 204, 0.18);
  --teal-glow-strong: rgba(0, 229, 204, 0.35);

  --text-primary: #f0f4ff;
  --text-secondary: #a8b8d8;
  --text-muted: #6a80a8;

  --border: rgba(0, 229, 204, 0.15);
  --border-hover: rgba(0, 229, 204, 0.4);
  --glass-bg: rgba(26, 40, 68, 0.75);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-teal: 0 0 40px rgba(0, 229, 204, 0.18);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent font size adjustment on orientation change (iOS) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--navy-800);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Subtle gradient so the page feels layered, not flat-black */
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(33, 150, 243, 0.12) 0%, transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }

/* Remove 300ms tap delay and blue highlight on iOS/Android */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent input zoom on iOS (font-size must be >= 16px on focus) */
input, textarea, select {
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0; /* Reset iOS default rounding */
}

/* Ensure all images never overflow */
img, svg { max-width: 100%; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--teal-600); border-radius: 3px; }

/* ── Typography helpers ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal-400), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  /* Support iPhone notch / Dynamic Island */
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(24, 44, 72, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
  background: rgba(24, 44, 72, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: none;
  filter: none;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-logo:hover img {
  opacity: 0.95;
  transform: scale(1.04);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-brand span {
  color: var(--teal-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--teal-400);
  color: var(--navy-900) !important;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
}
.nav-cta:hover {
  background: var(--teal-500);
  color: var(--navy-900) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow-strong);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Background layers ─────────────────────────────────── */
.hero-bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0e1f3d 40%, #0d1a35 70%, #0a1020 100%);
  z-index: 0;
}

/* Right-side purple/magenta atmospheric glow (like studio lighting) */
.hero-glow-purple {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 65%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 50%,
    rgba(139, 92, 246, 0.28) 0%,
    rgba(219, 39, 119, 0.18) 35%,
    rgba(76, 29, 149, 0.12) 60%,
    transparent 80%);
  z-index: 1;
}

/* Left/center teal glow (screen light) */
.hero-glow-teal {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(0, 229, 204, 0.14) 0%,
    rgba(33, 150, 243, 0.10) 40%,
    transparent 75%);
  z-index: 1;
}

/* Subtle grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
}

/* Bottom vignette so content doesn't bleed into sections below */
.hero-bg-vignette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--navy-800));
  z-index: 3;
  pointer-events: none;
}

/* ── Floating orbs ─────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: 10%;
  background: rgba(139, 92, 246, 0.2);
  animation: orb-drift 12s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  bottom: 0; right: 30%;
  background: rgba(219, 39, 119, 0.15);
  animation: orb-drift 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 30%; left: -80px;
  background: rgba(0, 229, 204, 0.1);
  animation: orb-drift 14s ease-in-out infinite 3s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Particles ─────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--teal-400);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── Hero inner layout ─────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 2rem 5rem;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero content pieces ───────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 204, 0.1);
  border: 1px solid rgba(0, 229, 204, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-400);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 204, 0.6); }
  50%       { box-shadow: 0 0 0 7px rgba(0, 229, 204, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  /* Text shadow for depth over the atmospheric bg */
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal-400) 0%, #818cf8 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(200, 215, 240, 0.85);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}

/* Outline button variant for hero */
.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(200, 220, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(200, 220, 255, 0.4);
  z-index: 5;
  animation: bounce-scroll 2.5s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--teal-400);
  border-radius: 2px;
  animation: scroll-wheel 2.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  /* Minimum touch target */
  min-height: 44px;
}

.btn-primary {
  background: var(--teal-400);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--teal-400);
  color: var(--teal-400);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   SECTIONS – shared layout
══════════════════════════════════════════════════════════ */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--navy-700);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(33, 150, 243, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 229, 204, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-size: 1.08rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-body {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.about-body strong { color: var(--teal-400); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag {
  padding: 0.35rem 0.9rem;
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-400);
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card-glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.vision-icon  { background: rgba(0, 229, 204, 0.12); color: var(--teal-400); }
.mission-icon { background: rgba(125, 211, 252, 0.12); color: #7dd3fc; }
.card-icon svg { width: 22px; height: 22px; }

.card-glass h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.card-glass p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), #7dd3fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-5px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 229, 204, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-400);
  transition: background var(--transition), box-shadow var(--transition);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: rgba(0, 229, 204, 0.18);
  box-shadow: 0 0 20px var(--teal-glow);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-card ul li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--teal-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TECHNOLOGIES
══════════════════════════════════════════════════════════ */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.tech-group {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.tech-group:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-3px);
}

.tech-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-400);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tech-group-label svg { width: 18px; height: 18px; }

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(0, 229, 204, 0.06);
  border: 1px solid rgba(0, 229, 204, 0.15);
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tech-pill:hover {
  background: rgba(0, 229, 204, 0.14);
  color: var(--teal-400);
  border-color: var(--teal-400);
}

/* ══════════════════════════════════════════════════════════
   CLIENTS & WHY US
══════════════════════════════════════════════════════════ */
.clients-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.clients-box, .why-box {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.box-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.client-list { display: flex; flex-direction: column; gap: 0.6rem; }
.client-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.client-item:hover { background: rgba(0, 229, 204, 0.06); color: var(--text-primary); }
.client-item svg { width: 18px; height: 18px; color: var(--teal-400); flex-shrink: 0; }

.why-list { display: flex; flex-direction: column; gap: 1.1rem; }
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(0, 229, 204, 0.12);
  color: var(--teal-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.why-item p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FUTURE
══════════════════════════════════════════════════════════ */
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.future-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.future-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-5px);
}

.future-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--teal-400);
  transition: var(--transition);
}
.future-icon svg { width: 28px; height: 28px; }
.future-card:hover .future-icon {
  background: rgba(0, 229, 204, 0.15);
  box-shadow: 0 0 30px var(--teal-glow);
}

.future-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.future-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: var(--border-hover);
  background: rgba(0, 229, 204, 0.05);
  transform: translateX(4px);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(0, 229, 204, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
  /* Prevent long emails/URLs from overflowing */
  word-break: break-all;
  overflow-wrap: anywhere;
}
.contact-value:hover { color: var(--teal-400); }

/* Contact form */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  /* Must be >= 16px to prevent iOS auto-zoom on focus */
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-notice {
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.4rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}
.form-notice.success {
  background: rgba(0, 229, 204, 0.1);
  border: 1px solid rgba(0, 229, 204, 0.3);
  color: var(--teal-400);
}
.form-notice.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff8080;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  padding: 4rem 2rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-logo {
  height: 56px;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links ul li,
.footer-services ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--teal-400); }
.footer-services ul li { cursor: default; }

.footer-contact p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--teal-400); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--teal-400);
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 999;
  box-shadow: 0 4px 20px var(--teal-glow-strong);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--teal-glow-strong); }
.back-to-top svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
/* ── Tablet (≤ 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { padding: 130px 2rem 4rem; }
  .hero-content { max-width: 100%; }
  .scroll-indicator { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .clients-why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  /* Keep brand name but slightly smaller */
  .nav-brand { font-size: 0.92rem; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: rgba(6, 11, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    /* Slide from top instead of clip to avoid overflow-x scroll */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Larger tap targets for nav links on mobile */
  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta { margin-top: 0.5rem; }
  .hamburger { display: flex; }

  /* Sections */
  .section { padding: 4rem 1.25rem; }
  .section-dark::before { display: none; }
  .hero-inner { padding: 100px 1.25rem 4rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 250px; height: 250px; }

  /* Hero stats – wrap nicely */
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: 100%;
    display: flex;
  }
  .stat-divider { display: none; } /* Remove dividers when wrapping */

  /* Cards & boxes – tighter padding */
  .card-glass       { padding: 1.25rem; }
  .service-card     { padding: 1.5rem; }
  .clients-box,
  .why-box          { padding: 1.25rem; }
  .future-card      { padding: 1.5rem; }
  .contact-form     { padding: 1.5rem; }

  /* Grids */
  .services-grid  { grid-template-columns: 1fr; }
  .tech-groups    { grid-template-columns: 1fr; }
  .future-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .form-row       { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 3rem 1.25rem 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Back to top – move slightly inward on small screens */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }

  /* Disable card hover transforms on touch (avoids stuck states) */
  .service-card:hover,
  .future-card:hover,
  .card-glass:hover,
  .tech-group:hover { transform: none; }
  .contact-item:hover { transform: none; }
}

/* ── Small mobile (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .future-grid { grid-template-columns: 1fr; }

  /* Stack stats vertically */
  .hero-stats { flex-direction: column; align-items: center; gap: 0.85rem; }
  .stat-divider { display: none; }

  /* Hero text */
  .hero-inner { padding: 90px 1.25rem 3rem; }
  .hero-title { letter-spacing: -0.01em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* About tags */
  .about-tags { gap: 0.4rem; }
  .tag { font-size: 0.78rem; padding: 0.3rem 0.7rem; }

  /* Section headings */
  .section-title { font-size: 1.6rem; }

  /* Contact form tighter */
  .contact-form { padding: 1.25rem; border-radius: var(--radius-lg); }

  /* Ensure long contact values wrap cleanly */
  .contact-item { padding: 1rem; }
  .contact-icon { width: 38px; height: 38px; flex-shrink: 0; }
}

/* ── Very small (≤ 360px) ───────────────────────────────── */
@media (max-width: 360px) {
  .section { padding: 3rem 1rem; }
  .hero-inner { padding: 80px 1rem 3rem; }
  .footer { padding: 2.5rem 1rem 1rem; }
  .btn { font-size: 0.88rem; padding: 0.75rem 1.25rem; }
  .service-card,
  .future-card { padding: 1.25rem; }
  /* Hide brand text on very tiny screens to avoid overflow */
  .nav-brand { display: none; }
}
