/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #F0F7FF;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar - frosted glass style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; /* logo left, menu right */
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Logo area (can include image + text) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;        /* adjust size */
  width: 40px;         /* make width equal to height for a perfect circle */
  border-radius: 50%;  /* makes it round */
  object-fit: cover;   /* ensures image fills the circle without distortion */
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #0044aa;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0077ff;
  transform: scale(1.05);
}

/* General Section Layout */
main {
  flex: 1;
  padding: 5rem 2rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
  color: #0044aa;
}

/* Cards */
.team-grid,
.project-grid,
.involved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member,
.project-card,
.involved-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.team-member:hover,
.project-card:hover,
.involved-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.team-member img,
.project-card img,
.involved-card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  background: linear-gradient(135deg, #0044aa, #0077ff);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #0077ff, #0044aa);
}

/* Contact Info */
.contact-info {
  text-align: center;
  font-size: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #0044aa;
  cursor: pointer;
  z-index: 1100;
}

/* Mobile nav hidden by default */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px; /* below navbar */
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 1.2rem;
    width: 200px;
    padding: 1.5rem;
    display: none; /* hide by default */
    border-radius: 0 0 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex; /* show when active */
  }

  .hamburger {
    display: block;
  }
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 90vh;
  margin: auto;
  overflow: hidden;
  margin-top: 70px; /* navbar height */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 90vh;
  margin: auto;
  overflow: hidden;
  margin-top: 70px; /* navbar height */
}

.slide {
  position: absolute;
  top: 0;
  left: 100%; /* start offscreen */
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  left: 0;
  opacity: 1;
  z-index: 2;
}

.slide.prev {
  left: -100%;
  opacity: 1;
  z-index: 1;
}

/* Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
  z-index: 5;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.6);
}

.prev { left: 20px; }
.next { right: 20px; }


/* ...existing code... */

/* Responsive Slideshow */
@media (max-width: 1024px) {
  .slideshow-container {
    height: 70vh;
    margin-top: 65px;
  }
  .container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .slideshow-container {
    height: 55vh;
    margin-top: 60px;
  }
  .container {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .slideshow-container {
    height: 40vh;
    margin-top: 55px;
  }
  .container {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}

@media (max-width: 400px) {
  .slideshow-container {
    height: 30vh;
    margin-top: 50px;
  }
  .container {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
  }
}




/* Responsive logo text */
@media (max-width: 768px) {
  .logo span {
    font-size: 1.2rem; /* smaller on tablets/medium screens */
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1rem;   /* even smaller on very small phones */
  }
}


/* ========= NEW HOMEPAGE SECTIONS (SEAMLESS STYLE) ========= */

/* Shared wrapper for all about sections */
.about-sections {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Welcome Section */
.welcome {
  background: linear-gradient(135deg, #eaf4ff, #f7fbff);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  animation: fadeInUp 1s ease forwards;
}

.welcome h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #0044aa;
}

.welcome .tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  line-height: 1.7;
}

/* Nested content sections */
.info-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2.5rem 2rem;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.info-card h2 {
  color: #0044aa;
  margin-bottom: 1rem;
}

.info-card p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

/* What We Do cards inside */
.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.what-card {
  background: #f9fcff;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.what-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.what-card h3 {
  color: #0044aa;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.what-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Objectives list styled as cute tags */
.objectives ul {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.objectives li {
  background: #f0f7ff;
  border-left: 5px solid #0044aa;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.objectives li:hover {
  transform: translateX(5px);
}

/* Universal container rule for spacing */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem; /* space left/right */
  box-sizing: border-box;
}


/* About Page Sections */
.about-section {
  padding: 60px 20px;
}

.about-section h2, .team-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0044aa;
}

.about-section h3 {
  margin-top: 25px;
  font-size: 1.3rem;
  color: #0077ff;
}

.about-section p, .about-section ul {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Our Team */
.team-section {
  background: #fff;
  padding: 60px 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}

.team-card p {
  color: #666;
  font-size: 0.95rem;
}


.story {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.story h3 {
  color: #0044aa;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.milestone {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #0044aa;
}

.milestone h4 {
  color: #0077ff;
  margin-bottom: 0.5rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
}


.about .container p {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #333;
}


@keyframes blue-sweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.team-member {
  position: relative;
  overflow: hidden;
  background: #0044aa; /* fallback solid blue */
  color: #fff;
  transition: transform 0.3s;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: blue-sweep 2s infinite;
}

.team-member:hover::before {
  animation-play-state: paused; /* stop animation on hover */
}

.team-member:hover {
  transform: scale(1.03);
}

.project-card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  height: 280px;      /* Set a fixed taller height */
  max-height: none;   /* Remove max-height limit */
  object-fit: cover;
  width: 100%;
}





/* Project Card Light Animation */
.project-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 60%);
  z-index: 0;
  pointer-events: none;
  animation: lightSweep 5s linear infinite;
}

@keyframes lightSweep {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(40%, 40%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(80%, 80%) scale(1);
    opacity: 0.7;
  }
}
