/* === GENERAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* === BODY & BACKGROUND === */
body {
  background: linear-gradient(135deg, #f8c8dc, #c77dff, #9d4edd);
  background-size: 400% 400%;
  animation: bgFlow 10s infinite alternate;
  color: #fff;
}

/* Animated Gradient Background */
@keyframes bgFlow {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(45, 0, 60, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 10px #ff9de2;
  animation: fadeDown 1s ease-in-out;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: #ff9de2;
  text-shadow: 0 0 10px #ff8ce2;
}

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

nav ul li {
  margin: 0 15px;
}

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

nav ul li a:hover {
  color: #ffb3ef;
  text-shadow: 0 0 8px #ffb3ef;
}

/* === HERO SECTION === */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px;
  animation: fadeIn 1.5s ease;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-text span {
  color: #ffb3ef;
  text-shadow: 0 0 10px #ff8ce2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  background-color: #b5179e;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px #ffb3ef;
}

.btn:hover {
  background-color: #ff5dc8;
  box-shadow: 0 0 20px #ffb3ef, 0 0 40px #d16ba5;
  transform: scale(1.1);
}

/* === ABOUT SECTION === */
.about {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  margin: 50px auto;
  width: 80%;
  box-shadow: 0 0 25px rgba(255, 150, 250, 0.2);
  animation: fadeUp 1.5s ease;
}

.about h2 {
  color: #ffe1ff;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 0 5px rgba(255, 200, 255, 0.4);
}

/* === LAB ACTIVITIES SECTION === */
.activities {
  text-align: center;
  padding: 80px 20px;
}

.activities h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ffe1ff;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 20px;
  width: 250px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(255, 150, 255, 0.2);
  animation: popIn 1.5s ease;
}

.card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.card a {
  color: #fff;
  background: #b5179e;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card a:hover {
  background: #ff5dc8;
  box-shadow: 0 0 15px #ffb3ef;
}

/* === CONTACT SECTION === */
.contact {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  margin: 50px auto;
  width: 70%;
  box-shadow: 0 0 25px rgba(255, 150, 250, 0.2);
  animation: fadeUp 1.5s ease;
}

.contact h2 {
  color: #ffe1ff;
  margin-bottom: 20px;
}

.contact a {
  color: #ffb3ef;
  text-decoration: none;
  transition: 0.3s;
}

.contact a:hover {
  text-shadow: 0 0 8px #ffb3ef;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 25px;
  background: rgba(45, 0, 60, 0.8);
  color: #ffe1ff;
  font-size: 0.9rem;
  box-shadow: 0 0 10px #ffb3ef;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
