/* ==========================================================================
   Rajbala IT - Master Stylesheet
   Imports all modular stylesheets in logical dependency order
   ========================================================================== */

/* 1. Base Styles */
@import url('base/reset.css');
@import url('base/variables.css');
@import url('base/typography.css');
@import url('base/animations.css');

/* 2. Component Styles */
@import url('components/navbar.css');
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/footer.css');
@import url('components/loader.css');
@import url('components/preloader.css');
@import url('components/skeleton.css');
@import url('components/social.css');
@import url('components/interactive-background.css');
@import url('components/legal-pages.css');

/* 3. Page Section Styles */
@import url('sections/hero.css');
@import url('sections/services.css');
@import url('sections/about.css');
@import url('sections/testimonials.css');
@import url('sections/contact.css');
@import url('sections/faq.css');
@import url('sections/blog.css');

/* 4. Global Layout Containers & Utility Classes */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-darker {
  background-color: var(--bg-darker);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

.hidden {
  display: none !important;
}

/* Page Header Banner for Subpages (About, Services, Booking, Contact, Service Details) */
.page-header {
  padding: calc(var(--header-height) + 3.5rem) 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.page-header .eyebrow {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.page-header h1 {
  text-align: center;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.page-header p {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* ==========================================================================
   5. Restored Sections Responsive Grids & Cards (Gallery, Blogs, Areas, Team)
   ========================================================================== */

/* Service Areas Grid */
.service-perimeter-bar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

[data-theme="light"] .service-perimeter-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-area-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="light"] .service-area-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.service-area-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.15);
}

/* Gallery / Work Showcase Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.18);
}

.gallery-card-preview {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.gallery-card-preview svg {
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-preview svg {
  transform: scale(1.1);
}

/* Blog & Tech Guides Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Prevent accidental horizontal scrolling globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Responsive adjustments across breakpoints */
@media (max-width: 767px) {
  /* Mobile Multi-Card Horizontal Scroll-Snap Carousels */
  .trust-strip,
  .service-areas-grid,
  .service-grid,
  .why-grid,
  .process-grid,
  .gallery-grid,
  .blog-grid,
  .team-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 1.15rem !important;
    padding: 0.5rem 0.25rem 1.25rem !important;
    margin: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
  }

  .trust-strip::-webkit-scrollbar,
  .service-areas-grid::-webkit-scrollbar,
  .service-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .process-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar,
  .blog-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar {
    height: 4px;
  }

  .trust-strip::-webkit-scrollbar-track,
  .service-areas-grid::-webkit-scrollbar-track,
  .service-grid::-webkit-scrollbar-track,
  .why-grid::-webkit-scrollbar-track,
  .process-grid::-webkit-scrollbar-track,
  .gallery-grid::-webkit-scrollbar-track,
  .blog-grid::-webkit-scrollbar-track,
  .team-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .trust-strip::-webkit-scrollbar-thumb,
  .service-areas-grid::-webkit-scrollbar-thumb,
  .service-grid::-webkit-scrollbar-thumb,
  .why-grid::-webkit-scrollbar-thumb,
  .process-grid::-webkit-scrollbar-thumb,
  .gallery-grid::-webkit-scrollbar-thumb,
  .blog-grid::-webkit-scrollbar-thumb,
  .team-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }

  /* Card flex items on mobile */
  .trust-strip > *,
  .service-areas-grid > *,
  .service-grid > *,
  .why-grid > *,
  .process-grid > *,
  .gallery-grid > *,
  .blog-grid > *,
  .team-grid > * {
    flex: 0 0 84% !important;
    min-width: 260px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }

  /* Floating WhatsApp button on mobile - safe positioning */
  .floating-social-widget {
    bottom: 16px !important;
    right: 14px !important;
    z-index: 999 !important;
  }

  .floating-social-btn {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .trust-strip > *,
  .service-areas-grid > *,
  .service-grid > *,
  .why-grid > *,
  .process-grid > *,
  .gallery-grid > *,
  .blog-grid > *,
  .team-grid > * {
    flex: 0 0 86% !important;
    min-width: 250px !important;
    max-width: 300px !important;
  }
}

