:root {
  --text-main: #0b1220;
  --muted: #6b7280;
  /* --bg-soft: #f6e8fb; */
  --bg-soft: #ebebeb;
  --accent-a: linear-gradient(90deg, #ca115b 10%, #8b3bf6 90%);
  --card-radius: 14px;
  --accent: #ca115b;
  --shadow: 0 20px 40px rgba(13, 17, 23, 0.14);
}

/* ======================= GLOBAL OVERFLOW FIX ======================= */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* Prevent common overflow causes */
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

section, main, article, aside, footer, header, nav, div {
  max-width: 100%;
}

/* Ensure containers don't overflow */
.container, [class*="max-w-"] {
  max-width: 100%;
}

/* Carousel and scroll containers - allow internal scroll only */
.no-scrollbar, #track, #carousel {
  max-width: 100vw;
}

/* Fix grid overflow on mobile */
@media (max-width: 767px) {
  .grid {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Ensure flex items wrap or shrink */
  .flex {
    max-width: 100%;
  }
  
  /* Fix absolute elements that might overflow */
  [class*="absolute"] {
    max-width: 100vw;
  }
  
  /* Limit fixed widths on mobile */
  [class*="w-["] {
    max-width: 100%;
  }
}



/* ======================= ABOUT PAGE HERO ======================= */
.about-hero {
  color: #fff;
  background: radial-gradient(
      1100px 600px at 50% 50%,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 48%,
      rgba(0, 0, 0, 0.5) 68%,
      rgba(0, 0, 0, 0.32) 82%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    linear-gradient(100deg, #6b2ff5 0%, #212746 55%, #0b3cff 100%);
}

.about-watermark {
  position: absolute;
  left: clamp(12px, 6vw, 64px);
  top: clamp(64px, 14vh, 120px);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.06);
  font-size: min(20vw, 200px);
  line-height: 0.9;
  user-select: none;
  pointer-events: none;
}

/* ======================= NAV STYLE SWITCH (dark hero -> light on scroll) ======================= */
#mainNav {
  transition: all 0.3s ease;
}

#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#mainNav .brand {
  color: #ffffff;
}
#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
#mainNav .nav-link:hover {
  color: #ffffff;
}
#mainNav .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  background: transparent;
}

#mainNav.nav-on-light .brand {
  color: var(--text-main);
}
#mainNav.nav-on-light .nav-link {
  color: #374151;
}
#mainNav.nav-on-light .nav-link:hover {
  color: #0b1220;
}
#mainNav.nav-on-light .btn-outline {
  border-color: #374151;
  color: #111827;
  background: transparent;
}

/* Hamburger menu animation */
.hamburger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu overlay */
#menuOverlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mobile menu slide */
#mobileMenu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active nav link indicator */
#mainNav ul li a.active::after {
  width: 100%;
}
/* Global default typography: Inter primary, IBM Plex Sans secondary */
body {
  font-family: "Inter", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-main);
}

