/* Custom Premium Stylesheet for Tes Cleaning Solution */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #0B4F9C;
  --secondary-color: #1E88E5;
  --accent-color: #22C55E;
  --bg-color: #ffffff;
  --bg-alt-color: #f8fafc;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --text-muted-footer: white;
  --white: #ffffff;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px -15px rgba(11, 79, 156, 0.12);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-lg: 24px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-color: #0f172a;
  --bg-alt-color: #1e293b;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --text-muted-footer: white;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color);
}

/* Custom premium navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

[data-theme="dark"] .navbar-custom {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  margin: 0 5px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Premium Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
  transition: var(--transition);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
  color: var(--white);
}

.btn-outline-premium {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 10px 26px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-outline-premium:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .glass-panel {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(30, 136, 229, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(11, 79, 156, 0.08) 0%, transparent 40%);
  padding: 120px 0;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Card Designs */
.premium-card {
  background-color: var(--bg-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

[data-theme="dark"] .premium-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(30, 136, 229, 0.2);
}

/* Footer Section */
.footer-section {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 80px 0 30px;
}

.footer-section h4,
.footer-section h5 {
  color: var(--white);
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* Before and After Image Slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider .handle {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 4px;
  background: var(--white);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ba-slider .handle::after {
  content: '\f337';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Theme Switcher */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider-round {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  background-color: white;
  bottom: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 18px;
  border-radius: 50%;
}

input:checked+.slider-round {
  background-color: var(--primary-color);
}

input:checked+.slider-round:before {
  transform: translateX(24px);
}

/* Adjust default Bootstrap container widths for wider desktop displays */
@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1380px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1520px;
  }
}

/* Navbar logo hover zoom effect */
.navbar-brand img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover img {
  transform: scale(1.15);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(15px);
  padding: 0 !important;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) !important;
}

/* Auto-height layout to fit images horizontally and show full image without distortion or cropping */
.premium-card div.position-relative {
  height: auto !important;
}

.premium-card img,
.ba-slider img,
.object-fit-cover {
  width: 100% !important;
  height: auto !important;
  object-fit: normal !important;
}