/* ==========================================================================
   iYogeeTech Modern Enhancement Stylesheet (2026)
   Fixes mobile overflow, updates typography, and adds modern UI components.
   ========================================================================== */

/* 1. Global Layout & Resilient Element Bounds (No global overflow-x masking) */
html, body {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.page-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Ensure all images and embedded media respect container bounds */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Fix Rogue Absolute Background Patterns Causing Horizontal Overflow */
.main-footer,
.main-footer.style-four,
.main-footer.style-five,
.banner-section-six,
.banner-section-two,
.features-section-six,
.app-section-seven,
.page-title {
  overflow: hidden !important;
  max-width: 100vw !important;
}

/* Root-cause fix: Disable large fixed-dimension background art layers on viewports < 992px */
@media (max-width: 991px) {
  .main-footer.style-four .pattern-layer-new,
  .main-footer.style-four .circle-pattern,
  .main-footer.style-five .right-pattern,
  .main-footer.style-five .circle-patern,
  .banner-section-six .layers-box .layer-one,
  .banner-section-six .layers-box .layer-two,
  .testimonials-style-one .pattern-layer,
  .testimonials-style-one .pattern-layer-two {
    display: none !important;
  }
}

/* Ensure containers and rows strictly adhere to viewport without negative margin spillover */
@media (max-width: 767px) {
  .auto-container, .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
  .row > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* 2. Modern Hero & CTA Section */
.modern-hero {
  position: relative;
  background: linear-gradient(135deg, #0e1e40 0%, #162f6b 50%, #204db8 100%);
  color: #ffffff;
  padding: 130px 0 90px;
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(38, 91, 251, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.modern-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #dbeafe;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.modern-hero .hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.modern-hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.modern-hero .hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 34px;
  max-width: 640px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}

.btn-primary-custom {
  background: #2563eb;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5);
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-primary-custom:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.6);
  color: #ffffff !important;
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  text-decoration: none !important;
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #cbd5e1;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item i,
.hero-trust-item .check-icon {
  color: #38bdf8;
  font-weight: bold;
}

.hero-preview-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.hero-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hero-dots .dot-red { background: #ef4444; }
.hero-dots .dot-yellow { background: #f59e0b; }
.hero-dots .dot-green { background: #10b981; }

.hero-tag {
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.hero-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-stack-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

/* 3. Section Headers & Cards */
.modern-section {
  padding: 85px 0;
  position: relative;
}

.modern-section.bg-light-alt {
  background-color: #f8fafc;
}

.section-tag {
  display: inline-block;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.section-heading-custom {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.section-subheading-custom {
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Customer Need Cards */
.need-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.need-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12);
}

.need-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.need-card:hover::before {
  opacity: 1;
}

.need-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.need-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.need-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
  flex-grow: 1;
}

.need-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.need-deliverables li {
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.need-deliverables li i {
  color: #2563eb;
  font-size: 12px;
  margin-top: 4px;
}

/* Service Grid Cards */
.service-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

.service-card-modern .badge-stack {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-modern h4 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.service-card-modern p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-card-modern .service-link {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.service-card-modern .service-link:hover {
  color: #1d4ed8;
  gap: 10px;
}

/* 4. Case Studies Showcase Cards */
.case-study-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.case-study-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.case-study-label-owned {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.case-study-label-client {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.case-study-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.case-study-body {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-study-meta-row {
  margin-bottom: 14px;
}

.case-study-meta-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.case-study-meta-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.case-study-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* 5. Delivery Process Timeline */
.process-step-item {
  position: relative;
  text-align: center;
  padding: 20px 15px;
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.process-step-item h5 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.process-step-item p {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

/* 6. FAQ Accordion Items */
.faq-box-custom {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-box-custom summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-box-custom summary::-webkit-details-marker {
  display: none;
}

.faq-box-custom summary::after {
  content: '+';
  font-size: 20px;
  color: #2563eb;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.faq-box-custom[open] summary::after {
  content: '−';
}

.faq-box-custom .faq-answer {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f8fafc;
}

/* 7. Streamlined Contact Form */
.inquiry-card-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

.inquiry-card-wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.inquiry-card-wrapper .inquiry-subtext {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Inquiry Type Toggle (Project Inquiry vs App Support) */
.inquiry-toggle-group {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 22px;
  gap: 4px;
}

.inquiry-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none !important;
}

.inquiry-toggle-btn:hover {
  color: #0f172a;
  text-decoration: none !important;
}

.inquiry-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.modern-form-group {
  margin-bottom: 18px;
}

.modern-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.modern-form-group label .req {
  color: #ef4444;
}

.modern-form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modern-form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Anti-spam honeypot - invisible to human users */
.antispam-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

.contact-channels-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  height: 100%;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.channel-content h6 {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.channel-content p,
.channel-content a {
  font-size: 15px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
}

.channel-content a:hover {
  color: #2563eb;
}

.whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.whatsapp-pill:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* 8. Mobile Responsiveness Adjustments */
@media only screen and (max-width: 991px) {
  .modern-hero {
    padding: 110px 0 60px;
  }
  .modern-hero h1 {
    font-size: 34px;
  }
  .hero-preview-card {
    margin-top: 40px;
  }
  .process-step-item {
    margin-bottom: 24px;
  }
}

@media only screen and (max-width: 575px) {
  .modern-hero h1 {
    font-size: 28px;
  }
  .modern-hero .hero-lead {
    font-size: 16px;
  }
  .section-heading-custom {
    font-size: 26px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-custom,
  .btn-secondary-custom {
    justify-content: center;
    width: 100%;
  }
  .inquiry-card-wrapper {
    padding: 24px 18px;
  }
}