/* Utility font classes to unify across the site */
.font-inter {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.font-ibm,
.Ibm_front_family {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
/* Backward compatibility: map any leftover 'font-poppins' usages to Inter */
.font-poppins {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Legacy class renamed to Inter for consistency */
.font_inter_tight {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

/* utility text */
.text-main {
  color: var(--text-main);
}
.muted {
  color: var(--muted);
}

/* global gradient background */
.bg-gradient-brand {
  background: var(--accent-a);
}

/* pill gradient border */
.pill-gradient-border {
  background: linear-gradient(
    90deg,
    rgb(201, 11, 71) 0%,
    rgba(139, 59, 246, 1) 100%
  );
  padding: 1px;
  border-radius: 9999px;
}

.gradient-text {
  background: linear-gradient(to right, #ca115b, #8b5cf6); /* pink → purple */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* fallback for non-webkit */
  color: transparent;
}

/* name bubble arrow */
.name-bubble:after {
  content: "";
  position: absolute;
  left: -8px;
  top: 42%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid rgba(255, 255, 255, 0.95);
  transform: translateX(-100%);
}

/* hero text size for very large screens */
@media (min-width: 1400px) {
  .xl-hero-size {
    font-size: 104px;
    line-height: 0.95;
  }
}

/* Optional smooth fade-out */
/* #loader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
/* Gradient border spinner */
.loader-circle {
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-image-slice: 1;
  border-width: 4px;
  border-style: solid;
  border-radius: 50%;
  border-image-source: linear-gradient(90deg, #ff007a, #8a2be2);
} */

/* --- feature cards specific --- */
.feature-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 12, 20, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card .card-body {
  padding: 28px;
}

.feature-label {
  color: #6b4bf0; /* a purple tint for small label */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.feature-cta {
  border-radius: 9999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
}

/* connector (white pipe) that visually links hero to features */
.feature-connectors {
  pointer-events: none;
}

/* hide connectors on small screens */
@media (max-width: 767px) {
  .feature-connectors {
    display: none;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  display: flex;
  animation: marquee 25s linear infinite;
}

/* 
 */

.vertical-text {
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
}
/* thin separators */
.sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  height: 320px;
  margin: 0 22px;
}
/* center card arrow circle */
.arrow-circle {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
/* bottom features */
.feature-icon {
  font-size: 20px;
}
/* small responsive tweaks */
@media (max-width: 900px) {
  .sep {
    height: 220px;
  }
  .cards-row {
    gap: 10px;
  }
}
/* ========================== SERVICES SECTION ==================*/

/* hide native scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* vertical label */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  color: var(--muted);
}

/* base service card */
.service-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s;
  transform-origin: center;
  /* border-radius: var(--card-radius); */
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text-main);
}

/* inner content (hidden by default) */
.service-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

/* initial title & icons */
.service-title-initial,
.service-item svg {
  transition: opacity 0.3s, transform 0.3s;
  /* color: var(--muted); */
  color: white;
}

/* active/hover state */
.service-item.is-active .service-inner,
.service-item:hover .service-inner {
  opacity: 1;
  transform: translateY(0);
}

.service-item.is-active .service-title-initial,
.service-item:hover .service-title-initial,
.service-item.is-active > div > .mt-auto svg,
.service-item:hover > div > .mt-auto svg {
  opacity: 0;
}

.service-details {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s, transform 0.28s;
}
.is-active .service-details {
  opacity: 1;
  transform: translateY(0);
}
.is-active .service-title-rotated {
  opacity: 0;
  transform: translateY(12px);
}
.is-active .service-card {
  transform: scale(1.04);
  box-shadow: 0 30px 60px rgba(13, 17, 23, 0.22); /* deeper shadow on hover */
}

/* center card gradient highlight */
.center-gradient {
  background: var(--accent-a);
  color: #fff;
}

/* responsive adjustments */
@media (max-width: 640px) {
  .vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .service-card {
    min-width: 72%;
    height: 360px;
  }
}

/* ========================== THREE CARD CAROUSEL ==================*/

/* card base */
.svc-card {
  border-radius: var(--card-radius);
  background: #fff;
  min-width: 320px;
  max-width: 360px;
  /* box-shadow: var(--shadow); */
  transform-origin: center center;
  padding: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-main);
  border: 1px solid rgba(201, 201, 201, 0.296);
}

/* viewport */
.carousel-viewport {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* track */
.carousel-track {
  display: flex;
  gap: 38px;
  align-items: flex-end;
  will-change: transform;
  padding: 24px;
}

/* center card */
.is-center {
  transform: translateY(-28px) scale(1.03);
  box-shadow: 0px 10px 50px #daf7fcc7;
  z-index: 5;
}

/* transitions */
.svc-card,
.card-inner {
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 320ms;
}

/* image */
.card-media img {
  border-radius: calc(var(--card-radius) - 2px);
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* CTA link */
.card-cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
}

/* focus accessibility */
.svc-card:focus {
  outline: 3px solid rgba(202, 17, 91, 0.28); /* accent tone */
  outline-offset: 6px;
}

/* responsive */
@media (max-width: 768px) {
  .carousel-track {
    gap: 18px;
    padding: 18px;
  }
  .svc-card {
    min-width: 92%;
    max-width: 92%;
    transform: none !important;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .card-inner {
    transition: none !important;
  }
}

/* =======================WHY Choose Us Section */

/* ======================= CLIENT REVIEWS ======================= */
.reviews-viewport {
  height: 560px; /* viewport height for auto-scroll */
  position: relative;
}
@media (max-width: 640px) {
  .reviews-viewport {
    height: 500px;
  }
}

.reviews-masonry {
  column-gap: 16px;
}

.review-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(10, 12, 20, 0.06);
  padding: 18px;
}
.review-text {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.review-meta .avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
}
.review-meta .name {
  font-weight: 600;
}
.review-meta .loc {
  font-size: 12px;
  color: var(--muted);
}

/* bottom blur/fade overlay */
.reviews-fade {
  background: linear-gradient(
    to top,
    rgba(235, 235, 235, 1) 12%,
    rgba(235, 235, 235, 0.75) 36%,
    rgba(235, 235, 235, 0) 100%
  );
  /* fallback if custom bg-soft changes */
  /* You can override via: .reviews-fade { background: linear-gradient(to top, var(--bg-soft), transparent); } */
}

/* ======================= ABOUT ORBIT ======================= */
.about-orbit {
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  border: 2px solid rgba(139, 59, 246, 0.35);
  position: relative;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(147, 51, 234, 0.06),
    transparent 60%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .about-orbit {
    width: 24rem;
    height: 24rem;
  }
}
.about-orbit-center {
  max-width: 72%;
}

.icon-badge {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 12, 46, 0.18);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-svg {
  width: 26px;
  height: 26px;
  transition: all 0.3s ease;
  fill: url(#grad1);
  /* Fallback for when gradient isn't available */
  color: #8b5cf6;
}

/* Ensure SVG displays with fallback */
.icon-svg path {
  fill: inherit;
}

/* Hover effect */
.icon-badge:hover {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.icon-badge:hover .icon-svg {
  fill: #fff;
}

/* Positioning */
.icon-badge.top-center {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}
.icon-badge.right-center {
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
}
.icon-badge.bottom-center {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}
.icon-badge.left-center {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ======================= PRICING ======================= */
.pricing-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ======================= WORKS SHOWCASE ======================= */
.works-viewport {
  height: 820px;
}
@media (max-width: 1024px) {
  .works-viewport {
    height: 680px;
  }
}
@media (max-width: 640px) {
  .works-viewport {
    height: 520px;
  }
}

.works-masonry {
  column-count: 2;
  column-gap: 16px;
}
@media (min-width: 768px) {
  .works-masonry {
    column-count: 3;
  }
}

.work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
}
.work-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.works-fade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.filter-btn {
  position: relative;
  width: 17rem;
  white-space: nowrap;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0b0b0b;
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  border: none; /* remove normal border */
}

.filter-btn:focus-visible {
  outline: 3px solid rgba(202, 17, 91, 0.6);
  outline-offset: 2px;
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.156),
    rgba(255, 255, 255, 0)
  );

  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* blog filter button */
.filter-btn-blog {
  position: relative;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.filter-btn-blog:focus-visible {
  outline: 3px solid rgba(202, 17, 91, 0.6);
  outline-offset: 2px;
}

/* Gradient border for unselected buttons */
.filter-btn-blog::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px; /* Border thickness */
  background: linear-gradient(90deg, #ff007a, #8a2be2); /* Gradient border */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Active/Selected button */
.filter-btn-blog.active {
  background: linear-gradient(90deg, #ff007a, #8a2be2);
  color: #fff;
}
.filter-btn-blog.active::before {
  display: none; /* Remove gradient border when selected */
}

/* ======================= CONTACT SECTION ======================= */

.gradient-pill {
  background: linear-gradient(90deg, #ff4d84 0%, #7b2ff7 100%);
  padding: 3px;
  border-radius: 9999px;
}
.inner-pill {
  background: #ffffff;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  padding-right: 6px;
  gap: 10px;
}

.subscribe-btn {
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ff4d84 0%, #7b2ff7 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(123, 47, 247, 0.18);
}

.card-gradient {
  background: linear-gradient(135deg, #ff3366 0%, #a541ff 40%, #8b2cff 100%);
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(139, 44, 255, 0.08);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .girl-img {
    display: none;
  }
}

/* ======================= COMPREHENSIVE RESPONSIVE ENHANCEMENTS ======================= */

/* ===== EXTRA SMALL DEVICES (320px - 479px) ===== */
@media (max-width: 479px) {
  /* Hero Section */
  #hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  
  #hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  
  #hero .hero-sub {
    font-size: 0.875rem;
    padding: 0 0.5rem;
  }
  
  /* Hero floating thumbnails - hide on very small screens */
  #hero .thumb {
    display: none !important;
  }
  
  /* Hero email subscription */
  #hero .pill-gradient-border {
    margin: 0 0.5rem;
  }
  
  #hero .hero-form {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem !important;
  }
  
  #subscribeBtn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem !important;
  }
  
  /* Hero success pill - stack on very small screens */
  #hero > div > div:first-of-type {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  #hero > div > div:first-of-type span:last-child {
    text-align: center;
  }
  
  /* Feature Cards */
  #features .feature-1,
  #features .feature-2,
  #features .feature-3 {
    min-width: 85% !important;
  }
  
  #features article h3 {
    font-size: 1.25rem;
  }
  
  #features article p {
    font-size: 0.8rem;
  }
  
  /* Journey/Stats Section */
  #journey .stat-number {
    font-size: 1.75rem !important;
  }
  
  #journey h2 {
    font-size: 1.5rem;
  }
  
  #journey .journey-laptop {
    width: 250px !important;
  }
  
  /* Services Carousel */
  .service-item {
    width: 14rem !important;
    height: 20rem !important;
  }
  
  .service-item .text-3xl {
    font-size: 1.25rem !important;
  }
  
  /* Three Card Section */
  .svc-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .svc-card h3 {
    font-size: 1rem;
  }
  
  .svc-card p {
    font-size: 0.8rem;
  }
  
  /* Why Choose Us */
  section.relative.py-16.px-6 h2 {
    font-size: 1.5rem !important;
  }
  
  /* Success Stories */
  #main .col-span-12 {
    padding: 0.5rem;
  }
  
  #main article h3,
  #main article h4 {
    font-size: 1rem;
  }
  
  #main .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* About Company */
  #about h2 {
    font-size: 1.75rem !important;
  }
  
  /* Improved About Orbit for Mobile */
  .about-orbit {
    width: 16rem !important;
    height: 16rem !important;
    margin: 2rem auto;
    border: 2px solid rgba(139, 59, 246, 0.4);
    background: radial-gradient(
      circle at 50% 50%,
      rgba(147, 51, 234, 0.08),
      rgba(255, 255, 255, 0.95) 70%
    );
  }
  
  .about-orbit .icon-badge {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(139, 59, 246, 0.2);
    box-shadow: 0 4px 15px rgba(139, 59, 246, 0.2);
  }
  
  .about-orbit .icon-svg {
    width: 20px;
    height: 20px;
    fill: #8b5cf6; /* Fallback solid color for better visibility */
  }
  
  .about-orbit-center {
    max-width: 70%;
    padding: 0.5rem;
  }
  
  .about-orbit-center .text-xs {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }
  
  .about-orbit-center .text-xl {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .about-orbit-center .text-sm {
    font-size: 0.65rem;
    line-height: 1.4;
    opacity: 0.85;
  }
  
  /* Pricing Cards */
  #pricing h2 {
    font-size: 1.5rem !important;
  }
  
  .pricing-card {
    margin: 0 0.5rem;
  }
  
  /* Works Showcase */
  #works h2 {
    font-size: 1.5rem !important;
  }
  
  #workFilters {
    width: 100% !important;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .filter-btn {
    width: auto !important;
    min-width: max-content;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .works-viewport {
    height: 400px !important;
  }
  
  .works-masonry {
    column-count: 2 !important;
    column-gap: 8px;
  }
  
  /* Reviews */
  #reviews h2 {
    font-size: 1.5rem !important;
  }
  
  .reviews-viewport {
    height: 380px !important;
  }
  
  .reviews-masonry {
    column-count: 1 !important;
  }
  
  .review-card {
    padding: 1rem;
  }
  
  .review-text {
    font-size: 0.8rem;
  }
  
  /* Contact Section */
  #contact h2 {
    font-size: 1.5rem !important;
  }
  
  #contact form input,
  #contact form select,
  #contact form textarea {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
  
  /* Footer */
  #footer h3 {
    font-size: 1.5rem !important;
  }
  
  #footer .grid {
    gap: 1.5rem;
  }
}

