/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Montserrat:wght@400;700&display=swap');

/* CSS Variables */
:root {
  --bg-color: #0f0f0f;
  --text-color: #ffffff;
  --primary-color: #f5deb3; /* Wheat */
  --accent-color: #ff8c00;  /* Dark Orange */
  --accent-color-dark: #e67300; /* Darker Orange for hover */
  --nav-bg-color: rgba(15, 15, 15, 0.9);
  --nav-backdrop-filter: blur(5px);
  --footer-bg-color: #1c1c1c;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'DynaPuff', cursive;
  --max-width: 1200px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */

nav {
  width: 100%;
  position: fixed;
  top: 0;
  background: var(--nav-bg-color);
  backdrop-filter: var(--nav-backdrop-filter);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

nav .logo {
  margin-right: auto;
}

nav .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFA500;
  text-decoration: none;
  font-family: 'DynaPuff', cursive; /* Updated font family */
}

nav input[type="checkbox"] {
  display: none;
}

nav .menu-icon {
  display: none;
  cursor: pointer;
}

nav .menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: 0.3s;
}

nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

nav .nav-links li {
  margin-left: 2rem;
}

nav .nav-links li a {
  font-size: 1rem;
  color: #f5f5f5;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

nav .nav-links li a::after {
  content: '';
  height: 2px;
  width: 0;
  background-color: var(--accent-color);
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}

nav .nav-links li a:hover::after,
nav .nav-links li a.active::after {
  width: 100%;
}

nav .nav-links li a:hover,
nav .nav-links li a.active {
  color: var(--accent-color);
}

/* Discord Button in Navigation */
nav .discord-button {
  display: inline-flex;
  align-items: center;
  background-color: #5865F2;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
  margin-left: 20px;
}

nav .discord-button svg {
  margin-right: 8px;
  height: 24px;
  width: 24px;
  min-width: 24px;
}

nav .discord-button:hover {
  background-color: #4752C4;
}

/* StudyHUB Navigation Styles */
nav .studyhub-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #000000 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: white !important;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.2s !important;
  white-space: nowrap !important;
  margin-left: 15px !important;
  border: 2px solid #333 !important;
}

nav .studyhub-nav-link:hover {
  background-color: #333333 !important;
  transform: translateY(-1px) !important;
  color: white !important;
}

nav .studyhub-nav-link:hover::after {
  width: 0 !important;
}

nav .studyhub-logo {
  height: 20px !important;
  width: 20px !important;
  margin-right: 6px !important;
  min-width: 20px !important;
  object-fit: contain !important;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  nav .menu-icon {
    display: block;
    margin-left: auto;
  }

  nav .menu-icon span {
    background-color: var(--text-color);
  }

  nav .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    padding-top: 2rem;
    transition: right 0.5s;
  }

  nav .nav-links li {
    margin: 2rem 0;
    text-align: center;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    right: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
  }

  /* StudyHUB mobile styles */
  nav .studyhub-nav-link {
    margin-left: 0 !important;
    margin-top: 1rem !important;
  }
}

/* Main Container */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 20px 60px 20px;
}

/* Hero Section */
.hero-section {
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 150px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.animated-background {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at center, transparent, var(--accent-color), transparent 70%);
  animation: rotateBG 30s linear infinite;
  opacity: 0.05;
  z-index: 1;
}
@keyframes rotateBG {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Apply 'DynaPuff' font and bold weight to primary headings */


/* Specifically target the hero section heading */
.hero-content h1 {
  font-size: 3rem; /* Adjust as needed */
  margin-bottom: 20px;
  /* Removed font-family and font-weight if already covered above */
}

/* Specifically target the About Us section heading */
.about-us-content .text h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
  /* font-family and font-weight already set */
}

/* Specifically target the Team section heading */
.team-section h2 {
  color: var(--accent-color);
  margin-bottom: 40px;
  font-size: 2.5rem; /* Ensure this matches premium.html */
  /* font-family and font-weight already set */
}

/* Optionally, target sub-headings if needed */
.team-info h3 {
  /* If h3 needs specific adjustments */
  font-size: 1.5rem; /* Adjust as needed */
}

