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

:root {
  /* Default Light Theme (Silent/Professional Colors) */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --brand-color: #0ea5e9; /* Soft modern blue */
  --brand-hover: #0284c7;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --input-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme */
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --brand-color: #38bdf8;
    --brand-hover: #7dd3fc;
    --whatsapp-color: #25d366; 
    --whatsapp-hover: #128c7e;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(30, 41, 59, 0.5);
    --input-bg: #0f172a;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

a {
  text-decoration: none;
  color: var(--brand-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-color);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--brand-color);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, var(--surface-color), var(--bg-color));
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  max-width: 550px;
}

/* Hero Graphics */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ac {
  width: 280px;
  height: 100px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-ac:hover {
  transform: translateY(-5px);
}

.hero-ac-logo {
  width: 12px; height: 12px;
  background: var(--brand-color);
  border-radius: 50%;
  position: absolute;
  right: 15px; bottom: 15px;
}

.hero-ac-lines {
  width: 80%; height: 16px;
  background: #f1f5f9;
  border-radius: 4px;
  position: absolute;
  top: 15px; left: 10%;
}

.hero-ac-display {
  position: absolute;
  right: 40px;
  top: 15px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #10b981;
  font-weight: bold;
}

.hero-ac-wind {
  position: absolute;
  width: 6px; height: 30px;
  background: linear-gradient(to bottom, var(--brand-color), transparent);
  bottom: -50px;
  border-radius: 3px;
  animation: heroWind 1.5s infinite;
}
.wind-1 { left: 30%; animation-delay: 0s; }
.wind-2 { left: 50%; animation-delay: 0.3s; }
.wind-3 { left: 70%; animation-delay: 0.6s; }

@keyframes heroWind {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; height: 40px; }
  100% { transform: translateY(50px); opacity: 0; height: 20px; }
}

.hero-floating-box {
  position: absolute;
  width: 60px; height: 60px;
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-color);
  border: 1px solid var(--border-color);
  animation: floatBox 4s ease-in-out infinite;
  z-index: 1;
}
.box-1 { top: 40px; left: 10%; animation-delay: 0s; }
.box-2 { top: 180px; right: 5%; animation-delay: 1.5s; }
.box-3 { bottom: 60px; left: 20%; animation-delay: 3s; }

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