/* ===== SMALL DEVICES (480px - 639px) ===== */
@media (min-width: 480px) and (max-width: 639px) {
  #hero h1 {
    font-size: 2rem !important;
  }
  
  #hero .thumb {
    width: 5rem !important;
  }
  
  .service-item {
    width: 16rem !important;
    height: 22rem !important;
  }
  
  .about-orbit {
    width: 16rem !important;
    height: 16rem !important;
  }
  
  .reviews-masonry {
    column-count: 1 !important;
  }
  
  .works-masonry {
    column-count: 2 !important;
  }
}

/* ===== MEDIUM DEVICES / TABLETS (640px - 767px) ===== */
@media (min-width: 640px) and (max-width: 767px) {
  #hero h1 {
    font-size: 2.5rem !important;
  }
  
  #hero .thumb {
    width: 6rem !important;
  }
  
  #features article {
    min-width: 70% !important;
  }
  
  .service-item {
    width: 18rem !important;
    height: 24rem !important;
  }
  
  #journey .grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  #journey .journey-laptop {
    margin: 0 auto;
  }
  
  .about-orbit {
    width: 18rem !important;
    height: 18rem !important;
  }
  
  .reviews-masonry {
    column-count: 2 !important;
  }
  
  /* Success Stories - force single column on small tablets */
  #main .grid-cols-12 {
    display: flex;
    flex-direction: column;
  }
  
  #main .col-span-12,
  #main .col-span-8,
  #main .col-span-4,
  #main .col-span-3,
  #main .col-span-9 {
    width: 100% !important;
  }
}

