/* ============================================================
   ELRON AEROSPACE — Design System & Styles
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --navy-900: #0a0e1a;
  --navy-800: #0d1526;
  --navy-700: #111d35;
  --navy-600: #162544;
  --navy-500: #1a2d52;
  --navy-400: #1e3660;
  --navy-300: #2a4a7f;
  --navy-200: #4a6fa5;
  --navy-100: #8ba3c7;
  --gold-500: #c7973f;
  --gold-400: #d4a94e;
  --gold-300: #e0bb5e;
  --gold-200: #ecd38f;
  --gold-100: #f5e6bf;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(199, 151, 63, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* 3D */
  --perspective: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-900);
  color: var(--white-80);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

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

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 4px;
}

ul, ol {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: var(--radius-full);
  border: 2px solid var(--navy-900);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-400);
}

/* --- Animated Star Background --- */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-repeat: repeat;
}

.stars-layer-1 {
  background-image:
    radial-gradient(1px 1px at 50px 120px, var(--white-40), transparent),
    radial-gradient(1px 1px at 180px 280px, var(--white-40), transparent),
    radial-gradient(1.5px 1.5px at 300px 60px, var(--white-60), transparent),
    radial-gradient(1px 1px at 420px 340px, var(--white-40), transparent),
    radial-gradient(1px 1px at 80px 400px, var(--white-20), transparent),
    radial-gradient(1.5px 1.5px at 520px 180px, var(--white-40), transparent),
    radial-gradient(1px 1px at 650px 90px, var(--white-20), transparent),
    radial-gradient(1px 1px at 770px 320px, var(--white-40), transparent);
  background-size: 800px 500px;
  animation: drift-stars 120s linear infinite;
}

.stars-layer-2 {
  background-image:
    radial-gradient(1.5px 1.5px at 100px 200px, var(--white-20), transparent),
    radial-gradient(2px 2px at 350px 150px, rgba(199, 151, 63, 0.3), transparent),
    radial-gradient(1px 1px at 500px 350px, var(--white-20), transparent),
    radial-gradient(1.5px 1.5px at 250px 420px, var(--white-20), transparent),
    radial-gradient(2px 2px at 700px 250px, rgba(199, 151, 63, 0.2), transparent),
    radial-gradient(1px 1px at 150px 50px, var(--white-20), transparent);
  background-size: 900px 600px;
  animation: drift-stars 200s linear infinite reverse;
}

.stars-layer-3 {
  background-image:
    radial-gradient(2.5px 2.5px at 200px 100px, var(--white-60), transparent),
    radial-gradient(2px 2px at 600px 400px, var(--white-40), transparent),
    radial-gradient(3px 3px at 400px 250px, rgba(199, 151, 63, 0.4), transparent);
  background-size: 1000px 700px;
  animation: drift-stars 300s linear infinite, twinkle 4s ease-in-out infinite alternate;
}

@keyframes drift-stars {
  from { transform: translate(0, 0); }
  to { transform: translate(-50%, -50%); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Ambient Gradient Orbs --- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 45, 82, 0.6) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-orb 20s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 151, 63, 0.15) 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
  animation: float-orb 25s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42, 74, 127, 0.4) 0%, transparent 70%);
  top: 60%;
  right: 10%;
  animation: float-orb 18s ease-in-out infinite alternate;
}

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-lg) var(--space-3xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-medium);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: var(--space-md) var(--space-3xl);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--white-05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 10;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: transform var(--transition-fast);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo-text span {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--gold-400);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-70);
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width var(--transition-medium);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(199, 151, 63, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 151, 63, 0.4);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-200));
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Section Layout --- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-5xl) var(--space-3xl);
}

.section-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-500);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.section-title .accent {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--white-60);
  max-width: 600px;
  line-height: 1.8;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: var(--perspective);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.6) saturate(1.2);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg,
      rgba(10, 14, 26, 0.3) 0%,
      rgba(10, 14, 26, 0.1) 40%,
      rgba(10, 14, 26, 0.6) 70%,
      rgba(10, 14, 26, 1) 100%
    ),
    radial-gradient(ellipse at 30% 50%, rgba(26, 45, 82, 0.3) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-5xl) var(--space-3xl);
  padding-top: 20vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white-05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-2xl);
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.4s both;
}

