:root {
  --primary: #4169e1;
  --primary-dark: #2952cc;
  --primary-light: #6b8ef4;
  --secondary: #ff6b6b;
  --accent: #ffa500;
  --success: #51cf66;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --light-card: #ffffff;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --dark: #212529;
  --gradient-primary: linear-gradient(135deg, #4169e1 0%, #6b8ef4 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  --gradient-accent: linear-gradient(135deg, #4169e1 0%, #2952cc 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-colored: 0 10px 30px rgba(65, 105, 225, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-brand-new img {
  filter: brightness(0) invert(1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--light-bg);
  color: var(--gray-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.2rem 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(65, 105, 225, 0.1);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-sate {
  color: var(--dark);
}

.brand-web {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--gray-dark) !important;
  font-weight: 500;
  margin: 0 0.8rem;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  transform: translateX(-50%) scaleX(1);
}

.dropdown-menu {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 16px;
  padding: 0.8rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--gray-dark);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(65, 105, 225, 0.08);
  color: var(--primary);
  transform: translateX(5px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3edff 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234169E1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(65, 105, 225, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  animation: heroFloat 25s ease-in-out infinite;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.1) 0%,
    transparent 70%
  );
  filter: blur(80px);
  animation: heroFloat 20s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, 40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--dark);
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out;
}

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 650px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.8;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-colored);
  letter-spacing: 0.5px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(65, 105, 225, 0.35);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.btn-outline-primary:hover::before {
  width: 300%;
  height: 300%;
}

.btn-outline-primary:hover {
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 550px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.15);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
  /* NO transition here — it fights the animation's transform */
}

.floating-card:hover {
  /* Only non-transform properties on hover so animation keeps running */
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.floating-card i {
  font-size: 2.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card span {
  font-weight: 600;
  white-space: nowrap;
  font-size: 1.05rem;
  color: var(--gray-dark);
}

.card-1 {
  top: 8%;
  left: 5%;
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: 0s;
}

.card-2 {
  top: 28%;
  right: 8%;
  animation: floatCardB 7s ease-in-out infinite;
  animation-delay: 1s;
}

.card-3 {
  bottom: 28%;
  left: 0%;
  animation: floatCardB 8s ease-in-out infinite;
  animation-delay: 2.5s;
}

.card-4 {
  bottom: 8%;
  right: 12%;
  animation: floatCard 7s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-14px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-22px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

@keyframes floatCardB {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-18px) rotate(-0.5deg);
  }
  66% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.mouse {
  width: 28px;
  height: 45px;
  border: 2px solid var(--primary);
  border-radius: 25px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

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

/* Sections */
.services-section,
.about-preview-section,
.why-choose-section,
.tech-section {
  padding: 7rem 0;
  position: relative;
  background: var(--white);
}

.services-section {
  background: var(--light-bg);
}

.section-header {
  margin-bottom: 5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 3rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--gray-dark);
  display: block;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  color: var(--gray-dark);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--white);
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(65, 105, 225, 0.1);
  border-radius: 50%;
  margin-top: auto;
  transition: var(--transition);
  color: var(--primary);
}

.service-card:hover .service-arrow {
  background: var(--primary);
  transform: translateX(8px);
  color: var(--white);
}

/* About Preview */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  box-shadow: var(--shadow-xl);
  border-radius: 24px;
  border: 1px solid rgba(65, 105, 225, 0.1);
}

.about-stats {
  position: absolute;
  bottom: -40px;
  right: -40px;
  background: var(--gradient-primary);
  padding: 2.5rem;
  border-radius: 24px;
  display: flex;
  gap: 3rem;
  box-shadow: var(--shadow-xl);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.stat-item p {
  font-size: 1rem;
  margin: 0;
  color: var(--white);
  font-weight: 500;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(65, 105, 225, 0.1) 0%,
    rgba(107, 142, 244, 0.1) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 1rem;
  margin: 0;
  line-height: 1.8;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 20px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tech-item img {
  width: 55px;
  height: 55px;
  transition: var(--transition);
}

.tech-item:hover img {
  transform: scale(1.1);
}

.tech-item span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-dark);
  transition: var(--transition);
}

