:root {
  --primary: #060037;
  --primary-dark: #100a4c;
  --light: #F0F8FF;
  --dark: #111;
  --gray: #666;
  --max-width: 1100px;
}


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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: auto;
}

/* ================= NAV ================= */
.header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(270deg, var(--primary), black, var(--primary-dark));
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 30s ease infinite;
}

.slide-left {
  animation: slideLeft 1s ease forwards;
}
.slide-right {
  animation: slideRight 1s ease forwards;
}
.slide-up {
  animation: slideUp 1s ease forwards;
}
.slide-down {
  animation: slideDown 1s ease forwards;
}

@keyframes slideLeft {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideRight {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
}


.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.btn-primary {
  background: linear-gradient(270deg, var(--primary), black, var(--primary-dark));
  background-size: 600% 600%;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  animation: gradientFlow 60s ease infinite;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= HERO BUTTONS ================= */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-light, .btn-outline {
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease; 
}
.btn-light {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-light:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}


/* ================= HERO ================= */
.hero {
  background: linear-gradient(270deg, var(--primary-dark), var(--primary), black);
  background-size: 600% 600%;
  color: white;
  padding: 6rem 0;
  text-align: center;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.904);
  animation: gradientFlow 60s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 2.8rem;
  margin: 1rem 0;
}

.hero p {
  max-width: 600px;
  margin: auto;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sectio-paragraph {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.card-paragraph {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.hero-paragraph {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ================= SECTIONS ================= */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
}

/* ================= GRID ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  padding: 2rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card-paragraph {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}


.event-badge {
  display: inline-block;
  background: #DFDDFF;
  color: var(--primary-dark);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.alt-bg {
  background: #C5C4CF66;
}

.event-p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 1rem 0 0 0;
}
/* Profile dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown .dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #010006;
}

#joinBtn {
  display: none;
}

.profile-dropdown {
  display: none;
}

.profile-dropdown.show {
  display: block;
}


.profile-dropdown .dropdown-content {
  display: none; 
  position: absolute;
  right: 0; 
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgb(3, 0, 21);
  border-radius: 6px;
  z-index: 1000;
}

.profile-dropdown .dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease;
}

.profile-dropdown .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.profile-dropdown:hover .dropdown-content {
  display: block;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand h3 {
  margin-bottom: 1rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ================= RESPONSIVE ================= */
/* ================= TABLET RESPONSIVE (≤992px) ================= */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .btn-light,
  .btn-outline {
    padding: 0.8rem 3rem;
  }
}

/* ================= TABLET RESPONSIVE (≤768px) ================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .hero {
    padding: 3rem 1rem; /* slightly reduced */
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .hero-paragraph {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

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

  .btn-light,
  .btn-outline {
    width: 80%;
    text-align: center;
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MOBILE RESPONSIVE (≤480px) ================= */
@media (max-width: 480px) {
  .logo-img {
    width: 50px;
    height: auto;
  }
  .logo {
    font-size: 0.8rem;
    display: none;
  }
  #joinBtn {
    font-size: 0.7rem;
    padding: 0px 5px;
    display:none;
  }

  .hero,
  .about-hero,
  .projects-hero {
    padding: 1.5rem 1rem;
    min-height: auto;
    text-align: center;
  }
  .hero h1,
  .about-hero h1,
  .projects-hero h1 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  .hero p,
  .about-hero p,
  .projects-hero p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  .hero-buttons a,
  .about-hero .hero-buttons a,
  .projects-hero .hero-buttons a {
    font-size: 0.75rem;
    padding: 5px 9px;
    margin: 0.25rem;
    text-align: center;
  }

  .about-card,
  .project-card,
  .home-card {
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
  }
  .about-card h3,
  .project-card h3,
  .home-card h3 {
    font-size: 1rem;
  }
  .about-card p,
  .project-card p,
  .home-card p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }
  .section-header p {
    font-size: 0.85rem;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.95rem;
  }
  .footer-links ul,
  .footer-links ul li {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-links ul li a {
    font-size: 0.8rem;
    text-decoration: none;
  }
  .footer-brand p {
    font-size: 0.8rem;
  }
  .footer-bottom p {
    font-size: 0.7rem;
  }
}