.hero-title .line {
  display: block;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-200) 50%, var(--gold-400) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--white-60);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.6s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.8s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(199, 151, 63, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(199, 151, 63, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-80);
  background: transparent;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  border: 1px solid var(--white-20);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(199, 151, 63, 0.08);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeSlideUp 1s var(--ease-out-expo) 1.2s both;
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-400), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* Hero floating 3D elements */
.hero-3d-elements {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  perspective: var(--perspective);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(22, 37, 68, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  animation: float-card 6s ease-in-out infinite alternate;
  box-shadow: var(--shadow-card);
}

.floating-card-1 {
  top: 28%;
  right: 8%;
  width: 220px;
  transform: rotateY(-15deg) rotateX(5deg);
  animation-delay: 0s;
}

.floating-card-2 {
  top: 52%;
  right: 20%;
  width: 180px;
  transform: rotateY(10deg) rotateX(-8deg);
  animation-delay: 2s;
}

.floating-card-3 {
  top: 38%;
  right: 35%;
  width: 160px;
  transform: rotateY(-8deg) rotateX(12deg);
  animation-delay: 4s;
}

@keyframes float-card {
  0% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
  100% { transform: rotateY(-10deg) rotateX(8deg) translateY(-20px); }
}

.floating-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.floating-card .card-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.floating-card .card-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-top: var(--space-xs);
}

/* --- Stats Bar --- */
.stats-bar {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-3xl);
  background: rgba(13, 21, 38, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--white-05);
  border-bottom: 1px solid var(--white-05);
}

.stats-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--white-10), transparent);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-number .stat-suffix {
  font-size: 0.6em;
  color: var(--gold-400);
  font-weight: 600;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
}

/* --- About Section --- */
.about {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  perspective: var(--perspective);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateY(-5deg);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--white-10);
}

