:root {
  --dark-color: #1e293b;
  --primary-color: #2563eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --slate: #0b0c0d;
  --light-bg: #f8fafc55;
  --accent: #f59e0b;
  --white: #ffffff;
  --shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}
body {
  background-color: var(--light-bg);
  color: var(--slate);
  overflow-x: hidden;
}

.logo img {
  height: 45px; /* Adjust this value to make your logo bigger or smaller */
  width: auto; /* Maintains aspect ratio */
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05); /* Subtle pop effect on hover */
}

/* Ensure the logo container doesn't have extra padding */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
}
/* --- NAVIGATION --- */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.top-bar {
  background: var(--dark);
  color: white;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
}
.logo span {
  color: var(--primary);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--dark);
}

/* --- DROPDOWN ENHANCEMENTS --- */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: var(--shadow);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  list-style: none;
  padding: 15px 0;
  border: 1px solid #eee;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  position: relative;
}
.dropdown-menu li a {
  padding: 10px 25px;
  display: block;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s;
}
.dropdown-menu li a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* Nested Sub-menus */
.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  list-style: none;
  padding: 10px 0;
  border: 1px solid #eee;
}
.dropdown-menu li:hover .submenu {
  opacity: 1;
  visibility: visible;
}

/* --- MODERN HERO --- */
.about-hero {
    height: 70vh;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0), rgba(37, 100, 235, 0)), url('https://ik.imagekit.io/motionmax25/background/bg2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.about-hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 15px;
}
.breadcrumb {
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* --- GLASS OVERLAP STATS --- */
.stats-overlap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 80%;
  margin: -60px auto 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
  text-align: center;
  border-right: 1px solid #e2e8f0;
}
.stat-item:last-child {
  border: none;
}
.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
}
.stat-item p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

/* --- CONTENT SECTION --- */
section {
  padding: 100px 10%;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-stack {
  position: relative;
}
.image-stack img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.8rem;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 25px;
}

/* --- MISSION & VISION --- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.mv-card {
  padding: 50px;
  border-radius: 30px;
  transition: 0.4s;
  background: var(--white);
  border: 1px solid #e2e8f0;
}
.mv-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: #f1f7ff;
}
.mv-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 25px;
}

/* --- WHY CHOOSE US --- */
.why-us-section {
  background: var(--dark);
  color: white;
  border-radius: 50px;
  margin: 0 2%;
  padding: 80px 5%;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.why-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.why-item:hover {
  background: var(--primary);
  transform: translateY(-5px);
  border-color: var(--primary);
}
.why-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}
.why-item h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.why-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* --- MODERN SERVICES --- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid #e2e8f0;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: 0.3s;
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-card:hover {
  box-shadow: var(--shadow);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 100px 10% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 15px;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}
.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.newsletter {
  display: flex;
  margin-top: 20px;
}
.newsletter input {
  padding: 15px;
  border-radius: 12px 0 0 12px;
  border: none;
  background: #1e293b;
  color: white;
  width: 100%;
}
.newsletter button {
  padding: 15px 25px;
  border-radius: 0 12px 12px 0;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* --- UPDATED RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
  section {
    padding: 80px 5%;
  }
  .grid-2 {
    gap: 40px;
  }
  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .grid-2,
  .mv-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .about-hero h1 {
    font-size: 3rem;
  }
  .image-stack {
    max-width: 600px;
    margin: 0 auto;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .footer-grid {
    text-align: center;
  }
  .footer-col div {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    max-height: 100vh;
    padding: 20px 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    padding: 15px 5%;
    width: 100%;
    display: block;
    border-bottom: 1px solid #f1f5f9;
  }
  .dropdown-menu,
  .submenu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none; /* Hidden by default, toggled by JS */
    transform: none;
    box-shadow: none;
    background: #f1f5f9; /* Slightly darker background for depth */
    padding: 0;
    border: none;
  }
  .dropdown.active > .dropdown-menu {
    display: block;
  }
  .submenu li a {
    padding-left: 60px !important;
  }
  .dropdown.active-mobile > .dropdown-menu,
  .dropdown.active-mobile > .dropdown-menu {
    display: block;
  }

  /* Rotate icons when menu is open */
  .active-mobile > a i {
    transform: rotate(180deg);
  }

  .about-hero {
    height: 50vh;
  }
  .about-hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .experience-badge {
    padding: 20px;
    bottom: -10px;
    right: -10px;
  }
  .experience-badge h2 {
    font-size: 1.8rem !important;
  }

  .why-us-section {
    border-radius: 25px;
  }
}

@media (max-width: 480px) {
  .stats-overlap {
    width: 95%;
    margin-top: -40px;
  }
  .newsletter {
    flex-direction: column;
  }
  .newsletter input,
  .newsletter button {
    border-radius: 12px;
  }
  .newsletter button {
    margin-top: 10px;
  }
}
