:root {
  /* Light Theme Variables - Premium Emerald & Slate */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #10b981;
  /* Matches Green Logo */
  --accent-secondary: #059669;
  --accent-gold: #c5a059;
  /* Sophisticated Muted Gold */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.12); /* Slightly stronger for better definition */
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #020617;
  /* Deeper Midnight */
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #10b981;
  --accent-secondary: #34d399;
  --accent-gold: #fbbf24;
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 10px 20px -10px rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(2, 6, 23, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100vh;
  position: relative;
}

.hero-mobile-img {
  display: none;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: clamp(0.75rem, 3vw, 1.25rem) 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 5%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}



.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--accent-primary);
  transition: var(--transition);
  padding: 0;
  background: white;
  flex-shrink: 0;
}

.logo-icon-wrapper img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.logo:hover .logo-icon-wrapper {
  transform: rotate(5deg) scale(1.05);
  border-color: #22c55e;
  /* Match the green in the logo on hover */
}

.logo:hover .logo-text {
  opacity: 0.8;
}

.navbar.scrolled .logo-icon-wrapper {
  width: 38px;
  height: 38px;
}

.navbar.scrolled .logo-text {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.menu-btn {
  display: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: 1rem;
  /* Spacing in desktop */
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 10% 5rem;
  background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(197, 160, 89, 0.05), transparent 40%);
}

.hero-content {
  max-width: 850px;
}

.hero-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-intro {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-name {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  text-align: left;
}

.hero-tagline {
  font-size: 1.75rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin: 0 auto 2rem;
  border-left: 5px solid var(--accent-primary);
  padding-left: 1.5rem;
  line-height: 1.2;
  text-align: left;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.2rem, 4vw, 2rem);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

.hero-image-container {
  position: relative;
  width: 550px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--card-shadow);
  animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Achievement Badges */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.achievement-badge:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.star-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
  }
}

.achievement-badge h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.achievement-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.company-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* Sections General */
section {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 8%);
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Maintain compact spacing for testimonials as requested */
.testimonials .section-title {
  margin-bottom: 1rem;
}

.testimonials .section-title .underline {
  margin: 1rem auto 0.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* Reduced from 1rem */
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  margin: 1.5rem auto 0; /* Centered with more space above */
  border-radius: 2px;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: var(--bg-secondary);
}

.about-content {
  flex: 1;
}

.about-content p {
  text-align: justify;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-primary);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 3rem 2rem;
  border-radius: 24px;
  background: var(--bg-primary);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--glass-border);
}

