* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --accent: #7c3aed;
  --accent-2: #c4b5fd;
  --accent-3: #4c1d95;
  --nav-height: 44px;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a0025, #000000 70%);
  color: var(--white);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 40;
  padding: 6px 12px;
}
.brand {
  color: var(--white);
  font-family: 'SF Pro', 'Inter', system-ui, -apple-system;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.6px;
  text-decoration: none;
  padding: 4px 8px;
  text-shadow: 0 0 8px rgba(124,58,237,0.14);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 33px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .brand-logo { height: 22px; }
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: var(--nav-height);
  pointer-events: none;
  filter: blur(28px);
  background: linear-gradient(90deg, rgba(124,58,237,0.10), rgba(159,122,234,0.04));
  z-index: 1;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02), 0 6px 24px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.brand {
  color: var(--white);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.6px;
  text-decoration: none;
  padding: 4px 8px;
  text-shadow: 0 0 8px rgba(124,58,237,0.14);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  align-items: center;
  flex: 1;
  justify-content: space-evenly;
  margin: 0 12px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.18s ease;
  opacity: 0.95;
}
/* larger tappable targets on mobile */
@media (max-width:640px){
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(124,58,237,0.18);
  text-shadow: 0 0 12px rgba(124,58,237,0.6);
  background: linear-gradient(90deg, rgba(124,58,237,0.06), rgba(124,58,237,0.03));
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}

/* Nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { display: block; color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.18s ease;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(124,58,237,0.10);
}

.btn-accent {
  background: linear-gradient(90deg, var(--accent), #9f7aea);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.87rem;
  box-shadow: 0 6px 18px rgba(124,58,237,0.28), 0 0 28px rgba(124,58,237,0.12) inset;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.30), 0 0 36px rgba(124,58,237,0.22);
  text-shadow: 0 0 14px rgba(196,181,253,0.9);
}

/* HERO SECTION */
.hero {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 20px;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
}

.highlight {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.85;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-image {
  font-size: 8rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* CONTENT CONTAINER */
.content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
}

.section-header h2 {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* CONTENT SECTION */
.content-section {
  margin-bottom: 80px;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
}

.section-content p {
  margin-bottom: 20px;
}

/* GOALS SECTION */
.goals-section {
  margin-bottom: 80px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.goal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border: 1px solid rgba(124,58,237,0.06);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(124,58,237,0.04) inset;
}

.goal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,58,237,0.16);
  box-shadow: 0 16px 48px rgba(124,58,237,0.12), 0 0 36px rgba(124,58,237,0.08) inset;
}

.goal-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.goal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--white);
}

.goal-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* TEAM SECTION */
.team-section {
  margin-bottom: 80px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.member-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border: 1px solid rgba(124,58,237,0.06);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(124,58,237,0.04) inset;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.16);
  box-shadow: 0 12px 40px rgba(124,58,237,0.1), 0 0 32px rgba(124,58,237,0.08) inset;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(124,58,237,0.25);
  position: relative;
  overflow: visible;
}

/* support actual avatar images inside .avatar */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Member tooltip (appears on hover or touch) */
.member-tooltip {
  position: fixed;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(36,26,48,0.98));
  color: var(--white);
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 28px rgba(124,58,237,0.06) inset;
  border: 1px solid rgba(124,58,237,0.08);
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.member-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.member-tooltip p { margin: 6px 0; }
.member-tooltip p:first-child { margin-top: 0; }
.member-tooltip .muted { opacity: 0.85; font-size: 0.92rem; }

/* support keyboard focus toggling via a class on card */
.member-card.show-desc { z-index: 50; }

/* Circular purple glow around avatar when hovered/active */
.avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.18), rgba(124,58,237,0.06) 40%, transparent 60%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}
.member-card:hover .avatar::after,
.member-card.show-desc .avatar::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Slightly lift card and emphasize border when tooltip is visible */
.member-card:hover,
.member-card.show-desc {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124,58,237,0.22);
  box-shadow: 0 18px 48px rgba(124,58,237,0.12), 0 0 38px rgba(124,58,237,0.06) inset;
}


/* optional modifier to enlarge avatar */
.avatar--lg { width: 84px; height: 84px; }

/* fallback initials if image hidden */
.avatar { position: relative; }
.avatar img { position: relative; z-index: 2; }
.avatar-fallback { position: absolute; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; font-weight:700; z-index: 1; pointer-events: none; }

.member-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.role {
  font-size: 0.82rem;
  opacity: 0.85;
  color: var(--accent-2);
}

/* ACHIEVEMENTS SECTION */
.achievements-section {
  margin-bottom: 80px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.achievement-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border: 1px solid rgba(124,58,237,0.06);
  border-radius: 16px;
  padding: 35px 30px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(124,58,237,0.04) inset;
}

.achievement-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,58,237,0.16);
  box-shadow: 0 16px 48px rgba(124,58,237,0.12), 0 0 36px rgba(124,58,237,0.08) inset;
}