/* ===== TABLETS (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 2.75rem !important;
  }
  
  #hero .thumb {
    width: 8rem !important;
  }
  
  #hero .thumb.left-20 {
    left: 0.5rem;
  }
  
  #hero .thumb.right-8,
  #hero .thumb.right-16 {
    right: 0.5rem;
  }
  
  .service-item {
    width: 16rem !important;
  }
  
  /* Why Choose Us - better tablet layout */
  section.relative.py-16 .grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  /* Success Stories */
  #main .col-span-8 {
    grid-column: span 12 !important;
  }
  
  #main .col-span-4 {
    grid-column: span 6 !important;
  }
  
  #main .col-span-3 {
    grid-column: span 4 !important;
  }
  
  #main .col-span-9 {
    grid-column: span 8 !important;
  }
  
  .about-orbit {
    width: 20rem;
    height: 20rem;
  }
  
  .reviews-masonry {
    column-count: 3 !important;
  }
  
  /* Pricing - 2 column on tablets */
  #pricing .grid-cols-1.md\\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== LARGE SCREENS (1024px - 1279px) ===== */
@media (min-width: 1024px) and (max-width: 1279px) {
  #hero .thumb {
    width: 10rem !important;
  }
  
  #hero .thumb.left-20 {
    left: 2rem;
  }
  
  #hero .thumb.right-8 {
    right: 2rem;
  }
}

