@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --text-color: #333333;
  --background-color: #ffffff;
  --hover-color: #666666;
  --accent-color: #ff6b6b;
}

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

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding: 10rem 0 4rem;
}

/* Index.html specific styles */
.hero {
  text-align: center;
  padding: 3rem 0;
}

h1 {
  font-size: 5vw;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--background-color);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #ff4f4f;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 3rem;
}

.feature {
  flex-basis: calc(33.333% - 2rem);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.community-links {
  margin-top: 3rem;
  text-align: center;
}

.community-links h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.community-links ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.community-links li {
  margin: 0.5rem 1rem;
}

.community-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.community-links a:hover {
  color: #ff4f4f;
}

@media (max-width: 768px) {
  h1 {
    font-size: 10vw;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .feature {
    flex-basis: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }

  .cta-button {
    padding: 0.5rem 1rem;
  }

  .community-links ul {
    flex-direction: column;
  }

  .community-links li {
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 6vw;
  }
}

/* Navigation Styles */
header {
  background-color: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: var(--background-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li {
  margin: 0 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
    width: 100%;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 1rem 0;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .logo {
    font-size: 0.9rem;
  }

  nav {
    padding: 0.8rem;
  }
}