:root {
  /* Premium Dark + Gold Theme */
  --primary-navy: #0F172A;
  --primary-navy-dark: #020617;
  --secondary-white: #F8FAFC;
  --accent-orange: #D4AF37; /* Metallic Gold */
  --accent-orange-hover: #FADB5F;
  --charcoal: #111111;
  --text-main: #CBD5E1; 
  --text-muted: #94A3B8;
  --bg-light: #1E293B;
  --border-color: rgba(212, 175, 55, 0.2); /* Gold tinted border */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevents white flash showing through when body is transparent during fade-in */
  background: #020617;
  overflow-x: hidden;
}

body {
  color: var(--text-main);
  background: var(--primary-navy-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Page entry: CSS animation starts immediately at first paint — no JS needed */
  animation: page-enter 0.25s ease-out both;
}

@keyframes page-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; font-size: 1.125rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.align-center { align-items: center; }
.section-padding { padding: 8rem 0; border-bottom: 1px solid var(--border-color); }
.bg-light { background-color: var(--bg-light); }
.bg-navy { 
  background-color: var(--primary-navy); 
  color: var(--secondary-white); 
}
.bg-navy h2, .bg-navy h3 { color: var(--secondary-white); }


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  border: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--secondary-white);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary-white);
  color: var(--secondary-white);
}

.btn-outline:hover {
  background-color: var(--secondary-white);
  color: var(--primary-navy);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 90px;
  max-width: 350px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  font-family: var(--font-heading);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary-white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  color: var(--secondary-white);
}

.hero-bg, .page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: cinemagraph-zoom 10s infinite alternate ease-in-out;
  z-index: 0;
}

.hero-cinemagraph-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.2) 100%), 
              radial-gradient(circle at 60% 50%, transparent 40%, rgba(2, 6, 23, 0.5) 100%);
  z-index: 1;
}

.hero-cinemagraph-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    /* 1. Dimension Origin — crosshair with axis arrows (technical drawing origin marker) */
    url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='45' y1='12' x2='45' y2='78' stroke='rgba(212,175,55,0.22)' stroke-width='1.2'/%3E%3Cline x1='12' y1='45' x2='78' y2='45' stroke='rgba(212,175,55,0.22)' stroke-width='1.2'/%3E%3Cpolygon points='45,10 42,18 48,18' fill='rgba(212,175,55,0.22)'/%3E%3Cpolygon points='78,42 70,45 78,48' fill='rgba(212,175,55,0.22)'/%3E%3Ccircle cx='45' cy='45' r='3.5' fill='none' stroke='rgba(212,175,55,0.3)' stroke-width='1.2'/%3E%3C/svg%3E"),
    /* 2. Drafting Compass — open V with arc (pair of compasses symbol) */
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='50' y1='18' x2='28' y2='76' stroke='rgba(212,175,55,0.18)' stroke-width='1.3'/%3E%3Cline x1='50' y1='18' x2='72' y2='76' stroke='rgba(212,175,55,0.18)' stroke-width='1.3'/%3E%3Cpath d='M 32,70 A 22,22 0 0,0 68,70' fill='none' stroke='rgba(212,175,55,0.18)' stroke-width='1.3'/%3E%3Ccircle cx='50' cy='18' r='3' fill='none' stroke='rgba(212,175,55,0.25)' stroke-width='1.2'/%3E%3C/svg%3E"),
    /* 3. Sine Wave — one full cycle (signal / electrical engineering symbol) */
    url("data:image/svg+xml,%3Csvg width='200' height='60' viewBox='0 0 200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C12.5,30 12.5,10 25,10 C37.5,10 37.5,50 50,50 C62.5,50 62.5,10 75,10 C87.5,10 87.5,50 100,50 C112.5,50 112.5,10 125,10 C137.5,10 137.5,50 150,50 C162.5,50 162.5,10 175,10 C187.5,10 187.5,30 200,30' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.2'/%3E%3C/svg%3E"),
    /* 4. Conical Taper — trapezoid engineering section symbol */
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='80,30 130,110 30,110' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.2'/%3E%3Cline x1='80' y1='30' x2='80' y2='110' stroke='rgba(255,255,255,0.04)' stroke-width='1' stroke-dasharray='4,4'/%3E%3Cline x1='30' y1='110' x2='130' y2='110' stroke='rgba(212,175,55,0.1)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 90px 90px, 100px 100px, 200px 60px, 160px 160px;
  background-position: 0 0, 55px 55px, 20px 80px, 110px 20px;
  animation: cinemagraph-flow 30s linear infinite;
  z-index: 2;
  opacity: 0.9;
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin-left: max(2rem, calc((100% - 1280px)/2 + 2rem));
}

@keyframes cinemagraph-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

@keyframes cinemagraph-flow {
  0% { background-position: 0px 0px, 40px 40px, 80px 80px; }
  100% { background-position: 480px -480px, 520px -440px, 560px -400px; }
}

.hero h1 {
  color: var(--secondary-white);
  margin-bottom: 1rem;
  font-size: 4rem;
  letter-spacing: -1px;
}

.hero p.lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  color: #e2e8f0;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
}

/* Card System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr)); }

.card {
  background: var(--primary-navy);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

/* Image Cards */
.image-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--primary-navy);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

.image-card-content {
  padding: 2rem;
}

.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background-color: var(--primary-navy-dark);
  color: var(--secondary-white);
  padding: 5rem 0 2rem;
}

.footer .grid {
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-size: 1.25rem;
  color: var(--secondary-white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Specific Sections */
.stats-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}
.stat-box h3 {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
}
.timeline-item {
  width: 50%;
  padding: 2rem 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-orange);
  border-radius: 50%;
  top: 2.5rem;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

/* Page Header */
.page-header {
  padding: 10rem 0 4rem;
  background-color: var(--primary-navy);
  color: var(--secondary-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .container {
  position: relative;
  z-index: 3;
}
.page-header h1 {
  color: var(--secondary-white);
  margin-bottom: 1rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 { font-size: 3rem; }
  .navbar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-navy-dark);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  .navbar .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .hamburger { display: block; }
  
  .timeline::before { left: 30px; }
  .timeline-item { width: 100%; padding-left: 80px; text-align: left !important; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-dot { left: 20px !important; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero .btn-group { flex-direction: column; }
  .container { padding: 0 1rem; }

  /* Fix full-column-span cards on single-column mobile layout */
  [style*="grid-column: 1 / -1"] {
    grid-column: 1 !important;
    max-width: 100% !important;
  }

  /* CEO section: remove right border on mobile so it doesn't overflow */
  [style*="border-right"] {
    border-right: none !important;
    border-bottom: 4px solid var(--accent-orange) !important;
    padding-right: 0 !important;
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Form controls: ensure dark theme on native selects/inputs */
  input, select, textarea {
    background-color: var(--primary-navy-dark);
    color: var(--text-main);
    color-scheme: dark;
  }

  /* Investor btn-group: stack buttons */
  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}