/* ===== EXTRA LARGE SCREENS (1280px+) ===== */
@media (min-width: 1280px) {
  #hero .thumb {
    width: 14rem;
  }
  
  .service-item {
    width: 20rem !important;
  }
}

/* ===== ULTRA WIDE SCREENS (1920px+) ===== */
@media (min-width: 1920px) {
  #hero h1 {
    font-size: 5rem !important;
  }
  
  #hero .thumb {
    width: 18rem;
  }
  
  .service-item {
    width: 24rem !important;
    height: 36rem !important;
  }
  
  .svc-card {
    min-width: 400px;
    max-width: 440px;
  }
}

/* ===== LANDSCAPE MOBILE FIXES ===== */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  #hero .thumb {
    display: none !important;
  }
  
  .reviews-viewport {
    height: 300px !important;
  }
  
  .works-viewport {
    height: 350px !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #hero .thumb,
  .animate-marquee,
  #mobileMenu,
  #mobileMenuBtn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none !important;
  }
  
  .thumb,
  .service-card,
  .svc-card,
  .icon-badge,
  .review-card {
    transition: none !important;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .filter-btn {
    min-height: 44px;
  }
  
  #mobileMenuBtn {
    padding: 0.75rem;
  }
  
  .icon-badge {
    width: 52px;
    height: 52px;
  }
  
  /* Disable hover effects on touch */
  .service-item:hover .service-inner {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .service-item.is-active .service-inner {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ======================= PAGE-SPECIFIC RESPONSIVE FIXES ======================= */

/* ===== ABOUT PAGE ===== */
@media (max-width: 767px) {
  .about-watermark {
    font-size: min(15vw, 100px);
    left: 10px;
    top: 80px;
  }
  
  /* Note: .about-orbit sizing handled in earlier media query */
}

@media (max-width: 479px) {
  .about-watermark {
    font-size: min(12vw, 80px);
    top: 70px;
  }
  
  /* Extra small screen optimization for orbit */
  .about-orbit {
    width: 14rem !important;
    height: 14rem !important;
  }
  
  .about-orbit .icon-badge {
    width: 38px;
    height: 38px;
  }
  
  .about-orbit .icon-svg {
    width: 16px;
    height: 16px;
  }
  
  .about-orbit-center .text-xl {
    font-size: 0.8rem;
  }
  
  .about-orbit-center .text-sm {
    font-size: 0.6rem;
  }
}

/* ===== SERVICES PAGE ===== */
@media (max-width: 767px) {
  /* Services carousel items */
  .service-item {
    width: 75vw !important;
    max-width: 280px;
    height: auto !important;
    min-height: 350px;
  }
  
  .service-title-initial {
    font-size: 1.25rem !important;
  }
  
  .service-inner h3 {
    font-size: 1.125rem !important;
  }
}

@media (max-width: 479px) {
  .service-item {
    width: 85vw !important;
    min-height: 300px;
  }
}

/* Success Stories grid fix */
@media (max-width: 1023px) {
  #main .grid-cols-12 {
    grid-template-columns: 1fr;
  }
  
  #main [class*="col-span-"] {
    grid-column: span 1;
  }
  
  #main article {
    margin-bottom: 1rem;
  }
}

