/* CSS Reset & Variables */
:root {
  --primary-blue: #0051ba;
  --secondary-blue: #003a87;
  --accent-gold: #ffd700;
  --light-bg: #f8f9fa;
  --dark-bg: #0a192f;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-blue);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-blue);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

/* Header & Navigation */
header {
  background-color: var(--dark-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 80px;
  height: 80px;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.nav-menu li {
  margin: 0 0.5rem;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.nav-menu li a {
  position: relative;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: white;
  transition: 0.6s ease-in-out;
}

.nav-menu li a:hover::after {
  width: 100%;
}

#headlines {
  position: relative;
  z-index: 999;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 150px;
  height: 150px;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-blue);
  z-index: 90;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 90px;
  border-bottom-right-radius: 90px;
}

.dropdown::before,
.dropdown::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 50px;
  height: 80px;
  background-color: var(--accent-gold);
}

.dropdown::before {
  left: -40px;
  border-radius: 20px 0 0 20px; /* left sleeve */
}

.dropdown::after {
  right: -40px;
  border-radius: 0 20px 20px 0; /* right sleeve */
}

.dropdown ul li {
  list-style: disc;
  color: var(--text-light);
}

#headlines:hover .dropdown {
  display: flex;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--accent-gold);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}
/* Gallery Section */
#gallery {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gallery-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery-item h2 {
  width: 100%;
  text-align: center;
  color: #ffcc00;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Image Styles - Fully Responsive */
.gallery-item img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.touch {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#modal img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px #fff;
}

/* Dropdown */
#select-gallery {
  height: 50px;
  width: 90px;
  background-color: #081b33;
  color: white;
  text-align: center;
  margin: 5%;
}
select {
  height: 50px;
  width: 90px;
  background-color: black;
  color: #ffcc00;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .gallery-item {
    gap: 0.5rem;
  }
  .gallery-item img {
    max-width: 100%;
    width: 100%;
  }
  .gallery-item h2 {
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-item img {
    max-width: 45%;
  }
}

#groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#groups h2 {
  width: 100%;
  text-align: center;
  color: #ffcc00;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

#groups img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

#groups img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.touch {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

#modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#modal img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px #fff;
}

#select-gallery {
  height: 50px;
  width: 90px;
  background-color: #081b33;
  color: white;
  text-align: center;
  margin: 5%;
}
select {
  height: 50px;
  width: 90px;
  background-color: black;
  color: #ffcc00;
}
.mobile-blog {
  display: none;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--dark-bg);
    display: flex;
    gap: 5vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 999;
  }
  .mobile-blog {
    display: flex;
  }
  #headlines:hover .dropdown {
    display: none;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  .social-icons {
    display: none;
  }

  .stats-hero-content h1 {
    font-size: 2.2rem;
  }
  #groups img {
    width: 90%;
  }

  #groups h2 {
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #groups img {
    width: 45%;
  }
}
