/* 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;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
}

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

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

/* Header */
header {
  background-color: rgba(11, 61, 145, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  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;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--text-color);
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
  position: relative;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.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;
}

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

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

.dropdown:hover .dropdown-content {
  display: block;
}

.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;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  list-style: none;
  padding: 1rem 0;
  margin-top: var(--header-height);
  background-color: rgba(0, 0, 0, 0.3);
}

.breadcrumb li {
  margin-right: 10px;
}

.breadcrumb li::after {
  content: '>';
  margin-left: 10px;
  color: var(--accent-color);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--accent-color);
}

.breadcrumb li:last-child a {
  color: var(--secondary-color);
  pointer-events: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images/backgrounds/milky_way_background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Main Content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.section {
  padding: 4rem 0;
}

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

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

.section-title h2 {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--secondary-color);
}

/* Cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: rgba(18, 18, 18, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Background sections */
.bg-earth {
  background-image: url('../images/backgrounds/earth_from_space.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--text-color);
}

.bg-earth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.bg-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: rgba(18, 18, 18, 0.8);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: var(--primary-color);
  color: var(--text-color);
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
  background-color: var(--background-darker);
  color: var(--text-color);
  padding: 2rem 0;
  height: var(--footer-height);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links li {
  margin-right: 20px;
}

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

.social-links li {
  margin-left: 15px;
}

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

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

.copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

/* Under Construction Page */
.under-construction {
  text-align: center;
  padding: 5rem 0;
}

.under-construction h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.under-construction p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.construction-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--background-darker);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  background-color: var(--background-dark);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Form submission status messages */
.form-status {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  text-align: center;
}

.form-status.success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #28a745;
}

.form-status.error {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* Form validation styles */
.form-control:invalid {
  border-color: #dc3545;
}

.form-control:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Submit button specific styles */
.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--primary-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.contact-form .btn:active {
  transform: translateY(0);
}

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

.news-item {
  background-color: rgba(18, 18, 18, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

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

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.news-excerpt {
  margin-bottom: 1rem;
}

.featured-news {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: rgba(11, 61, 145, 0.2);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.featured-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Page-specific styles */
/* Home page */
.home-section {
  padding: 5rem 0;
}

/* LEO page */
.leo-stats {
  background-color: rgba(11, 61, 145, 0.2);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* NEOs page */
.torino-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 2rem 0;
}

.torino-item {
  padding: 1rem;
  text-align: center;
  border-radius: 5px;
}

.torino-white {
  background-color: #fff;
  color: #000;
}

.torino-green {
  background-color: #28a745;
}

.torino-yellow {
  background-color: #ffc107;
  color: #000;
}

.torino-orange {
  background-color: #fd7e14;
}

.torino-red {
  background-color: #dc3545;
}

/* Missions page */
.mission-list {
  list-style: none;
}

.mission-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

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

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

.mission-date {
  background-color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* Companies page */
.company-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.company-logo {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.company-links {
  margin-top: auto;
}

/* Stargazing page */
.sky-event {
  background-color: rgba(11, 61, 145, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

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

.sky-event-date {
  background-color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.location-selector {
  margin-bottom: 2rem;
}
