:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --primary-color: #4f46e5;
  --secondary-color: #6b7280;
  --card-bg: #f3f4f6;
  --header-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
  --bg-color: #1e1e1e;
  --text-color: #e5e7eb;
  --primary-color: #6366f1;
  --secondary-color: #9ca3af;
  --card-bg: #2d2d2d;
  --header-bg: rgba(30, 30, 30, 0.85);
}

html {
  scroll-behavior: smooth;
}

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

  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;

  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--primary-color);

  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-color);
}

img {
  max-width: 100%;
  display: block;
}

header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
}
.logo img {
  height: 3rem;
  background-color: #4f46e5;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li {
  margin-top: 0;
  font-size: 1.1rem;
}

nav ul li a {
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  color: var(--text-color);
  border-bottom-color: var(--primary-color);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toggle-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;

  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn:hover {
  background-color: var(--text-color);
  transform: scale(1.05);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 60px 20px;
  background: linear-gradient(to right, var(--primary-color), #9333ea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-height: 80vh;
}
.mai {
  text-align: center;
  background: linear-gradient(to right, var(--primary-color), #9333ea);
}
.mai h1 {
  color: #ffffff;
  padding: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
}

.about {
  padding: 80px 5%;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

.events {
  padding: 80px 5%;
  text-align: center;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.events h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--bg-color);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.teaminfo {
  padding: 80px 5%;
  text-align: center;
}

.teaminfo h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}
.event-card img {
  height: 400px;
  width: 100%;
  margin-bottom: 1rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.member-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.member-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--primary-color);
}

.member-card h4 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.member-card p {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

footer {
  background: var(--bg-color);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--secondary-color);
  transition: background-color 0.3s ease;
}

.social-links a {
  margin: 0 15px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--text-color);
}

.mains {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mains h2 {
  margin-bottom: 1rem;
}
.mains button {
  width: 9rem;
  height: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mains button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.social-links a i {
  font-size: 2.4rem;
}
* {
  box-sizing: border-box;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
  margin-left: 6rem;
  height: 700px;
  width: 700px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: var(--text-color);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}


.next {
  right: 80px;
  border-radius: 3px 0 0 3px;
}


.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
.mySlides img {
  width: 100%;
  padding: 4rem;
  padding-left: 9rem;
  height: 100%;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}


.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
/* 🌟 Chatbot Styles */
.chatbot-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007bff;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 999;
}

.chatbot-icon:hover {
  transform: scale(1.1);
}


.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 320px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chatbot-header {
  background: #007bff;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 16px;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-messages {
  height: 260px;
  overflow-y: auto;
  padding: 15px;
  background: #f7f7f7;
}

.bot-message,
.user-message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.3;
}

.bot-message {
  background: #e9f5ff;
  color: #333;
  align-self: flex-start;
}

.user-message {
  background: #007bff;
  color: white;
  align-self: flex-end;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chatbot-input button {
  background: #007bff;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column; 
    gap: 30px;
    text-align: center;
  }

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

  nav ul {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  nav ul.active {
    max-height: 500px;
    background-color: #1e1e1e;
    border-bottom: 1px solid var(--secondary-color);
  }

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

  nav ul li a {
    display: block;
    padding: 20px;
    border-bottom: 1px solid var(--secondary-color);
  }
  nav ul li a:hover {
    background: var(--card-bg);
  }

  .hamburger {
    display: block;
  }
  .slideshow-container{
    width: 90%;
  }
  .mySlides{
    width: 100%;
    margin: 0px;

  }
  .mySlides img{
    padding: 5px;
    width: 100%;
    margin-left: 0px;
    height: 650px;
  }
  .next,.prev{
    display: none;
  }
}
