:root{
  --header-h:64px;
  --hero-h:100vh;
  --bg-body:#F1F3F5;
  --bg-hero:#000;
  --bg-header:#000;
  --bg-footer:#222;
  --text-light:#fff;
  --text-dark:#222;
  --tile-bg:#fff;
  --tile-shadow:0 2px 8px rgba(0,0,0,.05);
  --tile-radius:12px;
  --font:'Space Grotesk',-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;

  /* Golden particle color configuration */
  --particle-color-r: 255;
  --particle-color-g: 215;
  --particle-color-b: 0;
  --particle-opacity: 0.8;
}

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

body{
  font-family:var(--font);
  background:var(--bg-body);
  color:var(--text-dark);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* ===================================
   HEADER - FIXED
   =================================== */
header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--header-h);
  background:rgba(0, 0, 0, 0.9);
  backdrop-filter:blur(10px);
  color:var(--text-light);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2rem;
  z-index:1000;
  border-bottom:1px solid rgba(255, 215, 0, 0.2);
}

.logo-container{
  display:flex;
  align-items:center;
  gap:0.75rem;
}

.logo-container img{
  width:36px;
  height:36px;
  display:block;
}

header h1{
  font-size:1.25rem;
  font-weight:500;
  letter-spacing:0;
  margin:0;
  white-space:nowrap;
  font-family:"All Round Gothic", sans-serif;
}

nav{
  display:flex;
  gap:2rem;
  align-items:center;
}

nav a{
  color:rgba(255, 255, 255, 0.8);
  text-decoration:none;
  font-size:0.95rem;
  font-weight:400;
  transition:color 0.3s ease;
  white-space:nowrap;
}

nav a:hover{
  color:#FFD700;
}

nav a.active{
  color:#FFD700;
  font-weight:500;
}

.mobile-menu-btn{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
  padding:0.5rem;
}

/* ===================================
   HERO - FULL VIEWPORT
   =================================== */
.hero{
  position:relative;
  background:var(--bg-hero);
  color:var(--text-light);
  height:var(--hero-h);
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  flex-direction:column;
  padding:24px;
  overflow:hidden;
  margin-top:var(--header-h);
}

#particleCanvas{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:10;
  max-width:800px;
}

.hero h2{
  font-size:clamp(32px, 5vw, 64px);
  font-weight:700;
  margin-bottom:1rem;
  letter-spacing:-0.02em;
  text-shadow:0 0 10px rgba(0, 0, 0, 1.0);
}

.hero p{
  max-width:600px;
  font-size:clamp(16px, 2vw, 20px);
  opacity:0.9;
  margin:0 auto;
  font-weight:300;
  text-shadow:0 0 10px rgba(0, 0, 0, 1.0);
}

/* ===================================
   COUNTDOWN TIMER SECTION
   =================================== */
.countdown-section{
  background:linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding:80px 5vw;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.countdown-section::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events:none;
}

.countdown-container{
  position:relative;
  z-index:10;
  max-width:1200px;
  margin:0 auto;
}

.countdown-title{
  font-size:clamp(24px, 4vw, 42px);
  font-weight:700;
  color:#fff;
  margin-bottom:12px;
  letter-spacing:-0.02em;
  text-shadow:0 2px 20px rgba(255, 215, 0, 0.5);
}

.countdown-subtitle{
  font-size:clamp(14px, 2vw, 18px);
  color:rgba(255, 255, 255, 0.7);
  margin-bottom:40px;
  font-weight:400;
}

.countdown-display{
  display:flex;
  justify-content:center;
  gap:clamp(16px, 3vw, 32px);
  flex-wrap:wrap;
  margin-bottom:24px;
}

.countdown-unit{
  background:rgba(255, 215, 0, 0.1);
  backdrop-filter:blur(10px);
  border:2px solid rgba(255, 215, 0, 0.3);
  border-radius:16px;
  padding:clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 28px);
  min-width:clamp(100px, 15vw, 140px);
  box-shadow:0 8px 32px rgba(0, 0, 0, 0.3);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}

.countdown-unit::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition:left 0.5s ease;
}

.countdown-unit:hover::before{
  left:100%;
}