.about-image-wrapper:hover .about-image {
  transform: rotateY(0deg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-image img {
  transform: scale(1.05);
}

.about-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(199, 151, 63, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.about-content .gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
  margin: var(--space-xl) 0;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(199, 151, 63, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(199, 151, 63, 0.2);
  font-size: 1rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.85rem;
  color: var(--white-70);
  font-weight: 500;
}

/* --- Services Section --- */
.services {
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  perspective: var(--perspective);
}

.services-grid-5 {
  grid-template-columns: repeat(3, 1fr);
}

.services-grid-5 .service-card:nth-child(4),
.services-grid-5 .service-card:nth-child(5) {
  /* Center the last two cards in a 2-column sub-row */
}

/* 5-card layout: 3 top, 2 centered bottom */
@media (min-width: 1025px) {
  .services-grid-5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .services-grid-5 .service-card:nth-child(1),
  .services-grid-5 .service-card:nth-child(2),
  .services-grid-5 .service-card:nth-child(3) {
    grid-column: span 2;
  }
  .services-grid-5 .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .services-grid-5 .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.service-card {
  position: relative;
  background: rgba(13, 21, 38, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(199, 151, 63, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(199, 151, 63, 0.3);
  box-shadow: var(--shadow-glow), var(--shadow-elevated);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199, 151, 63, 0.15), rgba(199, 151, 63, 0.05));
  border: 1px solid rgba(199, 151, 63, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

.service-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  transition: all var(--transition-fast);
}

.service-card-link:hover {
  gap: var(--space-md);
  color: var(--gold-300);
}

/* --- Capabilities Section --- */
.capabilities {
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: rgba(13, 21, 38, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-05);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  cursor: default;
}

.capability-item:hover {
  background: rgba(13, 21, 38, 0.5);
  border-color: rgba(199, 151, 63, 0.2);
  transform: translateX(8px);
}

.capability-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(199, 151, 63, 0.2);
  line-height: 1;
  flex-shrink: 0;
}

.capability-item:hover .capability-number {
  color: rgba(199, 151, 63, 0.5);
}

.capability-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.capability-text {
  font-size: 0.85rem;
  color: var(--white-50);
  line-height: 1.7;
}

.capability-showcase {
  position: relative;
  perspective: var(--perspective);
}

.capability-image-stack {
  position: relative;
  height: 500px;
}

.capability-image-stack .stack-image {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--white-10);
  transition: all var(--transition-slow);
}

.stack-image:nth-child(1) {
  width: 80%;
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotateY(-5deg) rotateX(3deg);
}

.stack-image:nth-child(2) {
  width: 70%;
  top: 15%;
  right: 0;
  z-index: 2;
  transform: rotateY(8deg) rotateX(-2deg) translateZ(-30px);
  opacity: 0.8;
}

.stack-image:nth-child(1):hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  z-index: 4;
}

.stack-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* --- Technology Section --- */
.technology {
  position: relative;
  text-align: center;
}

.tech-orbit {
  position: relative;
  width: 480px;
  height: 480px;
  margin: var(--space-4xl) auto 0;
}

.tech-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(22, 37, 68, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(199, 151, 63, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 60px rgba(199, 151, 63, 0.15);
}

.tech-center img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tech-ring {
  position: absolute;
  border: 1px solid var(--white-05);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tech-ring-1 {
  width: 240px;
  height: 240px;
  animation: rotate-ring 30s linear infinite;
}

.tech-ring-2 {
  width: 360px;
  height: 360px;
  animation: rotate-ring 45s linear infinite reverse;
}

.tech-ring-3 {
  width: 480px;
  height: 480px;
  animation: rotate-ring 60s linear infinite;
}

@keyframes rotate-ring {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tech-node {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(22, 37, 68, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.tech-node:hover {
  transform: scale(1.2);
  border-color: var(--gold-400);
  box-shadow: 0 0 20px rgba(199, 151, 63, 0.3);
}

/* --- Motto Section --- */
.motto-section {
  position: relative;
  text-align: center;
  padding: var(--space-5xl) var(--space-3xl);
  overflow: hidden;
}

.motto-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(199, 151, 63, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(26, 45, 82, 0.3) 0%, transparent 60%);
  z-index: 0;
}

.motto-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.motto-frame {
  margin: var(--space-2xl) auto;
}

.motto-gold-border {
  position: relative;
  display: inline-block;
  padding: var(--space-xl) var(--space-3xl);
  border: 3px solid var(--gold-500);
  border-radius: 4px;
}

.motto-gold-border::before,
.motto-gold-border::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold-400);
}

.motto-gold-border::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.motto-gold-border::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

.motto-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.motto-translation {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-400);
  margin-top: var(--space-lg);
  letter-spacing: 0.04em;
}

.motto-description {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--white-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.motto-description p {
  font-size: 1rem;
  color: var(--white-60);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.motto-description strong {
  color: var(--gold-300);
  font-weight: 700;
}

/* --- Contact / CTA Section --- */
.cta-section {
  position: relative;
  text-align: center;
  padding: var(--space-5xl) var(--space-3xl);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(26, 45, 82, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(199, 151, 63, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--white-60);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-4xl) var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--white-05);
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand img {
  height: 50px;
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--white-40);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--white-40);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--white-05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--white-20);
}

.footer-motto {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-400);
  margin-top: var(--space-md);
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-10);
  color: var(--white-40);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-social:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(199, 151, 63, 0.1);
}

/* --- Scroll Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 3D tilt on mouse move (applied via JS) */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stars-layer {
    animation: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section {
    padding: var(--space-4xl) var(--space-xl);
  }

  .hero-content {
    padding: var(--space-4xl) var(--space-xl);
    padding-top: 18vh;
  }

  .hero-3d-elements {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .services-grid,
  .services-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-5 .service-card:nth-child(1),
  .services-grid-5 .service-card:nth-child(2),
  .services-grid-5 .service-card:nth-child(3),
  .services-grid-5 .service-card:nth-child(4),
  .services-grid-5 .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .services-grid-5 .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capability-showcase {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-md) var(--space-lg);
  }

  .navbar.scrolled {
    padding: var(--space-sm) var(--space-lg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    transition: right var(--transition-medium);
    border-left: 1px solid var(--white-05);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .section-inner,
  .hero-content,
  .motto-section,
  .cta-section,
  .footer {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .section,
  .motto-section,
  .cta-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .services-grid,
  .services-grid-5 {
    grid-template-columns: 1fr;
  }

  .services-grid-5 .service-card:nth-child(n) {
    grid-column: auto;
    max-width: 100%;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .tech-orbit {
    width: 320px;
    height: 320px;
  }

  .tech-ring-1 { width: 160px; height: 160px; }
  .tech-ring-2 { width: 240px; height: 240px; }
  .tech-ring-3 { width: 320px; height: 320px; }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) var(--space-lg);
  }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-400);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-300);
}

/* --- Selection --- */
::selection {
  background: rgba(199, 151, 63, 0.3);
  color: var(--white);
}
