@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins';
    background-color: #f4f7ff;
    overflow-x: hidden;
    max-width: 100%;
}


/* ================= NAV BAR ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: #0056b3;

  opacity: 0;
  animation: navDrop 0.8s ease forwards;
}

@keyframes navDrop {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================= NAV BAR ================= */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
}

/* ================= BRAND ================= */
.nav_brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav_logo {
  height: 40px;
  width: auto;
}

.nav_brand span {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ================= DESKTOP LINKS ================= */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links li a:hover {
  opacity: 0.7;
}

/* ================= HAMBURGER ================= */
.hamburger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* ❌ Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* ================= MOBILE MENU ================= */
@media (max-width: 850px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #00008B;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;

    transition: transform 0.45s ease, opacity 0.35s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }
}

h1 {
  padding-top: 190px;
  padding-bottom: 140px;
  text-align: center;
  color: #ffd401;
  background-color: #001270;
  font-size: 2.5rem;
  font-weight: bold;
}

.about h2 {
  margin-top: 20px;
  padding-left: 20px;
  color: #001270;
  font-size: 1.4rem;
  text-align: left;
  font-weight: bold;
}

.about p {
  font-size: 1.0rem;
  text-align: justify;
  padding: 0 20px;
  font-weight: normal;
}

.card-grid {
  display: flex; /* Switch to flex for the mobile "strip" */
  overflow-x: auto; /* Enables horizontal scrolling */
  scroll-snap-type: x mandatory; /* Makes the cards "snap" into place */
  gap: 15px;
  padding: 20px 10px; /* Space for the shadows */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.card-grid::-webkit-scrollbar {
  display: none;
}

.square-card {
  flex: 0 0 85%; /* Each card takes up 85% of the screen width */
  scroll-snap-align: center; /* Snaps card to center when scrolling */
  /* Keep your existing square-card styles here */
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  background-color: #001270;
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* IMPORTANT: Fix for long text in square cards */
.card-text {
  font-size: 0.9rem; /* Slightly smaller to fit inside the square on mobile */
  line-height: 1.4;
  margin-top: 10px;
}

/* Desktop: Restore the Grid */
@media (min-width: 768px) {
  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .square-card {
    flex: none;
    max-width: 350px;
  }
}

.who-section {
  padding: 60px 80px;
  background-color: #000000; 
  text-align: center;
}

.who-container {
    width: 100%;
    margin: auto;
}

.who-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
  position: relative;
}

/* Flexbox Chips Layout */
.who-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.who-chip {
  background: #001270;
  color: #ffffff; /* Accent color from your icons */
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: default;
}

.who-chip:hover {
  background: #00d4ff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.who-footer {
  color: #888;
  font-size: 1.1rem;
  line-height: 1.6;
}

.who-footer span {
  color: #ffffff;
  font-weight: bold;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .who-title {
    font-size: 1.6rem;
  }
  
  .who-chip {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

.why h2 {
  margin-top: 20px;
  padding-left: 20px;
  color: #001270;
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
}

.why p {
  font-size: 1.0rem;
  text-align: justify;
  padding-left: 20px; padding-right: 20px;
  padding-bottom: 50px;
  font-weight: normal;
}

.fouder-image img {
  border-radius: 10%; 
  padding-top: 5%;
  padding-bottom: 5px;
}

.founder-note h3 {
  text-align: center;
  font-size: 1.8rem;
  padding-top: 5px;
}

.founder-note p {
  text-align: justify;
  font-size: 1.0rem;
  padding: 0px 20px;
}

.founder-name {
  font-size: 1.8rem;
  color: #001270;
  padding-top: 0;
  margin-top: 0%;
}

small {
  font-size: 0.9rem;
}


@media (min-width: 600px) {
  .founder-note p {
    font-size: 1.3rem;
    padding-bottom: 2%;
    text-align: center;
  }

  small {
  font-size: 1.2rem;
}

  .why p {
    font-size: 1.3rem;
    text-align: center;
}
  .about p {
    font-size: 1.3rem;
    text-align: center;
  }
}


/* ----- Footer Section ----- */
.footer {
  background-color: #0b0b14;
  padding-left: 3%;
  margin: 0%;
  margin-top: 3%;
}

.footer h2 {
  padding-top: 50px;
  padding-left: 1.5%;
  padding-bottom: 1%;
  color: #FFD700;
  font-size: 1.4rem;
}

.quick-links a {
  color: #eee;
  text-decoration: none;
  padding: 1px 1.5%;
  font-size: 1.2rem;
}

ul {
  list-style: none;
}

i {
  color: #ffffff;
  text-decoration: none;
  padding-left: 1.5%;
  padding-right: 1.3px;
  padding-bottom: 5px;
  font-size: 1.2rem;
}

span {
  color: #ffffff;
}

hr {
  width: 95%;
  margin: auto;
}

.foot {
  color: white;
  text-align: center;
  padding-top: 2%;
  padding-bottom: 1.1%;
}
