/* ============================================
   NEXSPHERE SERVICES PAGES - COMPLETE CSS
   Mobile Responsive Design (FIXED)
   Use this in: assets/css/services.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --accent: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-light: #c3dae3;
  --border: #1e293b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

small {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff9f43;
  display: block;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CUSTOM HERO SECTION
   ============================================ */

.about-section {
  position: relative;
  overflow: hidden;
}

.custom-hero-section {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.custom-hero-section .container {
  max-width: 900px;
}

.custom-hero-section h2 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.custom-hero-section span {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  line-height: 1.8;
  display: block;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-custom {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pink {
  background: linear-gradient(135deg, #2af5ff 0%, #2196f3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-white {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-white:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-header2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header2 h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.section-header2 p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid-new {
  padding: 5rem 0;
  background: transparent;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card-box {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card-box:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.service-card-box:hover::before {
  transform: scaleX(1);
}

.service-card-box h3 {
  font-size: 1.3rem;
  color: #22a0f4;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card-box p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.7;
}

/* ============================================
   ROADMAP / PROCESS SECTION
   ============================================ */

.roadmap-section {
  padding: 5rem 0;
}

.roadmap-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.roadmap-row.reverse {
  flex-direction: row-reverse;
}

.roadmap-img {
  flex: 0 0 350px;
  text-align: center;
}

.roadmap-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.roadmap-text {
  flex: 1;
}

.roadmap-text small {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.roadmap-text h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.roadmap-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose-section {
  padding: 5rem 0;
  background: #0f172a;
  border-radius: 30px;
  margin: 2rem 0;
}

.why-content-only {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-content-only small {
  color: #ff9f43;
}

.why-content-only h2 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.why-content-only p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.features-list-center {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.feature-item h4 {
  color: #ff9f43;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 4rem 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.cta-box h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-box p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2af5ff 0%, #2196f3 100%);
  color: white !important;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE MEDIA QUERIES (FIXED)
   ============================================ */

/* --- TABLET: 991px and below --- */
@media (max-width: 991px) {
  
  .container {
    padding: 0 1.5rem !important;
  }

  /* Hero Section */
  .custom-hero-section {
    padding: 6rem 1.5rem 3rem !important;
  }

  .custom-hero-section h2 {
    font-size: 2rem !important;
  }

  .custom-hero-section span {
    font-size: 1rem !important;
  }

  .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
  }

  .btn-custom {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 2.5rem !important;
  }

  .section-header h2 {
    font-size: 1.8rem !important;
  }

  .section-header p {
    font-size: 0.95rem !important;
  }

  .section-header2 {
    margin-bottom: 2rem !important;
  }

  .section-header2 h2 {
    font-size: 1.8rem !important;
  }

  .section-header2 p {
    font-size: 0.95rem !important;
  }

  /* Services Grid */
  .services-grid-new {
    padding: 3rem 0 !important;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-card-box {
    padding: 1.5rem !important;
  }

  .service-card-box h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.75rem !important;
  }

  .service-card-box p {
    font-size: 0.9rem !important;
  }

  /* Roadmap */
  .roadmap-section {
    padding: 3rem 0 !important;
  }

  .roadmap-row,
  .roadmap-row.reverse {
    flex-direction: column !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
  }

  .roadmap-img {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  .roadmap-img img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .roadmap-text h3 {
    font-size: 1.5rem !important;
  }

  .roadmap-text p {
    font-size: 0.95rem !important;
  }

  /* Why Choose */
  .why-choose-section {
    padding: 3rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 20px !important;
  }

  .why-content-only h2 {
    font-size: 2rem !important;
  }

  .why-content-only p {
    font-size: 0.95rem !important;
  }

  .features-list-center {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .feature-item {
    padding: 1.5rem !important;
  }

  .feature-item h4 {
    font-size: 1rem !important;
  }

  .feature-item p {
    font-size: 0.9rem !important;
  }

  /* CTA */
  .cta-section {
    padding: 3rem 0 !important;
  }

  .cta-box {
    padding: 2rem 1.5rem !important;
  }

  .cta-box h2 {
    font-size: 1.8rem !important;
  }

  .cta-box p {
    font-size: 0.95rem !important;
  }
}

/* --- MOBILE: 768px and below --- */
@media (max-width: 768px) {
  
  .container {
    padding: 0 1.25rem !important;
  }

  .custom-hero-section h2 {
    font-size: 1.8rem !important;
  }

  .section-header h2 {
    font-size: 1.6rem !important;
  }

  .section-header2 h2 {
    font-size: 1.6rem !important;
  }

  .why-content-only h2 {
    font-size: 1.8rem !important;
  }

  .service-card-box {
    padding: 1.25rem !important;
  }
}

/* --- SMALL MOBILE: 576px and below --- */
@media (max-width: 576px) {
  
  .container {
    padding: 0 1rem !important;
  }

  /* Hero */
  .custom-hero-section {
    padding: 5rem 1rem 2.5rem !important;
  }

  .custom-hero-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .custom-hero-section span {
    font-size: 0.95rem !important;
  }

  .btn-custom {
    max-width: 260px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-header h2 {
    font-size: 1.5rem !important;
  }

  .section-header p {
    font-size: 0.9rem !important;
  }

  .section-header2 h2 {
    font-size: 1.5rem !important;
  }

  .section-header2 p {
    font-size: 0.9rem !important;
  }

  /* Services */
  .services-grid-new {
    padding: 2rem 0 !important;
  }

  .grid-2,
  .grid-3 {
    gap: 1rem !important;
  }

  .service-card-box {
    padding: 1.2rem !important;
  }

  .service-card-box h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .service-card-box p {
    font-size: 0.85rem !important;
  }

  /* Roadmap */
  .roadmap-section {
    padding: 2rem 0 !important;
  }

  .roadmap-row,
  .roadmap-row.reverse {
    margin-bottom: 2rem !important;
  }

  .roadmap-text h3 {
    font-size: 1.3rem !important;
  }

  .roadmap-text p {
    font-size: 0.9rem !important;
  }

  .roadmap-text small {
    font-size: 0.75rem !important;
  }

  /* Why Choose */
  .why-choose-section {
    padding: 2rem 1rem !important;
    border-radius: 16px !important;
  }

  .why-content-only h2 {
    font-size: 1.5rem !important;
  }

  .why-content-only p {
    font-size: 0.9rem !important;
  }

  .features-list-center {
    gap: 1rem !important;
  }

  .feature-item {
    padding: 1rem !important;
  }

  .feature-item h4 {
    font-size: 0.95rem !important;
  }

  .feature-item p {
    font-size: 0.85rem !important;
  }

  /* CTA */
  .cta-box {
    padding: 1.5rem 1rem !important;
  }

  .cta-box h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .cta-box p {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .btn-primary {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
  }
}

/* --- EXTRA SMALL: 360px and below --- */
@media (max-width: 360px) {
  
  .container {
    padding: 0 0.75rem !important;
  }

  .custom-hero-section h2 {
    font-size: 1.3rem !important;
  }

  .section-header h2,
  .section-header2 h2,
  .why-content-only h2 {
    font-size: 1.3rem !important;
  }

  .service-card-box h3 {
    font-size: 1rem !important;
  }

  .roadmap-text h3 {
    font-size: 1.2rem !important;
  }

  .cta-box h2 {
    font-size: 1.3rem !important;
  }

  .btn-custom {
    max-width: 220px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }

  .btn-primary {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

/* ============================================
   OVERLAP PREVENTION - Specific Scoping
   ============================================ */

/* This ensures services.css styles don't leak into other pages */
.services-grid-new .service-card-box {
  /* Scoped to services page only */
}

/* Override any potential conflicts with main style.css */
body .service-card-box h3 {
  /* Specific override if needed */
}

/* Ensure proper z-index layering */
.service-card-box {
  z-index: 1;
}

/* Prevent conflicts with header styles */
.header .container .service-card-box {
  /* No inheritance from header */
}