/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background: #B7A3E3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
  transition: background 0.5s ease-in-out;
  font-family: "Roboto", "Segoe UI", sans-serif;
}


.menu-toggle {
  display: none;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 29, 71, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: "Roboto", sans-serif; /* ✅ Navbar uses Roboto */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 55px;
  border-radius: 50%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.1);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: linear-gradient(90deg, #df76ac, #ec4899);
  transform: scale(1.05);
}

/* Main Section */
.about-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 80px 40px;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ About Header */
.about-header h2,
.author-text h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 34px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #f472b6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Author Section */
.author-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 5px;
  background: rgba(45, 29, 71, 0.85);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  width: 100%;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  text-align: left;
}

.author-content:hover {
  transform: scale(1.05);
}

.author-image {
  flex: 1;
  text-align: center;
}

.author-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.author-image img:hover {
  transform: scale(1.1);
}

/* ✅ Author Text */
.author-text {
  flex: 2;
  max-width: 600px;
  color: white;
  padding: 20px;
  border-radius: 8px;
}

/* ✅ Paragraphs use Merriweather */
.author-text p {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: white;
  margin-bottom: 16px;
}

/* Middle Content */
.middle-content {
  background-color: rgba(45, 29, 71, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  flex-grow: 1;
}

/* Image Gallery */
.image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
  max-width: 1200px;
  width: 100%;
  padding: 40px 0;
  border-radius: 12px;
}

.image-item {
  flex: 1 1 200px;
  text-align: center;
}

.image-item img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.1);
}

.arrow {
  color: #f472b6;
  font-size: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.arrow:hover {
  transform: translateX(5px);
}

/* Footer */
footer {
  background: linear-gradient(90deg, #f472b6, #ec4899);
  color: rgba(45, 29, 71, 0.9);
  font-size: 14px;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  backdrop-filter: blur(5px);
  font-family: "Roboto", sans-serif;
}

footer a {
  color: rgba(45, 29, 71, 0.9);
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover {
  transform: scale(1.2);
  color: #f472b6;
}

footer p {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Image Popup Modal ===== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(45, 29, 71, 0.9);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  animation: zoomIn 0.5s ease;
}

.close {
  position: absolute;
  top: 25px;
  right: 45px;
  color: #fff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #f472b6;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



@media (max-width: 1024px) {
  .navbar {
    padding: 12px 30px;
  }

  .logo {
    height: 50px;
  }

  .nav-links {
    gap: 20px;
  }

  .about-section {
    padding: 70px 30px;
  }

  .author-content {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery {
    flex-wrap: wrap;
    gap: 15px;
  }
}