 *{margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
  }

  html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  color: aliceblue;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / Edge */
}

/* Chrome, Safari, Brave, Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Just in case kisi container se scroll aa raha ho */
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

  .bg-video{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(120%) brightness(70%);
}

body::after{
content:"";
position:fixed;
inset:0;
  background: linear-gradient(
    135deg,
    rgba(88, 28, 135, 0.45),
    rgba(30, 27, 75, 0.55)
  );
backdrop-filter:blur(2px);
z-index:-1;
}

.glass{
background:rgba(255,255,255,.14);
backdrop-filter:blur(22px);
border-radius:18px;
border:1px solid rgba(255,255,255,.18);
box-shadow:0 8px 32px rgba(0,0,0,.45);
}

#search::placeholder {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  justify-content: center;
  align-items: center;
}

#search {
  color: #fff;
   text-align: center;
  justify-content: center;
  align-items: center;
}

.app {
  padding:20px
}

.topbar {
  display:flex;
  gap:10px;
  padding:12px;
  margin-bottom:20px
}

.topbar input{
  flex:1;
  background:none;
  border:none;
  color:#fff;
  font-size:16px;
  outline:none
}

.topbar button{
  background:none;
  border:none;
  color:#fff;
  font-size:18px;
  cursor:pointer
}
/* ==============================
   Dashboard Layout
============================== */

.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.sidebar {
  padding: 20px;
}

.sidebar ul {
  list-style: none;
  margin-top: 15px;
}

.sidebar li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.main {
  text-align: center;
  padding: 30px;
}

.main h1 {
  font-size: 32px;
}

.main h2 {
  font-size: 64px;
}


/* ==============================
   Stats Section
============================== */

.stats {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.card {
  text-align: center;
  padding: 20px;
    transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.35);
  background: rgba(255, 255, 255, 0.18);
}

/* ==============================
   Circular Gauges
============================== */

.circle {
  width: 120px;
  height: 120px;
  margin: 15px auto;
  position: relative;
}

.circle svg {
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke-width: 10;
}

.bg {
  stroke: rgba(255, 255, 255, 0.15);
}

.progress {
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: 0.8s;
}

.center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

.humidity .progress {
  stroke: #6dd5fa;
}

.wind .progress {
  stroke: #00f2fe;
}


/* ==============================
   UV Index
============================== */

#uv {
  transition: 0.5s;
}


/* ==============================
   Thermometer
============================== */

.thermo {
  width: 10px;
  height: 90px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 10px auto;
  overflow: hidden;
}

.thermo-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #ff512f, #f09819);
  transition: 1s;
}


/* ==============================
   Graph
============================== */

canvas {
  margin-top: 20px;
}


/* GPU hints */
.card,
.progress,
.thermo-fill {
  will-change: transform;
}

/* Prevent expensive paints */
.glass {
  contain: paint;
}

/* ==============================
   RESPONSIVE (IMPROVED & CLEAN)
============================== */

/* -------- Large Tablets / Small Laptops -------- */
@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }

  .main h1 {
    font-size: 28px;
  }

  .main h2 {
    font-size: 56px;
  }
}

/* -------- Tablets (900px & below) -------- */
@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
    text-align: center;
  }

  .sidebar ul li {
    font-size: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------- Medium Devices -------- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .app {
    padding: 14px;
  }

  .topbar {
    padding: 10px;
  }

  .main {
    padding: 24px 18px;
  }

  .main h1 {
    font-size: 24px;
  }

  .main h2 {
    font-size: 52px;
  }
}

/* -------- Small Tablets / Large Phones -------- */
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #chart {
    height: 120px;
  }

  .card {
    padding: 16px;
  }
}

/* -------- Mobile Devices -------- */
@media (max-width: 600px) {
  .main {
    padding: 18px 14px;
  }

  .main h1 {
    font-size: 22px;
  }

  .main h2 {
    font-size: 46px;
  }

  #weatherIcon {
    font-size: 46px !important;
    margin: 8px 0;
  }

  .thermo {
    height: 80px;
  }
}

/* -------- Small Phones -------- */
@media (max-width: 500px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar input {
    font-size: 14px;
  }

  .topbar button {
    font-size: 16px;
  }

  #chart {
    height: 80px;
  }

  .card h2 {
    font-size: 22px;
  }
}

/* -------- Very Small Devices -------- */
@media (max-width: 360px) {
  .main h1 {
    font-size: 20px;
  }

  .main h2 {
    font-size: 40px;
  }

  .card {
    padding: 14px;
  }

  .center {
    font-size: 18px;
  }
}

/* -------- Ultra Small / Old Devices -------- */
@media (max-width: 300px) {
  body {
    font-size: 12px;
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
  }

  .topbar button {
    align-self: center;
  }

  .main h2 {
    font-size: 34px;
  }
}

