/* Premium Design System for LuxeStar */

/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gold-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Colors */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary) !important;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== PREMIUM HERO BANNER ===== */
.premium-hero {
  position: relative !important;
  /* Height will be determined by the banner-box aspect ratio */
  background: var(--premium-gradient) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  /* Reduced parallax effect to prevent blank spaces */
  transform: none !important;
  transition: transform 0.1s ease-out !important;
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.premium-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  z-index: 10;
}

.premium-hero .carousel-item {
  position: relative !important;
  /* Height will be determined by the banner-box aspect ratio */
  /* Do not force display here so Bootstrap can hide non-active slides */
}

/* Ensure only the active item is flex-centered */
.premium-hero .carousel-item.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.premium-hero .banner-box {
  position: relative !important;
  width: 100% !important;
  /* Free height - let image determine the height */
  height: auto !important;
  overflow: hidden !important;
  background: none !important;
  background-size: unset !important;
  background-position: unset !important;
  /* Ensure proper image container */
  display: block !important;
}

.premium-hero .banner-box img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(0.7) !important;
  /* Full width, free height */
  display: block !important;
  background: var(--premium-gradient) !important;
}

.premium-hero .carousel-item_main {
  position: absolute !important;
  bottom: 55px !important;
  left: 20px !important;
  transform: none !important;
  text-align: left !important;
  color: var(--white) !important;
  z-index: 10 !important;
  max-width: 600px !important;
  padding: var(--spacing-md) !important;
}

.premium-hero .banner-content {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: var(--spacing-md) !important;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
  color: var(--white) !important;
  font-family: var(--font-secondary) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
  line-height: 1.3 !important;
}

.premium-hero .banner-btn {
  display: inline-block !important;
  padding: 0.75rem 1.5rem !important;
  background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  transition: all var(--transition-normal) !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.8s;
  border: none !important;
  position: relative !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.premium-hero .banner-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
  background: linear-gradient(135deg, #ffed4e, #ffd700) !important;
  color: var(--text-dark) !important;
}

/* Hide Premium Carousel Controls (Arrows) */
.premium-hero .carousel-control-prev,
.premium-hero .carousel-control-next {
  display: none !important;
}

.premium-hero .carousel-indicators {
  bottom: 30px !important;
}

.premium-hero .carousel-indicators li {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  margin: 0 6px !important;
  transition: all var(--transition-normal) !important;
}

.premium-hero .carousel-indicators li.active {
  background: var(--white) !important;
  transform: scale(1.2) !important;
}

/* ===== PREMIUM SERVICES SECTION ===== */
.premium-services {
  padding: var(--spacing-2xl) 0 !important;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  position: relative !important;
  margin: 0 !important;
  /* Ensure smooth transition from hero section */
  transform: none !important;
  transition: transform 0.1s ease-out !important;
}

.premium-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.premium-services .container {
  position: relative;
  z-index: 2;
}

.premium-services .heading_title {
  text-align: center !important;
  margin-bottom: var(--spacing-2xl) !important;
}

.premium-services .heading_title h1 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  background: var(--premium-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: var(--spacing-md) !important;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  font-family: var(--font-secondary) !important;
}

/* Premium Services Grid - 4 Equal Tiles Side by Side - FORCE OVERRIDE */
.premium-services .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  margin: 0 -15px !important;
  width: 100% !important;
}

.premium-services .col-lg-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
  padding: 0 15px !important;
  margin-bottom: 30px !important;
  float: none !important;
  position: relative !important;
}

/* OVERRIDE BOOTSTRAP GRID SYSTEM FOR SERVICES */
.premium-services .row .col-lg-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

.premium-services .row .col-md-6 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

.premium-services .row .col-sm-6 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

/* ULTRA SPECIFIC OVERRIDE FOR ALL BOOTSTRAP GRID CLASSES */
.premium-services .row [class*="col-"] {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
  float: none !important;
}

/* Premium Service Cards - HIGH SPECIFICITY */
.premium-services .premium-service-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--spacing-xl) !important;
  text-align: center !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: all var(--transition-normal) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
  height: 100% !important;
  min-height: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  
  /* Override existing styles */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  min-height: 320px !important;
  margin-right: unset !important;
  margin-left: unset !important;
}

.premium-services .premium-service-card:nth-child(1) { animation-delay: 0.1s; }
.premium-services .premium-service-card:nth-child(2) { animation-delay: 0.2s; }
.premium-services .premium-service-card:nth-child(3) { animation-delay: 0.3s; }
.premium-services .premium-service-card:nth-child(4) { animation-delay: 0.4s; }

.premium-services .premium-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--premium-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.premium-services .premium-service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-xl) !important;
}

.premium-services .premium-service-card:hover::before {
  transform: scaleX(1);
}

.premium-services .premium-service-card .service-icon {
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto var(--spacing-lg) !important;
  background: var(--premium-gradient) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: all var(--transition-normal) !important;
  
  /* Override existing styles */
  margin-right: unset !important;
}

.premium-services .premium-service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg) !important;
}

.premium-services .premium-service-card .service-icon img {
  width: 40px !important;
  height: 40px !important;
  filter: brightness(0) invert(1) !important;
}

.premium-services .premium-service-card h4 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin: 10px 0 !important;
  margin-bottom: var(--spacing-md) !important;
  font-family: var(--font-secondary) !important;
  
  /* Override existing styles */
  color: var(--text-dark) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  padding-top: unset !important;
}

