/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
}




/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 80px 60px;
}

.hero-content h1 {
  font-family: 'League Gothic', sans-serif;
  font-size: 68px;
  line-height: 1;
}

.hero-content span {
  color: var(--fern);
}

.hero-content p {
  margin: 20px 0 30px;
  max-width: 520px;
}

/* LPG Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.cylinder {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}


.cylinder::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--deep-green);
  border-radius: 10px;
}

/* METRICS */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 60px;
}

.metric-card {
  background: var(--sage);
  padding: 24px;
  border-radius: 18px;
}

.metric-card h3 {
  margin-bottom: 10px;
}

/* INFO SECTIONS */
.info-section {
  padding: 70px 60px;
}

.info-section.alt {
  background: rgba(0, 0, 0, 0.04);
}

.info-section h2 {
  font-family: 'League Gothic', sans-serif;
  font-size: 44px;
  margin-bottom: 16px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  opacity: 0.85;
}
/* ================= HERO STAGGER ANIMATION ================= */

.hero-content h1 {
  animation-delay: 0.1s;
}

.hero-content p {
  animation-delay: 0.25s;
}

.hero-content .btn-secondary {
  animation-delay: 0.4s;
}
/* ================= HERO LPG ANIMATION ================= */

.lpg-anim {
  width: 220px;
  height: 420px;
  margin: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cylinder body */
.cylinder-shell {
  width: 120px;
  height: 300px;
  border-radius: 60px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(52, 78, 65, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* Gas fill */
.gas-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 72%;
  background: linear-gradient(
    180deg,
    #a3b18a,
    #588157
  );
  animation: gasBreath 5s ease-in-out infinite;
}

/* Breathing animation */
@keyframes gasBreath {
  0%   { height: 70%; }
  50%  { height: 74%; }
  100% { height: 70%; }
}

/* Gas info */
.gas-info {
  position: absolute;
  bottom: -60px;
  text-align: center;
}

.gas-percent {
  font-size: 28px;
  font-weight: 600;
  color: var(--deep-green);
}

.gas-label {
  font-size: 12px;
  opacity: 0.7;
}

/* Data pulse (ESP32 → Cloud) */
.data-pulse {
  position: absolute;
  top: -30px;
  width: 6px;
  height: 6px;
  background: var(--fern);
  border-radius: 50%;
  animation: pulseUp 2.8s linear infinite;
}

@keyframes pulseUp {
  0% {
    transform: translateY(220px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px);
    opacity: 0;
  }
}
/* ================= REALISTIC LPG CYLINDER ================= */

.real-cylinder {
  position: relative;
  width: 260px;
  margin: auto;
}

/* Cylinder image */
.real-cylinder img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 3;
}

/* Gas mask */
.gas-mask {
  position: absolute;
  left: 12%;
  bottom: 14%;
  width: 76%;
  height: 60%;
  overflow: hidden;
  z-index: 1;
  border-radius: 0 0 40px 40px;
}

/* Gas liquid */
.gas-liquid {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 72%;
  background: linear-gradient(
    180deg,
    rgba(163,177,138,0.9),
    rgba(88,129,87,0.95)
  );
  animation: gasBreath 6s ease-in-out infinite;
}

/* Breathing */
@keyframes gasBreath {
  0% { height: 70%; }
  50% { height: 74%; }
  100% { height: 70%; }
}

/* Branding on cylinder */
.cylinder-brand {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'League Gothic', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  z-index: 4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Gas readout */
.gas-readout {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  font-weight: 600;
  color: var(--deep-green);
}

/* IoT pulse */
.iot-pulse {
  position: absolute;
  right: -20px;
  bottom: 120px;
  width: 6px;
  height: 6px;
  background: var(--fern);
  border-radius: 50%;
  animation: pulseUp 2.6s linear infinite;
  z-index: 5;
}

@keyframes pulseUp {
  0% {
    transform: translateY(120px);
    opacity: 0;
  }
  30% { opacity: 1; }
  100% {
    transform: translateY(-160px);
    opacity: 0;
  }
}
/* ================= HERO IOT FLOW ================= */

.iot-flow {
  position: relative;
  width: 300px;
  height: 420px;
  margin: auto;
}

/* Cylinder */
.iot-cylinder {
  width: 140px;
  height: 260px;
  background: linear-gradient(180deg, #7fa27b, #588157);
  border-radius: 70px 70px 40px 40px;
  margin: auto;
  position: relative;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
}

.iot-brand {
  position: absolute;
  top: 45%;
  width: 100%;
  text-align: center;
  font-family: 'League Gothic', sans-serif;
  font-size: 24px;
  color: #fff;
  letter-spacing: 2px;
}

/* Cloud */
.iot-cloud {
  position: absolute;
  top: 20px;
  right: 0;
  background: #dad7cd;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Flow line */
.flow-line {
  position: absolute;
  top: 140px;
  left: 150px;
  width: 90px;
  height: 2px;
  background: rgba(88,129,87,0.4);
}

/* Moving data dot */
.flow-dot {
  position: absolute;
  top: 134px;
  left: 150px;
  width: 8px;
  height: 8px;
  background: var(--fern);
  border-radius: 50%;
  animation: dataFlow 2.5s linear infinite;
}

@keyframes dataFlow {
  0% { left: 150px; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 240px; opacity: 0; }
}

/* Readout */
.iot-readout {
  margin-top: 18px;
  text-align: center;
}

.iot-readout strong {
  font-size: 34px;
  color: var(--deep-green);
}

.iot-readout span {
  display: block;
  font-size: 13px;
  opacity: 0.7;
}

/* ================= REFINED LPG CYLINDER ================= */

.lpg-anim {
  position: relative;
  width: 260px;
  margin: auto;
}

/* Shell */
.cylinder-shell {
  position: relative;
  width: 160px;
  margin: auto;
}

/* Top part */
.cylinder-top {
  position: relative;
  width: 100px;
  height: 32px;
  margin: auto;
}

.top-ring {
  width: 100%;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(#9fb59a, #7fa27b);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
}

.valve-dot {
  width: 10px;
  height: 10px;
  background: #eaeaea;
  border-radius: 50%;
  margin: 4px auto 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

/* Body */
.cylinder-body {
  width: 160px;
  height: 260px;
  background: linear-gradient(180deg, #7fa27b, #588157);
  border-radius: 80px 80px 50px 50px;
  position: relative;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.25),
    0 18px 40px rgba(0,0,0,0.18);
}

/* Brand */
.cylinder-brand {
  position: absolute;
  top: 46%;
  width: 100%;
  text-align: center;
  font-family: 'League Gothic', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Readout */
.gas-info {
  text-align: center;
  margin-top: 18px;
}

.gas-percent {
  font-size: 34px;
  font-weight: 600;
  color: var(--deep-green);
}

.gas-label {
  display: block;
  font-size: 13px;
  opacity: 0.7;
}

/* ================= DATA BUBBLES ================= */

.bubble {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(88,129,87,0.9);
  border-radius: 50%;
  filter: blur(0.2px);
  animation: bubbleUp 4.5s infinite ease-in;
}

.b1 { left: 190px; bottom: 160px; animation-delay: 0s; }
.b2 { left: 210px; bottom: 140px; animation-delay: 1.2s; }
.b3 { left: 200px; bottom: 120px; animation-delay: 2.4s; }

@keyframes bubbleUp {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  20% { opacity: 1; }
  100% {
    transform: translateY(-140px) scale(1);
    opacity: 0;
  }
}
/* ================= REALISTIC LPG CYLINDER ================= */

.lpg-anim {
  position: relative;
  width: 300px;
  height: 460px;
  margin: auto;
}

/* Cylinder wrapper */
.cylinder {
  position: relative;
  width: 170px;
  margin: auto;
}

/* HANDLE */
.cylinder-handle {
  position: absolute;
  top: -22px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
}

.handle-bar {
  width: 20px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(#9fb59a, #6f8f6c);
}

/* VALVE */
.cylinder-valve {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #eee;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

/* BODY */
.cylinder-body {
  margin-top: 28px;
  width: 170px;
  height: 280px;
  background: linear-gradient(180deg, #7fa27b, #588157);
  border-radius: 85px 85px 55px 55px;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.25),
    0 22px 45px rgba(0,0,0,0.18);
  position: relative;
}

.cylinder-brand {
  position: absolute;
  top: 46%;
  width: 100%;
  text-align: center;
  font-family: 'League Gothic', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* READOUT */
.gas-info {
  text-align: center;
  margin-top: 16px;
}

.gas-percent {
  font-size: 36px;
  font-weight: 600;
  color: var(--deep-green);
}

.gas-label {
  font-size: 13px;
  opacity: 0.7;
}

/* ================= GAS BUBBLES (VISIBLE & REALISTIC) ================= */

.gas-bubble {
  position: absolute;
  bottom: 190px;
  left: 180px;
  width: 14px;
  height: 14px;
  background: rgba(88,129,87,0.85);
  border-radius: 50%;
  filter: blur(0.4px);
  animation: bubbleFlow 5.5s infinite ease-in;
}

.g1 { animation-delay: 0s; }
.g2 { animation-delay: 1.3s; width: 10px; height: 10px; }
.g3 { animation-delay: 2.6s; width: 12px; height: 12px; }
.g4 { animation-delay: 3.9s; width: 8px; height: 8px; }

@keyframes bubbleFlow {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  15% { opacity: 1; }
  100% {
    transform: translate(120px, -160px) scale(1);
    opacity: 0;
  }
}
/* ================= REALISTIC CYLINDER TOP ================= */

.cylinder-top-real {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 70px;
  z-index: 3;
}

/* Vertical supports */
.top-support {
  position: absolute;
  top: 18px;
  width: 16px;
  height: 40px;
  background: linear-gradient(#8fae8a, #6f8f6c);
  border-radius: 8px;
}

.top-support.left { left: 18px; }
.top-support.right { right: 18px; }

/* Handle bar */
.top-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 18px;
  background: linear-gradient(#9fbf9a, #7fa27b);
  border-radius: 10px;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    0 4px 10px rgba(0,0,0,0.18);
}

/* Valve */
.top-valve {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #ececec;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.top-valve span {
  position: absolute;
  inset: 4px;
  background: #aaa;
  border-radius: 50%;
}

/* Subtle gas presence glow */
.top-fill-glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: radial-gradient(
    ellipse at center,
    rgba(127,162,123,0.55),
    transparent 70%
  );
  filter: blur(6px);
  animation: fillBreath 6s ease-in-out infinite;
}

/* Ultra-subtle breathing */
@keyframes fillBreath {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}
