/* ==========================================================================
   NIHAR PAGE BUILDER - FRONTEND STYLESHEET
   Enterprise UI Components Suite with Native Dual Light/Dark Modes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (nihar/hero)
   -------------------------------------------------------------------------- */
.nihar-hero-block {
  position: relative;
  width: 100%;
  padding: clamp(60px, 8vw, 110px) 24px clamp(40px, 6vw, 80px) 24px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.nihar-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nihar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1576D1;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .nihar-hero-badge,
.dark-mode .nihar-hero-badge {
  background: rgba(21, 118, 209, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

.nihar-hero-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 20px 0;
  color: #0F172A;
}

[data-theme="dark"] .nihar-hero-title,
.dark-mode .nihar-hero-title {
  color: #FFFFFF;
}

.nihar-hero-title .nihar-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  padding-left: 6px;
  background: linear-gradient(135deg, #1D4ED8 0%, #1576D1 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .nihar-hero-title .nihar-accent,
.dark-mode .nihar-hero-title .nihar-accent {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nihar-hero-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px auto;
  color: #475569;
}

[data-theme="dark"] .nihar-hero-subtitle,
.dark-mode .nihar-hero-subtitle {
  color: #94A3B8;
}

.nihar-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.nihar-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1576D1;
  color: #FFFFFF !important;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21, 118, 209, 0.3);
  border: 1px solid rgba(21, 118, 209, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nihar-btn-primary:hover {
  background-color: #0E60AA;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 118, 209, 0.45);
}

.nihar-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0F172A !important;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .nihar-btn-secondary,
.dark-mode .nihar-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #F1F5F9 !important;
  border-color: rgba(255, 255, 255, 0.18);
}

.nihar-btn-secondary:hover {
  transform: translateY(-2px);
}

/* 3 Fanned Interactive Media Cards */
.nihar-hero-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  min-height: 290px;
  margin-top: 10px;
}

.nihar-hero-card {
  width: 180px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  background-size: cover;
  background-position: center;
}

[data-theme="dark"] .nihar-hero-card,
.dark-mode .nihar-hero-card {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.nihar-hero-card:nth-child(1) {
  transform: rotate(-7deg) translateY(8px);
  z-index: 1;
}

.nihar-hero-card:nth-child(2) {
  transform: rotate(0deg) scale(1.05);
  z-index: 3;
}

.nihar-hero-card:nth-child(3) {
  transform: rotate(7deg) translateY(8px);
  z-index: 2;
}

.nihar-hero-card:hover {
  transform: translateY(-8px) scale(1.08) !important;
  z-index: 10 !important;
  box-shadow: 0 30px 60px rgba(21, 118, 209, 0.25);
}

.nihar-hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #FFFFFF;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   2. STATS & METRICS STRIP (nihar/stats)
   -------------------------------------------------------------------------- */
.nihar-stats-block {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 70px auto;
  padding: 24px 32px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .nihar-stats-block,
.dark-mode .nihar-stats-block {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nihar-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.nihar-stat-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1576D1;
  line-height: 1.1;
  margin-bottom: 6px;
}

[data-theme="dark"] .nihar-stat-number,
.dark-mode .nihar-stat-number {
  color: #38BDF8;
}

.nihar-stat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
}

[data-theme="dark"] .nihar-stat-label,
.dark-mode .nihar-stat-label {
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   3. SERVICES GRID - "WHAT WE DO" (nihar/services)
   -------------------------------------------------------------------------- */
.nihar-services-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 90px) 24px;
  box-sizing: border-box;
}

.nihar-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.nihar-section-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(37, 99, 235, 0.08);
  color: #1576D1;
  margin-bottom: 14px;
}

[data-theme="dark"] .nihar-section-badge,
.dark-mode .nihar-section-badge {
  background: rgba(21, 118, 209, 0.15);
  color: #38BDF8;
}

.nihar-section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  color: #0F172A;
}

[data-theme="dark"] .nihar-section-title,
.dark-mode .nihar-section-title {
  color: #FFFFFF;
}

.nihar-section-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}

[data-theme="dark"] .nihar-section-subtitle,
.dark-mode .nihar-section-subtitle {
  color: #94A3B8;
}

.nihar-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.nihar-service-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 36px 30px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="dark"] .nihar-service-card,
.dark-mode .nihar-service-card {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nihar-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(21, 118, 209, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .nihar-service-card:hover,
.dark-mode .nihar-service-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.nihar-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #1576D1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

[data-theme="dark"] .nihar-service-icon,
.dark-mode .nihar-service-icon {
  background: rgba(21, 118, 209, 0.15);
  color: #38BDF8;
}

.nihar-service-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #0F172A;
}

[data-theme="dark"] .nihar-service-title,
.dark-mode .nihar-service-title {
  color: #FFFFFF;
}

.nihar-service-desc {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 22px 0;
}

[data-theme="dark"] .nihar-service-desc,
.dark-mode .nihar-service-desc {
  color: #94A3B8;
}

.nihar-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1576D1;
  text-decoration: none;
  transition: gap 0.2s ease;
}

