/* =========================================================
   SADAF BHATTI — PORTFOLIO STYLESHEET
   Token system: color, type, layout, motion
   ========================================================= */

:root {
  /* Color */
  --navy: #080b1a;
  --navy-2: #0f1638;
  --navy-3: #141c47;
  --blue: #3b6bff;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #f6339a;
  --paper: #ffffff;
  --paper-2: #f5f7fc;
  --ink: #0b0f2b;
  --ink-soft: #4b5170;
  --ink-soft-2: #6b7191;
  --line: rgba(11, 15, 43, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);

  --gradient-1: linear-gradient(135deg, var(--blue) 0%, var(--purple) 55%, var(--magenta) 100%);
  --gradient-2: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 100%);

  /* Type */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--ease) 0.35s, backdrop-filter var(--ease) 0.35s,
    box-shadow var(--ease) 0.35s, padding var(--ease) 0.35s;
}

.nav.is-scrolled {
  background: rgba(8, 11, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 30px rgba(8, 11, 26, 0.18);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gradient-1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo-text { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 4px 2px;
  transition: color 0.25s var(--ease);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--gradient-1);
  color: #fff !important;
  padding: 16px 42px;
  min-width: 150px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 120% at 20% 0%, #101a45 0%, var(--navy) 55%);
  overflow: hidden;
  padding: 140px 0 100px;
  width: 100%;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 480px;
  height: 480px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.hero-glow--2 {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.98;
  margin: 0 0 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.hero-name-line--accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
  font-weight: 500;
}

.hero-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 107, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4);
}

.btn-primary i { transition: transform 0.3s var(--ease); }
.btn-primary:hover i { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

.hero-roles {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.hero-role i {
  color: var(--cyan);
  font-size: 1rem;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { top: 8px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */

.section {
  padding: 120px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy); color: #fff; }

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  margin: 0 0 14px;
}

.section-eyebrow--light { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 720px;
}

.section-title--light { color: #fff; }

.section-note {
  color: var(--ink-soft-2);
  max-width: 620px;
  margin: -6px 0 46px;
  font-size: 0.98rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.about-frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1.05;
}

.about-photo {
  position: absolute;
  inset: 20px;
  border-radius: var(--radius-lg);
  background: var(--gradient-1);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 4rem;
  box-shadow: 0 30px 60px rgba(59, 107, 255, 0.25);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-orbit {
  position: absolute;
  inset: 0;
  animation: spin 22s linear infinite;
}

.orbit-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--purple);
  box-shadow: 0 12px 26px rgba(11, 15, 43, 0.16);
  top: 50%;
  left: 50%;
  --angle: calc(var(--i) * 90deg);
  --orbit-radius: 178px;
  transform: rotate(var(--angle)) translate(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  animation: counterspin 22s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes counterspin {
  from { transform: rotate(calc(-1 * var(--angle))); }
  to { transform: rotate(calc(-1 * var(--angle) - 360deg)); }
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 62ch;
}

/* =========================================================
   LEADERSHIP — glow cards
   ========================================================= */

.cards-grid { display: grid; gap: 28px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.glow-card {
  position: relative;
  padding: 38px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glow-card:hover {
  transform: translateY(-6px);
}
.glow-card:hover::before { opacity: 1; }

.glow-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient-2);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 22px;
}

.glow-card-role {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.glow-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: #fff;
}

.glow-card-desc {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* =========================================================
   INNOVATION
   ========================================================= */

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.innovation-card {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.innovation-card i {
  font-size: 1.6rem;
  color: var(--purple);
  margin-bottom: 16px;
  display: inline-block;
}

.innovation-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.innovation-card p {
  color: var(--ink-soft-2);
  font-size: 0.94rem;
  margin: 0;
}

.innovation-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 22px 44px rgba(11, 15, 43, 0.1);
}

/* =========================================================
   AWARDS & RECOGNITION
   ========================================================= */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.award-card {
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.award-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 15, 43, 0.1);
}

.award-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.award-card:hover .award-image img {
  transform: scale(1.04);
}

.award-card-body {
  padding: 22px 24px 26px;
}

.award-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.award-card-body p {
  color: var(--ink-soft-2);
  font-size: 0.94rem;
  margin: 0;
}
.award-card:nth-child(3) .award-image img {
  object-fit: contain;
  background: var(--navy);
}
/* =========================================================
   AWARDS — MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AI & ROBOTICS
   ========================================================= */

.ai-section { position: relative; overflow: hidden; }

.ai-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(59, 107, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 107, 255, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 75%);
}

.ai-content { position: relative; z-index: 1; text-align: center; }
.ai-content .section-title { margin-left: auto; margin-right: auto; }

.ai-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
  margin: 0 auto 56px;
  line-height: 1.5;
}

.ai-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ai-icon-item {
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.ai-icon-item i {
  font-size: 1.7rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}

.ai-icon-item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.ai-icon-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.4);
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--magenta));
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 34px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(59, 107, 255, 0.12);
}