.achievement-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.achievement-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* PROJECTS SECTION */
.projects-section {
  margin-bottom: 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border: 1px solid rgba(124,58,237,0.06);
  border-radius: 12px;
  padding: 30px 25px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(124,58,237,0.04) inset;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.16);
  box-shadow: 0 12px 40px rgba(124,58,237,0.1), 0 0 32px rgba(124,58,237,0.08) inset;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--white);
}

.project-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* SPONSORS SECTION */
.sponsors-section {
  margin-bottom: 80px;
  text-align: center;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}

.sponsor-placeholder {
  height: 120px;
  border: 2px dashed rgba(124,58,237,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all 0.22s ease, border-color 0.18s ease;
}

.sponsor-placeholder:hover {
  border-color: rgba(124,58,237,0.42);
  background: rgba(124,58,237,0.02);
}

/* Sponsor logo image styling */
.sponsor-logo{
  max-height: 88px;
  max-width: 100%;
  display: block;
  object-fit: contain;
  padding: 6px;
  filter: drop-shadow(0 8px 20px rgba(124,58,237,0.18));
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

/* If an image is missing, keep the dashed placeholder look */
.sponsor-placeholder:empty{
  min-height: 120px;
}

.sponsors-note {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 20px;
}

.sponsors-note a {
  color: var(--accent-2);
  text-decoration: none;
}

.sponsors-note a:hover {
  text-decoration: underline;
}

/* CONTACT SECTION */
.contact-section {
  margin-bottom: 80px;
  padding: 60px 30px;
  background: linear-gradient(180deg, rgba(124,58,237,0.04), rgba(0,0,0,0.1));
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 20px;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content > p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-info {
  text-align: left;
  margin-top: 30px;
}

.contact-info p {
  font-size: 1rem;
  margin: 15px 0;
}

.contact-info a {
  color: var(--accent-2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-info a:hover {
  color: var(--white);
  text-shadow: 0 0 12px rgba(196,181,253,0.6);
}

.social-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.social-links a {
  padding: 8px 16px;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.5);
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  border-top: 1px solid rgba(124,58,237,0.1);
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  opacity: 0.9;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.9rem;
  margin: 8px 0;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .goals-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 6px 8px;
    border-radius: 8px;
  }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(var(--nav-height) + 14px);
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.6);
    z-index: 30;
  }
  .nav-links.open a { display: block; padding: 8px 12px; }
  
  .nav-actions {
    margin-left: 8px;
  }
  
  .hero {
    min-height: 50vh;
    padding: 20px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-image {
    font-size: 5rem;
  }
  
  .goals-grid,
  .achievements-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .goal-card,
  .achievement-card,
  .project-card {
    padding: 25px 20px;
  }
  
  .contact-section {
    padding: 40px 20px;
  }
  
  .social-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* STAT GRID & COMPETITIONS: make grids fluid */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card { padding: 18px; background: rgba(255,255,255,0.02); border-radius: 10px; }

.competitions-list .year-block { margin-bottom: 18px; padding: 16px; border-radius: 10px; background: rgba(255,255,255,0.02); }
.competitions-list .competition-category ul { padding-left: 18px; }

/* Member grid: ensure compact layout on small screens */
.member-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Sponsors grid responsive */
.sponsors-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items:center; }

/* Year-block details collapse/stack in small screens */
@media (max-width:900px){
  .competitions-list .year-block{ display:block; }
}

/* Make sure text scales nicely */
h1, h2, h3, h4 { line-height: 1.18; }
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 6.5vw, 2.4rem); }
  .hero-subtitle { font-size: 1rem; }
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 540ms cubic-bezier(.2,.9,.2,1), transform 520ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateX(-22px) translateY(0); }
.reveal-left.active { transform: translateX(0); }
.reveal-right { transform: translateX(22px) translateY(0); }
.reveal-right.active { transform: translateX(0); }

/* stagger children when parent has data-stagger */
.reveal[data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal[data-stagger].active > * {
  opacity: 1;
  transform: translateY(0);
}

/* HERO GRID WITH MEDIA */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
.hero-media { display:flex; align-items:center; justify-content:center; }
.robot-img{
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(7,0,18,0.6), 0 0 48px rgba(124,58,237,0.16);
  border: 1px solid rgba(124,58,237,0.08);
  object-fit: cover;
}

/* ensure hero stacks on small screens */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .robot-img{ max-width: 320px; }
}

/* Decorative lines that animate on scroll (inspired by SoftHoarders) */
.section-header { position: relative; }
.section-header::before,
.section-header::after{
  content: "";
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, rgba(124,58,237,0.95), rgba(196,181,253,0.75));
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  width: 0%;
  border-radius: 3px;
  box-shadow: 0 6px 28px rgba(124,58,237,0.24), 0 0 18px rgba(196,181,253,0.08);
  transition: transform 700ms cubic-bezier(.2,.9,.2,1), width 700ms cubic-bezier(.2,.9,.2,1), opacity 600ms ease;
  opacity: 0;
}
.section-header::before{ top: -14px; }
.section-header::after{ bottom: -14px; }

