/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #f9f9fb;
  scroll-behavior: smooth;
}

/* NAVBAR */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: #111827;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;               /* pin it at the top */
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, height 0.3s ease; /* remove transform transition */
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  top: 0;               /* ensure it stays at top */
  transform: none;      /* prevent any slide-up effect */
}

/* .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: #111827;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, background-color 0.3s ease;
   transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
} */


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 50px;
  border-radius: 10px;
}
.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
  font-weight: 500;
}
.nav-links a:hover {
  color: #38bdf8;
}

/* Burger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Burger menu active animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Navigation */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
.navbar {
        padding: 15px 20px; /* Reduced horizontal padding for a gap on phones */
    }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #111827;
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 20px;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.4s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* HERO */
.hero {
  background: linear-gradient(120deg, #0f172a, #1e293b);
  color: white;
  text-align: center;
  padding: 120px 20px;
}
.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px;
  color: #e2e8f0;
}
.btn {
  background: #38bdf8;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #0284c7;
}

/* HERO RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 80px 15px;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.7rem;
  }
}

/* INFO SECTIONS */
.info-section {
  padding: 80px 10%;
  text-align: center;
}
.info-section h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 20px;
}
.info-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}
.alt-bg {
  background: #eef2ff;
}

/* VALUES */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.value-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.value-card h3 {
  color: #2563eb;
  margin-bottom: 10px;
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.service-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  color: #1e40af;
  margin-bottom: 10px;
}

/* PLATFORM */
.platform-list {
  list-style: none;
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
}
.platform-list li {
  background: #fff;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.platform-list li:hover {
  transform: translateX(4px);
}

/* TEAM */
.team-section {
  padding: 80px 10%;
  background: #f9fafb;
  text-align: center;
}

.team-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #111827;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.team-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.second-row {
  justify-content: center;
}

.team-member {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 25px 15px;
  width: 220px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ✅ Fix for head cropping */
.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain; /* changed from cover */
  object-position: center top; /* keeps head visible */
  margin-bottom: 15px;
  border: 3px solid #3b82f6;
  background-color: #f3f4f6; /* adds subtle bg behind transparent areas */
}

.team-member h3 {
  margin: 8px 0 5px;
  font-size: 1.2rem;
  color: #111827;
}

.team-member p {
  color: #6b7280;
  font-size: 0.95rem;
}

  




/* TEAM RESPONSIVE */
@media (max-width: 900px) {
  .team-member {
    width: 200px;
  }
}
@media (max-width: 768px) {
  .team-section {
    padding: 60px 5%;
  }
  .team-member {
    width: 180px;
  }
  .team-member img {
    width: 100px;
    height: 100px;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .team-row {
    flex-direction: column;
    align-items: center;
  }
  .team-member {
    width: 90%;
    max-width: 280px;
  }
  .team-member img {
    width: 90px;
    height: 90px;
  }
}

/* CONTACT */
.contact-section {
  padding: 80px 10%;
  text-align: center;
}
.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin-inline: auto;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}
.contact-form textarea {
  min-height: 100px;
}
.contact-form button {
  border: none;
  cursor: pointer;
}
.success-banner {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}
.contact-form button {
  padding: 10px 20px;
  background-color: #1976D2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #1565C0;
}

/* FOOTER */
footer {
  background: #111827;
  color: #ddd;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* GLOBAL RESPONSIVE FIXES */
@media (max-width: 992px) {
  .info-section {
    padding: 60px 5%;
  }
  .service-grid,
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .info-section h2 {
    font-size: 1.7rem;
  }
  .info-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 50px 5%;
  }
  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}
