* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-dark: #0d2d5e;
  --navy: #134f81;
  --navy-light: #1a679b;
  --accent: #ad3e00;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

body.menu-open {
  overflow: hidden;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navigation */
.navbar {
  background: var(--white);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 20px 20px 40px -4px rgba(0, 0, 0, 0.9) !important; /* Always visible */
  height: 75px; /* Keep navbar height fixed */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative; /* For logo positioning */
}

/* Logo with overflow */
.logo {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  height: 82px; /* Taller than navbar */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  position: relative;
  top: 16px; /* Negative = up, Positive = down */
  z-index: 100;
}

/* Ensure logo doesn't get cut off at top of page */
body {
  padding-top: 0; /* Remove if you had any */
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown Arrow */
.arrow {
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Desktop Navigation (769px and up) */
@media (min-width: 769px) {
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    flex-direction: row;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    list-style: none;
    width: auto;
  }
  
  .nav-links li {
    border-bottom: none;
    width: auto;
  }
  
  .nav-links > li > a {
    padding: 20px 16px;
    font-size: 14px;
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
  }
  
  .nav-links > li > a:hover {
    color: var(--navy-dark);
  }
  
  .nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    width: auto;
    margin-top: 0;
    margin-left: 16px;
  }
  
  .nav-cta:hover {
    background: #c06210;
  }
  
  /* Dropdown Menu - Hidden by default */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 8px 0;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 101;
    list-style: none;
  }
  
  /* Show dropdown on hover */
  .has-dropdown {
    position: relative;
  }
  
  .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .has-dropdown:hover .arrow {
    transform: rotate(180deg);
  }
  
  /* Dropdown link styles */
  .dropdown-menu li {
    width: 100%;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--navy);
    padding-left: 24px;
  }
  
  /* Hide hamburger on desktop */
  .mobile-menu-toggle {
    display: none;
  }
  
  .menu-overlay {
    display: none !important;
  }
}

/* Mobile Navigation (768px and below) */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 101;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    display: flex;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-links {
    list-style: none;
    width: 100%;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 20px 0;
    width: 100%;
  }
  
  .nav-links > li > a:hover {
    color: var(--white);
  }
  
  .nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    width: 100%;
    text-align: center;
  }
  
  /* Mobile Dropdown */
  .has-dropdown.active .arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    padding-left: 16px;
  }
  
  .has-dropdown.active > .dropdown-menu {
    max-height: 500px;
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .dropdown-menu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
  }
  
  .dropdown-menu a:hover {
    color: var(--white);
  }
  
  /* Show hamburger on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mega Menu - Desktop Only */
@media (min-width: 769px) {
    .mega-menu {
        position: static;
    }
    
    .mega-menu .dropdown-menu {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px;
        background: var(--white);
        border-radius: 0 0 8px 8px;
        /* Override default dropdown width */
        min-width: auto;
    }
    
    .mega-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .mega-column h4 {
        color: var(--navy-dark);
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--accent);
    }
    
    .mega-column ul {
        list-style: none;
    }
    
    .mega-column li {
        margin-bottom: 8px;
        border-bottom: none; /* Override mobile style */
    }
    
    .mega-column a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
        padding: 0; /* Override mobile style */
    }
    
    .mega-column a:hover {
        color: var(--navy);
        padding-left: 5px;
        background: transparent; /* Override mobile style */
    }
}

/* Mobile Mega Menu - Stack columns */
@media (max-width: 768px) {
    .mega-grid {
        display: block;
        padding-left: 15px;
    }
    
    .mega-column {
        margin-bottom: 20px;
    }
    
    .mega-column h4 {
        cursor: pointer;
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }
    
    .mega-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mega-column.active ul {
        max-height: 500px;
    }
    
    .mega-column a {
        color: rgba(255,255,255,0.7);
        padding: 8px 0;
        display: block;
    }
}






/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  background-image: url('analexheadera.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradient overlay for better text contrast */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(26, 54, 93, 0.7) 50%,
    rgba(44, 74, 110, 0.6) 100%
  );
  z-index: 1;
}


.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 em {
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #c06210;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.section-header h2 em {
  color: var(--accent);
  font-style: normal;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Mission Section */
.mission {
  padding: 20px 24px;
  background: var(--white);
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mission-text {
  font-size: 22px;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.mission-text strong {
  color: var(--navy);
}

.mission-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Focus Areas Grid */
.focus-areas {
  padding: 20px 24px;
  background: var(--bg-light);
}

.focus-container {
  max-width: 1200px;
  margin: 0 auto;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

.focus-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.focus-image {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.focus-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,22,40,0.4) 100%);
}


.focus-image.defense { 
    height: 150px;
    width: 100%;
    background-image: url('aerospacedesign2.png');
    background-position: center;
    background-repeat: no-repeat;
    
}


.focus-image.aviation { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.focus-image.civil { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.focus-image.security { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
.focus-image.health { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.focus-image.cyber { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }

.focus-content {
  padding: 24px;
}

.focus-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.focus-content .subtitle {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.focus-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.focus-links {
  display: flex;
  gap: 16px;
}

.focus-links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.focus-links a:hover {
  color: var(--accent);
}

.focus-links a.secondary {
  color: var(--text-muted);
}

/* Impact Section */
.impact {
  padding: 80px 24px;
  background: var(--white);
}

.impact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.impact-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.2s;
}

.impact-card:hover {
  background: #f1f5f9;
}

.impact-image {
  width: 160px;
  height: 120px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border-radius: 6px;
  flex-shrink: 0;
}

.impact-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.impact-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.impact-content a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.impact-content a:hover {
  color: var(--accent);
}

/* News Section */
.news {
  padding: 80px 24px;
  background: var(--bg-light);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.news-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
}

.news-header h2 em {
  color: var(--accent);
  font-style: normal;
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.view-all:hover {
  color: var(--accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.news-image {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
}

.news-content {
  padding: 16px;
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* CTA Section */
.cta-section {
  padding: 30px 24px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .focus-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mission-stats { gap: 30px; }
  .impact-card { flex-direction: column; }
  .impact-image { width: 100%; }
  .hero-buttons { flex-direction: column; }
  .nav-menu { width: 280px; }
}