/* PRISM - SDGs × AI */

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

:root {
  --bg: #0a0a0c;
  --bg2: #121216;
  --text: #fafafa;
  --dim: #888;
  --muted: #555;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 5%;
  background: rgba(10,10,12,0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #ff0080, #00ff88, #00bfff, #ff0080);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 5s ease infinite;
}

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

nav ul { display: flex; gap: 2rem; }
nav a { font-size: 0.85rem; color: var(--dim); }
nav a:hover { color: var(--text); }

.menu-btn { display: none; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background-image: url('images/hero-top-v2.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 24px;
  padding: 4rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.prism-text {
  background: linear-gradient(135deg, #00ff88, #00bfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--muted);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-cta:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* Sections */
section { padding: 6rem 0; }

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--dim);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.8;
}

/* SDGs Section */
.sdgs-section { background: var(--bg2); }

/* SDGs Grid */
.sdgs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}

.sdg-card {
  display: flex;
  flex-direction: column;
  background: #0d0d12;
  border: 1px solid #222;
  padding: 1.5rem;
  min-height: 140px;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}

.sdg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--card-color, #888);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.sdg-card:hover { background: var(--bg2); }
.sdg-card:hover::before { transform: scaleY(1); }

.sdg-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--card-color, #888);
  margin-bottom: 0.75rem;
}

.sdg-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.sdg-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 0.5rem;
  transition: transform 0.3s, color 0.3s;
}

.sdg-card:hover .sdg-arrow {
  color: var(--card-color, #888);
  transform: translateX(5px);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  display: block;
  background: var(--bg2);
  border: 1px solid #222;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #444;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.8rem;
  color: var(--muted);
}
.card-link:hover { color: var(--text); }

/* News */
.news-list { margin-top: 2rem; }

.news-item {
  display: flex;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #222;
  transition: padding-left 0.3s;
}
.news-item:hover { padding-left: 1rem; }

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 90px;
}

.news-title {
  color: var(--dim);
  font-size: 0.9rem;
}
.news-item:hover .news-title { color: var(--text); }

/* Footer */
footer {
  background: var(--bg2);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-desc { color: var(--dim); font-size: 0.85rem; }

.footer-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--dim); }
.footer-links a:hover { color: var(--text); }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #222; }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* Page Template */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.page-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.page-content h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.page-content p { color: var(--dim); margin-bottom: 1.25rem; line-height: 1.9; }
.page-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { color: var(--dim); margin-bottom: 0.5rem; list-style: disc; }

/* Responsive */
@media (max-width: 1024px) {
  .sdgs-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }
  
  nav ul { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    z-index: 9999;
  }
  
  nav.open ul { display: flex !important; flex-direction: column !important; }
  nav ul li { padding: 0.75rem 0; border-bottom: 1px solid #222; }
  
  .menu-btn { 
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer; 
  }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); }
  
  .hero { min-height: auto; padding: 8rem 1rem 4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 2rem 1.5rem; margin: 0 1rem; }
  
  .section-title { font-size: 1.75rem; }
  
  .sdgs-grid { grid-template-columns: repeat(2, 1fr); }
  .sdg-card { padding: 1rem; min-height: 100px; }
  .sdg-title { font-size: 0.8rem; }
  
  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  
  .news-item { flex-direction: column; gap: 0.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .page-hero { padding: 7rem 1rem 2rem; }
  .page-content { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .sdgs-grid { grid-template-columns: 1fr; }
  .sdg-card { min-height: 80px; }
}