.countdown-unit:hover{
  transform:translateY(-4px);
  border-color:rgba(255, 215, 0, 0.6);
  box-shadow:0 12px 48px rgba(255, 215, 0, 0.4);
}

.countdown-number{
  font-size:clamp(36px, 6vw, 56px);
  font-weight:900;
  color:#FFD700;
  line-height:1;
  display:block;
  margin-bottom:8px;
  text-shadow:0 0 20px rgba(255, 215, 0, 0.6);
  font-variant-numeric:tabular-nums;
}

.countdown-label{
  font-size:clamp(12px, 1.5vw, 16px);
  color:rgba(255, 255, 255, 0.8);
  text-transform:uppercase;
  letter-spacing:2px;
  font-weight:500;
}

.countdown-warning{
  display:inline-block;
  padding:12px 24px;
  background:rgba(255, 69, 0, 0.15);
  border:2px solid rgba(255, 69, 0, 0.4);
  border-radius:8px;
  color:#FF6B6B;
  font-size:14px;
  font-weight:600;
  margin-top:20px;
  text-transform:uppercase;
  letter-spacing:1px;
  animation:pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning{
  0%, 100%{
    box-shadow:0 0 0 0 rgba(255, 69, 0, 0.4);
  }
  50%{
    box-shadow:0 0 0 10px rgba(255, 69, 0, 0);
  }
}

/* ===================================
   DATA VISUALIZATIONS SECTION
   =================================== */
.data-viz-section{
  background:#fff;
  padding:60px 5vw;
}

.viz-container{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  gap:48px;
  grid-template-columns:repeat(auto-fit, minmax(400px, 1fr));
}

.viz-item{
  background:#F8F9FA;
  padding:40px;
  border-radius:16px;
  box-shadow:0 4px 6px rgba(0, 0, 0, 0.1);
}

.viz-item.viz-wide{
  grid-column:1 / -1;
}

.viz-item h2{
  font-size:24px;
  font-weight:700;
  margin-bottom:10px;
  color:#1A202C;
}

.viz-subtitle{
  font-size:14px;
  color:#718096;
  margin-bottom:30px;
  line-height:1.5;
}

.gauge-container{
  position:relative;
  width:300px;
  height:300px;
  margin:30px auto;
}

.gauge-container canvas{
  display:block;
}

.center-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-weight:700;
  font-size:20px;
  color:#1A202C;
  text-align:center;
}

.center-subtext{
  font-size:14px;
  font-weight:500;
  margin-top:5px;
}

.annotations{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
}

.annotation{
  position:absolute;
  white-space:nowrap;
  text-shadow:0 0 5px #ffffff;
}

.ai-total{
  top:15%;
  right:-15%;
  color:#2C3E50;
}

.ai-energy, .ai-water{
  top:22%;
  right:-15%;
  color:#000000;
  font-size:24px;
  font-weight:500;
  line-height:24px;
}

.ai-percentage{
  top:30%;
  right:-15%;
  color:#000000;
  font-size:48px;
  line-height:48px;
  font-weight:900;
}

.ai-cost{
  top:66%;
  right:-15%;
  color:#2C3E50;
}

.ai-dollars{
  top:72%;
  right:-15%;
  color:#000000;
  font-size:48px;
  line-height:48px;
  font-weight:900;
}

.ai-liters{
  top:66%;
  right:-15%;
  color:#2C3E50;
  font-size:12px;
}

.total-global{
  top:15%;
  left:-15%;
  color:#2C3E50;
}

.total-energy, .total-water{
  top:22%;
  left:-15%;
  color:#000000;
  font-size:24px;
  font-weight:500;
  line-height:24px;
}

.time-period{
  top:100%;
  left:50%;
  transform:translateX(-50%);
  color:#000000;
  font-weight:700;
  font-size:20px;
  line-height:20px;
  color:#1A202C;
}

.graph-wrapper{
  position:relative;
  width:100%;
  max-width:800px;
  height:500px;
  margin:30px auto;
}

.graph-wrapper canvas{
  display:block;
  max-width:100%;
  cursor:crosshair;
}

.tooltip{
  position:absolute;
  background:rgba(0, 0, 0, 0.85);
  color:white;
  padding:10px 14px;
  border-radius:6px;
  font-size:13px;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.2s ease;
  white-space:nowrap;
  z-index:1000;
  box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);
}

