/* RobotoMono Font Family */
@font-face {
  font-family: 'RobotoMono';
  src: url('../fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RobotoMono';
  src: url('../fonts/RobotoMono-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

/* Handjet Variable Font Family */
@font-face {
  font-family: 'Handjet';
  src: url('../fonts/Handjet-VariableFont_ELGR,ELSH,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Merula Font Family */
@font-face {
  font-family: 'MerulaReg';
  src: url('../fonts/Merula-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MerulaAlt';
  src: url('../fonts/Merula-Alternative.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MerulaLong';
  src: url('../fonts/Merula-Long.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #000;         /* page background */
  --line: #fff;          /* line color */
  --line-w: 1px;         /* line thickness */
  --gutter: 48px;        /* top gutter for logo/menu */
  --inset: 24px;         /* distance of frame from window edge */
  --content-pad: 24px;   /* padding inside frame */
  --frame-mat: 30px;
  --font-default: 'RobotoMono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  
  /* Merula Font Options */
  --font-merula: 'MerulaReg', serif;
  --font-merula-alt: 'MerulaAlt', serif; /* Uses alternative variation */
  --font-merula-long: 'MerulaLong', serif; /* Uses long variation */
  
  /* Grid System Variables */
  --grid-columns: 10;
  --grid-gutter: 20px;
  --grid-margin: 0px;
}

html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:#eaeaea;
  font-family:var(--font-default);
  font-weight: 300;
}


.accent-header {
  font-family: 'Handjet', monospace;
  font-variation-settings: 'ELGR' 1, 'ELSH' 5;
  font-size: clamp(34px, 3.5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}

.technical-text{
  font-family: var(--font-default);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 300;
}

.technical-header{
  font-family: var(--font-default);
  font-weight: 300;
  font-style: italic;
}

.line-divider{
  width:100%;
  height:1px;
  background:var(--line);
}

.full-line-divider{
  position: absolute;
  left: 0px;
  width: 100%;
  height: 1px;
  background: var(--line);
}

a {
  color: var(--line);
}

ul {
  list-style-type: "-  ";
}

ul li{
  margin-bottom: 10px;
}

/* Spacer Utilities */
.spacer-8 { height: 8px; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }
.spacer-64 { height: 64px; }
.spacer-96 { height: 96px; }
.spacer-128 { height: 128px; }

/* Responsive spacers */
.spacer-responsive { height: clamp(16px, 4vw, 48px); }
.spacer-responsive-lg { height: clamp(32px, 6vw, 96px); }
.spacer-responsive-xl { height: clamp(48px, 8vw, 128px); }

/* Section spacers */
.section-spacer { height: clamp(48px, 8vw, 128px); }
.section-spacer-lg { height: clamp(64px, 12vw, 192px); }

/* Inline spacers (for horizontal spacing) */
.spacer-inline-xs { width: 8px; display: inline-block; }
.spacer-inline-sm { width: 16px; display: inline-block; }
.spacer-inline-md { width: 24px; display: inline-block; }
.spacer-inline-lg { width: 32px; display: inline-block; }


/* Grid System */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  column-gap: var(--grid-gutter);
  margin: 0 var(--grid-margin);
  width: 100%;
  max-width: 1650px;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 16px;
  position: relative; /* Add this for absolute positioning of lines */
}

/* Grid overlay for debugging (optional) */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

.grid-overlay rect {
  fill: #ff0000;
  opacity: 0.3;
}
.connecting-lines-txt > p{
  margin-bottom: 40px;
}

/* Grid Column Span Utilities */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }

/* Grid Column Start Utilities */
.col-start-1 { grid-column: 1 / span 1; }
.col-start-2 { grid-column: 2 / span 1; }
.col-start-3 { grid-column: 3 / span 1; }
.col-start-4 { grid-column: 4 / span 1; }
.col-start-5 { grid-column: 5 / span 1; }
.col-start-6 { grid-column: 6 / span 1; }
.col-start-7 { grid-column: 7 / span 1; }
.col-start-8 { grid-column: 8 / span 1; }
.col-start-9 { grid-column: 9 / span 1; }
.col-start-10 { grid-column: 10 / span 1; }

/* Grid Column End Utilities */
.col-end-1 { grid-column-end: 1; }
.col-end-2 { grid-column-end: 2; }
.col-end-3 { grid-column-end: 3; }
.col-end-4 { grid-column-end: 4; }
.col-end-5 { grid-column-end: 5; }
.col-end-6 { grid-column-end: 6; }
.col-end-7 { grid-column-end: 7; }
.col-end-8 { grid-column-end: 8; }
.col-end-9 { grid-column-end: 9; }
.col-end-10 { grid-column-end: 10; }
.col-end-11 { grid-column-end: 11; }

/* Combined Start + Span Utilities */
.col-1-start-1 { grid-column: 1 / span 1; }
.col-1-start-2 { grid-column: 2 / span 1; }
.col-1-start-3 { grid-column: 3 / span 1; }
.col-1-start-4 { grid-column: 4 / span 1; }
.col-1-start-5 { grid-column: 5 / span 1; }
.col-1-start-6 { grid-column: 6 / span 1; }
.col-1-start-7 { grid-column: 7 / span 1; }
.col-1-start-8 { grid-column: 8 / span 1; }
.col-1-start-9 { grid-column: 9 / span 1; }
.col-1-start-10 { grid-column: 10 / span 1; }

.col-2-start-1 { grid-column: 1 / span 2; }
.col-2-start-2 { grid-column: 2 / span 2; }
.col-2-start-3 { grid-column: 3 / span 2; }
.col-2-start-4 { grid-column: 4 / span 2; }
.col-2-start-5 { grid-column: 5 / span 2; }
.col-2-start-6 { grid-column: 6 / span 2; }
.col-2-start-7 { grid-column: 7 / span 2; }
.col-2-start-8 { grid-column: 8 / span 2; }
.col-2-start-9 { grid-column: 9 / span 2; }

.col-3-start-1 { grid-column: 1 / span 3; }
.col-3-start-2 { grid-column: 2 / span 3; }
.col-3-start-3 { grid-column: 3 / span 3; }
.col-3-start-4 { grid-column: 4 / span 3; }
.col-3-start-5 { grid-column: 5 / span 3; }
.col-3-start-6 { grid-column: 6 / span 3; }
.col-3-start-7 { grid-column: 7 / span 3; }
.col-3-start-8 { grid-column: 8 / span 3; }

.col-4-start-1 { grid-column: 1 / span 4; }
.col-4-start-2 { grid-column: 2 / span 4; }
.col-4-start-3 { grid-column: 3 / span 4; }
.col-4-start-4 { grid-column: 4 / span 4; }
.col-4-start-5 { grid-column: 5 / span 4; }
.col-4-start-6 { grid-column: 6 / span 4; }
.col-4-start-7 { grid-column: 7 / span 4; }

.col-5-start-1 { grid-column: 1 / span 5; }
.col-5-start-2 { grid-column: 2 / span 5; }
.col-5-start-3 { grid-column: 3 / span 5; }
.col-5-start-4 { grid-column: 4 / span 5; }
.col-5-start-5 { grid-column: 5 / span 5; }
.col-5-start-6 { grid-column: 6 / span 5; }

.col-6-start-1 { grid-column: 1 / span 6; }
.col-6-start-2 { grid-column: 2 / span 6; }
.col-6-start-3 { grid-column: 3 / span 6; }
.col-6-start-4 { grid-column: 4 / span 6; }
.col-6-start-5 { grid-column: 5 / span 6; }

.col-7-start-1 { grid-column: 1 / span 7; }
.col-7-start-2 { grid-column: 2 / span 7; }
.col-7-start-3 { grid-column: 3 / span 7; }
.col-7-start-4 { grid-column: 4 / span 7; }

.col-8-start-1 { grid-column: 1 / span 8; }
.col-8-start-2 { grid-column: 2 / span 8; }
.col-8-start-3 { grid-column: 3 / span 8; }

.col-9-start-1 { grid-column: 1 / span 9; }
.col-9-start-2 { grid-column: 2 / span 9; }

.col-10-start-1 { grid-column: 1 / span 10; }

/* Grid Row Utilities */
.row-1 { grid-row: span 1; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }
.row-4 { grid-row: span 4; }
.row-5 { grid-row: span 5; }

/* Grid Row Start Utilities */
.row-start-1 { grid-row-start: 1; }
.row-start-2 { grid-row-start: 2; }
.row-start-3 { grid-row-start: 3; }
.row-start-4 { grid-row-start: 4; }
.row-start-5 { grid-row-start: 5; }

/* Grid Row End Utilities */
.row-end-1 { grid-row-end: 1; }
.row-end-2 { grid-row-end: 2; }
.row-end-3 { grid-row-end: 3; }
.row-end-4 { grid-row-end: 4; }
.row-end-5 { grid-row-end: 5; }
.row-end-6 { grid-row-end: 6; }



/* Grid Alignment Utilities */
.grid-items-start { align-items: start; }
.grid-items-center { align-items: center; }
.grid-items-end { align-items: end; }
.grid-items-stretch { align-items: stretch; }

.grid-justify-start { justify-items: start; }
.grid-justify-center { justify-items: center; }
.grid-justify-end { justify-items: end; }
.grid-justify-stretch { justify-items: stretch; }

/* Self Alignment Utilities */
.self-start { align-self: start; }
.self-center { align-self: center; }
.self-end { align-self: end; }
.self-stretch { align-self: stretch; }

.justify-self-start { justify-self: start; }
.justify-self-center { justify-self: center; }
.justify-self-end { justify-self: end; }
.justify-self-stretch { justify-self: stretch; }

/* Grid Content Alignment */
.grid-content-start { align-content: start; }
.grid-content-center { align-content: center; }
.grid-content-end { align-content: end; }
.grid-content-stretch { align-content: stretch; }

.grid-justify-content-start { justify-content: start; }
.grid-justify-content-center { justify-content: center; }
.grid-justify-content-end { justify-content: end; }
.grid-justify-content-stretch { justify-content: stretch; }

/* Responsive Grid Utilities */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
    padding: 12px;
  }
  
  /* Override all column classes for mobile */
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10 {
    grid-column: span 5;
  }
  
  /* Override all positioned column classes for mobile */
  .col-1-start-1, .col-1-start-2, .col-1-start-3, .col-1-start-4, .col-1-start-5, .col-1-start-6, .col-1-start-7, .col-1-start-8, .col-1-start-9, .col-1-start-10,
  .col-2-start-1, .col-2-start-2, .col-2-start-3, .col-2-start-4, .col-2-start-5, .col-2-start-6, .col-2-start-7, .col-2-start-8, .col-2-start-9,
  .col-3-start-1, .col-3-start-2, .col-3-start-3, .col-3-start-4, .col-3-start-5, .col-3-start-6, .col-3-start-7, .col-3-start-8,
  .col-4-start-1, .col-4-start-2, .col-4-start-3, .col-4-start-4, .col-4-start-5, .col-4-start-6, .col-4-start-7,
  .col-5-start-1, .col-5-start-2, .col-5-start-3, .col-5-start-4, .col-5-start-5, .col-5-start-6,
  .col-6-start-1, .col-6-start-2, .col-6-start-3, .col-6-start-4, .col-6-start-5,
  .col-7-start-1, .col-7-start-2, .col-7-start-3, .col-7-start-4,
  .col-8-start-1, .col-8-start-2, .col-8-start-3,
  .col-9-start-1, .col-9-start-2,
  .col-10-start-1 {
    grid-column: span 5;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
  }
  
  /* Override all column classes for mobile */
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10 {
    grid-column: span 4;
  }
  
  /* Override all positioned column classes for mobile */
  .col-1-start-1, .col-1-start-2, .col-1-start-3, .col-1-start-4, .col-1-start-5, .col-1-start-6, .col-1-start-7, .col-1-start-8, .col-1-start-9, .col-1-start-10,
  .col-2-start-1, .col-2-start-2, .col-2-start-3, .col-2-start-4, .col-2-start-5, .col-2-start-6, .col-2-start-7, .col-2-start-8, .col-2-start-9,
  .col-3-start-1, .col-3-start-2, .col-3-start-3, .col-3-start-4, .col-3-start-5, .col-3-start-6, .col-3-start-7, .col-3-start-8,
  .col-4-start-1, .col-4-start-2, .col-4-start-3, .col-4-start-4, .col-4-start-5, .col-4-start-6, .col-4-start-7,
  .col-5-start-1, .col-5-start-2, .col-5-start-3, .col-5-start-4, .col-5-start-5, .col-5-start-6,
  .col-6-start-1, .col-6-start-2, .col-6-start-3, .col-6-start-4, .col-6-start-5,
  .col-7-start-1, .col-7-start-2, .col-7-start-3, .col-7-start-4,
  .col-8-start-1, .col-8-start-2, .col-8-start-3,
  .col-9-start-1, .col-9-start-2,
  .col-10-start-1 {
    grid-column: span 4;
  }
}

/* Typography System */
h1 {
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 56px);
  margin: 0 0 0.75rem 0;
  font-family: var(--font-merula);
  line-height: 1.2;
}

h2 {
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 42px);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-merula);
  line-height: 1.3;
}

h3 {
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 32px);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-merula);
  line-height: 1.4;
}