.timeline-card {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.timeline-card i {
  color: var(--purple);
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: inline-block;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.timeline-card p {
  color: var(--ink-soft-2);
  margin: 0;
  font-size: 0.94rem;
}

/* =========================================================
   IMPACT / STATS
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  padding: 32px 26px;
  border-radius: var(--radius-md);
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 6px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.stat-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin: 0;
}

.stat-card--pending .stat-label { margin-bottom: 12px; }

.stat-flag {
  font-size: 0.76rem;
  color: var(--cyan);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =========================================================
   VISION
   ========================================================= */

.vision-section {
  position: relative;
  padding: 150px 0;
  background: var(--navy);
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(139, 92, 246, 0.35), transparent 70%),
    radial-gradient(50% 50% at 85% 80%, rgba(34, 211, 238, 0.28), transparent 70%),
    var(--navy);
}

.vision-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.vision-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.4;
  max-width: 880px;
  margin: 0 auto;
  color: #fff;
}

/* =========================================================
   QUOTE
   ========================================================= */

.quote-section { padding: 100px 0; background: var(--paper-2); }

.quote {
  margin: 0;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 22px;
}

.quote footer {
  color: var(--ink-soft-2);
  font-size: 0.95rem;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.contact-lead {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.contact-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

.contact-list i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--blue);
  flex-shrink: 0;
}

.contact-list a:hover { color: var(--blue); }

.social-row { display: flex; gap: 14px; flex-wrap: wrap; }

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.social-btn:hover {
  transform: translateY(-4px);
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.3);
  border-color: transparent;
}

.social-row--footer .social-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--line-dark);
}

/* Contact form */

.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.form-field { position: relative; width: 100%; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 16px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-field textarea { padding-top: 22px; }

.form-field label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--ink-soft-2);
  font-size: 0.98rem;
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease), top 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 107, 255, 0.14);
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 600;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--blue);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer { background: var(--navy); padding: 50px 0; overflow: hidden; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.footer-tag {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  margin: 4px 0 0;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.84rem;
  margin: 30px 0 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .innovation-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-icons { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(8, 11, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    max-width: 100vw;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .cards-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .innovation-grid { grid-template-columns: 1fr; }
  .ai-icons { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 420px; }
  .contact-form { padding: 26px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { flex-direction: column; text-align: center; }

  /* Shrink the orbit radius so icons stay inside the frame
     instead of pushing past the viewport edge and causing
     horizontal scroll on small screens. */
  .about-frame { width: min(280px, 82vw); }
  .orbit-icon { --orbit-radius: 128px; width: 44px; height: 44px; font-size: 1rem; }
}

@media (max-width: 400px) {
  .about-frame { width: min(240px, 78vw); }
  .orbit-icon { --orbit-radius: 108px; width: 38px; height: 38px; font-size: 0.9rem; }
  .nav-cta { padding: 14px 30px; min-width: 120px; }
}