/* Global styling */
body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  /* Set a deep cosmic dark blue background and light text for improved legibility */
  background-color: #0b1f3a;
  color: #eaeff6;
}

/* Header and navigation */
.site-header {
  /* Semi-transparent dark blue header to complement the cosmic theme */
  background: rgba(7, 17, 39, 0.85);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  /* Accent colour for logo text */
  color: #00a6fb;
}

/* Logo image styling */
.logo-image {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

/* Logo text styling */
.logo-text {
  display: inline-block;
}

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

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #eaeff6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00a6fb;
}

/* Hero section */
.hero {
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  text-align: center;
  /* Slightly lighter overlay to allow the cosmic background to shine through */
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

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

.cta-button {
  background: #00a6fb;
  color: #ffffff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #008ecf;
}

/* Section styling */
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  /* Offset sections for fixed header when navigating via anchors */
  /* Increased scroll margin to ensure section headings clear the fixed header */
  scroll-margin-top: 140px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #00a6fb;
}

/* Services section */
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service {
  background: #11284f;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1 1 45%;
  min-width: 250px;
  box-sizing: border-box;
}

.service h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #00a6fb;
}

.service p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Contact section */
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-section input,
.contact-section textarea {
  padding: 1rem;
  border-radius: 5px;
  border: none;
  /* Darker input fields for the cosmic theme */
  background: #11284f;
  color: #eaeff6;
  font-size: 1rem;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #aabdcf;
}

.contact-section button {
  background: #00a6fb;
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-section button:hover {
  background: #008ecf;
}

/* Footer */
.site-footer {
  background: #071b3a;
  text-align: center;
  padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .services-container {
    flex-direction: column;
  }

  .service {
    flex: 1 1 100%;
  }
}

/* Projects section */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 300px;
  height: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-sizing: border-box;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #00a6fb;
}

.project-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* Vision section styling */
.vision-section p {
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

/* Team section */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  max-width: 220px;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.team-member h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.2rem;
  color: #00a6fb;
}

.team-member p {
  margin: 0;
  font-size: 0.9rem;
  color: #cfd8e3;
}

/* News section */
.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  margin-bottom: 1.5rem;
}

.news-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #00a6fb;
}

.news-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Trailer section styling */
.trailer-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Testimonials section styling */
.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial {
  background: #11284f;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 320px;
  flex: 1 1 30%;
  box-sizing: border-box;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.testimonial span {
  display: block;
  font-size: 0.9rem;
  color: #9bb5d3;
}

/* Partners section styling */
.partners-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.partner {
  background: #11284f;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  min-width: 150px;
  text-align: center;
  font-weight: bold;
  color: #00a6fb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Newsletter section styling */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  background: #11284f;
  color: #eaeff6;
  font-size: 1rem;
  min-width: 250px;
}

.newsletter-form input[type="email"]::placeholder {
  color: #aabdcf;
}

.newsletter-form button {
  background: #00a6fb;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #008ecf;
}

@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    align-items: center;
  }
}
/* Unfix the header */
.site-header {
  position: static;   /* was: sticky/fixed */
  top: auto;
}

/* If you’re using my sticky tabs, bring them to the very top */
.tabs { top: 0; }
@media (max-width: 980px) { .tabs { top: 0; } }
