/* ═══════════════════════════════════════════════════════
   ResQ Services Page — Complete Style Sheet
   Dark Mode FULLY WORKING | Glass Effect | Responsive
════════════════════════════════════════════════════════ */

/* ===== LIGHT MODE VARIABLES (DEFAULT) ===== */
:root {
  --bg-body: linear-gradient(180deg, #99CAFF 0%, #FFFFFF 18%);
  --text-main: #1a1a2e;
  --text-light: #3F3C3C;
  --card-bg: #CCD7E2;
  --card-bg-light: #FBE1E1;
  --nav-bg: rgba(96, 162, 234, 0.85);
  --footer-bg: #252525;
  --btn-primary: #1075C7;
  --btn-primary-hover: #05213F;
  --border-light: rgba(0, 0, 0, 0.1);
  --hero-badge-bg: rgba(119, 157, 193, 0.9);
  --hero-badge-color: #D44633;
  --cta-card-bg: rgba(117, 174, 247, 0.85);
}

/* ===== DARK MODE VARIABLES ===== */
body.dark-mode {
  --bg-body: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 100%);
  --text-main: #ffffff;
  --text-light: #cccccc;
  --card-bg: #1e2a4a;
  --card-bg-light: #2a1a3a;
  --nav-bg: rgba(15, 30, 60, 0.95);
  --footer-bg: #0a0a15;
  --btn-primary: #ff6b6b;
  --btn-primary-hover: #ee5a24;
  --border-light: rgba(255, 255, 255, 0.1);
  --hero-badge-bg: rgba(0, 0, 0, 0.4);
  --hero-badge-color: #ff9999;
  --cta-card-bg: #1e2a4a;
}

/* Dark mode button style */
.dark-mode-btn {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.dark-mode-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-btn {
  background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .dark-mode-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Smooth transitions for dark mode */
body,
.navbar,
.footer,
.service-card,
.hiw-step-card,
.dashboard-glass-card,
.cta-glass-card,
.services-hero-badge,
.tag,
.btn-cta-secondary {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ───────────────────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────
   SHARED CLASSES (Same as home page)
─────────────────────────────────────────────────────── */
.section-tag {
  font-size: clamp(11px, 1.8vw, 13px);
  font-weight: 600;
  letter-spacing: 3px;
  color: #e03030;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.section-heading {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 48px;
}

/* ───────────────────────────────────────────────────────
   NAVBAR (Same as home page)
─────────────────────────────────────────────────────── */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 80px;
  padding: 10px 24px;
  width: 100%;
  max-width: 1200px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logo-text {
  font-family: 'Potta One', cursive;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo-res {
  color: #1a56a0;
}

body.dark-mode .logo-res {
  color: #6ab0ff;
}

.logo-q {
  color: #F90404;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background: rgba(116, 180, 249, 0.67);
  transform: translateY(-2px);
}

.nav-links li.active a {
  background: rgba(59, 143, 234, 0.67);
  font-weight: 600;
}

.btn-signin {
  background: #000000;
  color: #FFFFFF;
  padding: 8px 24px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

body.dark-mode .btn-signin {
  background: #ff6b6b;
}

.btn-signin:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Mobile Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 85%;
    max-width: 300px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    transition: left 0.3s ease;
    z-index: 999;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .nav-links.mobile-active {
    left: 20px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 12px 20px;
    text-align: center;
  }
}

/* ───────────────────────────────────────────────────────
   HERO SECTION
─────────────────────────────────────────────────────── */
.services-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
}

.services-hero-badge {
  display: inline-block;
  background: var(--hero-badge-bg);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: 6px 22px;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 500;
  color: var(--hero-badge-color);
  margin-bottom: 25px;
}

.services-hero-title {
  font-family: 'Rammetto One', cursive;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 25px;
}

.services-hero-desc {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-light);
  max-width: 900px;
  line-height: 1.6;
  margin: 0 auto;
}

/* ───────────────────────────────────────────────────────
   PRODUCTS SECTION
─────────────────────────────────────────────────────── */
.services-products {
  padding: 70px 20px;
}

.services-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 80px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 70px;
  height: 60px;
  object-fit: contain;
}

.service-card h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-desc {
  font-size: clamp(13px, 1.8vw, 14px);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
  display: inline-block;
}

.service-features li {
  font-size: clamp(12px, 1.8vw, 13px);
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e03030;
  font-size: 13px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 180, 180, 0.5);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
}

