/* Nova Nexus Website Styles */

/* Global Styles */
:root {
  --primary-color: #0b3d91; /* NASA blue */
  --secondary-color: #fc3d21; /* NASA red */
  --accent-color: #4dabf7; /* Light blue */
  --text-color: #f8f9fa;
  --background-dark: #121212;
  --background-darker: #050505;
  --header-height: 80px;
  --footer-height: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent-color);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

a:hover {
  color: var(--secondary-color);
}

/* Header */
header {
  background-color: rgba(11, 61, 145, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin-bottom: 0;
  color: var(--text-color);
  white-space: nowrap;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.nav-links li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0 5px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

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

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

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

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-darker);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  display: block;
  transition: background-color 0.3s ease;
  height: auto;
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown > a::after {
  content: ' ▼';
  font-size: 0.7em;
  vertical-align: middle;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-bottom: 2rem;
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
  margin-top: var(--header-height);
}

.section {
  padding: 60px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--background-darker);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--background-darker);
  padding: 40px 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-links li {
  margin: 0;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--background-darker);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    height: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    height: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 10px;
    height: auto;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 500px;
  }

  .card-container {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode */
.dark-mode {
  --background-dark: #050505;
  --background-darker: #000000;
  --text-color: #f8f9fa;
}

/* Loading States */
.loading {
  position: relative;
  min-height: 200px;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Error States */
.error-message {
  color: var(--secondary-color);
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  background-color: rgba(252, 61, 33, 0.1);
}

/* Success States */
.success-message {
  color: #28a745;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #28a745;
  border-radius: 5px;
  background-color: rgba(40, 167, 69, 0.1);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  header, footer, .mobile-menu-btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}

/* News Page Styles */
.featured-news {
  margin: 2rem 0;
}

.featured-news-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.1), rgba(252, 61, 33, 0.05));
  border-radius: 8px;
  overflow: hidden;
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
}

.featured-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.featured-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.news-date {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.news-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  background: rgba(77, 171, 247, 0.05);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 1.3rem;
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--accent-color);
}

.news-item p {
  padding: 0 1.5rem;
  flex-grow: 1;
  color: rgba(248, 249, 250, 0.8);
  line-height: 1.6;
}

.news-item .news-date {
  padding: 0 1.5rem;
}

.news-item .btn {
  margin: 1.5rem;
  margin-top: auto;
  display: inline-block;
}

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

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--background-dark);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background-color: var(--primary-color);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tr:hover {
  background-color: rgba(77, 171, 247, 0.05);
}

/* Sky Events Styles */
.sky-event {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
}

.sky-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sky-event-header h3 {
  margin: 0;
  color: var(--accent-color);
}

.sky-event-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-news-item {
    flex-direction: column;
    padding: 1.5rem;
  }

  .featured-img {
    width: 100%;
    height: 250px;
  }

  .featured-content h3 {
    font-size: 1.4rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  table th, table td {
    padding: 0.75rem;
  }

  .sky-event-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Company Logo Strip
   ============================================================ */
.company-logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 0;
}

.company-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo {
  max-height: 55px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(20%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.2s ease;
}

.company-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}
