/* ================= GENERAL STYLES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(120deg, #e0f7ff, #ffffff, #e0f7ff);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  color: #222;
  line-height: 1.6;
}

h1,
h2,
h3 {
  text-align: center;
  color: #004aad;
}

/* ================= STICKY NAVBAR ================= */
/* Added sticky navigation bar with smooth transitions */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar-logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #0066cc;
}

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

.nav-link {
  text-decoration: none;
  color: #004aad;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #0066cc;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066cc;
  transition: width 0.3s ease;
}

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

/* Mobile navbar */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 0.9em;
  }
}

/* ================= HEADER / BANNER ================= */
.banner {
  background: linear-gradient(135deg, #0066cc, #00aaff, #ccefff);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  color: white;
  padding: 120px 20px 80px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 60px;
}

.banner-content {
  animation: fadeInUp 1s ease-out;
}

/* Added floating text animation to banner heading */
.floating-text {
  font-size: 3em;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 1.2em;
  animation: fadeInUp 1.2s ease-out;
}

/* ================= ABOUT SECTION ================= */
.about {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* ================= MEMBERS SECTION ================= */
.members {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.members h2 {
  animation: fadeInDown 0.8s ease-out;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced member cards with improved hover effects and animations */
.member-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideUp 0.6s ease-out backwards;
  border: 2px solid transparent;
}

.member-card:nth-child(1) {
  animation-delay: 0.1s;
}
.member-card:nth-child(2) {
  animation-delay: 0.2s;
}
.member-card:nth-child(3) {
  animation-delay: 0.3s;
}
.member-card:nth-child(4) {
  animation-delay: 0.4s;
}
.member-card:nth-child(5) {
  animation-delay: 0.5s;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 102, 204, 0.25);
  border-color: #0066cc;
}

.member-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.member-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  border: 3px solid #0066cc;
}

.member-card:hover img {
  transform: rotate(5deg) scale(1.05);
}

/* Added role icons next to member titles */
.member-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 1.5em;
  background: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.member-role {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #007bff;
  cursor: pointer;
  font-size: 0.9em;
}

.btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Added gradient button variant for CTAs */
.btn-gradient {
  background: linear-gradient(135deg, #0066cc, #00aaff);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #0052a3, #0088cc);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* ================= PROJECT SECTION ================= */
.project {
  padding: 60px 20px;
  text-align: center;
}

/* Added project box with border and gradient background */
.project-box {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 170, 255, 0.05));
  border: 2px solid rgba(0, 102, 204, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.project-box p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

/* ================= GALLERY SECTION ================= */
.gallery {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.gallery h2 {
  animation: fadeInDown 0.8s ease-out;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Added gallery items with hover zoom and overlay effects */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: scaleIn 0.6s ease-out backwards;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #0066cc;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1em;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ================= CONTACT SECTION ================= */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  animation: fadeInDown 0.8s ease-out;
}

.contact-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin-inline: auto;
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced form inputs with focus effects and smooth transitions */
.contact input,
.contact textarea {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 1em;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
  background-color: #f0f8ff;
}

.contact button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* ================= FOOTER ================= */
footer {
  background: linear-gradient(135deg, #007bff, #66ccff, #ccefff);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Added heart icon glow effect */
.heart {
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
}

/* ================= ANIMATIONS ================= */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Added new animations for modern effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
}

/* ================= RESPONSIVE DESIGN ================= */
/* Enhanced responsive design for mobile and tablet */
@media (max-width: 768px) {
  .banner {
    padding: 100px 20px 60px;
  }

  .floating-text {
    font-size: 2em;
  }

  .banner-subtitle {
    font-size: 1em;
  }

  .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .contact-form {
    max-width: 100%;
  }

  .nav-menu {
    gap: 15px;
  }

  .nav-link {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .banner {
    padding: 80px 15px 50px;
  }

  .floating-text {
    font-size: 1.5em;
  }

  .banner-subtitle {
    font-size: 0.9em;
  }

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

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

  h1,
  h2,
  h3 {
    font-size: 1.3em;
  }

  .about,
  .members,
  .project,
  .gallery,
  .contact {
    padding: 40px 15px;
  }
}