.tech-item:hover span {
  color: var(--primary);
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  position: relative;
  background: linear-gradient(135deg, #4169e1 0%, #6b8ef4 100%);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
}

.cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
  color: var(--white);
}

.cta-text {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
  border: none;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light-gray);
  padding: 5rem 0 2rem;
}

.footer-brand h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

/* .brand-sate {
    color: var(--white);
} */

.brand-web {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(65, 105, 225, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray);
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================================
   RESPONSIVE DESIGN - COMPLETE OVERHAUL
   Breakpoints: xl(1200+) | lg(992-1199) | md(768-991) | sm(576-767) | xs(<576)
   ============================================================ */

/* ---- LARGE TABLETS / SMALL DESKTOPS (992px - 1199px) ---- */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .cta-title {
    font-size: 2.8rem;
  }

  .hero-visual {
    height: 500px;
  }

  .about-stats {
    right: -20px;
    gap: 2rem;
  }
}

/* ---- TABLETS (768px - 991px) ---- */
@media (max-width: 991px) {
  /* Navbar */
  .navbar {
    padding: 1rem 0;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(65, 105, 225, 0.12);
  }

  .nav-link {
    margin: 0.3rem 0;
    padding: 0.7rem 1rem !important;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: rgba(65, 105, 225, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .dropdown-menu {
    box-shadow: none;
    border: none;
    background: rgba(65, 105, 225, 0.04);
    margin-top: 0;
    padding: 0.5rem;
    border-radius: 12px;
  }

  /* Hero */
  .hero-section {
    padding: 7rem 0 5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: -1.2px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-visual {
    height: 420px;
    margin-top: 3rem;
  }

  .floating-card {
    padding: 1.6rem 1.8rem;
    gap: 0.9rem;
  }

  .floating-card i {
    font-size: 1.8rem;
  }

  .floating-card span {
    font-size: 0.95rem;
  }

  .card-1 {
    top: 5%;
    left: 2%;
  }
  .card-2 {
    top: 28%;
    right: 2%;
  }
  .card-3 {
    bottom: 28%;
    left: 0%;
  }
  .card-4 {
    bottom: 5%;
    right: 5%;
  }

  /* Sections */
  .services-section,
  .about-preview-section,
  .why-choose-section,
  .tech-section {
    padding: 5rem 0;
  }

  .section-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  /* About Stats */
  .about-stats {
    position: static;
    margin-top: 2.5rem;
    justify-content: center;
    border-radius: 20px;
    gap: 2.5rem;
    padding: 2rem;
  }

  /* CTA */
  .cta-section {
    padding: 6rem 0;
  }

  .cta-title {
    font-size: 2.4rem;
  }

  /* Page Hero */
  .page-hero {
    padding: 8rem 0 4rem;
  }

  .page-title {
    font-size: 2.8rem;
    letter-spacing: -1.5px;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  /* Service / Feature Cards */
  .service-card {
    padding: 2.2rem;
  }

  /* Map */
  .map-container {
    height: 380px;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-brand h3 {
    font-size: 1.7rem;
  }

  /* Story section */
  .story-section {
    padding: 5rem 0;
  }
}

/* ---- MOBILE LANDSCAPE / LARGE PHONES (576px - 767px) ---- */
@media (max-width: 767px) {
  /* Hero */
  .hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 2rem;
    max-width: 100%;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Hero Visual - rearrange floating cards for mobile */
  .hero-visual {
    height: 300px;
    margin-top: 3rem;
    position: relative;
  }

  .floating-card {
    padding: 0.85rem 1.1rem;
    gap: 0.6rem;
    border-radius: 14px;
  }

  .floating-card i {
    font-size: 1.4rem;
  }

  .floating-card span {
    font-size: 0.82rem;
  }

  /* 2x2 grid: top-left, top-right, bottom-left, bottom-right */
  .card-1 {
    top: 8%;
    left: 3%;
    animation-duration: 6s;
  }
  .card-2 {
    top: 8%;
    right: 3%;
    animation-duration: 7s;
  }
  .card-3 {
    bottom: 8%;
    left: 3%;
    animation-duration: 8s;
  }
  .card-4 {
    bottom: 8%;
    right: 3%;
    animation-duration: 6.5s;
  }

  /* Hide scroll indicator on mobile */
  .scroll-indicator {
    display: none;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
    letter-spacing: -0.8px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Services */
  .services-section,
  .about-preview-section,
  .why-choose-section,
  .tech-section {
    padding: 4rem 0;
  }

  .service-card {
    padding: 2rem 1.8rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  /* About stats - stack vertically */
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
    padding: 1.8rem;
  }

  .stat-item {
    text-align: center;
    min-width: 100px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  /* Tech grid - smaller items on mobile */
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.2rem;
  }

  .tech-item {
    padding: 1.2rem 0.8rem;
    gap: 0.8rem;
  }

  .tech-item img {
    width: 40px;
    height: 40px;
  }

  .tech-item span {
    font-size: 0.85rem;
  }

  /* CTA */
  .cta-section {
    padding: 5rem 0;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
    letter-spacing: -0.8px;
  }

  .cta-text {
    font-size: 1.1rem;
  }

  .btn-light {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Page Hero */
  .page-hero {
    padding: 7rem 0 3.5rem;
    text-align: center;
  }

  .page-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  /* Map */
  .map-container {
    height: 280px;
    border-radius: 16px;
  }

  /* Contact cards */
  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  /* Mission/Vision cards */
  .mission-vision-card {
    padding: 2.5rem 1.8rem;
  }

  .mission-vision-card h3 {
    font-size: 1.6rem;
  }

  /* Story section */
  .story-section {
    padding: 4rem 0;
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 2rem;
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 1.6rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  /* Feature / Expertise / Values / Process cards */
  .feature-card,
  .expertise-card,
  .values-card,
  .process-card {
    padding: 2rem 1.5rem;
  }
}

/* ---- SMALL PHONES (< 576px) ---- */
@media (max-width: 575px) {
  /* Global spacing */
  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  /* Hero */
  .hero-section {
    padding: 5.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* Floating cards - smaller */
  .hero-visual {
    height: 260px;
    margin-top: 2.5rem;
  }

  .floating-card {
    padding: 1.6rem 1.8rem;
    gap: 0.6rem;
    border-radius: 12px;
  }

  .floating-card i {
    font-size: 1.25rem;
  }

  .floating-card span {
    font-size: 0.78rem;
  }

  .card-1 {
    top: 8%;
    left: 2%;
    animation-duration: 6s;
  }
  .card-2 {
    top: 8%;
    right: 2%;
    animation-duration: 7s;
  }
  .card-3 {
    bottom: 8%;
    left: 2%;
    animation-duration: 8s;
  }
  .card-4 {
    bottom: 8%;
    right: 2%;
    animation-duration: 6.5s;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Sections padding */
  .services-section,
  .about-preview-section,
  .why-choose-section,
  .tech-section {
    padding: 3.5rem 0;
  }

  /* Service cards */
  .service-card {
    padding: 1.8rem 1.5rem;
    border-radius: 18px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-icon,
  .feature-icon,
  .expertise-icon,
  .contact-icon,
  .values-icon {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  /* About stats - vertical stacking */
  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .stat-item p {
    font-size: 0.9rem;
  }

  /* Tech grid - 2 per row on small screens */
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .tech-item {
    padding: 1rem 0.6rem;
    gap: 0.6rem;
    border-radius: 14px;
  }

  .tech-item img {
    width: 32px;
    height: 32px;
  }

  .tech-item span {
    font-size: 0.75rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 4rem 0;
  }

  .cta-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .cta-text {
    font-size: 1rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-outline-primary,
  .btn-light {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
  }

  /* Page Hero */
  .page-hero {
    padding: 6.5rem 0 3rem;
  }

  .page-title {
    font-size: 1.9rem;
    letter-spacing: -0.5px;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  /* Contact cards */
  .contact-info-card {
    padding: 1.8rem 1.2rem;
    border-radius: 18px;
  }

  .contact-info-card h3 {
    font-size: 1.2rem;
  }

  /* Map */
  .map-container {
    height: 240px;
    border-radius: 14px;
  }

  /* Mission/Vision */
  .mission-vision-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }

  .mission-vision-card h3 {
    font-size: 1.4rem;
  }

  .mv-icon {
    width: 75px;
    height: 75px;
    font-size: 2.2rem;
  }

  /* Values / Process / Expertise */
  .values-card,
  .process-card,
  .expertise-card,
  .feature-card {
    padding: 1.8rem 1.5rem;
    border-radius: 18px;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 1.5rem;
  }

  .footer-brand p {
    font-size: 0.9rem;
  }

  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .social-links {
    justify-content: center;
    gap: 1rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ---- VERY SMALL PHONES (< 400px) ---- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hero-visual {
    height: 230px;
  }

  .floating-card {
    padding: 1.6rem 1.8rem;
  }

  .floating-card i {
    font-size: 1.1rem;
  }

  .floating-card span {
    font-size: 0.7rem;
  }

  .card-1 {
    top: 5%;
    left: 1%;
  }
  .card-2 {
    top: 5%;
    right: 1%;
  }
  .card-3 {
    bottom: 5%;
    left: 1%;
  }
  .card-4 {
    bottom: 5%;
    right: 1%;
  }
}

/* ---- NAVBAR TOGGLER BUTTON FIX ---- */
.navbar-toggler {
  border: 2px solid rgba(65, 105, 225, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: rgba(65, 105, 225, 0.05);
  transition: var(--transition);
}

.navbar-toggler:hover {
  background: rgba(65, 105, 225, 0.12);
  border-color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2865, 105, 225, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- TOUCH DEVICE HOVER FIX ---- */
@media (hover: none) {
  .service-card:hover,
  .feature-card:hover,
  .tech-item:hover,
  .expertise-card:hover,
  .values-card:hover,
  .process-card:hover,
  .contact-info-card:hover,
  .mission-vision-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: rgba(65, 105, 225, 0.1);
  }

  .btn-primary:hover,
  .btn-outline-primary:hover,
  .btn-light:hover {
    transform: none;
  }
  /* floating-card hover is safe — it doesn't use transform on hover */
}

/* ---- ACCESSIBILITY ---- */
@media (prefers-reduced-motion: reduce) {
  /* Only pause decorative background animations, NOT the floating cards */
  .hero-gradient {
    animation: none;
  }
  .scroll-indicator {
    animation: none;
  }
}

/* Page Specific */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3edff 100%);
}

.page-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -2px;
  color: var(--dark);
}

.page-subtitle {
  font-size: 1.3rem;
  color: var(--gray);
  line-height: 1.8;
}

.expertise-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.expertise-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  color: var(--white);
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
  transform: scale(1.1) rotate(-5deg);
}

.expertise-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.expertise-card p {
  color: var(--gray);
  line-height: 1.8;
}

.process-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  box-shadow: var(--shadow-colored);
}

.process-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.process-card p {
  color: var(--gray);
  line-height: 1.8;
}

/* Contact Page */
.contact-info-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  color: var(--white);
  box-shadow: var(--shadow-colored);
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.contact-info-card p,
.contact-info-card a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.8;
}

.contact-info-card a:hover {
  color: var(--primary);
}

.map-container {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(65, 105, 225, 0.1);
  height: 450px;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* About Page */
.story-section {
  background: var(--white);
  padding: 7rem 0;
}

.story-section img {
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(65, 105, 225, 0.1);
}

.values-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.values-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.values-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(65, 105, 225, 0.1) 0%,
    rgba(107, 142, 244, 0.1) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  color: var(--primary);
  transition: var(--transition);
}

.values-card:hover .values-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
}

.values-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.values-card p {
  color: var(--gray);
  line-height: 1.8;
}

.mission-vision-card {
  background: var(--white);
  border: 1px solid rgba(65, 105, 225, 0.1);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mission-vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.mv-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  font-size: 2.8rem;
  color: var(--white);
  box-shadow: var(--shadow-colored);
}

.mission-vision-card h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.8rem;
  color: var(--dark);
}

.mission-vision-card p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.9;
}