.tooltip.visible{
  opacity:1;
}

.tooltip-year{
  font-weight:700;
  margin-bottom:6px;
  font-size:14px;
  border-bottom:1px solid rgba(255, 255, 255, 0.2);
  padding-bottom:4px;
}

.tooltip-value{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:4px;
}

.tooltip-dot{
  width:8px;
  height:8px;
  border-radius:50%;
}

.tooltip-dot.ai{
  background:#00D9FF;
}

.tooltip-dot.regular{
  background:#6B4C9A;
}

.tooltip-bar{
  width:12px;
  height:12px;
  border-radius:2px;
}

.tooltip-bar.training{
  background:#00D9FF;
}

.tooltip-bar.inference{
  background:#6B4C9A;
}

.legend{
  display:flex;
  justify-content:center;
  gap:30px;
  margin-top:30px;
  flex-wrap:wrap;
}

.legend-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.legend-color{
  width:20px;
  height:20px;
  border-radius:4px;
}

.legend-ai{
  background:#00D9FF;
}

.legend-non-ai{
  background:#6B4C9A;
}

.legend-water-ai{
  background:#FF8A5B;
}

.legend-water-non-ai{
  background:#20B2AA;
}

.footer-note{
  margin-top:20px;
  font-size:12px;
  color:#718096;
  font-style:italic;
  text-align:center;
}

.highlight-note{
  margin-top:15px;
  padding:10px 15px;
  background:#FFF3CD;
  border-left:4px solid #FFC107;
  border-radius:4px;
  font-size:13px;
  color:#856404;
  text-align:left;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

/* ===================================
   GALLERY BODY
   =================================== */
.gallery{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  padding:48px 5vw;
  max-width:1400px;
  margin:0 auto;
}

.tile{
  background:var(--tile-bg);
  border-radius:var(--tile-radius);
  box-shadow:var(--tile-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform 0.2s, box-shadow 0.2s;
}

.tile:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(255, 215, 0, 0.15);
}

.tile img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.tile-content{
  padding:20px;
}

.tile-content h3{
  font-size:18px;
  margin-bottom:8px;
  font-weight:600;
}

.tile-content p{
  font-size:14px;
  color:#666;
  line-height:1.6;
}

/* ===================================
   FOOTER
   =================================== */
footer{
  background:var(--bg-footer);
  color:var(--text-light);
  padding:64px 5vw;
  text-align:center;
}

footer h4{
  font-size:18px;
  margin-bottom:12px;
  font-weight:600;
}

footer p{
  font-size:14px;
  opacity:0.8;
  max-width:640px;
  margin:0 auto;
}

footer a{
  color:#FFD700;
  text-decoration:none;
}

footer a:hover{
  text-decoration:underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
  header{
    padding:0 1.5rem;
  }

  nav{
    gap:1.5rem;
  }

  .viz-container{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    padding:40px 4vw;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  header{
    padding:0 1rem;
  }

  header h1{
    font-size:1rem;
  }

  nav{
    gap:1rem;
  }

  nav a{
    font-size:0.85rem;
  }

  .hero{
    min-height:500px;
  }

  .graph-wrapper{
    height:400px;
  }

  .gallery{
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:20px;
    padding:32px 3vw;
  }
}

/* Mobile Portrait */
@media (max-width: 640px) {
  nav{
    display:none;
  }

  .mobile-menu-btn{
    display:block;
  }

  nav.mobile-nav-open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:rgba(0, 0, 0, 0.95);
    padding:1rem;
    gap:0;
    border-bottom:1px solid rgba(255, 215, 0, 0.2);
  }

  nav.mobile-nav-open a{
    font-size:1rem;
    padding:0.75rem;
    border-bottom:1px solid rgba(255, 255, 255, 0.1);
    text-align:left;
  }

  nav.mobile-nav-open a:last-child{
    border-bottom:none;
  }

  .hero{
    min-height:400px;
  }

  .viz-item{
    padding:24px;
  }

  .gallery{
    grid-template-columns:1fr;
    padding:24px 4vw;
  }

  footer{
    padding:48px 5vw;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .logo-container img{
    width:7px;
    height:28px;
  }

  header h1{
    font-size:0.9rem;
  }

  .tile img{
    height:160px;
  }
}
