/* ============================================
   SCOTRIX STUDIO - MAIN STYLESHEET (FINAL COMPLETE)
   ============================================ */

/* --------------------------------------------
   CSS VARIABLES
   -------------------------------------------- */
:root {
  --primary: #2979FF;
  --secondary: #1ABC9C;
  --dark: #2E2E2E;
  --dark-lighter: #3a3a3a;
  --light-gray: #E8E8E8;
  --medium-gray: #B8B8B8;
  --white: #FFFFFF;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------
   TYPOGRAPHY
   -------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.text-description {
  color: var(--light-gray);
}

.text-muted {
  color: var(--medium-gray);
}

/* --------------------------------------------
   NAVBAR
   -------------------------------------------- */
.luxury-nav {
  background: rgba(46, 46, 46, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(41, 121, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.luxury-nav.scrolled {
  background: rgba(46, 46, 46, 0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--primary);
}

.nav-link {
  position: relative;
  color: var(--light-gray);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(41, 121, 255, 0.1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  margin-top: 10px;
  min-width: 280px;
  background: var(--dark-lighter);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--light-gray);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(41, 121, 255, 0.15);
  color: var(--white);
  transform: translateX(4px);
}

.dropdown-item i {
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
}

/* --------------------------------------------
   HERO SECTION
   -------------------------------------------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #2E2E2E 0%, #1a1a1a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
  opacity: 0.6;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -150px;
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.3),
    rgba(26, 188, 156, 0.2)
  );
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn-primary {
  position: relative;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(41, 121, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(41, 121, 255, 0.4);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(41, 121, 255, 0.3);
}

.btn-card {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid rgba(41, 121, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
}

.btn-card:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(41, 121, 255, 0.3);
}

/* --------------------------------------------
   BADGES
   -------------------------------------------- */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.15),
    rgba(26, 188, 156, 0.15)
  );
  border: 1px solid rgba(41, 121, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

/* Shining animation */
.premium-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.premium-badge span,
.premium-badge i {
  position: relative;
  z-index: 1;
}

.premium-badge:hover::before {
  animation-play-state: paused;
}

/* --------------------------------------------
   STATS CARDS
   -------------------------------------------- */
.stat-card {
  background: rgba(58, 58, 58, 0.4);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(41, 121, 255, 0.1),
    transparent
  );
  transition: left 0.8s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  background: rgba(58, 58, 58, 0.6);
  box-shadow: 0 20px 40px rgba(41, 121, 255, 0.25);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------
   SERVICE CARDS
   -------------------------------------------- */
.service-card {
  background: rgba(58, 58, 58, 0.4);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card-content {
  flex: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}


.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(58, 58, 58, 0.6);
  box-shadow: 0 25px 50px rgba(41, 121, 255, 0.25);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.15),
    rgba(26, 188, 156, 0.15)
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.25),
    rgba(26, 188, 156, 0.25)
  );
  box-shadow: 0 8px 24px rgba(41, 121, 255, 0.3);
}

/* --------------------------------------------
   PORTFOLIO CARDS
   -------------------------------------------- */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(41, 121, 255, 0.2);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(46, 46, 46, 0) 0%,
    rgba(46, 46, 46, 0.95) 100%
  );
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(41, 121, 255, 0.3);
  border-color: var(--primary);
}

.portfolio-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.portfolio-live-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(41, 121, 255, 0.5);
}

/* --------------------------------------------
   TESTIMONIAL CARDS
   -------------------------------------------- */
.testimonial-card {
  background: rgba(58, 58, 58, 0.4);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(41, 121, 255, 0.25);
  border-color: var(--primary);
  background: rgba(58, 58, 58, 0.6);
}

.quote-icon {
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.3), rgba(26, 188, 156, 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------
   BLOG CARDS
   -------------------------------------------- */
.blog-card {
  background: rgba(58, 58, 58, 0.4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(41, 121, 255, 0.2);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
}

.blog-thumb-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb {
  transform: scale(1.08);
}

.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(41, 121, 255, 0.25);
  border-color: var(--primary);
  background: rgba(58, 58, 58, 0.6);
}

/* --------------------------------------------
   MARQUEE
   -------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  min-width: 100%;
  animation: scroll 35s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.marquee-item {
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.15),
    rgba(26, 188, 156, 0.15)
  );
  border: 1px solid rgba(41, 121, 255, 0.3);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.marquee-item i {
  font-size: 1.2rem;
}

.marquee-item:hover {
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.25),
    rgba(26, 188, 156, 0.25)
  );
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(41, 121, 255, 0.25);
}

/* --------------------------------------------
   LINK HOVER EFFECTS
   -------------------------------------------- */
.link-hover {
  position: relative;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-hover:hover {
  color: var(--white);
}

.link-hover:hover::after {
  width: 100%;
}

/* --------------------------------------------
   SOCIAL ICONS
   -------------------------------------------- */
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 121, 255, 0.15);
  border: 1px solid rgba(41, 121, 255, 0.3);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  text-decoration: none;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(41, 121, 255, 0.4);
}