h4 {
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-merula);
  line-height: 1.4;
}

h5 {
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-merula);
  line-height: 1.5;
}

h6 {
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 18px);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-merula);
  line-height: 1.5;
}

.long-highlight{
  font-family: var(--font-merula-long);
}


/* Button Styles */
.outline-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-default);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.outline-btn:active {
  transform: translateY(1px);
}

/* Responsiveness knobs */
@media (max-width: 720px){
  transfer-frame{--inset: 12px; --content-pad: 16px; --gutter: 44px;}
  
  /* Hide spacers only in splash-section on mobile */
  .splash-section .spacer-32, 
  .splash-section .spacer-64, 
  .splash-section .spacer-96, 
  .splash-section .spacer-128 {
    display: none;
  }
  
  /* Show mobile particles container and hide desktop */
  #particles-js-mobile {
    display: block !important;
    position: absolute;
    width: 100%;
    height: 30vh;
    top: 0;
    left: 0;
    z-index: 1;
    background: transparent;
  }
  
  #particles-js-desktop {
    display: none;
  }
  
  /* Ensure text is above particles on mobile */
  .splash-section {
    position: relative;
    z-index: 2;
  }
  
  /* Adjust grid layout for mobile */
  .grid-container {
    position: relative;
    z-index: 2;
  }
  
  /* Hide only the desktop particles container on mobile, not other content */
  .grid-container:first-of-type .col-4-start-7 {
    display: none;
  }
}

