/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #c5c6c7;
  background-color: #0b0c30;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
/* === GLOBAL PARTICLE BACKGROUND === */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* visible behind content but above bg */
  background: transparent;
  pointer-events: none;
}

/* === SECTIONS === */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.bg-dark {
  background-color: #0b0c30;
}
.bg-light {
  background-color: #1f2833;
}
.text-primary {
  color: #66fcf1;
}
.text-light {
  color: #c5c6c7;
}
.text-center {
  text-align: center;
}

/* === HEADER & NAV === */
header {
  background-color: #0b0c30;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upper-left-text {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #66fcf1;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
nav a {
  color: #c5c6c7;
  text-decoration: none;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
nav a:hover {
  color: #66fcf1;
  background-color: rgba(102, 252, 241, 0.1);
}

/* === HERO SECTION (FIXED LAYERS) === */
.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* full viewport height */
  position: relative;
  text-align: center;
  padding-top: 0;
}

.hero-content {
  position: relative;
  z-index: 2; /* stays above particles */
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #66fcf1;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
  animation: fadeIn 1.6s ease-out forwards;
}

.hero-content p {
  font-size: 1.2rem;
  color: #c5c6c7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 0.4s;
}

.hero-content .btn {
  padding: 14px 30px;
  background: linear-gradient(90deg, #66fcf1, #45a29e);
  color: #0b0c30;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
  opacity: 0;
  animation: fadeIn 2.4s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-content .btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #45a29e, #66fcf1);
  box-shadow: 0 6px 25px rgba(102, 252, 241, 0.6);
}

/* --- animation for grid movement --- */
@keyframes moveGrid {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 60px 60px, 60px 60px;
  }
}

/* --- fade animation --- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive fix */
@media (max-width: 900px) {
  .hero-main::before {
    background-size: 40px 40px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* === PROMOTIONAL VIDEO SECTION STYLES === */
.video-promo-wrapper {
  position: relative;
  width: 100%;
  
  /* Kept Huge as requested */
  max-width: 1150px; 
  
  margin: 0 auto;   /* Centers the box */
  
  /* Force 16:9 Aspect Ratio (YouTube Standard) */
  aspect-ratio: 16 / 9; 
  
  /* The "SyncShield" Aesthetic */
  border-radius: 12px;
  overflow: hidden; 
  border: 2px solid #66fcf1; 
  
  /* The Glow Effect */
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.2), 
              inset 0 0 20px rgba(102, 252, 241, 0.1);
  
  /* Animation on load */
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s; 
}

.video-promo-wrapper:hover {
  box-shadow: 0 0 50px rgba(102, 252, 241, 0.4);
  transform: scale(1.01); /* Subtle zoom */
  transition: all 0.3s ease;
}

.video-promo-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .video-promo-wrapper {
    width: 95%;
    border-width: 1px;
  }
}

/* === FIXED RSYNC CONTENT GRID === */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
.content-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.content-item:hover {
  transform: translateY(-5px);
}
.content-item h3 {
  color: #66fcf1;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.8rem;
}
.content-item p {
  color: #c5c6c7;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === NETWORK DIAGRAM (RESIZED & CLEANER) === */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  width: 100%;
}

.image-container img {
  width: 70%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(102, 252, 241, 0.3);
}

/* === RISK GRID === */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.risk-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}
.risk-item:hover {
  transform: translateY(-5px);
}
.risk-item i {
  font-size: 2rem;
  color: #66fcf1;
  margin-bottom: 10px;
}

/* === FEATURES (3 PER ROW + GLOW) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.feature-item i {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.feature-item h3 {
  font-size: 1.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #c5c6c7;
  margin-bottom: 0.8rem;
}
.feature-item p {
  font-size: 0.95rem;
  color: #a7a9ac;
}
.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(102, 252, 241, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}
.feature-item:hover i {
  color: #45a29e;
}

/* === INSTALL SECTION (IMPROVED) === */
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.install-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 252, 241, 0.15);
}
.install-card i {
  font-size: 2rem;
  color: #66fcf1;
  margin-bottom: 0.8rem;
}
.install-card p {
  color: #c5c6c7;
  font-size: 0.95rem;
}
.install-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(102, 252, 241, 0.25);
  background-color: rgba(255, 255, 255, 0.08);
}
.install-btn {
  font-size: 1rem;
  background: linear-gradient(90deg, #66fcf1, #45a29e);
  border: none;
  color: #0b0c30;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
}
.install-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #45a29e, #66fcf1);
  box-shadow: 0 6px 25px rgba(102, 252, 241, 0.6);
}

/* === ABOUT SECTION (2x2 GRID + CENTERED SUPERVISOR) === */

/* 1. The Team Grid: Forces 2 columns (2x2 Layout) */
.team-members {
  display: grid;
  /* This creates exactly 2 columns of equal width */
  grid-template-columns: 1fr 1fr; 
  gap: 2rem;
  
  /* Restricts width so it looks like a tight block in the center */
  max-width: 750px; 
  margin: 3rem auto; /* Centers the block horizontally */
}

/* Mobile: Stack them 1 by 1 on phones */
@media (max-width: 600px) {
  .team-members {
    grid-template-columns: 1fr;
  }
}

.member-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(102, 252, 241, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Ensures all cards are the same height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.member-card img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #66fcf1;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.member-card h3 {
  color: #66fcf1;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem; /* Slightly smaller to fit side-by-side */
  margin-bottom: 0.5rem;
}

.member-card p {
  font-size: 0.9rem;
}

/* === PROJECT DETAILS (SUPERVISOR SECTION) === */
.project-details {
  /* Match the width of the team grid above */
  max-width: 750px;
  margin: 0 auto; /* Centers it */
  margin-top: 2rem; /* Gap between students and supervisor */
  
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  
  /* Flex layout: Image Left, Text Right */
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  border: 1px solid rgba(102, 252, 241, 0.1); 
}

.supervisor-image-container {
  flex-shrink: 0;
}

/* Forces supervisor image to match students exactly */
.supervisor-img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #66fcf1;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-info-container h3 {
  color: #66fcf1;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-info-container p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Responsive: Stack supervisor section on mobile */
@media (max-width: 768px) {
  .project-details {
    flex-direction: column;
    text-align: center;
  }
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #0b0c30;
}
footer p {
  color: #c5c6c7;
}

/* === COMMAND BUILDER GUIDE === */
.guide-horizontal {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}
.guide-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.guide-card.show {
  opacity: 1;
  transform: translateY(0);
}
.guide-card.reverse {
  flex-direction: row-reverse;
}
.guide-img img {
  width: 420px;
  max-width: 100%;
  border-radius: 10px;
  border: 2px solid #45a29e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.guide-text {
  flex: 1;
}
.guide-text h3 {
  color: #66fcf1;
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
}
.guide-text p,
.guide-text ul {
  color: #c5c6c7;
  font-size: 1rem;
  line-height: 1.6;
}
.guide-text li::before {
  content: "• ";
  color: #66fcf1;
}

/* === SCROLL ANIMATION === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-summary ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.option-summary li {
  position: relative;
  padding-left: 20px;
}

.option-summary li::before {
  content: "•";
  color: #66fcf1;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