/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.luxury-footer {
  background: linear-gradient(135deg, #2E2E2E 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(41, 121, 255, 0.25);
  padding: var(--space-lg) 0 2rem;
  color: var(--white);
  position: relative;
}

.luxury-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------
   WHY CHOOSE CARDS
   -------------------------------------------- */
.why-card {
  background: rgba(58, 58, 58, 0.4);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(41, 121, 255, 0.25);
  border-color: var(--primary);
  background: rgba(58, 58, 58, 0.6);
}

/* --------------------------------------------
   SECTION BACKGROUNDS
   -------------------------------------------- */
.dark-section {
  background: linear-gradient(135deg, #2E2E2E 0%, #1a1a1a 100%);
  position: relative;
  padding: var(--space-xl) 0;
}

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------
   ANIMATIONS (SCROLL-IN)
   -------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------
   UTILITIES
   -------------------------------------------- */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* --------------------------------------------
   <= 1024px (tablets & smaller laptops)
   -------------------------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* --------------------------------------------
   <= 768px
   -------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .dark-section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }

  p {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
}

/* --------------------------------------------
   <= 640px
   -------------------------------------------- */
@media (max-width: 640px) {
  .stat-number {
    font-size: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .flex-col {
    flex-direction: column;
  }

  .sm\:flex-row {
    flex-direction: column !important;
  }

  .justify-center {
    justify-content: center;
  }

  .items-center {
    align-items: center;
  }

  .text-center {
    text-align: center;
  }

  /* Force grid items full-width */
  .grid > * {
    width: 100%;
  }

  /* Better touch targets */
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* --------------------------------------------
   LAPTOP (1024px - 1279px)
   -------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .max-w-7xl {
    max-width: 1024px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .service-card,
  .testimonial-card,
  .why-card {
    padding: 2.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .dark-section {
    padding: 5rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 15px 32px;
    font-size: 15px;
  }
}

/* --------------------------------------------
   DESKTOP (1280px - 1439px)
   -------------------------------------------- */
@media (min-width: 1280px) and (max-width: 1439px) {
  .max-w-7xl {
    max-width: 1200px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

/* --------------------------------------------
   TABLET LANDSCAPE (768px - 1023px)
   -------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .max-w-7xl {
    max-width: 100%;
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .stat-number {
    font-size: 2.75rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .service-card,
  .testimonial-card,
  .why-card,
  .blog-card {
    padding: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .dark-section {
    padding: 4rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 14px;
  }

  .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.lg\:grid-cols-4,
  .grid.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-badge {
    font-size: 12px;
    padding: 8px 20px;
  }

  .marquee-item {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}

/* --------------------------------------------
   TABLET PORTRAIT (600px - 767px)
   -------------------------------------------- */
@media (min-width: 600px) and (max-width: 767px) {
  .max-w-7xl {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.2;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .text-xl,
  .text-2xl {
    font-size: 1.25rem !important;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-card {
    padding: 1.75rem 1.25rem;
  }

  .service-card,
  .testimonial-card,
  .why-card {
    padding: 1.75rem;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .dark-section {
    padding: 3.5rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 13px 26px;
    font-size: 14px;
  }

  .grid.md\:grid-cols-3,
  .grid.md\:grid-cols-2,
  .grid.lg\:grid-cols-4,
  .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-badge {
    font-size: 11px;
    padding: 8px 18px;
  }

  .marquee-item {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }

  .portfolio-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
}

/* --------------------------------------------
   MOBILE LARGE (480px - 599px)
   -------------------------------------------- */
@media (min-width: 480px) and (max-width: 599px) {
  .max-w-7xl {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .text-xl,
  .text-2xl {
    font-size: 1.125rem !important;
  }

  .text-4xl,
  .text-5xl {
    font-size: 2rem !important;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .service-card,
  .testimonial-card,
  .why-card,
  .blog-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .dark-section {
    padding: 3rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .grid.md\:grid-cols-3,
  .grid.md\:grid-cols-2,
  .grid.lg\:grid-cols-4,
  .grid.lg\:grid-cols-3,
  .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .premium-badge {
    font-size: 10px;
    padding: 7px 16px;
  }

  .marquee-item {
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
  }

  .h-20 {
    height: 4.5rem;
  }

  .luxury-nav img {
    height: 3rem;
    width: 3rem;
  }
}

/* --------------------------------------------
   MOBILE MEDIUM (375px - 479px)
   -------------------------------------------- */
@media (min-width: 375px) and (max-width: 479px) {
  .max-w-7xl {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .text-xl,
  .text-2xl {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .text-4xl,
  .text-5xl {
    font-size: 1.75rem !important;
  }

  .text-lg {
    font-size: 1rem !important;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .service-card,
  .testimonial-card,
  .why-card,
  .blog-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .dark-section {
    padding: 2.5rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 20px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .btn-card {
    padding: 10px 20px;
    font-size: 13px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .premium-badge {
    font-size: 10px;
    padding: 6px 14px;
  }

  .marquee-item {
    padding: 0.75rem 1.4rem;
    font-size: 0.8rem;
  }

  .h-20 {
    height: 4rem;
  }

  .luxury-nav img {
    height: 2.75rem;
    width: 2.75rem;
  }

  .w-16,
  .h-16 {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .text-3xl {
    font-size: 1.5rem !important;
  }

  .portfolio-overlay {
    padding: 1.5rem;
  }

  .blog-thumb-wrapper {
    height: 200px;
  }

  .rounded-\[2\.5rem\] {
    border-radius: 1.5rem !important;
    padding: 2rem 1.5rem !important;
  }
}

/* --------------------------------------------
   MOBILE SMALL (<= 374px)
   -------------------------------------------- */
@media (max-width: 374px) {
  .max-w-7xl {
    padding: 0 0.875rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.35;
    margin-bottom: 0.875rem;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .text-xl,
  .text-2xl {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }

  .text-4xl,
  .text-5xl {
    font-size: 1.5rem !important;
  }

  .text-lg {
    font-size: 0.95rem !important;
  }

  .text-base {
    font-size: 0.9rem !important;
  }

  .text-sm {
    font-size: 0.8rem !important;
  }

  .stat-number {
    font-size: 1.875rem;
  }

  .stat-card {
    padding: 1rem 0.625rem;
  }

  .service-card,
  .testimonial-card,
  .why-card,
  .blog-card {
    padding: 1rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }

  .dark-section {
    padding: 2rem 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 18px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }

  .btn-card {
    padding: 9px 18px;
    font-size: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .premium-badge {
    font-size: 9px;
    padding: 5px 12px;
  }

  .marquee-item {
    padding: 0.65rem 1.2rem;
    font-size: 0.75rem;
  }

  .h-20 {
    height: 3.75rem;
  }

  .luxury-nav img {
    height: 2.5rem;
    width: 2.5rem;
  }

  .w-16,
  .h-16 {
    width: 3rem !important;
    height: 3rem !important;
  }

  .w-12,
  .h-12 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .text-3xl {
    font-size: 1.35rem !important;
  }

  .text-2xl {
    font-size: 1.25rem !important;
  }

  .portfolio-overlay {
    padding: 1.25rem;
  }

  .blog-thumb-wrapper {
    height: 180px;
  }

  .rounded-\[2\.5rem\] {
    border-radius: 1.25rem !important;
    padding: 1.75rem 1.25rem !important;
  }

  .gap-8 {
    gap: 1rem !important;
  }

  .gap-6 {
    gap: 0.875rem !important;
  }

  .gap-12 {
    gap: 1.5rem !important;
  }

  .mb-16 {
    margin-bottom: 2rem !important;
  }

  .mb-20 {
    margin-bottom: 2.5rem !important;
  }

  .mb-12 {
    margin-bottom: 1.5rem !important;
  }
}

/* --------------------------------------------
   LANDSCAPE MOBILE FIX
   -------------------------------------------- */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* --------------------------------------------
   NAVBAR + FOOTER RESPONSIVE (<= 1023px)
   -------------------------------------------- */
@media (max-width: 1023px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobileMenu:not(.hidden) {
    max-height: 500px;
  }

  .luxury-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
  }

  .luxury-footer .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1rem !important;
    width: 100% !important;
    margin: 0 auto 2rem !important;
  }

  .luxury-footer .grid > div:first-child {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
  }

  .luxury-footer .grid > div:first-child > a {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .luxury-footer nav .flex {
    justify-content: center !important;
  }

  .luxury-footer .grid > nav {
    grid-column: span 1 !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
  }

  .luxury-footer h3 {
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem !important;
    text-align: center !important;
    width: 100%;
  }

  .luxury-footer .space-y-3 > * + * {
    margin-top: 0 !important;
  }

  .luxury-footer a.link-hover {
    font-size: 0.9rem !important;
    padding: 0.6rem 0 !important;
    display: block;
    width: 100%;
    text-align: center !important;
  }

  .luxury-footer .grid > div:last-child {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 0.5rem;
    padding-bottom: 1rem !important;
  }

  .luxury-footer .btn-primary {
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    width: auto !important;
    min-width: 200px;
    justify-content: center;
  }

  .luxury-footer .border-t {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem;
    padding-top: 1rem !important;
  }

  .luxury-footer .border-t .flex {
    justify-content: center !important;
  }
}

/* --------------------------------------------
   EXPLORE SERVICE BUTTONS – MOBILE/TABLET FIX
   -------------------------------------------- */
@media (max-width: 1024px) {
  .service-card {
    position: relative;
  }

  .btn-card {
    pointer-events: auto !important;
    position: relative;
    z-index: 99999 !important;
  }
}

/* --------------------------------------------
   PRINT STYLES
   -------------------------------------------- */
@media print {
  .luxury-nav,
  .btn-primary,
  .btn-secondary,
  .btn-card,
  footer,
  .hero-glow,
  .hero-grid {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .dark-section {
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   SERVICE CARD BUTTON – FORCE CLICKABLE
   ============================================ */

.service-card {
  position: relative;      /* ensure stacking context */
}

/* glow overlay must never catch clicks */
.service-card::before {
  pointer-events: none;
  z-index: 0;              /* under content */
}

/* put card content above the overlay */
.service-card > * {
  position: relative;
  z-index: 1;
}

/* button on top, always clickable */
.btn-card {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
}

/* ============================================
   CONTAINER WIDTH – LET IT GROW AFTER 1400px
   (Removed the 1920px Cap to allow 4K scaling)
   ============================================ */
@media (min-width: 1400px) {
  .max-w-4xl,
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl,
  .max-w-screen-lg,
  .max-w-screen-xl {
    max-width: 90vw !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   FINAL CORRECTED 4K FIX (Navbar + Buttons + Keyword Pills)
   ============================================ */

@media (min-width: 1921px) {
  
  /* 1. MASTER ZOOM */
  html {
    font-size: 1vw !important; 
  }

  /* 2. FIX TOP PADDING (Keep Badge Visible) */
  .hero-section {
    padding-top: 15rem !important; 
    padding-bottom: 8rem !important;
    min-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* 3. FIX NAVBAR - MAKE IT BIGGER */
  .luxury-nav {
    padding: 3.5rem 0 !important;
  }
  
  .luxury-nav img {
    height: 8rem !important;
    width: auto !important;
  }

  .nav-link {
    font-size: 1.4rem !important;
    padding: 1rem 2rem !important;
  }

  /* 4. FIX DROPDOWN MENU */
  .dropdown-menu {
    min-width: 25rem !important;
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
    margin-top: 2rem !important;
  }
  
  .dropdown-item {
    font-size: 1.2rem !important;
    padding: 1.2rem 2rem !important;
    border-radius: 1rem !important;
  }
  
  .dropdown-item i {
    font-size: 1.4rem !important;
    margin-right: 1.5rem !important;
  }

  /* 5. FIX BUTTONS & KEYWORD PILLS (The specific fix) */
  .btn-card, 
  .btn-secondary, 
  .btn-primary,
  .portfolio-live-btn,
  .keyword-pill,         /* <--- TARGETS THE "WE ALSO PROVIDE" PILLS */
  a[class*="rounded"] {
    font-size: 1.2rem !important;       /* Big readable text */
    padding: 1em 2.5em !important;      /* Fat padding */
    border-radius: 100px !important;
    height: auto !important;
    min-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin: 0.5rem !important;          /* Spacing between pills */
    line-height: normal !important;
    white-space: nowrap !important;
  }

  /* 6. FIX BADGES */
  .premium-badge, .marquee-item {
    font-size: 1.1rem !important;
    padding: 1em 2.5em !important;
    border-radius: 100px !important;
  }
  
  .premium-badge { margin-bottom: 3rem !important; }

  /* 7. LAYOUT WIDTHS */
  body, .dark-section, .luxury-footer, .luxury-nav {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .luxury-nav .container, .luxury-nav .max-w-7xl {
    width: 95% !important; 
    max-width: 100% !important;
  }

  .max-w-7xl, .container {
    width: 85% !important;
    max-width: 100% !important;
  }

  /* 8. MARQUEE */
  .marquee { gap: 6rem; }
  .marquee__content { min-width: 100vw; gap: 6rem; }
  
  .hero-title {
    font-size: 6.5rem !important;
    line-height: 1.1 !important;
  }
}