/* Fade-in on scroll animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.splash-section  {
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
}
.splash-section p {
  max-width: 60ch;
}

/* Logo Animation Styles */
#logo-path {
  transition: stroke-opacity 0.1s ease-out;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Glow effect for the animated logo */
#logo-path {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Particles.js Container Styles */
#particles-js-desktop {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: transparent;
  min-height: 400px;
  max-height: 70vh;
}

/* Mobile particles container - hidden by default */
#particles-js-mobile {
  display: none;
  /* position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 1;
  background: transparent; */
}

.hero-section-text {
  position: relative;
  width: fit-content;
  z-index: 2;
  background-color: var(--bg);
  padding: 20px;
  margin-top: 30vh;
  border: 1px solid white;
}

/* Mobile-specific hero section text */
@media (max-width: 720px) {
  .hero-section-text {
    position: relative;
    z-index: 10;
    background-color: var(--bg);
    padding: 20px;
    margin-top: 30vh;
    border: 1px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero-section-text {
    padding: 15px;
    margin-top: 25vh;
    font-size: 0.9em;
  }
  
  .hero-section-text h1 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.1;
  }
  
  .hero-section-text p {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.4;
  }
}

.sponsor-logos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.logo-row.row-2 {
  justify-content: space-evenly;
  margin-top: 20px;
}

.logo-row.row-2.home {
  justify-content: space-between;
}

.logo-row img {
  max-width: 200px;
  height: fit-content;
}

/* Hyper-specific mobile styles for sponsor logos only */
@media (max-width: 768px) {
  .sponsor-logos-container {
    gap: 15px;
  }
  
  .sponsor-logos-container .logo-row {
    justify-content: center;
    gap: 15px;
  }
  
  .sponsor-logos-container .logo-row.row-2 {
    justify-content: center;
    margin-top: 15px;
  }
  
  .sponsor-logos-container .logo-row img {
    max-width: 120px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .sponsor-logos-container {
    gap: 10px;
  }
  
  .sponsor-logos-container .logo-row {
    gap: 10px;
  }
  
  .sponsor-logos-container .logo-row.row-2 {
    margin-top: 10px;
  }
  
  .sponsor-logos-container .logo-row img {
    max-width: 100px;
    height: auto;
  }
}

