/* =========================
   VARIABLES & RESET
========================= */
:root {
  --space-black: #020617;
  --space-blue: #0f172a;
  --deep-blue: #1e3a8a;
  --sky-blue: #38bdf8;
  --neon-blue: #60a5fa;
  --orange: #f97316;
  --orange-light: #fb923c;
  --white: #ffffff;
  --muted: #cbd5e1;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--space-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
}

/* =========================
   TOP NAVIGATION BAR (PUSHED UP)
========================= */
.top-nav {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem; /* Reduced from 1rem to push content up */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--space-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 100px; /* Increased from 40px */
  height: 100px; /* Increased from 40px */
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Added for better visibility */
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: var(--gray-100);
  color: var(--space-blue);
}

.nav-links a.active {
  background: var(--space-blue);
  color: white;
}

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--orange-light) !important;
  transform: translateY(-1px);
}

/* =========================
   HERO SECTION (PUSHED UP)
========================= */
.hero {
  position: relative;
  padding: 3rem 2rem 5rem; /* Reduced from 5rem/7rem to push content up */
  color: white;
  background: radial-gradient(circle at top, var(--deep-blue), var(--space-black) 70%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  pointer-events: none;
}

.hero::before {
  background-image: 
    radial-gradient(2px 2px at 10% 20%, white 50%, transparent),
    radial-gradient(2px 2px at 30% 80%, white 50%, transparent),
    radial-gradient(2px 2px at 70% 40%, white 50%, transparent),
    radial-gradient(2px 2px at 90% 70%, white 50%, transparent),
    radial-gradient(2px 2px at 50% 50%, white 50%, transparent);
  opacity: 0.6;
  animation: starsMove 120s linear infinite;
}

.hero::after {
  background-image: 
    radial-gradient(4px 4px at 20% 30%, white 60%, transparent),
    radial-gradient(4px 4px at 60% 10%, white 60%, transparent),
    radial-gradient(4px 4px at 80% 80%, white 60%, transparent);
  opacity: 0.8;
  animation: starsMove 200s linear infinite reverse;
}

@keyframes starsMove {
  from { transform: translateY(0); }
  to { transform: translateY(-1200px); }
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  box-shadow: 0 4px 25px rgba(249,115,22,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(249,115,22,0.6);
}

.btn-secondary {
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(96, 165, 250, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--neon-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

/* =========================
   ENHANCED MAP HERO SECTION
========================= */
.map-hero {
  position: relative;
  padding: 4rem 2rem 6rem;
  background: radial-gradient(ellipse at center, #1a202c 0%, #0f0f23 40%, #000000 100%);
  color: white;
  overflow: hidden;
  min-height: 100vh;
}

.map-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #60a5fa, transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(1px 1px at 90px 40px, #f97316, transparent),
    radial-gradient(1px 1px at 130px 80px, #60a5fa, transparent),
    radial-gradient(2px 2px at 160px 30px, white, transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.map-title {
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa 0%, #f97316 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.world-map-wrapper {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.world-map {
  width: 100%;
  height: auto;
  max-height: 600px;
  background: radial-gradient(ellipse at center, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
}

.aerospace-country {
  cursor: pointer;
  transition: all 0.4s ease;
  fill: #334155;
  stroke: #475569;
}

.aerospace-country:hover {
  fill: #3b82f6 !important;
  stroke: #f97316 !important;
  stroke-width: 3;
}

.aerospace-country.active {
  fill: #f97316 !important;
  stroke: #60a5fa !important;
  animation: pulseCountry 2s ease-in-out infinite;
}

@keyframes pulseCountry {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.05); }
}

/* =========================
   PLANE ANIMATION & TOOLTIPS
========================= */
.plane-animation {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

.plane {
  font-size: 2.5rem;
  color: #f97316;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8));
  animation: planeBob 1s ease-in-out infinite alternate;
}

@keyframes planeBob {
  from { transform: translateY(-3px) rotate(-2deg); }
  to { transform: translateY(3px) rotate(2deg); }
}

.country-tooltip {
  position: fixed;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.95));
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translate(-50%, -10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.country-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.country-info {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  max-width: 340px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* =========================
   PAGE SECTIONS & CONTENT
========================= */
.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

.content-block {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* About Page */
.mission-card {
  background: linear-gradient(135deg, var(--neon-blue), var(--deep-blue));
  color: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  border: 2px solid var(--neon-blue);
}

/* Team Section */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-blue);
}

.avatar-initial {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

/* =========================
   FEATURES & ARTICLES
========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: 0.4s ease;
  border: 1px solid var(--gray-200);
}

.article-card:hover { transform: translateY(-8px); }

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content { padding: 1.5rem; }

.article-category {
  display: inline-block;
  background: var(--neon-blue);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 25px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* =========================
   NEWSLETTER SECTION
========================= */
.newsletter-section {
  background: var(--space-blue);
  border-radius: 24px;
  padding: 4rem 2.5rem;
  text-align: center;
  color: white;
  margin: 4rem 0;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-input {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  min-width: 280px;
}

.newsletter-button {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  border: none;
  background: var(--orange);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   OPPORTUNITIES PAGE
========================= */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.opportunity-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.opportunity-badge {
  background: var(--orange);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--space-black);
  color: #cbd5e1;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-links { list-style: none; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .hero h1, .map-title { font-size: 2.5rem; }
  .country-info { position: static; margin-top: 2rem; width: 100%; }
  .nav-container { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .team-avatar { width: 100px; height: 100px; }
}
/* =========================
   CHATBOT STYLES
========================= */
.chatbot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999; /* Extremely high to sit on top of everything */
    font-family: 'Inter', sans-serif;
}

/* THE BUTTON */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f97316; /* Bright Orange */
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

/* THE WINDOW */
.chat-window {
    display: none; /* Hidden by default */
    flex-direction: column;
    width: 320px;
    height: 450px;
    background: white;
    position: absolute;
    bottom: 80px; /* Above the button */
    right: 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid #ccc;
}

/* HEADER */
.chat-header {
    background: #0f172a; /* Dark Blue */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* BODY (MESSAGES) */
.chat-body {
    flex: 1;
    padding: 15px;
    background: #f1f5f9;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: #e2e8f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: #0f172a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* FOOTER (INPUT) */
.chat-footer {
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 5px;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.send-btn {
    background: #f97316;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* =========================
   MAP INFO BOX STYLES
========================= */
.country-info {
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
  color: var(--deep-blue);              /* Navy Blue text */
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 20px;
}

.country-info h3 {
  color: var(--deep-blue);              /* Navy Blue Title */
  margin-bottom: 8px;
  font-weight: 800;
}

.country-info p {
  color: var(--gray-700);               /* Darker Gray/Blue for descriptions */
  font-size: 0.95rem;
}
/* =========================
   MOBILE OPTIMIZATIONS
========================= */
@media (max-width: 768px) {
  /* 1. Un-stick the Top Navigation */
  .top-nav {
    position: relative !important;
    top: auto !important;
  }

  /* 2. Remove Map Info/Status Boxes */
  .country-info, 
  .country-tooltip,
  .aerospace-status-box { 
    display: none !important; 
  }

  /* 3. Center Everything: Articles, Headings, and Map Section */
  .section-header,
  .map-container,
  .world-map-wrapper,
  .article-card,
  .opportunity-card,
  .newsletter-section {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Ensure grid items center themselves */
  .articles-grid, 
  .opportunities-grid, 
  .features-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Adjust Hero and Taglines for better mobile centering */
  .hero-content, .map-subtitle {
    margin: 0 auto;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* 4. Fix World Map Wrapper padding for centering */
  .world-map-wrapper {
    padding: 1rem;
    width: 100%;
  }
}
/* Container for the tags */
.team-expertise {
  display: flex;
  flex-wrap: wrap;       /* Allows tags to drop to the next line if too long */
  justify-content: center; /* Centers them to match your card layout */
  gap: 8px;              /* Space between the boxes */
  margin-top: 1.5rem;    /* Pushes them down away from the bio */
}

/* The individual tag "boxes" */
.expertise-tag {
  background: var(--gray-100);     /* Light gray background */
  color: var(--deep-blue);         /* Navy blue text */
  padding: 4px 12px;               /* Vertical and horizontal spacing */
  border-radius: 6px;              /* Soft rounded corners for a "box" look */
  font-size: 0.8rem;               /* Slightly smaller text */
  font-weight: 600;                /* Makes the text pop */
  border: 1px solid var(--gray-200); /* Subtle border for definition */
  transition: all 0.3s ease;       /* Smooth transition for hover */
}

/* Optional: Hover effect to make it interactive */
.expertise-tag:hover {
  background: var(--deep-blue);
  color: white;
  transform: translateY(-2px);
}
/* Specific style for a "Lead" look (optional) */
.team-card:first-child .expertise-tag {
  border-color: var(--orange-light);
  color: var(--orange);
  background: rgba(249, 115, 22, 0.05); /* Very light orange tint */
}

/* --- Contact Section Styles --- */
.contact-section {
    padding: 4rem 2rem;
    background-color: #f8fafc; /* Light grey background to make boxes pop */
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* The Grid Container */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-stacking */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Individual Box */
.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

/* Icon Style */
.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    width: 80px;
    height: 80px;
    line-height: 80px; /* Centers emoji vertically */
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto; /* Centers the circle */
}

/* Text Styles */
.contact-card h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Button Style */
.card-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.card-btn:hover {
    background-color: #2563eb;
}
