/* Global Reset and Smooth Scrolling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Fade-in Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Background Video and Overlay */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}


/* Main Container */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-top: 80px;
  /* To prevent overlap with nav */
}

.content {
  color: #fff;
  animation: fadeIn 1.5s ease-in forwards;
}

.welcome-text {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Categories Grid */
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  width: 100%;
}

.category-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
}

.category-card p {
  font-size: 1em;
  color: #ddd;
}

/* Section Styling for Additional Content */
.section {
  padding: 60px 20px;
  width: 100%;
  animation: fadeIn 1.5s ease-in forwards;
  text-align: center;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.section-content {
  font-size: 1.1em;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured Articles */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  width: 100%;
}

.article-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.article-card h4 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #fff;
}

.article-card p {
  font-size: 0.95em;
  color: #ddd;
}

/* Testimonials */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  width: 100%;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  font-style: italic;
  color: #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.testimonial-card span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
}


/* Footer */
.footer {
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 0;
  background: rgba(32, 31, 31, 0.8);
  transition: background 0.3s ease;
}

.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #538647;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar li {
    margin: 0 10px;
  }

  .navbar a {
    font-size: 1rem;
    padding: 8px 15px;
  }

  .welcome-text {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  .welcome-text {
    font-size: 2em;
  }

  .navbar ul {
    flex-direction: column;
  }

  .navbar li {
    margin: 10px 0;
  }
}