/* ==== TOP BAR ==== */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeDown 1s ease;
}

.top-bar img {
  height: 55px;
  filter: drop-shadow(0 0 10px rgba(0, 140, 255, 0.3));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.top-bar img:hover {
  transform: scale(1.18) rotate(4deg);
  filter: drop-shadow(0 0 18px rgba(0, 140, 255, 0.6));
}

/* About Section */
.about {
  padding: 80px 10%;
  background: linear-gradient(135deg, #0d0d1a, #12122b);
}

/* Container */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Each Card */
.about-card {
  display: flex;
  align-items: center;
  gap: 50px;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.about-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Reverse layout */
.about-card.reverse {
  flex-direction: row-reverse;
}

/* Image Styling */
.about-img {
  width: 420px;
  max-width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
  animation: float 4s ease-in-out infinite;
}

/* Hover Glow Effect */
.about-card:hover .about-img {
  transform: scale(1.07);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.5);
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Content */
.about-content {
  flex: 1;
}
.about-content h3 {
  font-size: 2rem;
  color: #2ad7a9;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s ease;
}
.about-content p {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e8bf43;
  opacity: 0;
  transform: translateX(40px);
  transition: all 1.2s ease;
}

.about-card.show .about-content h3,
.about-card.show .about-content p {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
  .about-card {
    flex-direction: column !important;
    text-align: center;
  }
  .about-img {
    width: 100%;
  }
  .about-content h3, .about-content p {
    text-align: center;
  }
}

/* ==== RESPONSIVE DESIGN ==== */

/* Tablets & small laptops */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 70px 40px;
  }
  .hero-text {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .hero-images {
    grid-template-columns: repeat(2, 160px);
    gap: 20px;
  }
  .hero-images img {
    width: 160px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }

  .navbar .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-text h3 {
    font-size: 1.1rem;
  }
  .hero-images {
    grid-template-columns: repeat(1, 200px);
    gap: 20px;
  }
  .hero-images img {
    width: 200px;
  }

  .partners-logos {
    gap: 30px;
  }
  .partners-logos img {
    height: 35px;
  }

  .about {
    padding: 50px 20px;
  }
  .about-content h3 {
    font-size: 1.6rem;
  }
  .about-content p {
    font-size: 1rem;
  }

  .footer-content {
    gap: 15px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* Extra small devices (phones < 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h3 {
    font-size: 1rem;
  }
  .hero-images img {
    width: 160px;
  }
  .about-img {
    width: 100%;
  }
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar .nav-links {
    flex-direction: column;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  .navbar .nav-links.open {
    max-height: 500px; /* enough space for links */
  }
}

/* ==== PARTNERS ==== */
.partners {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
  animation: fadeUp 1.2s ease;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #111;
  font-weight: bold;
  text-shadow: 0 0 12px rgba(0,140,255,0.2);
}

.partners h2 span {
  color: #00c2b7;
}

.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
}

.partners-logos img {
  height: 45px;
  filter: grayscale(100%) brightness(0.6);
  transition: 0.4s;
}

.partners-logos img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(0,140,255,0.4);
  border-radius: 8px;
}

/* ====== Footer ====== */
.footer {
  background: rgb(2, 23, 40);
  color: #ffffff;
  text-align: center;
  padding: 20px 15px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer-nav li a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #007aff;
}

.footer-logo img {
  width: 95px;
  height: auto;
}

.footer-logo p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: bold;
}

.footer-contact p {
  margin: 0;
  font-size: 11px;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgb(255, 253, 253);
  margin-top: 10px;
  padding-top: 6px;
  font-size: 10px;
  color: #ffffff;
}

/* ==== NAVBAR ==== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  z-index: 1000;
  animation: fadeDown 1.2s ease;
}

.navbar .nav-links {
  list-style: none;
  display: inline-flex;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007aff, #00c2b7);
  transition: width 0.35s ease;
}

.navbar a:hover {
  color: #d07826;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar .has-dropdown{
  position: relative;
}

.navbar .has-dropdown > .dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/*Submenu  Panel*/
.navbar .dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 260px;
  padding: 12px;
  background: #ffffff; /* solid white background */
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  list-style: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}

/* Dropdown links */
.navbar .dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #0d1b4c; /* dark blue text */
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
}

/* Hover effect */
.navbar .dropdown li a:hover {
  background: #0d1b4c;  /* dark blue hover bg */
  color: #ffffff;       /* white text on hover */
  transform: translateX(6px);
}


.navbar .dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #780b0b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.navbar .dropdown li a:hover,
.navbar .dropdown li a:focus {
  background: rgba(0,255,224,0.12);
  color: #000000;
  transform: translateX(3px);
}

/* show on hover (desktops) */
@media (hover:hover) {
  .navbar .has-dropdown:hover > .dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* keyboard focus support */
.navbar .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* open state (mobile via JS) */
.navbar .has-dropdown.open > .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* tweak for small screens: make submenu full-width under link */
@media (max-width: 900px) {
  .navbar .dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 10px;
    transform: none;
    opacity: 1;           /* visible when .open is added */
    pointer-events: auto; /* controlled by .open */
    display: none;        /* hide by default on mobile */
  }
  .navbar .has-dropdown.open > .dropdown {
    display: block;
  }
}

.pcylink {
    color: rgb(255, 255, 255);
}