.premium-services .premium-service-card p {
  color: var(--text-light) !important;
  margin-bottom: var(--spacing-lg) !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
  color: var(--text-light) !important;
  margin-bottom: var(--spacing-lg) !important;
  font-weight: 400 !important;
  padding: 0 !important;
  text-transform: unset !important;
  padding-bottom: unset !important;
}

.premium-services .premium-service-card .service-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--spacing-xs) !important;
  padding: 0.75rem 1.5rem !important;
  background: var(--premium-gradient) !important;
  color: var(--white) !important;
  text-decoration: none !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 600 !important;
  transition: all var(--transition-normal) !important;
  position: relative !important;
  overflow: hidden !important;
  
  /* Override existing styles */
  color: var(--white) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  position: relative !important;
  bottom: unset !important;
  right: unset !important;
  margin: unset !important;
  left: unset !important;
  background: var(--premium-gradient) !important;
  width: unset !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  padding-left: unset !important;
  padding-right: unset !important;
  padding-bottom: unset !important;
  padding-top: unset !important;
}

.premium-services .premium-service-card .service-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}

.premium-services .premium-service-card .service-btn:hover::before {
  left: 100%;
}

.premium-services .premium-service-card .service-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .premium-hero .carousel-item_main {
    padding: var(--spacing-sm) !important;
    bottom: 15px !important;
    left: 15px !important;
    max-width: 80% !important;
  }
  
  .premium-hero .banner-content {
    font-size: 1.2rem !important;
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .premium-hero .banner-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Free height on mobile */
  .premium-hero .banner-box {
    height: auto !important;
  }
  
  .premium-services .heading_title h1 {
    font-size: 2rem !important;
  }
  
  
  .premium-services .premium-service-card {
    padding: var(--spacing-lg) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    min-height: 280px !important;
  }
  
  .premium-services .premium-service-card .service-btn {
    position: unset !important;
    padding-right: 7px !important;
    padding-bottom: 15px !important;
    padding-top: 15px !important;
  }
  
  .premium-services .premium-service-card p {
    font-size: 14px !important;
    padding-bottom: 10px !important;
  }
  
  .premium-services .premium-service-card h4 {
    padding-top: 10px !important;
  }
}

/* FORCE 4 TILES SIDE BY SIDE ON ALL SCREENS WIDER THAN 768px */
@media (min-width: 769px) {
  .premium-services .row {
    flex-wrap: nowrap !important;
    display: flex !important;
  }
  
  .premium-services .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

@media (max-width: 768px) {
  /* Allow wrapping only on mobile */
  .premium-services .row {
    flex-wrap: wrap !important;
  }
  
  .premium-services .col-lg-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 576px) {
  /* Arrows already hidden globally */
  
  .premium-hero .carousel-item_main {
    bottom: 10px !important;
    left: 10px !important;
    max-width: 85% !important;
    padding: var(--spacing-xs) !important;
  }
  
  .premium-hero .banner-content {
    font-size: 1rem !important;
    margin-bottom: var(--spacing-xs) !important;
  }
  
  .premium-hero .banner-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Free height on small mobile */
  .premium-hero .banner-box {
    height: auto !important;
  }
  
  /* 4-tile grid responsive - 1 tile per row on mobile */
  .premium-services .col-lg-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .premium-services .premium-service-card {
    min-height: 250px !important;
    padding: var(--spacing-md) !important;
  }
  
  .premium-services .premium-service-card .service-icon {
    width: 60px !important;
    height: 60px !important;
  }
  
  .premium-services .premium-service-card .service-icon img {
    width: 30px !important;
    height: 30px !important;
  }
}

/* ===== MOBILE BANNER FIXES ===== */
.mobile-banner .carousel-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  background: var(--premium-gradient) !important;
}

.mobile-banner .mobile-banne-box {
  position: relative !important;
  overflow: hidden !important;
  /* Free height - let image determine the height */
  width: 100% !important;
  height: auto !important;
  background: var(--premium-gradient) !important;
}

/* ===== UTILITY CLASSES ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.gradient-text {
  background: var(--premium-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.floating {
  animation: float 3s ease-in-out infinite !important;
}

.pulse {
  animation: pulse 2s ease-in-out infinite !important;
}

/* ===== BANNER IMAGE OPTIONS ===== */
/* Option 1: No cropping (current default) - shows full image with gradient background */
.premium-hero .banner-box img {
  object-fit: contain !important;
}

/* Option 2: Fill container but may crop sides (uncomment to use) */
/*
.premium-hero .banner-box img {
  object-fit: cover !important;
}
*/

/* Option 3: Stretch to fill (may distort image) */
/*
.premium-hero .banner-box img {
  object-fit: fill !important;
}
*/

/* ===== OVERRIDE EXISTING STYLES ===== */
.premium-hero .banner-box {
  background: none !important;
  background-size: unset !important;
  background-position: unset !important;
}

.premium-services .service-content {
  display: none !important;
}

.premium-services .wrapp-inner {
  display: none !important;
}

.premium-services .our-service-wrapper {
  display: none !important;
}

/* ===== SMOOTH SCROLLING FIXES ===== */
html {
  scroll-behavior: smooth !important;
}

/* Ensure no transform conflicts between sections */
.premium-hero,
.premium-services {
  will-change: auto !important;
  backface-visibility: hidden !important;
}
