/* style.css – colorful, responsive, HTML5‑only landing page */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background: #fafafa;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.logo svg {
  display: block;
}
.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: #ffeb3b;
}

/* Hero */
.hero {
  flex: 1 0 auto;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #001f3f, #004466);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Wave divider */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: -4px; /* overlap hero */
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}
/* Floating blob */
.floating-blob {
  position: absolute;
  top: 20%;
  right: -80px;
  width: 150px;
  height: 150px;
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-shadow: 0 0 8px #00ffff, 0 0 12px #00ffff;
}
.hero .highlight {
  color: #ffeb3b;
}
.hero .tagline {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(0,255,255,0.1);
  color: var(--accent);
  border: 1px solid #00ffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
  background: rgba(0,255,255,0.3);
  color: #fff;
}

/* Sections */
.content-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.story-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.story-card .avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 0.5rem;
}
.story-card blockquote {
  font-style: italic;
  color: #555;
}

/* Network lines decorative */
.network-lines {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.network-lines svg {
  width: 100%;
  height: 150px;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.features-list li {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Illustration container */
.illustration {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative; /* for absolute rings */
    overflow: visible;
}

/* Rotating rings animation (kept for backward compatibility) */
.rings {
    animation: spin 12s linear infinite;
    transform-origin: 100px 100px; /* center of 200x200 viewBox */
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* New solarpunk elements */
.solar-panels rect {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    opacity: 0.6;
    filter: url(#glow);
}
.leaves path {
    fill: var(--accent);
    opacity: 0.4;
    filter: url(#glow);
}
.data-ring {
    animation: rotateRing 8s linear infinite;
    transform-origin: 100px 100px;
}
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.illustration {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
  flex-shrink: 0;
}

/* Responsive tweaks */

/* --- Added Solarpunk / Sci‑Fi palette --- */
:root {
  --bg-primary: #001f3f;   /* deep oceanic blue */
  --bg-secondary: #004466; /* darker teal */
  --accent: #ff7f50;       /* solar orange */
  --highlight: #ffd700;    /* bright gold */
  --glow: #ff7f50;
}

/* Override background gradient */
.hero {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

/* Hero heading glow */
.hero h1 {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent), 0 0 12px var(--accent);
}

/* Navigation links */
.nav a {
  color: var(--accent);
}
.nav a:hover {
  color: var(--highlight);
}

/* Primary button */
.btn-primary {
  background: rgba(255,127,80,0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: rgba(255,127,80,0.3);
  color: #fff;
}

/* Globe styling (override) */
.globe * {
  stroke: var(--accent) !important;
  fill: var(--accent) !important;
}

.globe circle {
  stroke: var(--accent);
  fill: url(#globeGrad);
  filter: url(#glow);
}
.globe g {
  stroke: var(--accent);
  fill: var(--accent);
}
.globe defs radialGradient#globeGrad stop:nth-child(1) { stop-color: #001f3f; }
.globe defs radialGradient#globeGrad stop:nth-child(2) { stop-color: #004466; }
.globe defs filter#glow feGaussianBlur { stdDeviation: 4; }

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
  }
  .nav a {
    margin: 0.5rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
