/* ============================================
   Sté Clim Design Service – Main Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f2744 100%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
.font-display { font-family: 'Outfit', sans-serif; }

/* ---- Gradient Background ---- */
.gradient-bg {
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f2744 100%);
  min-height: 100vh;
}

/* ---- Glass Card ---- */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-card-strong {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ---- Frost ---- */
.frost-effect {
  background: linear-gradient(180deg, rgba(56,189,248,0.1) 0%, rgba(56,189,248,0) 100%);
}

/* ---- Snowflakes ---- */
.snowflake {
  position: fixed;
  color: rgba(56,189,248,0.15);
  pointer-events: none;
  z-index: 0;
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0%   { transform: translateY(-80px) rotate(0deg); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.7; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50%       { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}
.snowflake-float { animation: float 6s ease-in-out infinite; }

/* ---- Pulse Glow ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(56,189,248,0.3); }
  50%       { box-shadow: 0 0 50px rgba(56,189,248,0.7); }
}
.cta-button { animation: pulse-glow 3s ease-in-out infinite; }

/* ---- Slide Up Animate ---- */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.8s ease-out forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ---- Service Card ---- */
.service-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56,189,248,0.4) !important;
  box-shadow: 0 20px 50px rgba(56,189,248,0.1);
}

/* ---- Wave Pattern ---- */
.wave-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2338bdf8' fill-opacity='0.04' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
}

/* ---- Navigation ---- */
nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  background: rgba(10,22,40,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: #38bdf8 !important; }

/* Mobile Menu */
#mobile-menu {
  display: none;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(56,189,248,0.1);
}
#mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 14px 24px;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  font-weight: 500;
}
.mobile-link:hover { color: #38bdf8; background: rgba(56,189,248,0.05); }

/* ---- Form Inputs ---- */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.form-input option { background: #0f2744; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 8px;
}

/* ---- Calculator ---- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(56,189,248,0.2);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 0 12px rgba(56,189,248,0.5);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  cursor: pointer;
}

/* ---- Tabs ---- */
.tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
}
.tab-btn.active {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(56,189,248,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Accordion ---- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-content.open { max-height: 400px; }
.accordion-btn svg {
  transition: transform 0.3s ease;
}
.accordion-btn.open svg { transform: rotate(180deg); }

/* ---- Hero Counter ---- */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.count-anim { animation: countUp 0.6s ease-out forwards; }

/* ---- Floating AC unit ---- */
@keyframes float-unit {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}
.float-unit { animation: float-unit 6s ease-in-out infinite; }

/* ---- Ice particles ---- */
@keyframes ice-particle {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  20%  { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--tx)*3), calc(var(--ty)*3)) scale(0.3); }
}
.ice-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(56,189,248,0.6);
  animation: ice-particle 3s ease-out infinite;
}

/* ---- Page Header ---- */
.page-header {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(56,189,248,0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* ---- Price Badge ---- */
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.25);
  color: #38bdf8;
}

/* ---- Testimonial card ---- */
.testimonial-card {
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }

/* ---- Stats bar ---- */
.stat-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.stat-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8, #1d4ed8);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s ease;
}
.stat-fill.animate { transform: scaleX(1); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-header { padding: 100px 0 60px; }
  .hide-mobile { display: none !important; }
}

/* ---- Success / Error messages ---- */
.alert-success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 500;
}
.alert-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 500;
}

/* ---- WhatsApp button ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
