/* Custom Properties / Design Tokens */
:root {
  --bg-obsidian: #050505;
  --bg-charcoal: #121212;
  --bg-dark-gray: #1E1E1E;
  --bg-light-gray: #2A2A2A;
  --text-white: #FFFFFF;
  --text-silver: #A3A3C2;
  --accent-cobalt: #0052FF;
  --accent-silver: #E2E8F0;
  --accent-gold: #D4AF37;
  --success-green: #00FF87;

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

  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.8);
  --border-liquid: 1px solid rgba(226, 232, 240, 0.08);
  --border-glow: 1px solid rgba(0, 82, 255, 0.3);
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-cobalt);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(0, 82, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 82, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px) scale(1.02);
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.sticky-header.scrolled {
  padding: 16px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-liquid);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-sub {
  color: var(--accent-cobalt);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-silver);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

/* Mobile Nav Drawer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  background: url('https://images.unsplash.com/photo-1605164599901-db7f68c4b175?w=1920&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.6) 40%, rgba(5,5,5,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-silver);
  letter-spacing: 6px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  color: var(--text-white);
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-silver);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-silver);
  border-top: var(--border-liquid);
  padding-top: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-gold {
  color: var(--accent-gold);
}

/* Stats Section */
.stats-section {
  background: var(--bg-charcoal);
  padding: 60px 0;
  border-y: var(--border-liquid);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-silver);
  font-size: 15px;
}

/* Service Cards Grid */
.services-section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent-silver);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-charcoal);
  border: var(--border-liquid);
  border-radius: 12px;
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-silver), transparent);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 82, 255, 0.15);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 24px;
}

.service-card-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card-desc {
  color: var(--text-silver);
  margin-bottom: 24px;
  font-size: 15px;
}

.service-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-cobalt);
}

/* Before & After Slider Component */
.gallery-section {
  background: var(--bg-charcoal);
  padding: 120px 0;
}

.slider-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.ba-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  border: var(--border-liquid);
}

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

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--text-white);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  color: var(--bg-obsidian);
  font-weight: bold;
}

/* Chatbot Drawer Widget */
.chatbot-trigger {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-cobalt);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 82, 255, 0.4);
  z-index: 90;
  border: none;
  transition: var(--transition-smooth);
}

.chatbot-trigger:hover {
  transform: scale(1.05);
}

.chatbot-drawer {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 380px;
  height: 520px;
  background: var(--bg-charcoal);
  border: var(--border-liquid);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.chatbot-drawer.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chatbot-header {
  background: var(--bg-dark-gray);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-liquid);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.chat-msg.bot {
  background: var(--bg-dark-gray);
  align-self: flex-start;
  color: var(--text-white);
}

.chat-msg.user {
  background: var(--accent-cobalt);
  align-self: flex-end;
  color: var(--text-white);
}

.chatbot-quick-replies {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--bg-obsidian);
}

.quick-btn {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-dark-gray);
  border: var(--border-liquid);
  color: var(--text-silver);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.quick-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-cobalt);
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-charcoal);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .chatbot-drawer {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 90px;
  }
}