[data-theme="dark"] .nihar-service-link,
.dark-mode .nihar-service-link {
  color: #38BDF8;
}

.nihar-service-link:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   4. SELECTED PROJECTS (nihar/projects)
   -------------------------------------------------------------------------- */
.nihar-projects-block {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 90px) 24px;
  box-sizing: border-box;
}

.nihar-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nihar-project-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .nihar-project-card,
.dark-mode .nihar-project-card {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nihar-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .nihar-project-card:hover,
.dark-mode .nihar-project-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.nihar-project-thumb {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.nihar-project-body {
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nihar-project-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0F172A;
  text-align: center;
  width: 100%;
}

[data-theme="dark"] .nihar-project-title,
.dark-mode .nihar-project-title {
  color: #FFFFFF;
}

.nihar-project-category {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748B;
  margin: 0 0 12px 0;
  text-align: center;
  width: 100%;
}

[data-theme="dark"] .nihar-project-category,
.dark-mode .nihar-project-category {
  color: #94A3B8;
}

.nihar-project-arrow {
  color: #1576D1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

[data-theme="dark"] .nihar-project-arrow,
.dark-mode .nihar-project-arrow {
  color: #38BDF8;
}

.nihar-project-card:hover .nihar-project-arrow {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   5. CTA BANNER - "LET'S BUILD SOMETHING" (nihar/cta)
   -------------------------------------------------------------------------- */
.nihar-cta-block {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 110px 24px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  background-color: #FAF8F5;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, rgba(243, 239, 232, 0.85) 50%, #FAF8F5 100%);
  border-top: 1px solid #E6E1D6;
  border-bottom: 1px solid #E6E1D6;
  color: #191C21;
  transition: background 0.35s ease, background-color 0.35s ease;
}

[data-theme="dark"] .nihar-cta-block,
.dark-mode .nihar-cta-block {
  background-color: #060A14;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(21, 118, 209, 0.28) 0%, rgba(9, 14, 26, 0.85) 50%, #060A14 100%);
  border-top: 1px solid rgba(21, 118, 209, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nihar-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.nihar-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1576D1;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

[data-theme="dark"] .nihar-cta-badge,
.dark-mode .nihar-cta-badge {
  background: rgba(21, 118, 209, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #60A5FA;
}

.nihar-cta-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0F172A;
  margin: 0 0 18px 0;
}

[data-theme="dark"] .nihar-cta-title,
.dark-mode .nihar-cta-title {
  color: #FFFFFF;
}

.nihar-cta-title .cta-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  padding-left: 6px;
  background: linear-gradient(135deg, #1D4ED8 0%, #1576D1 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .nihar-cta-title .cta-accent,
.dark-mode .nihar-cta-title .cta-accent {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nihar-cta-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.65;
  color: #475569;
  max-width: 620px;
  margin: 0 auto 36px auto;
}

[data-theme="dark"] .nihar-cta-subtitle,
.dark-mode .nihar-cta-subtitle {
  color: #94A3B8;
}

.nihar-cta-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-top: 24px;
}

[data-theme="dark"] .nihar-cta-perks,
.dark-mode .nihar-cta-perks {
  color: #64748B;
}

.nihar-cta-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nihar-cta-perk-item svg {
  color: #1576D1;
  flex-shrink: 0;
}

[data-theme="dark"] .nihar-cta-perk-item svg,
.dark-mode .nihar-cta-perk-item svg {
  color: #38BDF8;
}

/* --------------------------------------------------------------------------
   6. PHILOSOPHY QUOTE (nihar/philosophy)
   -------------------------------------------------------------------------- */
.nihar-philosophy-block {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: clamp(60px, 8vw, 100px) 24px;
  text-align: center;
  box-sizing: border-box;
}

.nihar-philosophy-quote-icon {
  color: #1576D1;
  margin-bottom: 24px;
}

[data-theme="dark"] .nihar-philosophy-quote-icon,
.dark-mode .nihar-philosophy-quote-icon {
  color: #38BDF8;
}

.nihar-philosophy-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(26px, 4.5vw, 44px);
  font-style: italic;
  line-height: 1.35;
  color: #0F172A;
  max-width: 860px;
  margin: 0 auto 30px auto;
}

[data-theme="dark"] .nihar-philosophy-quote,
.dark-mode .nihar-philosophy-quote {
  color: #FFFFFF;
}

.nihar-philosophy-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

[data-theme="dark"] .nihar-philosophy-author,
.dark-mode .nihar-philosophy-author {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MOBILE VIEWPORTS
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nihar-cta-block {
    width: 100%;
    max-width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 80px 20px;
  }
  .nihar-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nihar-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nihar-hero-cards {
    gap: 10px;
  }
  .nihar-hero-card {
    width: 105px;
    height: 155px;
  }
  .nihar-projects-grid {
    grid-template-columns: 1fr;
  }
  .nihar-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nihar-hero-buttons,
  .nihar-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .nihar-btn-primary,
  .nihar-btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }
  .nihar-cta-perks {
    flex-direction: column;
    gap: 10px;
  }
}
