/* ============================================
   DIS Plumbing & Heating - Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --primary-dark: #000000;
  --primary-blue: #0a0a0a;
  --accent-blue: #00B4D8;
  --accent-orange: #FF6B35;
  --fire-gradient: linear-gradient(135deg, #FF6B35, #FF4500);
  --water-gradient: linear-gradient(135deg, #00B4D8, #0077B6);
  
  /* Glass Morphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(16px);
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
}

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

.section-title h2 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.2rem;
}

.section-title .underline {
  width: 80px;
  height: 4px;
  background: var(--fire-gradient);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================================
   GLASS MORPHISM COMPONENTS
   ============================================ */

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 180, 216, 0.15);
}

/* ---------- Glass Button ---------- */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Primary Button */
.btn-primary {
  background: var(--fire-gradient);
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Secondary Button */
.btn-secondary {
  background: var(--water-gradient);
  border: none;
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Fade In Variants ---------- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Floating Animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* ---------- Pulse Glow ---------- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ---------- Gradient Shift ---------- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Shimmer Effect ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ---------- Glow Border ---------- */
@keyframes glowBorder {
  0%, 100% { border-color: rgba(255, 107, 53, 0.3); }
  50% { border-color: rgba(255, 107, 53, 0.8); }
}

.glow-border {
  animation: glowBorder 2s ease-in-out infinite;
}

/* ---------- Text Gradient Animation ---------- */
.text-gradient-animated {
  background: linear-gradient(135deg, #00B4D8, #FF6B35, #00B4D8);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* ---------- Slide Up Stagger ---------- */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ---------- Tilt Hover ---------- */
.tilt-hover {
  transition: transform 0.3s ease;
}

.tilt-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-5px);
}

/* ---------- Magnetic Button ---------- */
.magnetic {
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.05);
}

/* ---------- Line Reveal ---------- */
.line-reveal {
  position: relative;
  overflow: hidden;
}

.line-reveal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--fire-gradient);
  transition: width 0.4s ease;
}

.line-reveal:hover::after {
  width: 100%;
}

/* ---------- Card Glow on Hover ---------- */
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15);
}

/* ---------- Ripple Effect ---------- */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  padding: 10px 0;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.4), rgba(0, 180, 216, 0.4), transparent);
}

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

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}

.top-bar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.top-bar-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-item:hover::after {
  width: 100%;
}

.top-bar-item svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.top-bar-item:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.top-bar-whatsapp {
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
}

.top-bar-whatsapp::after {
  display: none;
}

.top-bar-whatsapp:hover {
  color: #fff;
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}

.top-bar-whatsapp svg {
  opacity: 1;
}

.top-bar-phone {
  background: rgba(255, 107, 53, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.top-bar-phone::after {
  display: none;
}

.top-bar-phone:hover {
  color: #fff;
  background: rgba(255, 107, 53, 0.2);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: var(--glass-blur);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled + .top-bar {
  display: none;
}

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

.nav-logo img {
  height: 60px;
  transition: var(--transition-normal);
}

.navbar.scrolled .nav-logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover {
  color: #ffffff;
}

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

.nav-cta {
  padding: 12px 28px;
  background: var(--fire-gradient);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-normal);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .navbar {
    top: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-normal);
  }

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

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }
}