.service-card:hover {
  transform: translateY(-10px);
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 10%;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stats {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1), transparent 40%);
  pointer-events: none;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-primary);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-size: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.stat-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-info p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 10%;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .testimonials {
  background: linear-gradient(to bottom, #0f172a, #020617);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Forced 5 columns */
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
}

.quote-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.author-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.stars {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

/* Testimonials Marquee */
.testimonials {
  padding: 5rem 0; /* Unified with other sections */
  overflow: hidden;
}

.testimonials-grid {
  width: 100%;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 2rem;
  animation: marquee 40s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  width: 350px;
  padding: 2.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

[data-theme="light"] .testimonial-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  /* Stronger shadow for light theme */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Contact Section */
.contact {
  background: var(--bg-tertiary);
  padding: 3.5rem 10% 5rem; /* Reduced top gap a bit */
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-primary);
  padding: clamp(1rem, 5vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden; /* Contain everything */
}

.contact-info {
  width: 100%;
  max-width: 100%;
}

.contact-info h3 {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  margin-bottom: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* Critical for zooming */
}

.contact-item.align-start {
  align-items: flex-start;
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-item.align-start .contact-icon {
  margin-top: 2px;
}

.contact-text {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--text-primary);
  word-break: break-word;
  flex: 1;
  min-width: 0; /* Removed fixed min-width to prevent overflow */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
  max-width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: clamp(0.6rem, 2vw, 0.85rem) clamp(0.8rem, 3vw, 1.25rem);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* Footer */
footer {
  padding: 2.5rem 10% 1.5rem;
  /* Reduced padding */
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-content {
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE UI OVERHAUL (PERFECTED)
   ========================================================================== */

@media (max-width: 1024px) {
  section {
    padding: 3.5rem 6%;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {

  /* Global Resets */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  section {
    padding: 3rem 1.5rem;
  }

  /* Navbar */
  .navbar {
    padding: 1rem 1.5rem;
    height: 70px;
  }

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

  .logo-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  /* Hero Section */
  .hero {
    padding: 100px 1.5rem 3rem;
    text-align: center;
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-intro {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .hero-name {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-tagline {
    border-left: none;
    border-top: 3px solid var(--accent-primary);
    padding: 1rem 0 0;
    margin: 0.75rem auto 1.5rem;
    font-size: 1.4rem;
    max-width: 90%;
    text-align: center;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
    /* Changed from justify to center as requested */
  }

  .hero-mobile-img {
    display: block;
    width: 200px;
    height: 200px;
    margin: 1rem auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--card-shadow);
  }

  .hero-mobile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-hidden {
    display: none !important;
  }

  .hero-image-container {
    display: none;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
    justify-content: center;
  }

  /* Stats Section */
  .stats {
    padding: 2rem 1rem;
    grid-template-columns: repeat(3, 1fr); /* Row format */
    gap: 0.5rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .stat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .stat-info p {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }

  /* About Section */
  .about {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem;
  }

  .about-badge {
    right: 0;
    bottom: -10px;
    padding: 1.25rem;
  }

  .about-badge span {
    font-size: 1.5rem;
  }

  .about-badge p {
    font-size: 0.75rem;
  }

  .about-content .section-title {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content .underline {
    margin: 0.5rem auto !important;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .service-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.75rem;
    line-height: 1.4;
  }


  /* Achievements Grid */
  .achievements {
    padding-top: 3.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .services {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Achievements Grid */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .achievement-badge {
    padding: 1.5rem 1rem;
  }

  .star-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .achievement-badge h3 {
    font-size: 0.95rem;
  }

  .achievement-badge p {
    font-size: 0.75rem;
  }

  .testimonials {
    padding: 3.5rem 0; /* Unified with other sections */
  }

  .testimonials-track {
    animation-duration: 40s;
    /* Slightly faster on mobile */
    gap: 1rem;
    padding: 1rem;
  }

  .services {
    padding-top: 2.5rem !important; /* Reduced a bit for focus */
  }

  .testimonials {
    padding-top: 3.5rem !important;
    padding-bottom: 1.5rem !important; /* Reduced bottom gap */
  }

  .contact {
    padding: 1.5rem 6% 3.5rem; /* Reduced top gap more */
  }

  .testimonial-card {
    width: 300px;
    padding: 1.5rem;
  }

  /* Contact */

  .contact-container {
    grid-template-columns: 1fr; /* Force 1 column on tablet/mobile */
    padding: 1.25rem;
    gap: 2rem;
  }

  .contact-info {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info h3 {
    font-size: 1.5rem;
    width: 100%;
  }

  .contact-info p {
    text-align: left !important;
    width: 100%;
  }

  .contact-details {
    width: 100%;
  }

  .contact-item {
    width: 100%;
    align-items: center; /* Center text with icon */
  }

  .contact-item.align-start {
    align-items: flex-start;
  }

  /* Sidebar Navigation (The Drawer) */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    /* Standard sidebar width */
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 2rem 2rem;
    gap: 1.5rem;
    transition: 0.4s ease;
    z-index: 3000;
    overflow-y: auto; /* Ensure sidebar is scrollable */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .theme-toggle {
    margin: 2rem auto 0; /* Centered */
    width: 80px; /* Rectangle width */
    height: 42px; /* Rectangle height */
    padding: 0;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .menu-btn {
    display: block;
    z-index: 3001;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2.5rem 1rem;
  }

  .hero-name {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  /* Stats to 3 column row format as requested */
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1.5rem 0.5rem;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 0.25rem;
    gap: 0.25rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .stat-info h3 {
    font-size: 0.95rem;
  }

  .stat-info p {
    font-size: 0.5rem;
  }

  /* Services to 2 columns as requested */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Achievements to 2 columns as requested */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

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

  .contact-item {
    flex-direction: row; 
    align-items: center;
    gap: 10px;
  }

  .contact-item.align-start {
    align-items: flex-start;
  }

  .contact-text {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .testimonial-card {
    width: 280px;
  }
}