/* When the parent section becomes active, expand the lines */
.reveal.active .section-header::before,
.reveal.active .section-header::after{
  width: 64%;
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* additional thin vertical rails on page edges for a subtle effect */
.page-rail-left, .page-rail-right{
  position: fixed;
  top: 30vh;
  bottom: 30vh;
  width: 2px;
  background: linear-gradient(180deg, rgba(124,58,237,0.0), rgba(124,58,237,0.6), rgba(124,58,237,0.0));
  z-index: 5;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 900ms cubic-bezier(.2,.9,.2,1), opacity 700ms ease;
}
.page-rail-left{ left: 8px; }
.page-rail-right{ right: 8px; }

/* Reveal rails when hero or first section becomes active */
.reveal.active ~ .page-rail-left,
.reveal.active ~ .page-rail-right{
  opacity: 1;
  transform: scaleY(1);
}

/* Also highlight hero with rails when hero visible */
.hero.reveal.active ~ .page-rail-left,
.hero.reveal.active ~ .page-rail-right{
  opacity: 1;
  transform: scaleY(1);
}

/* BACKGROUND LINES - multiple layered repeating linear-gradients animated for irregular continuous lines */
.bg-lines{
  position: fixed;
  inset: 0;
  z-index: 0; /* behind content (nav has z-index 40) */
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  filter: blur(6px) saturate(1.2);
  background-image:
    /* thin quick stripes */
    repeating-linear-gradient(90deg, rgba(124,58,237,0) 0 10px, rgba(124,58,237,0.09) 10px 11px),
    /* diagonal medium */
    repeating-linear-gradient(45deg, rgba(196,181,253,0) 0 50px, rgba(196,181,253,0.06) 50px 52px),
    /* sparse long diagonal */
    repeating-linear-gradient(120deg, rgba(124,58,237,0) 0 140px, rgba(124,58,237,0.055) 140px 142px);
  background-size: 1200px 200px, 900px 600px, 1500px 900px;
  background-position: 0 0, 0 0, 0 0;
  transition: opacity 400ms ease;
  will-change: background-position, opacity;
  animation: bgLinesMove 32s linear infinite;
}

.bg-lines::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(124,58,237,0.02), rgba(196,181,253,0.01));
  filter: blur(18px) saturate(1.6);
  opacity: 0.45;
  pointer-events: none;
}

@keyframes bgLinesMove{
  0%{ background-position: 0 0, 0 0, 0 0; }
  50%{ background-position: -800px 120px, 400px -200px, 600px 300px; }
  100%{ background-position: 0 0, 0 0, 0 0; }
}

@media (max-width: 640px){
  .bg-lines{ opacity: 0.32; filter: blur(8px) saturate(1.05); }
}



.competitions-page {
  background: radial-gradient(circle at top, #150018, #040006 70%);
  color: var(--white);
}

.stat-grid{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.stat-card{
  min-width: 160px;
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(0,0,0,0.12));
  border: 1px solid rgba(124,58,237,0.12);
  padding: 18px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(7,0,18,0.6), 0 0 28px rgba(124,58,237,0.06) inset;
}

.stat-card h3{ font-size: 0.95rem; margin-bottom: 6px; color: var(--accent-2); }
.stat-card p{ font-size: 1.1rem; font-weight:700; }

.competitions-list{ margin-top: 12px; }
.year-block{ margin-bottom: 22px; padding: 14px 18px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.06)); border: 1px solid rgba(124,58,237,0.05); }
.year-block h3{ margin-bottom: 8px; color: var(--accent-2); }
.year-block ul{ list-style: disc; margin-left: 18px; }
.sourced-note{ margin-top: 18px; font-size: 0.95rem; opacity: 0.85; }

.competitions-page .btn-ghost{ border-color: rgba(255,255,255,0.06); }

.competition-category{ margin-bottom: 14px; }
.competition-category h4{ font-size: 0.95rem; color: var(--accent-2); margin-bottom: 8px; font-weight: 600; }
.competition-category ul{ list-style: disc; margin-left: 18px; }
.competition-category li{ margin-bottom: 4px; }

.contact-form {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  opacity: 0.85;
  color: var(--accent-2);
}

.form-group input,
.form-group textarea {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12));
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.35),
              0 0 24px rgba(124,58,237,0.18);
}

.submit-btn {
  align-self: center;
  margin-top: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .contact-form {
    gap: 14px;
  }
}

.success-message {
  background: linear-gradient(180deg, #14001f, #000);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-message h3 {
  margin: 0 0 8px;
  color: var(--white);
}

.success-message p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
