
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}


.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 4rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-summary {
  font-size: 1.15rem;
  color: #444;
  max-width: 32rem;
}


.hero-aqi-card {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin-left: auto;     
  margin-right: 0.1rem;    
}
/*----thank God for stack overflow giving a solution i'm gonna cry---*/
.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgb(236,236,236) 0%,     
    rgb(233, 233, 233) 50%,   
    rgb(255, 255, 255) 100%   
  );

  box-shadow:
    0 10px 50px rgba(0,0,0,0.10),  
    0 40px 90px rgba(0,0,0,0.06);  
  
  z-index: 1;
}

.glow-circle {
  animation: breathe 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.04); /* expands gently */
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.12); /* soft halo */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
  }
}

.hero-aqi-value,
.hero-aqi-status {
  z-index: 10;
}


.hero-aqi-value {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 76px;
  font-weight: 700;
  color: #111;
  margin-bottom: -4px;
}

.hero-aqi-status {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 23px;
  font-weight: 630;
  color: #111;
}


/* ---------- Global footer ---------- */



.about-background {
  padding-top: 80px; 
  padding-bottom: 70px; 
}


.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1.75rem;
}

.about-tagline {
  font-style: italic;
  color: #666;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.about-text p + p {
  margin-top: 1rem;
}

#about-page {
  position: relative;
  overflow: hidden;
}




* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.community-page {
  padding: 64px 0 96px;
}

.community-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 96px;   
  display: flex;
  align-items: center;      
  justify-content: space-between;
  gap: 64px;
}


.community-heading {
  font-size: 64px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;   
}

.community-subtext {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
  color: #222;
}


.community-form-panel {
  background: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: 28px;
  max-width: 720px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02);

  margin-top: 0px;
}

.community-row {
  max-width: 1200px;   
  margin: 0 auto;
  display: flex;
  gap: 100px;
}

.community-left {
  flex: 1.7;            
}

.community-right {
  flex: 0 0 540px;      
}


.community-form-panel {
  max-width: 540px;
}

@media (max-width: 768px) {
  .community-row {
    flex-direction: column;
    gap: 24px;
  }
}

.community-form-section {
  max-width: 640px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.community-form-heading {
  font-size: 24px;
  margin: 0 0 8px;
}

.community-form-section {
  max-width: 640px;
  margin: 64px auto 80px;
  padding: 0 24px;
}

.form-card {
  margin-top: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.03);
  padding: 32px 32px 28px;
}

.form-card textarea {
  width: 100%;
  border: none;
  resize: vertical;
  min-height: 140px;
  font-size: 14px;
  line-height: 1.5;
}

.form-card textarea::placeholder {
  color: #b0b0b0;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.btn-primary {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #222;
}


.community-wall {
  border-top: 1px solid #e5e7eb;
  margin-top: 80px;
  padding: 64px 24px 96px;
}

.wall-header {
  text-align: center;
  max-width: 1200px;     
  margin: 0 auto 40px;    
}

.wall-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 8px;

  white-space: nowrap;    
  display: inline-block;  
}

.wall-subtitle {
  font-size: 20px;
  line-height: 1.7;
  color: #4b5563;
}

.empty-wall {
  border-radius: 18px;
  border: 1px dashed #d3d3d3;
  padding: 32px 24px;
  text-align: center;
  background: #fdfdfd;
}

.empty-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.empty-text {
  margin: 0;
  font-size: 14px;
  color: #777;
}

.notes-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-card-wall {
  background: #f9fafb;         
  border: 1px solid #e5e7eb;   
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

@keyframes noteFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.note-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.note-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.note-text {
  font-size: 15px;
  line-height: 1.6;
  color: #111827;
  margin-bottom: 10px;
}

.note-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.note-timestamp {
  opacity: 0.9;
}


  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav a {
    margin-left: 0;
  }

  .community-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .community-title {
    font-size: 32px;
  }

/* ---------- Global footer ---------- */

.site-footer {
  max-width: 1160px;
  margin: 4rem auto 2.5rem;   /* centered, same width as content */
  padding: 1.75rem 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: left;
  margin-top: 17rem;
}

.site-footer p {
  margin: 0;
}

.site-footer small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* subtle hover if you ever add links inside */
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile: centre + a bit tighter */
@media (max-width: 900px) {
  .site-footer {
    text-align: center;
    margin-top: 3rem;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------
   HEADER / NAV (iOS glass)
--------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1.5rem 0; /* your OG sizing */
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);

  /* glassmorphism */
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.92),
    rgba(249, 250, 251, 0.86)
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.main-nav {
  max-width: 1100px;      /* your OG width */
  margin: 0 auto;
  padding: 0 2rem;        /* your OG padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;     /* your OG logo size */
  font-weight: 600;
  cursor: default;
}

/* ---------------------------
   NAV LINKS
--------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;           /* your OG gap */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  font-size: 1.15rem;     /* your OG nav font-size */
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 0.2rem 0;      /* your OG padding */
  transition: color 0.15s ease;
}

/* base underline animation */
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #111;
  transition: width 0.18s ease;
}

.nav-links > li > a:hover {
  color: #000;
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after {
  width: 100%;
}

/* active page underline (kept from OG) */
.nav-links > li > a.is-active::after,
.nav-parent.active::after {
  width: 100%;
}

/* ---------------------------
   DROPDOWN TRIGGER
--------------------------- */
.has-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
}

/* small chevron */
.nav-parent::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.7;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* rotate when open */
.has-dropdown.is-open .nav-parent::after {
  transform: rotate(-180deg);
  opacity: 1;
}

/* ---------------------------
   DROPDOWN PANEL (glass)
--------------------------- */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none;

  /* iOS-ish glass card */
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.85));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  /* animation state */
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.2s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.2s ease;
}

/* visible when .is-open is added via JS */
.has-dropdown.is-open .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ---------------------------
   DROPDOWN ITEMS
--------------------------- */
.dropdown li {
  margin: 2px 0;
}

/* base state: visible text, nice color */
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 10px;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 999px;
  text-decoration: none;
  color: #020617;          /* force dark text */
  opacity: 1;              /* <-- IMPORTANT */
  transition:
    background-color 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease,
    opacity 0.18s ease;
}

/* hide ONLY when the dropdown is closed */
.has-dropdown:not(.is-open) .dropdown li a {
  opacity: 0;
}

/* pill hover */
.dropdown li a:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* active subpage styling */
.dropdown li a.active-sub {
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
}


/* =========================
   EYE NAV ICON (link item)
   Put <li class="nav-eye-item"> ... </li>
========================= */
.nav-eye-item > .nav-eye-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0; /* match links */
  position: relative;
}

/* Icon underline: centered, short */
.nav-eye-item > .nav-eye-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #111;
  transition: width 0.18s ease;
}

.nav-eye-item > .nav-eye-link:hover::after,
.nav-eye-item > .nav-eye-link:focus-visible::after,
.nav-eye-item > .nav-eye-link.is-active::after {
  width: 34px;
}

.nav-eye-icon {
  width: 34px; /* sweet spot with your nav font size */
  aspect-ratio: 2 / 1;
  display: block;
  will-change: transform;
}

.nav-eye-item > .nav-eye-link:hover .nav-eye-icon {
  transform: translateY(-1px);
}


/* MOBILE FIX */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  nav {
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero {
    flex-direction: column;
    padding: 24px 16px;
    text-align: left;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 16px;
    margin-top: 12px;
  }

  .aqi-circle {
    position: static;
    width: 180px;
    height: 180px;
    margin: 24px auto 0;
  }

  footer {
    font-size: 12px;
    padding: 16px;
  }
}