/* Animated Squad Text */
.animated-squad {
  background: linear-gradient(90deg, #ff8c00, #FFA500, #FFD700, #ff8c00);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content p {
  font-size: 1.2rem;
}

/* About Us Section */
.about-us-section {
  padding: 60px 0;
}

.about-us-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-us-content .text {
  flex: 1 1 50%;
  padding: 20px;
}

.about-us-content .text h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.about-us-content .text p {
  font-size: 1rem;
  line-height: 1.8;
}

.about-us-content .image {
  flex: 1 1 50%;
  text-align: center;
}

.about-us-content .image img {
  max-width: 80%;
  border-radius: 10px;
}

/* Team Section */
.team-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

.team-section h2 {
  color: var(--accent-color);
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.team-member {
  background-color: #2a2a2a;
  border-radius: 10px;
  margin: 20px;
  flex: 1 1 40%;
  max-width: 40%;
  overflow: hidden;
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image img {
  width: 100%;
  height: auto;
}

.member-info {
  padding: 20px;
}

.member-info h3 {
  margin-bottom: 15px;
  color: var(--accent-color);
}

.member-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

/* Carousel Section */
.carousel-section {
  padding: 60px 0;
  text-align: center;
}

.carousel-section h2 {
  color: var(--accent-color);
  margin-bottom: 40px;
  font-size: 2rem;
}

.swiper-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.image-container img:hover {
  transform: scale(1.05);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
  top: 60% !important; /* Ensures the buttons are positioned at 50% from the top */
  transition: color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--accent-color-dark);
}

/* Swiper Pagination Bullets */
.swiper-pagination-bullet {
  background: var(--accent-color);
  opacity: 0.7;
  transition: background-color 0.3s, opacity 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
}

.swiper-pagination-bullet:hover {
  background: var(--accent-color-dark);
  opacity: 1;
}

/* Optional: Increased Specificity */
.swiper-container .swiper-pagination .swiper-pagination-bullet {
  background: var(--accent-color);
  opacity: 0.7;
  transition: background-color 0.3s, opacity 0.3s;
}

.swiper-container .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
}

.swiper-container .swiper-pagination .swiper-pagination-bullet:hover {
  background: var(--accent-color-dark);
  opacity: 1;
}

.swiper-container .swiper-button-next,
.swiper-container .swiper-button-prev {
  color: var(--accent-color);
  transition: color 0.3s;
}

.swiper-container .swiper-button-next:hover,
.swiper-container .swiper-button-prev:hover {
  color: var(--accent-color-dark);
}

/* Footer */
footer {
  background-color: var(--footer-bg-color);
  padding: 40px 20px;
  color: var(--text-color);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
footer .topgg-link,
footer .topgg-link .topgg-icon {
    color: #FF3266; /* For text or font-based icons */
    fill: #FF3266;  /* For SVG icons */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 5px 15px;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a.privacy-policy {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  margin: 0 10px;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a svg {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  fill: var(--text-color);
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-copy {
  color: #aaa;
  font-size: 0.9rem;
}

/* Social Icons Colors */
.social-links .fa-discord {
  color: #7289DA;
}

.social-links .fa-patreon {
  color: #E6461A;
}

.social-links .fa-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-links .topgg-link {
  width: 1em;
  height: 1em;
  fill: #FF3266;
}

.social-links .topgg-link:hover {
  fill: var(--accent-color);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.8);
}

.lightbox-modal .close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}

.lightbox-modal .close:hover,
.lightbox-modal .close:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-us-content {
    flex-direction: column-reverse;
  }

  .about-us-content .text,
  .about-us-content .image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .team-members {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    max-width: 90%;
    flex: 1 1 100%;
  }

  .footer-links a {
    margin: 10px 5px;
  }

  /* Adjust Swiper Slides for Mobile */
  .swiper-container {
    max-width: 100%;
  }

  .image-container {
    padding-top: 75%; /* Adjust aspect ratio for mobile if needed */
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }

  .lightbox-modal .close {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }

  #caption {
    width: 90%;
  }
}
