/* ===== OPTIMIZED RESPONSIVE DESIGN ===== */
/* Mobile-first approach with modern breakpoints and accessibility */

/* ===== RESET AND BASE RULES ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== MEDIA ELEMENTS ===== */
img, picture, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTAINER SYSTEM ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TYPOGRAPHY SCALING ===== */
h1 { font-size: clamp(2rem, 8vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.3; }
h4 { font-size: clamp(1.2rem, 3vw, 1.4rem); line-height: 1.4; }
p { font-size: clamp(0.95rem, 2.5vw, 1.1rem); line-height: 1.6; }

/* ===== SECTION SPACING ===== */
section {
  padding: 60px 0;
}

/* ===== NAVIGATION FIXED BY GEMINI ===== */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* राइट साइड स्क्रॉल रोकने के लिए सबसे ज़रूरी */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 4%;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    /* overflow: hidden; यहाँ से हटा दिया गया है ताकि मोबाइल मेनू बाहर दिख सके */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* डेस्कटॉप के लिए डिफ़ॉल्ट सेटिंग्स */
@media screen and (min-width: 993px) {
    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 2rem;
        list-style: none;
        position: static;
        background: none;
        width: auto;
        max-width: none;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* मोबाइल और टैबलेट के लिए फिक्स (992px से नीचे) */
@media screen and (max-width: 992px) {
    .nav-links {
        display: flex; /* इसे हमेशा फ्लेक्स रखें */
        position: fixed;
        top: 0;
        right: -100%; /* स्क्रीन के बाहर छुपा हुआ */
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        list-style: none;
    }

    /* जब JS 'active' क्लास जोड़ेगा */
    .nav-links.active {
        right: 0; /* स्लाइड होकर अंदर आएगा */
    }

    .nav-links li {
        width: 80%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }

    .mobile-menu-btn {
        display: block !important;
        z-index: 1001;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 40px;
  min-height: auto !important;
  height: auto;
  display: block;
  position: relative;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2rem !important;
}

.hero-visual-desktop {
  display: none !important;
}

.hero-visual-mobile {
  display: block !important;
}

.hero-visual {
  width: 100%;
  max-width: 350px !important;
}

.hero-asset {
  max-width: 100% !important;
  width: 100% !important;
}

.hero-content {
  max-width: 100% !important;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem) !important;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-title .line {
  display: block;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: clamp(1rem, 4vw, 1.2rem) !important;
  margin: 0 auto 2rem;
  max-width: 100% !important;
  padding: 0 1rem;
  line-height: 1.6;
}

.hero-tagline {
  justify-content: center;
  font-size: clamp(1rem, 3vw, 1.3rem) !important;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-buttons {
  flex-direction: column !important;
  gap: 1rem !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

.hero-buttons .btn {
  width: 100%;
  max-width: 280px;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hide decorative elements on mobile */
.consultation-highlight,
.scroll-indicator,
.hero .gradient-orbs .orb-1,
.hero .gradient-orbs .orb-2 {
  display: none !important;
}

/* ===== GRID SYSTEMS ===== */
.stats-grid,
.services-grid,
.tech-grid,
.partners-grid,
.values-grid,
.leadership-grid,
.process-steps,
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ===== CARDS AND COMPONENTS ===== */
.stat-card,
.service-card,
.tech-item,
.partner-card,
.value-card,
.leader-card,
.process-step,
.portfolio-item {
  padding: 1.5rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.service-icon,
.tech-icon,
.partner-logo,
.value-icon,
.leader-image,
.step-number {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  grid-template-columns: 1fr !important;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1rem;
}

/* ===== CTA SECTIONS ===== */
.cta-content h2 {
  font-size: clamp(2rem, 6vw, 3rem) !important;
}

.cta-content p {
  font-size: clamp(1rem, 3vw, 1.2rem) !important;
}

/* ===== TIMELINE ===== */
.timeline::before {
  left: 20px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: column !important;
}

.timeline-year {
  align-self: flex-start;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.timeline-content {
  width: 100% !important;
  margin-left: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* ===== PORTFOLIO ===== */
.filter-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  width: 100%;
  max-width: 200px;
  padding: 0.8rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  padding: 3rem 4% 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ===== TABLET BREAKPOINT ===== */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  section {
    padding: 80px 0;
  }

  /* Navigation */
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.8rem;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-links {
    display: flex !important;
    position: static;
    background: transparent;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
    box-shadow: none;
    width: auto;
    border: none;
  }

  .nav-links li {
    width: auto;
  }

  .nav-links a {
    padding: 0.5rem 0;
    border-bottom: none;
    text-align: left;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  /* Hero */
  .hero {
    min-height: 100vh !important;
    padding-top: 100px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .hero-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center;
    gap: 3rem !important;
    flex-direction: row !important;
  }

  .hero-visual-desktop {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .hero-visual-mobile {
    display: none !important;
  }

  .hero-visual {
    order: 0 !important;
    max-width: 100% !important;
  }

  .hero-asset {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-content {
    max-width: 600px !important;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
  }

  .hero-description {
    max-width: 600px !important;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    flex-direction: row !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
    margin-top: 3rem !important;
  }

  .hero-buttons .btn {
    width: auto;
    max-width: none;
  }

  .scroll-indicator {
    display: block !important;
  }

  .consultation-highlight {
    display: block !important;
  }

  /* Grids */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .services-grid,
  .tech-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .values-grid,
  .leadership-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Timeline */
  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-bottom: 3rem;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row-reverse !important;
  }

  .timeline-year {
    align-self: center;
    margin-bottom: 0;
  }

  .timeline-content {
    width: 60% !important;
    margin-left: 0;
  }

  /* Portfolio */
  .filter-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .filter-btn {
    width: auto;
  }

  /* Footer */
  .footer-links {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== DESKTOP BREAKPOINT ===== */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  section {
    padding: 100px 0;
  }

  /* Navigation */
  .nav-links {
    gap: 2rem;
  }

  /* Hero */
  .hero-content {
    max-width: 900px !important;
  }

  .hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
  }

  /* Grids */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .values-grid,
  .leadership-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Timeline */
  .timeline-content {
    width: 50% !important;
  }

  /* Show consultation highlight on large screens */
  .consultation-highlight {
    display: block !important;
  }
}

/* ===== LARGE DESKTOP BREAKPOINT ===== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .tech-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .nav-links {
    gap: 2.5rem;
  }
}

/* ===== ACCESSIBILITY & TOUCH ===== */
.nav-links a,
.btn,
.service-card,
.portfolio-item,
.stat-card,
.social-link {
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .glass-card,
  .stat-card,
  .service-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000 !important;
    backdrop-filter: none !important;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .mobile-menu-btn,
  .consultation-highlight,
  .scroll-indicator,
  .hero-background,
  .gradient-orbs {
    display: none !important;
  }

  .hero {
    min-height: auto !important;
    padding: 2rem 0;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .glass-card,
  .stat-card,
  .service-card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* ===== WHATSAPP FLOATING BUTTON RESPONSIVE ===== */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}