/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk — latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk — latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-color: #050505;
  --text-color: #d0d0d0;
  --text-muted: #555555;
  --border-color: #222222;
  --accent: #ffffff;
  --header-bg: rgba(5, 5, 5, 0.85);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Noise Texture for the "Rough" feel */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

header.scrolled {
  background-color: var(--header-bg);
  padding: 1rem 0;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150vw; height: 150vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 60%);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  margin-bottom: 0;
  margin-left: -0.05em;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  max-width: 600px;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
}

.card {
  background: var(--bg-color);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.1s, color 0.1s;
  min-height: 300px;
}

.card:hover {
  background: #111111;
  border-color: #444444;
}

.card:hover h3 {
  color: #ffffff;
}

.card .mono {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Button / CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  padding: 1.2rem 2.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.1s;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg-color);
}

/* Footer */
footer {
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Utilities */
.page-header {
  padding-top: 15rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}
.content-block {
  max-width: 800px;
  padding: 4rem 0;
}
.content-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}
.content-block h2:first-child {
  margin-top: 0;
}
.content-block h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.content-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted, #aaa);
  margin-bottom: 1.5rem;
}
.content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.content-block ul li {
  color: var(--text-muted, #aaa);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.content-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.content-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-block a:hover {
  color: var(--text-color);
}
.content-block strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Event Carousel */
.events-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.events-header {
  margin-bottom: 3rem;
}

.events-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 1px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 1px);
  min-width: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background-color 0.15s, border-color 0.15s;
}

.carousel-card:hover {
  background: #111111;
  border-color: #444444;
}

.carousel-card:hover h3 {
  color: #ffffff;
}

.carousel-card .mono {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.carousel-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.carousel-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.carousel-card .btn {
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  font-size: 0.75rem;
}

.carousel-card--loading {
  flex: 1 0 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
}

.carousel-card--empty {
  flex: 1 0 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s;
}

.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.carousel-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 100%;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .events-section {
    padding: 4rem 0;
  }
}

/* Sponsor Grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  transition: background-color 0.15s, border-color 0.15s;
}

.sponsor-card:hover {
  background: #111111;
  border-color: #444444;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  min-height: 120px;
  max-height: 120px;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.sponsor-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.sponsor-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.sponsor-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.sponsor-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}

.sponsor-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sponsor-link--static {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}
