/* =====================================================
   FIDEXON TECHNOLOGIES — Design System
   Dark Tech Theme: Navy · Electric Blue · Cyan
   ===================================================== */

/* ── CSS Variables ── */
:root {
  --bg-primary:    #050B18;
  --bg-secondary:  #080F20;
  --bg-card:       #0A1428;
  --bg-card-hover: #0D1B35;
  --bg-glass:      rgba(13, 27, 53, 0.7);

  --blue:          #0066FF;
  --blue-light:    #3385FF;
  --blue-dark:     #0052CC;
  --cyan:          #00D4FF;
  --cyan-dim:      rgba(0, 212, 255, 0.15);
  --purple:        #7B2FFF;
  --purple-dim:    rgba(123, 47, 255, 0.15);
  --green:         #00E676;

  --text-primary:  #E8EDF5;
  --text-secondary:#9AAAC8;
  --text-muted:    #5A6E8A;

  --border:        rgba(0, 212, 255, 0.12);
  --border-hover:  rgba(0, 212, 255, 0.35);

  --gradient-hero:  linear-gradient(135deg, #050B18 0%, #080F20 50%, #0A0520 100%);
  --gradient-blue:  linear-gradient(135deg, #0066FF, #00D4FF);
  --gradient-purple:linear-gradient(135deg, #7B2FFF, #0066FF);
  --gradient-card:  linear-gradient(145deg, #0A1428, #080F20);

  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 30px rgba(0, 102, 255, 0.25);
  --shadow-cyan:    0 0 20px rgba(0, 212, 255, 0.2);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  --nav-height: 76px;
  --section-gap: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); line-height: 1.75; }

/* ── Containers ── */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--bg-secondary); }

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.section-header { margin-bottom: 60px; }
.section-header.centered { text-align: center; }
.section-header h2 span { background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-header p { max-width: 600px; margin-top: 16px; }
.section-header.centered p { margin: 16px auto 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.55);
}

.btn-outline {
  border: 1.5px solid var(--border-hover);
  color: var(--cyan);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}
.badge-blue  { color: var(--blue-light); border-color: rgba(0,102,255,0.3); background: rgba(0,102,255,0.1); }
.badge-cyan  { color: var(--cyan); border-color: rgba(0,212,255,0.3); background: var(--cyan-dim); }
.badge-purple{ color: #A96EFF; border-color: rgba(123,47,255,0.3); background: var(--purple-dim); }
.badge-green { color: var(--green); border-color: rgba(0,230,118,0.3); background: rgba(0,230,118,0.1); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -1px;
  box-shadow: var(--shadow-glow);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  -webkit-text-fill-color: initial;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '⌄';
  font-size: 0.75rem;
  transition: var(--transition-fast);
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.dropdown-menu a:hover { color: var(--cyan); background: var(--cyan-dim); }

/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(5,11,24,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-mobile a:hover { color: var(--cyan); background: var(--cyan-dim); }
.nav-mobile .btn { margin-top: 12px; justify-content: center; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--gradient-hero);
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { from { transform: translateY(0); } to { transform: translateY(60px); } }

/* Glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--blue); top: -100px; left: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--purple); bottom: -100px; right: 10%; animation-delay: -4s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--cyan); top: 30%; right: 20%; animation-delay: -2s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.5); } }

.hero h1 {
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Hero visual / floating cards */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px;
  pointer-events: none;
}
.hero-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(16px);
  animation: heroCardFloat 6s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -1.5s; }
.hero-card:nth-child(3) { animation-delay: -3s; }
.hero-card:nth-child(4) { animation-delay: -4.5s; }
@keyframes heroCardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.hci-blue   { background: rgba(0,102,255,0.2); }
.hci-cyan   { background: var(--cyan-dim); }
.hci-purple { background: var(--purple-dim); }
.hci-green  { background: rgba(0,230,118,0.15); }
.hero-card h4 { font-size: 0.85rem; margin-bottom: 4px; }
.hero-card p  { font-size: 0.75rem; color: var(--text-muted); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@keyframes fadeInUp { from { opacity:0; transform:translate(-50%,20px); } to { opacity:1; transform:translate(-50%,0); } }

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--cyan) 100%);
  opacity: 0.15;
}
.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.about-badge-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.about-badge-float.bottom-left {
  bottom: -20px; left: -20px;
}
.about-badge-float.top-right {
  top: -20px; right: -20px;
}
.about-badge-float span { display: block; font-weight: 700; font-size: 1.3rem; color: var(--cyan); }
.about-badge-float small { font-size: 0.75rem; color: var(--text-muted); }

