/* --- VARIABLES --- */
:root {
  --bg-main: #0b0f14;
  --bg-secondary: #111827;
  --bg-card: #0f172a;
  --bg-elevated: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #facc15;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden; /* Prevents scrollbar flash on animations */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 7rem 0;
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.nav-inner {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 50px; /* Fits nicely inside the 70px navbar */
  width: auto;  /* Maintains the logo's aspect ratio */
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  position: relative;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent) !important;
}

.nav-indicator {
  position: absolute;
  bottom: -24px; /* Aligns with bottom of nav container */
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  padding-top: 70px;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  color: #d1d5db;
}

/* --- ABOUT SECTION --- */
.about {
  background: var(--bg-secondary);
}

.about-intro {
  max-width: 750px;
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.about-systems {
  margin-bottom: 4rem;
}

.systems-intro {
  max-width: 800px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.systems-list {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: 0.75rem 5rem; 
  margin: 1.5rem 0 1.5rem;
  list-style: none;
  padding: 0;
}

.systems-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.systems-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.systems-note {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-mission {
  max-width: 900px;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.3);
}

/* --- CONTACT SECTION --- */
.contact {
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.contact-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 800px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  margin-bottom: 2rem;
}

.contact-form button {
  background: var(--accent);
  color: #0b0f14;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* --- FOOTER --- */
footer {
  background: #020617;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* --- MODAL --- */
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.service-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-content {
  background: var(--bg-elevated);
  padding: 3rem;
  border-radius: 28px;
  max-width: 900px;
  width: 90%;
  transform: translateY(40px);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s ease;
}

.service-modal.active .service-modal-content {
  transform: translateY(0);
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */


/* --- HAMBURGER MENU (The Button) --- */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001; 
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-main);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- RESPONSIVE & MOBILE MENU --- */
@media (max-width: 900px) {
  /* 1. Stack the grids vertically */
  .about-grid, 
  .services-grid, 
  .form-grid,
  .systems-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* 2. Show the hamburger button */
  .hamburger {
    display: block;
  }

  /* 3. Style the Dropdown Menu */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0; /* Hidden by default */
    background: rgba(11, 15, 20, 0.98);
    backdrop-filter: blur(10px);
    display: flex; /* Ensure it's not hidden! */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 998; /* High z-index to sit on top */
  }

  /* Open state */
  .nav-links.active {
    height: auto; 
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--accent);
  }

  /* Link Animations */
  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-indicator {
    display: none;
  }
}

.form-trap {
  display: none !important;
  visibility: hidden;
}