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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: #e0e0e0;
  background-color: var(--dark-navy);
}

/* ===== CSS Variables ===== */
:root {
  --navy: #264058;
  --dark-navy: #1a2e40;
  --darker-navy: #0f1c28;
  --green-accent: #5a8a2a;
  --light-green: #6ea332;
  --white: #ffffff;
  --off-white: #f4f6f8;
  --text-light: #e0e0e0;
  --text-muted: #94a3b8;
  --nav-height: 80px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--light-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--green-accent);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(26, 46, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: none;
}

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

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--light-green);
  transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: rgba(26, 46, 64, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-mobile a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 28, 40, 0.85) 0%,
    rgba(26, 46, 64, 0.75) 50%,
    rgba(15, 28, 40, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  line-height: 1.3;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Section Styles ===== */
section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--dark-navy);
}

.section-darker {
  background-color: var(--darker-navy);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--white);
  font-size: 1.75rem;
}

/* ===== About Section ===== */
.about-content {
  max-width: 700px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-content p + p {
  margin-top: 1.5rem;
}

/* ===== Focus Areas Section ===== */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.focus-card {
  background: linear-gradient(135deg, rgba(38, 64, 88, 0.5) 0%, rgba(26, 46, 64, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 163, 50, 0.3);
}

.focus-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--light-green);
}

.focus-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.focus-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== How We Build Section ===== */
.build-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.build-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.build-item:last-child {
  border-bottom: none;
}

.build-item h3 {
  color: var(--light-green);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.build-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== Contact Section ===== */
.contact-content {
  max-width: 600px;
}

.contact-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-green);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--light-green);
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
  background-color: var(--light-green);
  color: var(--dark-navy);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--darker-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Responsive: Tablet (768px+) ===== */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .container {
    padding: 0 2rem;
  }

  .nav-logo span {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-logo {
    width: 140px;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  section {
    padding: 6rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .build-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .build-item {
    padding: 0;
    border-bottom: none;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .build-item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

/* ===== Responsive: Laptop (1024px+) ===== */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-logo {
    width: 150px;
  }

  .hero-tagline {
    font-size: 1.35rem;
  }

  section {
    padding: 7rem 0;
  }

  .focus-card {
    padding: 2.5rem;
  }
}

/* ===== Responsive: Large Monitor (1440px+) ===== */
@media (min-width: 1440px) {
  .container {
    max-width: 1300px;
  }

  h1 { font-size: 4rem; }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-logo {
    width: 160px;
  }

  section {
    padding: 8rem 0;
  }
}