/* ===== BLOGS PAGE ===== */
@media (max-width: 767px) {
  /* Blog grid single column */
  #blogGrid {
    grid-template-columns: 1fr !important;
  }
  
  /* Filter buttons scroll horizontally */
  .filter-btn-blog {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  /* Featured blog card */
  .max-w-4xl .grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== CONTACT PAGE ===== */
@media (max-width: 1023px) {
  /* Help section layout */
  #help-contact .grid-cols-12,
  #help-contact [class*="lg:grid-cols-12"] {
    grid-template-columns: 1fr;
  }
  
  #help-contact [class*="lg:col-span-"] {
    grid-column: span 1;
  }
  
  /* Support cards */
  .support-card {
    padding: 1rem;
  }
  
  .support-card .flex {
    flex-direction: column;
    text-align: center;
  }
  
  .support-card .w-12 {
    margin: 0 auto 1rem;
  }
}

@media (max-width: 767px) {
  /* Contact form grid */
  #contact .grid-cols-1 {
    gap: 1.5rem !important;
  }
  
  /* Gradient card padding */
  .card-gradient {
    padding: 1rem;
  }
  
  .card-gradient h3 {
    font-size: 1.5rem;
  }
  
  /* Subscribe button */
  .gradient-pill {
    padding: 3px;
  }
  
  .inner-pill {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .subscribe-btn {
    width: 100%;
  }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 767px) {
  #footer .grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  #footer [class*="md:col-span-2"] {
    grid-column: span 2;
  }
  
  #footer h3 {
    font-size: 1.75rem;
  }
  
  /* Footer watermark */
  footer .text-\[20vw\] {
    font-size: 15vw;
    bottom: -2vw;
  }
}

@media (max-width: 479px) {
  #footer .grid-cols-6,
  #footer .sm\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  #footer h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  #footer .flex-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

/* ===== GENERAL SECTION PADDING ===== */
@media (max-width: 639px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .max-w-6xl,
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

