/* ====== GLOBAL STYLES ====== */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0f1c;
  color: #e0e0e0;
}

body {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== HERO SECTION ====== */
.hero {
  background: url('aegisnet-logo.png') no-repeat center/contain, #0a0f1c;
  text-align: center;
  padding: 120px 20px 80px;
  color: #00bfff;
}

.hero-logo {
  max-width: 220px;
  width: 80%;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #ccc;
  line-height: 1.6;
}

/* ====== HEADERS ====== */
.small-header {
  background-color: #10192e;
  text-align: center;
  padding: 50px 20px;
  color: #00bfff;
}

/* ====== NAVIGATION ====== */
nav {
  background-color: #121b33;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 15px 25px;
  color: #e0e0e0;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: 500;
}

nav a:hover, nav a.active {
  background-color: #00bfff33;
  color: #00bfff;
}

/* ====== CATEGORY CARDS ====== */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
}

.category {
  background-color: #121b33;
  border-radius: 10px;
  padding: 30px;
  max-width: 300px;
  flex: 1 1 280px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #00bfff;
  color: #0a0f1c;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #00a0cc;
}

/* ====== PAGE CONTENT ====== */
.content {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  background-color: #121b33;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
}

.content ul {
  padding-left: 20px;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #10192e;
  color: #999;
  font-size: 0.9rem;
}

/* ====== UPDATED 5-PANEL SERVICE BLOCKS ====== */
.category {
  background-color: #121b33;
  border-radius: 10px;
  padding: 40px 25px;       /* Increased top/bottom padding for breathing room */
  max-width: 300px;
  flex: 1 1 280px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;

  /* --- NEW PROPERTIES TO MAKE THEM TALLER AND CENTERED --- */
  min-height: 350px;         /* 1. Sets a larger minimum height (Adjust this number if you want it even taller) */
  display: flex;             /* 2. Turns the inside of the card into a flex container */
  flex-direction: column;    /* 3. Keeps your title and text stacked vertically */
  justify-content: center;   /* 4. Centers the content VERTICALLY */
  align-items: center;       /* 5. Centers the content HORIZONTALLY */
  box-sizing: border-box;    /* 6. Enforces exact dimensions */
}

/* Optional: Make sure the text inside has a comfortable width and line height */
.category p {
  margin: 15px 0 0 0;
  line-height: 1.6;
  color: #b0bcce;            /* Clean, legible muted blue-gray text color */
  font-size: 0.95rem;
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;          /* Keeps the absolute-positioned video inside this section */
  width: 100%;
  height: 80vh;                /* Controls how tall the hero area is on the screen */
  min-height: 400px;           /* Prevents it from getting squished on smaller devices */
  display: flex;
  align-items: center;         /* Centers text vertically */
  justify-content: center;     /* Centers text horizontally */
  overflow: hidden;            /* Hides any video overlap outside the container */
  background-color: #0a0f1c;   /* Fallback color while video loads */
}

/* Forces the video to cover the entire container background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%); /* Keeps the rotating map perfectly centered */
  object-fit: cover;               /* Crops video evenly without stretching it */
  z-index: 1;                      /* Pushes video behind everything else */
  opacity: 0.6;                    /* Slightly dims video so text is readable */
}

/* Container for text sitting safely above the video */
.hero-content {
  position: relative;
  z-index: 2;                      /* Forces content to stack completely over the video */
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-size: 5rem;                 /* Makes AEGISNET big and bold */
  font-weight: 800;
  letter-spacing: 4px;
  margin: 0 0 20px 0;
  color: #00bfff;                  /* Bright cyan text matching your scheme */
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.4); /* Neon title glow */
}

.tagline {
  font-size: 1.4rem;
  max-width: 750px;
  margin: 0 auto;
  color: #00bfff;
  font-weight: 600;
  line-height: 1.5;
}

/* Responsive adjustment for phones */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
}

/* Hover effect matching your current design language */
.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.4);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 10px 60px;
  }

  nav a {
    padding: 12px 18px;
  }

  .categories {
    gap: 20px;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 180px;
  }

  .tagline {
    font-size: 1rem;
    padding: 0 10px;
  }

  .category {
    max-width: 100%;
  }

  .content {
    margin: 40px 15px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
  }

  nav a {
    padding: 12px;
    border-bottom: 1px solid #0a0f1c;
  }

  .hero {
    padding: 80px 10px 50px;
  }

  .hero-logo {
    max-width: 150px;
  }

  .tagline {
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.8rem;
  }
}