.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 20px; }

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.about-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  transition: var(--transition);
}
.about-pill:hover { border-color: var(--border-hover); background: var(--cyan-dim); }
.about-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-blue); }

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  position: relative;
}
.si-anim   { background: rgba(0,212,255,0.12); }
.si-vrar   { background: rgba(123,47,255,0.15); }
.si-ai     { background: rgba(0,102,255,0.15); }
.si-web    { background: rgba(0,230,118,0.12); }
.si-cloud  { background: rgba(0,102,255,0.15); }

.service-card h3 { margin-bottom: 10px; }
.service-card > p { margin-bottom: 20px; font-size: 0.9rem; }
.service-card > p, .service-card h3 { flex-shrink: 0; }

.service-list { flex: 1; margin-bottom: 24px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.service-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-benefits span {
  padding: 4px 12px;
  background: var(--cyan-dim);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 500;
}

/* =====================================================
   INDUSTRIES
   ===================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  cursor: default;
}
.industry-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.industry-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.industry-card h3 { font-size: 1rem; margin-bottom: 12px; }
.industry-card ul li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.industry-card ul li::before { content: '·'; color: var(--cyan); font-size: 1.2rem; line-height: 0; }

/* =====================================================
   WHY CHOOSE US
   ===================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center bottom, var(--cyan-dim), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}
.why-card:hover { border-color: var(--border-hover); }
.why-card:hover::after { opacity: 1; }
.why-icon {
  width: 64px; height: 64px;
  background: var(--gradient-blue);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 1;
}
.why-card h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.why-card p { font-size: 0.875rem; position: relative; z-index: 1; }

/* =====================================================
   TECH STACK
   ===================================================== */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.tech-category:hover { border-color: var(--border-hover); }
.tech-cat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-cat-label span { width: 16px; height: 2px; background: var(--cyan); border-radius: 2px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.tech-tag:hover {
  background: var(--cyan-dim);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
.portfolio-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.portfolio-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.portfolio-tab:hover, .portfolio-tab.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.portfolio-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.pt-blue   { background: linear-gradient(135deg, #0066FF22, #00D4FF22); }
.pt-purple { background: linear-gradient(135deg, #7B2FFF22, #0066FF22); }
.pt-cyan   { background: linear-gradient(135deg, #00D4FF22, #00E67622); }
.portfolio-info { padding: 20px 24px; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 8px; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 4rem;
  color: var(--cyan);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
}
.testimonial-card p { font-size: 0.95rem; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.78rem; color: var(--text-muted); }
.stars { color: #FFB800; font-size: 0.85rem; margin-top: 4px; }

/* =====================================================
   CONTACT CTA BANNER
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, #060E22 0%, #0A0520 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translate(-50%, 0);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.2), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 560px; margin: 0 auto 36px; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 40px; }
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-channel-icon {
  width: 44px; height: 44px;
  background: var(--cyan-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-channel h4 { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-channel p { font-size: 0.95rem; color: var(--text-primary); }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-secondary); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-mark { width: 36px; height: 36px; font-size: 0.9rem; }
.footer-brand p { font-size: 0.875rem; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--cyan-dim); border-color: var(--cyan); }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tagline {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.footer-tagline p { font-size: 0.85rem; color: var(--text-muted); }
.footer-tagline strong { color: var(--cyan); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.12), transparent 70%);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--text-muted); }

/* =====================================================
   CAREERS
   ===================================================== */
.jobs-grid { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: var(--transition);
  flex-wrap: wrap;
}
.job-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.job-info {}
.job-info h3 { font-size: 1rem; margin-bottom: 8px; }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.job-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.job-card .badge { flex-shrink: 0; }

/* =====================================================
   UTILITIES & ANIMATIONS
   ===================================================== */
.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider { height: 1px; background: var(--border); margin: 0; }

/* Animate on scroll */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* Numbers counter animation */
.counter { display: inline-block; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 72px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 24px; }
  .hero-stats { gap: 24px; }
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  :root { --section-gap: 56px; }
  .industries-grid { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
