/* ============================================
   UPAGRAHA — Main Stylesheet
   Theme: Black / Purple / White
   Font: Syne (display) + DM Mono (body/accent)
   ============================================ */

:root {
  --black:      #08080f;
  --deep:       #0d0d1a;
  --card-bg:    #111122;
  --purple-900: #1a0030;
  --purple-700: #4b007a;
  --purple-500: #7c3aed;
  --purple-400: #a855f7;
  --purple-300: #c084fc;
  --purple-100: #e9d5ff;
  --white:      #f8f6ff;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;

  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  --radius: 4px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Noise texture overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color var(--transition);
}

.logo:hover { color: var(--purple-300); }

.logo-symbol {
  font-size: 1.4rem;
  color: var(--purple-400);
  display: inline-block;
  animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  color: var(--gray-400);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.12);
}

.nav-link.active {
  color: var(--purple-300);
  border-color: rgba(168, 85, 247, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--purple-500);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--purple-400);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ============ PAGE SECTIONS ============ */
.section {
  margin-bottom: 5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple-400);
  letter-spacing: 0.1em;
  margin-left: auto;
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-400));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.card:hover::before { opacity: 1; }

.card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-400);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1rem;
}

.card-tag.ongoing {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.card-tag.completed {
  color: var(--purple-300);
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.3);
}

.card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-400);
  font-size: 0.88rem;
  line-height: 1.7;
}

.card-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ TEAM GRID ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.72rem;
  color: var(--purple-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ ACHIEVEMENTS ============ */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.achievement-item {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--transition);
}

.achievement-item:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}

.achievement-icon {
  font-size: 1.8rem;
}

.achievement-info h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.achievement-info p {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.achievement-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple-400);
  text-align: right;
  white-space: nowrap;
}

/* ============ SPONSORS ============ */
.sponsor-tiers {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sponsor-tier-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sponsor-tier-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(124, 58, 237, 0.2);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.sponsor-card {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  text-align: center;
  transition: all var(--transition);
}

.sponsor-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.sponsor-logo-placeholder {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple-300);
}

.sponsor-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.sponsor-desc {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
}

.about-hex {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-900), var(--deep));
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  color: var(--purple-400);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: none; filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3)); }
  50% { filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.6)); }
}

.about-orbit {
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  animation: orbit-spin 20s linear infinite;
}

.about-orbit::before {
  content: '●';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--purple-400);
  font-size: 0.5rem;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple-400);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Markdown content styling */
.prose {
  color: var(--gray-400);
  line-height: 1.8;
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 2rem 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--purple-300);
  margin: 1.5rem 0 0.75rem;
}

.prose p { margin-bottom: 1rem; }

.prose strong { color: var(--white); }

/* ============ PROJECT FILTERS ============ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-500);
  color: var(--purple-300);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-symbol {
  color: var(--purple-400);
  animation: spin-slow 10s linear infinite;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray-600);
  opacity: 0.7;
}

/* ============ SCROLL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-visual { max-width: 220px; margin: 0 auto; }
  
  .achievement-item { grid-template-columns: auto 1fr; }
  .achievement-year { grid-column: 2; }

  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--deep);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-list.open { display: flex; }

  .site-header { position: relative; }
  .site-header { position: sticky; }
}
