/* === Reset and Base === */
* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Removed scroll-snap-type */
}

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to bottom, #000000,#000000, #0f0c6b);
  color: white;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  z-index: -2;
}

.gradient-text {
  background: linear-gradient(90deg, #feb406,#a200db,#2300c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle glow/shadow for readability */
  background: url('/images/Home.jpg') no-repeat top right / cover;
  padding-top: 5rem;
  padding-bottom: 2rem;
  z-index: 0;
}

.hero .subtitle {
  font-size: 1.6rem; /* Increased font size */
  color: #ffffff; /* Brighter color for better contrast */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Adds a subtle glow/shadow for readability */
  z-index: 1;
  transition: color 0.3s ease;
}


@media (max-width: 768px) {
  .hero {
    background-position: center center;
  }

  .title {
    font-size: 2.2rem;
  }

  .navbar nav ul {
    padding: 1rem 0;
    gap: 1rem;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
  }
}

.planet-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, #4806fe33 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, #00d63522 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, #2001bab9 0%, transparent 60%);
  background-size: cover;
  z-index: -2;
  animation: animate-stars 30s linear infinite;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes animate-stars {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px) scale(1.02); }
  100% { transform: translateY(0); }
}

.container {
  padding: 2rem;
}

.logo {
  position: absolute;
  top: 20px;
  left: 40px;
  max-width: 200px;
  animation: fadeInLogo 2s ease-in-out;
  z-index: 5;
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #feb406;
  margin-bottom: 0.5rem;
  margin-top: 100px;
  z-index: 1;
}

/* === Section Styling === */
.section {
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin: 5px auto 0 auto;
  text-align: center;
  transition: transform 0.3s ease;
}

.section:not(#about):not(#hero) {
  padding-left: 1rem;
  padding-right: 1rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #feb406;
}

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

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  background: #111;
  border: 1px solid #333;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
}

.contact-form button {
  padding: 0.75rem;
  background: #feb406;
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #ffa933;
  box-shadow: 0 0 8px #feb406;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #888;
  font-size: 0.9rem;
}

[data-aos] {
  transition-duration: 1s;
}

@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }

  .logo {
    max-width: 100px;
    left: 20px;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* === Navigation Bar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background-color: #000000;
  z-index: 10;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0 auto;
}

.navbar nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.navbar nav ul li a:hover {
  color: #feb406;
  text-decoration: underline;
  text-decoration-color: #a200db;
  text-underline-offset: 4px;
  text-shadow: 0 0 6px #a200db;
}

.nav-logo {
  height: 60px;
  margin-right: auto;
  margin-left: 10px;
  transition: transform 0.2s ease-in-out;
}

.nav-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #feb406);
}

.navbar a {
  text-decoration: none;
  color: #feb406;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #fff;
}

/* === Shooting Stars === */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #000000,#000000, #0f0c6b);
}

/* === Responsive Nav Toggle === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .navbar nav ul {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border: 1px solid #feb406;
    border-radius: 8px;
  }

  .navbar nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* === Cards and Sections === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.services-section {
  padding: 2rem 2rem;
  text-align: center;
  background-color: transparent;
  position: relative;
  color: white;
}

.service-card-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  max-width: 1000px;  /* 3 cards * 300px + gaps */
  margin: 0 auto;
}

.service-card {
  position: relative;
  width: 300px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}

.service-card:hover {
  transform: scale(1.2) translateY(-3px); /* Adds both zoom and lift */
  box-shadow: 0 0 18px rgba(255, 179, 38, 0.6);
  z-index: 2;
}


.service-content {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 100%;
  padding: 1rem;
  text-align: center;
  transition: background 0.3s ease;
}

.service-content h3 {
  font-size: 1.4rem;
  color: #feb406;
  margin-bottom: 0.5rem;
}

.service-content p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.4;
}

.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: #feb406;
}

.scroll-right {
  right: 1rem;
}

.scroll-left {
  left: 1rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  color: white;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 180, 6, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content h3 {
  color: #feb406;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}

.close-button {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #feb406;
  cursor: pointer;
}

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



.team-card, .product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #feb406;
  border-radius: 12px;
  padding: 1.5rem;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
}

.team-card:hover, .product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(249, 137, 11, 0.3);
  border-color: #feb406;
}


.split-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: left;
  padding: 2rem 1rem;
}

.text-content {
  flex: 1;
  min-width: 300px;
}

.image-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
  
.image-content img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    text-align: center;
  }

  .image-content {
    margin-top: 1.5rem;
  }
}

.about-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.about-section[data-aos="fade-up"].aos-animate .about-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.text-content {
  flex: 1 1 50%;
  max-width: 600px;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #feb406;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

.image-content {
  flex: 1 1 45%;
  text-align: center;
}

.image-content img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s ease;
}

.product-section {
  position: relative;
  padding: 5rem 2rem;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  color: white;
}

/* Background image layer */
.product-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url('/images/satelliteCity.jpg') center center / cover no-repeat;
  opacity: 0;
  z-index: -1;
  transition: opacity 1s ease-in-out;
}

/* When AOS triggers, fade in background */
.product-section.aos-animate::before {
  opacity: 1;
}

/* Cards layout */
.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.product-card {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #6e6e6e;
  border-radius: 15px;
  padding: 2rem;
  width: 300px;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: scale(1.05);
  border-color: #feb406;
}

.product-card h3 {
  color: #feb406;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-card p {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6;
}

.email-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #feb406;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  box-shadow: 0 0 8px rgba(255, 180, 6, 0.2);
}

.email-button:hover {
  background-color: #ffa933;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 180, 6, 0.4);
}