body.dark-mode .tag {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ───────────────────────────────────────────────────────
   DASHBOARD SECTION
─────────────────────────────────────────────────────── */
.services-dashboard {
  padding: 70px 20px;
}

.dashboard-glass-card {
  background: var(--card-bg-light);
  border-radius: 30px;
  padding: 50px 35px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-glass-card:hover {
  transform: translateY(-4px);
}

.dashboard-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 25px;
}

.dashboard-preview {
  width: 180px;
  margin: 0 auto 25px;
}

.dashboard-preview img {
  width: 100%;
  height: auto;
}

.dashboard-desc {
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn-dashboard {
  display: inline-block;
  background: var(--btn-primary);
  color: #fff;
  padding: 12px 36px;
  border-radius: 50px;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dashboard:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}

/* ───────────────────────────────────────────────────────
   HOW IT WORKS SECTION
─────────────────────────────────────────────────────── */
.services-hiw {
  padding: 70px 20px;
}

.hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.hiw-step-card {
  background: var(--card-bg-light);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.hiw-step-card:hover {
  transform: translateY(-4px);
}

.hiw-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D44633 0%, #F28678 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.hiw-step-card h4 {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hiw-step-card p {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--text-light);
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────
   BUILT FOR INDIA SECTION
─────────────────────────────────────────────────────── */
.services-bfi {
  padding: 70px 20px;
}

.bfi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.bfi-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 25px;
}

.bfi-text {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.7;
}

.bfi-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.bfi-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.bfi-glow-effect {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(224, 48, 48, 0.3) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────
   CTA SECTION
─────────────────────────────────────────────────────── */
.services-cta {
  padding: 70px 20px;
}

.cta-glass-card {
  background: var(--cta-card-bg);
  border-radius: 30px;
  padding: 50px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.cta-glass-card:hover {
  transform: translateY(-4px);
}

.cta-glass-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.cta-glass-card>p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-light);
  margin-bottom: 35px;
}

.cta-buttons-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-primary svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.btn-cta-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(203, 214, 225, 0.9);
  color: var(--text-main);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-secondary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-cta-secondary:hover {
  background: #b8c8d4;
  transform: translateY(-2px);
}

body.dark-mode .btn-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.dark-mode .btn-cta-secondary svg {
  stroke: #ffffff;
}

body.dark-mode .btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ───────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 50px 60px 35px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: 'Potta One', cursive;
  font-size: clamp(28px, 3.5vw, 36px);
  margin-bottom: 12px;
}

.footer-logo .logo-res {
  color: #ffffff;
}

.footer-logo .logo-q {
  color: #F90404;
}

.footer-tagline {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #AAAAAA;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: clamp(13px, 1.8vw, 16px);
  color: #AAAAAA;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 6px;
}

.footer-col a {
  font-size: clamp(13px, 1.8vw, 15px);
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
}

.footer-copy {
  font-size: clamp(12px, 1.8vw, 14px);
  color: #888;
  text-align: center;
}

/* ───────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATION
─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ───────────────────────────────────────────────────────
   RESPONSIVE DESIGN
─────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .bfi-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-hero-title {
    font-size: 48px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-wrapper {
    top: 12px;
    padding: 0 12px;
  }

  .navbar {
    padding: 8px 16px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 20px;
  }

  .services-hero {
    padding: 100px 16px 50px;
  }

  .services-hero-title {
    font-size: 32px;
  }

  .services-products,
  .services-dashboard,
  .services-hiw,
  .services-bfi,
  .services-cta {
    padding: 50px 16px;
  }

  .services-products-grid {
    grid-template-columns: 1fr;
  }

  .hiw-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .footer {
    padding: 35px 20px 25px;
  }

  .footer-top {
    flex-direction: column;
    gap: 25px;
  }

  .footer-links {
    gap: 25px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .services-hero-title {
    font-size: 28px;
  }

  .section-heading {
    font-size: 24px;
  }

  .hiw-steps-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-glass-card,
  .cta-glass-card {
    padding: 30px 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}