@media (prefers-color-scheme: dark) {
  .hero-ac { background: #1e293b; border-color: #334155; }
  .hero-ac-lines { background: #334155; }
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Perfect AC Installation Section */
.ac-installation {
  padding: 6rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.installation-container {
  display: flex;
  gap: 4rem;
  position: relative;
  align-items: flex-start;
  margin-top: 3rem;
}

.ac-animation-area {
  flex: 1;
  position: sticky;
  top: 150px;
  height: 400px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 5;
}

.wall {
  width: 100%;
  height: 100%;
  position: relative;
}

.ac-assembled {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 90px;
}

.ac-outline {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
}

.ac-part {
  position: absolute;
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-sm);
}

.part-body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  border-radius: 12px;
  transform: translate(-150%, -100px) rotate(-45deg) scale(0.5);
  opacity: 0;
  border: 1px solid var(--border-color);
}
@media (prefers-color-scheme: dark) {
  .part-body { background: linear-gradient(135deg, #334155, #1e293b); }
}

.part-grille {
  width: 80%; height: 20px;
  background: #cbd5e1;
  top: 15px; left: 10%;
  border-radius: 4px;
  transform: translate(150%, -100px) rotate(45deg) scale(0.5);
  opacity: 0;
}
@media (prefers-color-scheme: dark) {
  .part-grille { background: #475569; }
}

.part-flap {
  width: 90%; height: 10px;
  background: #94a3b8;
  bottom: 8px; left: 5%;
  border-radius: 4px;
  transform: translate(-150%, 150px) rotate(-20deg);
  opacity: 0;
}
@media (prefers-color-scheme: dark) {
  .part-flap { background: #64748b; }
}

.part-logo {
  width: 12px; height: 12px;
  background: var(--brand-color);
  border-radius: 50%;
  bottom: 25px; right: 15px;
  transform: translateY(100px) scale(0);
  opacity: 0;
}

/* Scroll Active States */
.ac-installation[data-step="1"] .part-body,
.ac-installation[data-step="2"] .part-body,
.ac-installation[data-step="3"] .part-body,
.ac-installation[data-step="4"] .part-body {
  transform: translate(0, 0) rotate(0) scale(1);
  opacity: 1;
}

.ac-installation[data-step="2"] .part-grille,
.ac-installation[data-step="3"] .part-grille,
.ac-installation[data-step="4"] .part-grille {
  transform: translate(0, 0) rotate(0) scale(1);
  opacity: 1;
}

.ac-installation[data-step="3"] .part-flap,
.ac-installation[data-step="4"] .part-flap {
  transform: translate(0, 0) rotate(0);
  opacity: 1;
}

.ac-installation[data-step="4"] .part-logo {
  transform: translate(0, 0) scale(1);
  opacity: 1;
}

/* New Graphics for AC Installation */
.wall-bracket {
  position: absolute;
  width: 230px;
  height: 15px;
  background: #cbd5e1;
  top: 15px;
  left: 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
@media (prefers-color-scheme: dark) { .wall-bracket { background: #475569; } }

.ac-installation[data-step="1"] .wall-bracket,
.ac-installation[data-step="2"] .wall-bracket,
.ac-installation[data-step="3"] .wall-bracket,
.ac-installation[data-step="4"] .wall-bracket {
  opacity: 1;
}

.copper-pipes {
  position: absolute;
  width: 12px;
  height: 50px;
  background: #b45309;
  right: 20px;
  bottom: -30px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
  z-index: 1;
}
.ac-installation[data-step="3"] .copper-pipes,
.ac-installation[data-step="4"] .copper-pipes {
  opacity: 1;
  transform: translateY(0);
}

.tool-drill, .tool-wrench {
  position: absolute;
  font-size: 2.5rem;
  color: var(--brand-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.tool-drill { top: -30px; left: 50%; transform: translateX(-50%); }
.tool-wrench { right: -40px; top: 30px; }

.ac-installation[data-step="2"] .tool-drill {
  opacity: 1;
  animation: drillAnimation 1s infinite;
}
.ac-installation[data-step="3"] .tool-wrench {
  opacity: 1;
  animation: wrenchAnimation 1s infinite;
}

@keyframes drillAnimation {
  0%, 100% { transform: translate(-50%, 0) rotate(0); }
  50% { transform: translate(-50%, 10px) rotate(15deg); }
}
@keyframes wrenchAnimation {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-30deg); }
}

.ac-display {
  position: absolute;
  right: 40px;
  top: 15px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #10b981;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ac-installation[data-step="4"] .ac-display {
  opacity: 1;
}

.cooling-air {
  position: absolute;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, rgba(14, 165, 233, 0.8), transparent);
  bottom: -60px;
  border-radius: 2px;
  opacity: 0;
}

.air-1 { left: 25%; }
.air-2 { left: 50%; }
.air-3 { left: 75%; }

.ac-installation[data-step="4"] .cooling-air {
  animation: blowAir 1.5s infinite;
}
.ac-installation[data-step="4"] .air-2 { animation-delay: 0.3s; }
.ac-installation[data-step="4"] .air-3 { animation-delay: 0.6s; }

@keyframes blowAir {
  0% { transform: translateY(0); opacity: 0; height: 10px; }
  20% { opacity: 1; height: 40px; }
  100% { transform: translateY(100px); opacity: 0; height: 20px; }
}

.steps-area {
  flex: 1;
  padding-bottom: 30vh;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
}

.step.active {
  opacity: 1;
  transform: translateX(0);
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* Services Section */
.services {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--brand-color);
  border-radius: 3px;
}

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

.service-card {
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--brand-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background-color: var(--bg-color);
  border-radius: 12px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 6rem;
}

.contact-info {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--brand-color);
  margin-top: 0.25rem;
}

.contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Floating WhatsApp Button & Tooltip */
.whatsapp-floating-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

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

.whatsapp-tooltip {
  background-color: var(--surface-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-right: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--surface-color);
}

.whatsapp-floating-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.fab-whatsapp {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.fab-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1) rotate(5deg);
  color: #fff;
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Animations (Scroll reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }
  
  .hero-graphic {
    height: 300px;
    transform: scale(0.8);
  }

  .hero h1 { font-size: 2.5rem; }
  
  .hamburger { display: block; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--surface-color);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .installation-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .ac-animation-area {
    position: sticky;
    top: 80px;
    width: 100%;
    height: 350px;
    z-index: 10;
  }
  
  .ac-assembled {
    transform: translate(-50%, -50%) scale(0.9);
  }
  
  .steps-area {
    padding-bottom: 50vh;
  }
}
