/* =====================================================
   InnoElectrica 26 — style.css
   ===================================================== */

/* ---------- RESET & VARIABLES ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Original palette (PRESERVED) ── */
  --navy: #040A43;
  --blue1: #303AE4;
  --blue2: #3F80EF;
  --gold: #FFC209;
  --light: #F1F2F5;
  --glass-bg: rgba(48, 58, 228, 0.10);
  --glass-border: rgba(63, 128, 239, 0.30);
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  /* ── Background layers ── */
  --bg-primary: #040A43;
  --bg-secondary: #060E4F;
  --bg-tertiary: #0A1358;

  /* ── Surface layers ── */
  --surface: rgba(10, 19, 88, 0.60);
  --surface-elevated: rgba(16, 26, 100, 0.65);
  --surface-hover: rgba(22, 34, 115, 0.55);

  /* ── Borders ── */
  --border-subtle: rgba(63, 128, 239, 0.15);
  --border-default: rgba(63, 128, 239, 0.30);
  --border-emphasis: rgba(63, 128, 239, 0.50);

  /* ── Text hierarchy ── */
  --text-primary: #E8E9ED;
  --text-secondary: #8A93B4;
  --text-tertiary: #5C6488;
  --text-inverse: #040A43;

  /* ── Blue accents ── */
  --accent-blue: #303AE4;
  --accent-blue-light: #3F80EF;
  --accent-blue-hover: #4A8DF5;
  --accent-blue-muted: #2A3399;
  --accent-steel: #4A5580;

  /* ── Gold accents ── */
  --accent-gold: #FFC209;
  --accent-gold-hover: #FFD03A;
  --accent-gold-muted: #C9990A;
  --accent-gold-soft: rgba(255, 194, 9, 0.12);

  /* ── Subtle utility ── */
  --highlight-cool: rgba(63, 128, 239, 0.08);
  --glow-blue: rgba(48, 58, 228, 0.35);
  --glow-blue-strong: rgba(48, 58, 228, 0.55);
  --glow-gold: rgba(255, 194, 9, 0.40);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent-gold);
  color: var(--text-inverse);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue-muted);
  border-radius: 3px;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(4, 10, 67, 0.55);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s;
}

.navbar.scrolled {
  background: rgba(4, 10, 67, 0.88);
  box-shadow: 0 4px 30px var(--glow-blue);
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.logo-bolt {
  font-size: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.logo-year {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(4, 10, 67, 0.97);
  padding: 1.5rem 2rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-default);
  list-style: none;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: left 0.25s, right 0.25s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--highlight-cool);
}

.nav-link:hover::after {
  left: 1rem;
  right: 1rem;
}

.nav-login {
  background: var(--accent-gold);
  color: var(--text-inverse) !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  box-shadow: 0 0 16px var(--glow-gold);
  transition: box-shadow 0.3s, transform 0.2s;
}

.nav-login::after {
  display: none;
}

.nav-login:hover {
  box-shadow: 0 0 28px rgba(255, 194, 9, 0.70);
  transform: translateY(-1px);
  background: var(--accent-gold-hover) !important;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(48, 58, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 58, 228, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.electric-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.elec-svg {
  width: 100%;
  height: 100%;
}

.eline {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
}

.e1 {
  stroke: rgba(63, 128, 239, 0.18);
  stroke-dasharray: 8 18;
  animation: dash-anim 6s linear infinite;
}

.e2 {
  stroke: rgba(48, 58, 228, 0.14);
  stroke-dasharray: 6 20;
  animation: dash-anim 9s linear infinite reverse;
}

/* Hidden on mobile, shown progressively */
.e3,
.e4 {
  display: none;
}

.e3 {
  stroke: rgba(255, 194, 9, 0.18);
  stroke-dasharray: 4 24;
  animation: dash-anim 7s linear infinite;
}

.e4 {
  stroke: rgba(63, 128, 239, 0.22);
  stroke-dasharray: 5 22;
  animation: dash-anim 11s linear infinite reverse;
}

@keyframes dash-anim {
  to {
    stroke-dashoffset: -200;
  }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Mobile-first: small, subtle orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.30;
  animation: orb-float 8s ease-in-out infinite;
}

.orb1 {
  width: min(180px, 50vw);
  height: min(180px, 50vw);
  background: radial-gradient(circle, rgba(48, 58, 228, 0.5), transparent 70%);
  top: -40px;
  left: -40px;
}

.orb2 {
  width: min(150px, 42vw);
  height: min(150px, 42vw);
  background: radial-gradient(circle, rgba(255, 194, 9, 0.3), transparent 70%);
  bottom: -30px;
  right: -30px;
  animation-delay: -3s;
}

.orb3 {
  width: min(120px, 34vw);
  height: min(120px, 34vw);
  background: radial-gradient(circle, rgba(63, 128, 239, 0.4), transparent 70%);
  top: 45%;
  left: 55%;
  animation-delay: -5s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.04);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.97);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 5rem 1.5rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-soft);
  border: 1px solid rgba(255, 194, 9, 0.40);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
  animation: fade-up 0.8s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 0.8rem;
  animation: fade-up 0.9s 0.15s ease both;
}

.title-line1 {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--text-primary);
  letter-spacing: -2px;
}

.title-line2 {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  filter: drop-shadow(0 0 30px var(--glow-blue-strong));
}

.title-year {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent-gold);
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(255, 194, 9, 0.7);
  margin-top: 0.2rem;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fade-up 1s 0.3s ease both;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-weight: 300;
  animation: fade-up 1s 0.45s ease both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fade-up 1s 0.6s ease both;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.85rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 28px var(--glow-blue-strong);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(48, 58, 228, 0.80);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 0.85rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-default);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  transform: translateY(-3px);
}

/* Countdown */
.countdown-wrapper {
  animation: fade-up 1s 0.75s ease both;
}

.countdown-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(12px);
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.count-block span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 18px var(--glow-gold);
  line-height: 1;
}

.count-block small {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.count-sep {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--accent-blue-light);
  line-height: 1;
  margin-bottom: 14px;
  animation: blink 1s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  animation: fade-in 1.5s 1.5s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-blue-light), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.7)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

/* =====================================================
   SECTION SHARED
   ===================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--text-primary) 50%, var(--accent-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.section-sub {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 300;
}

/* =====================================================
   COMPETITIONS
   ===================================================== */
.competitions {
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
  background: var(--bg-secondary);
  scroll-margin-top: 70px;
}

/* Top gradient line */
.competitions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-gold), var(--accent-blue), transparent);
}

/* Mobile: faint blueprint grid + subtle glow */
.competitions::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 128, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 128, 239, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(48, 58, 228, 0.08), transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

/* --- Stitch Competition Grid --- */
.stitch-comp-grid {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 0.5rem;
}

/* --- Stitch Competition Card --- */
.stitch-comp-card {
  position: relative;
  background: rgba(8, 17, 44, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(63, 128, 239, 0.18);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.stitch-comp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px -5px rgba(63, 128, 239, 0.35);
  border-color: rgba(63, 128, 239, 0.45);
}

/* Featured / Open Registration card */
.stitch-comp-card--featured {
  border-color: rgba(63, 128, 239, 0.40);
  box-shadow: 0 0 15px -2px rgba(63, 128, 239, 0.30);
}

.stitch-comp-card--featured:hover {
  box-shadow: 0 0 45px -5px rgba(63, 128, 239, 0.45);
  border-color: rgba(63, 128, 239, 0.55);
}

/* Hot badge */
.stitch-comp-hot-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(48, 58, 228, 0.40);
}

.stitch-comp-card-inner {
  flex: 1;
}

/* Header: Icon + Badge */
.stitch-comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.stitch-comp-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(48, 58, 228, 0.10);
  border: 1px solid rgba(63, 128, 239, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-blue-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.stitch-comp-card:hover .stitch-comp-icon {
  transform: scale(1.1);
}

.stitch-comp-badge {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  background: rgba(48, 58, 228, 0.12);
  border: 1px solid rgba(63, 128, 239, 0.30);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* Title */
.stitch-comp-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.stitch-comp-card:hover .stitch-comp-title {
  color: var(--accent-blue-light);
}

/* Description */
.stitch-comp-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0;
}

/* Info section */
.stitch-comp-info {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stitch-comp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stitch-comp-info-row + .stitch-comp-info-row {
  margin-top: 0.4rem;
}

.stitch-comp-info-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
}

.stitch-comp-info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.stitch-comp-fee {
  font-family: var(--font-body), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-gold) !important;
}

/* CTA */
.stitch-comp-cta {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.stitch-comp-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-blue-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

.stitch-comp-link:hover {
  color: var(--text-primary);
}

.stitch-comp-link--active {
  color: var(--accent-gold);
}

.stitch-comp-link--active:hover {
  color: var(--accent-gold-hover);
}

.stitch-comp-arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s ease;
}

.stitch-comp-link:hover .stitch-comp-arrow {
  transform: translateX(4px);
}

/* Empty state */
.stitch-comp-empty {
  text-align: center;
  width: 100%;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  grid-column: 1 / -1;
}

.stitch-comp-empty h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stitch-comp-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}

/* Mobile: subtle centered glow behind gallery */
.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue-light), var(--accent-gold), var(--accent-blue-light), transparent);
  z-index: 1;
}

/* Gallery decorative: faint grid */
.gallery-deco-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(63, 128, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 128, 239, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 65%);
}

/* Gallery decorative: radial glow */
.gallery-deco-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(260px, 75vw);
  height: min(180px, 45vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(48, 58, 228, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Gallery decorative: corner circuit traces */
.gallery-deco-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 0;
}

.gallery-deco-corner--tl {
  top: 1.5rem;
  left: 1rem;
  border-top: 1px solid rgba(63, 128, 239, 0.20);
  border-left: 1px solid rgba(63, 128, 239, 0.20);
}

.gallery-deco-corner--tl::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(63, 128, 239, 0.35);
  box-shadow: 0 0 6px rgba(63, 128, 239, 0.25);
}

.gallery-deco-corner--br {
  bottom: 1.5rem;
  right: 1rem;
  border-bottom: 1px solid rgba(255, 194, 9, 0.15);
  border-right: 1px solid rgba(255, 194, 9, 0.15);
}

.gallery-deco-corner--br::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 194, 9, 0.30);
  box-shadow: 0 0 6px rgba(255, 194, 9, 0.20);
}

/* Gallery decorative: partial arc — hidden on mobile */
.gallery-deco-arc {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.gallery .section-header {
  padding: 0 2rem;
}

/* --- Stitch Gallery Container --- */
.stitch-gallery-container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Stitch Gallery Grid --- */
.stitch-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- Stitch Gallery Card --- */
.stitch-gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 17, 44, 0.65);
  border: 1px solid rgba(63, 128, 239, 0.20);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.stitch-gallery-card:hover {
  border-color: rgba(63, 128, 239, 0.45);
  box-shadow: 0 8px 40px -8px rgba(63, 128, 239, 0.30);
}

.stitch-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.80;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.stitch-gallery-card:hover .stitch-gallery-img {
  transform: scale(1.05);
  opacity: 1;
}

/* Gradient overlay */
.stitch-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(4, 10, 67, 0.90) 0%,
    rgba(4, 10, 67, 0.40) 40%,
    transparent 70%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stitch-gallery-card:hover .stitch-gallery-overlay {
  opacity: 0.70;
}

/* Caption at bottom */
.stitch-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  z-index: 2;
}

.stitch-gallery-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
}

/* Empty state */
.stitch-gallery-empty {
  text-align: center;
  width: 100%;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.stitch-gallery-empty h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stitch-gallery-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}


/* =====================================================
   ABOUT
   ===================================================== */
.about {
  position: relative;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Mobile: small, restrained glow */
.about-bg-glow {
  position: absolute;
  width: min(220px, 65vw);
  height: min(220px, 65vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 58, 228, 0.20), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(45px);
}

/* About decorative: faint grid overlay */
.about-deco-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(63, 128, 239, 0.10) 1px, transparent 1px);
  background-size: 55px 55px;
  background-position: 15px 15px;
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(0,0,0,0.12) 55%, transparent 85%);
}

/* About decorative: corner circuit traces */
.about-deco-corner {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 0;
}

.about-deco-corner--tl {
  top: 1.5rem;
  left: 1rem;
  border-top: 1px solid rgba(63, 128, 239, 0.18);
  border-left: 1px solid rgba(63, 128, 239, 0.18);
}

.about-deco-corner--tl::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(63, 128, 239, 0.30);
  box-shadow: 0 0 6px rgba(63, 128, 239, 0.20);
}

/* Short horizontal trace from top-left corner */
.about-deco-corner--tl::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 128, 239, 0.18), transparent);
  transform: translateY(25px);
}

.about-deco-corner--br {
  bottom: 1.5rem;
  right: 1rem;
  border-bottom: 1px solid rgba(255, 194, 9, 0.14);
  border-right: 1px solid rgba(255, 194, 9, 0.14);
}

.about-deco-corner--br::before {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 194, 9, 0.25);
  box-shadow: 0 0 6px rgba(255, 194, 9, 0.18);
}

/* About decorative: edge arcs — hidden on mobile */
.about-deco-arc {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px var(--glow-blue);
  border-color: var(--border-emphasis);
}

.span2 {
  grid-column: span 1;
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 194, 9, 0.20);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.ci-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-list small {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent-gold);
}

.organizer-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.organizer-faculty {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.organizer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

.location-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.location-detail {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  margin-bottom: 1.2rem;
}

.location-date {
  background: var(--accent-gold-soft);
  border: 1px solid rgba(255, 194, 9, 0.30);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ld-label {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.ld-value {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.logo-item {
  background: var(--highlight-cool);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.logo-item:hover {
  border-color: var(--accent-blue-light);
  color: var(--text-primary);
  background: rgba(63, 128, 239, 0.15);
}

.gold-sponsor {
  border-color: rgba(255, 194, 9, 0.40);
  color: var(--accent-gold);
  background: rgba(255, 194, 9, 0.07);
}

.gold-sponsor:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 194, 9, 0.15);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-logo .logo-bolt {
  font-size: 1.2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(255, 194, 9, 0.3);
  }

  50% {
    text-shadow: 0 0 22px rgba(255, 194, 9, 0.9);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =====================================================
   FORMS
   ===================================================== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(4, 10, 67, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-blue-light);
  background: rgba(63, 128, 239, 0.1);
  box-shadow: 0 0 0 2px rgba(63, 128, 239, 0.25);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #ff4d4d;
  margin-top: 0.4rem;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-main {
  padding: 100px 1rem 4rem;
  min-height: 100vh;
  background: var(--bg-primary);
}

.dash-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.dash-comp-name {
  color: var(--accent-blue-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.dash-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-pending { background: rgba(255, 194, 9, 0.2); color: var(--accent-yellow); border: 1px solid rgba(255, 194, 9, 0.4); }
.badge-approved { background: rgba(0, 255, 128, 0.2); color: #00ff80; border: 1px solid rgba(0, 255, 128, 0.4); }
.badge-rejected { background: rgba(255, 77, 77, 0.2); color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.4); }

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.card-title i {
  color: var(--accent-blue);
}

.status-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-pending { background: rgba(255, 194, 9, 0.1); border-left: 4px solid var(--accent-yellow); }
.alert-approved { background: rgba(0, 255, 128, 0.1); border-left: 4px solid #00ff80; }
.alert-rejected { background: rgba(255, 77, 77, 0.1); border-left: 4px solid #ff4d4d; }

.status-alert strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.status-alert p { font-size: 0.9rem; color: var(--text-secondary); }

.verification-notes {
  background: rgba(255, 77, 77, 0.05);
  border: 1px solid rgba(255, 77, 77, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.verification-notes strong { color: #ff4d4d; font-size: 0.9rem; }
.verification-notes p { font-size: 0.9rem; margin-top: 0.25rem; color: var(--text-secondary); }

.progress-track {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  position: relative;
}

.progress-track::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.progress-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-step::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--border-subtle);
  border-radius: 50%;
  display: block;
}

.progress-step.active { color: var(--accent-blue-light); }
.progress-step.active::before {
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.ticket-content {
  text-align: center;
  padding: 1rem 0;
}
.ticket-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.ticket-meta { font-size: 0.9rem; color: var(--text-secondary); }
.ticket-qr {
  text-align: center;
  font-size: 3rem;
  color: var(--border-default);
  margin-top: 1rem;
}

.comp-details-list { list-style: none; padding: 0; }
.comp-details-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.comp-details-list li:last-child { border-bottom: none; }
.comp-details-list strong { color: var(--text-primary); display: inline-block; width: 80px; }

.comp-status-text {
  background: rgba(63, 128, 239, 0.2);
  color: var(--accent-blue-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.ongoing-alert, .completed-alert {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9rem;
}
.ongoing-alert { background: rgba(0, 255, 128, 0.1); color: #00ff80; border: 1px solid rgba(0, 255, 128, 0.3); }
.completed-alert { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

.dash-countdown-wrapper {
  margin-top: 1rem;
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.countdown-label { font-size: 0.7rem; color: var(--text-tertiary); letter-spacing: 2px; margin-bottom: 0.5rem; }
.dash-countdown { display: flex; justify-content: center; gap: 1rem; }
.dash-count-block span { display: block; font-size: 1.5rem; font-family: var(--font-display); color: var(--accent-blue-light); }
.dash-count-block small { font-size: 0.6rem; color: var(--text-secondary); text-transform: uppercase; }

.result-display { display: flex; gap: 1rem; }
.result-box {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.result-label { display: block; font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 0.5rem; }
.result-value { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent-yellow); }

.announcement-list { list-style: none; padding: 0; }
.announcement-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.announcement-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ann-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.ann-title { font-size: 1rem; color: var(--text-primary); }
.ann-date { font-size: 0.75rem; color: var(--text-tertiary); }
.ann-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { font-size: 3rem; color: var(--border-default); display: block; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); }

/* =====================================================
   RESPONSIVE (Mobile First — Progressive Enhancement)
   ===================================================== */

/* ── SM: 640px — Tablet portrait ── */
@media (min-width: 640px) {
  /* Navbar */
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border-bottom: none;
    gap: 0.25rem;
  }
  .nav-hamburger {
    display: none;
  }

  /* Hero layout */
  .count-block { min-width: 64px; }
  .count-block span { font-size: 2rem; }
  .hero-content { padding: 6rem 2rem 2rem; }
  .hero-cta { flex-direction: row; align-items: center; justify-content: center; }

  /* Hero decorative: grow orbs */
  .orb { opacity: 0.35; filter: blur(70px); }
  .orb1 { width: 280px; height: 280px; top: -80px; left: -80px; }
  .orb2 { width: 220px; height: 220px; bottom: -60px; right: -60px; }
  .orb3 { width: 180px; height: 180px; }

  /* Show third electric line */
  .e3 { display: block; }

  /* Hero grid: slightly larger */
  .hero-grid-overlay {
    background-size: 48px 48px;
  }

  /* Canvas particles: slightly more visible */
  #particleCanvas { opacity: 0.40; }

  /* Electric lines: bump opacity */
  .eline { stroke-width: 1.2; }
  .e1 { stroke: rgba(63, 128, 239, 0.24); }
  .e2 { stroke: rgba(48, 58, 228, 0.18); }

  /* Competitions: larger grid */
  .competitions::after {
    background-image:
      linear-gradient(rgba(63, 128, 239, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(63, 128, 239, 0.04) 1px, transparent 1px),
      radial-gradient(ellipse at 50% 50%, rgba(48, 58, 228, 0.10), transparent 60%);
    background-size: 48px 48px, 48px 48px, 100% 100%;
  }

  /* Gallery: grow glow, show corner circuits more */
  .gallery-deco-glow {
    width: 400px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(48, 58, 228, 0.16), transparent 65%);
  }
  .gallery-deco-grid {
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 15%, transparent 60%);
  }
  .gallery-deco-corner {
    width: 55px;
    height: 55px;
  }
  .gallery-deco-corner--tl { border-color: rgba(63, 128, 239, 0.28); }
  .gallery-deco-corner--br { border-color: rgba(255, 194, 9, 0.22); }

  /* About: grow glow, show corners more */
  .about-bg-glow { width: 360px; height: 360px; filter: blur(50px); }
  .about-deco-grid {
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(0,0,0,0.16) 50%, transparent 80%);
  }
  .about-deco-corner {
    width: 65px;
    height: 65px;
  }
  .about-deco-corner--tl { border-color: rgba(63, 128, 239, 0.24); }
  .about-deco-corner--br { border-color: rgba(255, 194, 9, 0.20); }

  /* About Grid: 2-column */
  .about-grid { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: span 2; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }

  /* Stitch Competitions grid: 2 columns at tablet */
  .stitch-comp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0;
  }

  /* Stitch Gallery grid: 2 columns at tablet */
  .stitch-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MD: 768px — Tablet landscape ── */
@media (min-width: 768px) {
  /* Hero decorative: show all electric lines, grow orbs */
  .e3, .e4 { display: block; }
  .eline { stroke-width: 1.5; }
  .e1 { stroke: rgba(63, 128, 239, 0.30); }
  .e2 { stroke: rgba(48, 58, 228, 0.22); }
  .e3 { stroke: rgba(255, 194, 9, 0.16); }
  .e4 { stroke: rgba(63, 128, 239, 0.18); }

  .orb { opacity: 0.38; filter: blur(75px); }
  .orb1 { width: 350px; height: 350px; top: -100px; left: -100px; }
  .orb2 { width: 300px; height: 300px; bottom: -80px; right: -70px; }
  .orb3 { width: 220px; height: 220px; }

  .hero-grid-overlay {
    background-image:
      linear-gradient(rgba(48, 58, 228, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(48, 58, 228, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  }

  #particleCanvas { opacity: 0.45; }

  /* Gallery: bigger glow, show arc, expand corners */
  .gallery-deco-glow {
    width: 550px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(48, 58, 228, 0.18), transparent 60%);
    filter: blur(50px);
  }
  .gallery-deco-grid {
    background-image:
      linear-gradient(rgba(63, 128, 239, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(63, 128, 239, 0.04) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 55%);
  }
  .gallery-deco-corner {
    width: 70px;
    height: 70px;
  }
  /* Show arc on tablet landscape */
  .gallery-deco-arc {
    display: block;
    top: 50%;
    right: 3%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(63, 128, 239, 0.10);
    border-radius: 50%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: translateY(-50%) rotate(30deg);
  }

  /* About: medium glow, show arcs */
  .about-bg-glow {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(48, 58, 228, 0.22), transparent 70%);
    filter: blur(55px);
  }
  .about-deco-corner {
    width: 80px;
    height: 80px;
  }
  /* Show about arcs on tablet landscape */
  .about-deco-arc {
    display: block;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(63, 128, 239, 0.08);
    border-radius: 50%;
  }
  .about-deco-arc--left {
    top: 20%;
    left: 2%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-15deg);
  }
  .about-deco-arc--right {
    bottom: 15%;
    right: 2%;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(15deg);
  }
}

/* ── LG: 901px — Desktop ── */
@media (min-width: 901px) {
  /* About Grid: 3-column */
  .about-grid { grid-template-columns: repeat(3, 1fr); }

  /* Stitch Competitions grid: keep 2 columns at 901px */
  .stitch-comp-grid {
    gap: 1.75rem;
  }

  /* Layout Padding Desktop */
  .competitions { padding: 7rem 2rem; }
  .gallery { padding: 7rem 0; }
  .about { padding: 7rem 2rem; }
}

/* ── XL: 1024px — Full desktop decorative enhancement ── */
@media (min-width: 1024px) {
  /* Stitch Competitions grid: 3 columns at full desktop */
  .stitch-comp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Stitch Gallery grid: 3 columns at full desktop */
  .stitch-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero: full desktop orbs */
  .orb { opacity: 0.45; filter: blur(80px); }
  .orb1 { width: 500px; height: 500px; top: -120px; left: -120px; }
  .orb2 { width: 400px; height: 400px; bottom: -100px; right: -80px; }
  .orb3 { width: 300px; height: 300px; }

  /* Electric lines: full desktop intensity */
  .e1 { stroke: rgba(63, 128, 239, 0.35); }
  .e2 { stroke: rgba(48, 58, 228, 0.28); }
  .e3 { stroke: rgba(255, 194, 9, 0.18); }
  .e4 { stroke: rgba(63, 128, 239, 0.22); }

  /* Hero grid: full desktop */
  .hero-grid-overlay {
    background-image:
      linear-gradient(rgba(48, 58, 228, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(48, 58, 228, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  }

  #particleCanvas { opacity: 0.55; }

  /* Competitions: larger blueprint, stronger glow */
  .competitions::after {
    background-image:
      linear-gradient(rgba(63, 128, 239, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(63, 128, 239, 0.05) 1px, transparent 1px),
      radial-gradient(ellipse at 50% 50%, rgba(48, 58, 228, 0.12), transparent 55%);
    background-size: 60px 60px, 60px 60px, 100% 100%;
  }

  /* Gallery: full desktop glow, arc, and detail */
  .gallery-deco-glow {
    width: 800px;
    height: 450px;
    background: radial-gradient(ellipse, rgba(48, 58, 228, 0.20), transparent 55%);
    filter: blur(60px);
  }
  .gallery-deco-grid {
    background-image:
      linear-gradient(rgba(63, 128, 239, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(63, 128, 239, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 55%);
  }
  .gallery-deco-corner {
    width: 90px;
    height: 90px;
  }
  .gallery-deco-corner--tl { border-color: rgba(63, 128, 239, 0.32); }
  .gallery-deco-corner--br { border-color: rgba(255, 194, 9, 0.28); }
  .gallery-deco-arc {
    width: 180px;
    height: 180px;
    border-color: rgba(63, 128, 239, 0.14);
    border-left-color: transparent;
    border-bottom-color: transparent;
  }

  /* About: full desktop glow, corners, arcs */
  .about-bg-glow {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(48, 58, 228, 0.26), transparent 70%);
    filter: blur(60px);
  }
  .about-deco-grid {
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 50%, transparent 18%, rgba(0,0,0,0.20) 45%, transparent 78%);
  }
  .about-deco-corner {
    width: 100px;
    height: 100px;
  }
  .about-deco-corner--tl { border-color: rgba(63, 128, 239, 0.30); }
  .about-deco-corner--br { border-color: rgba(255, 194, 9, 0.24); }
  .about-deco-arc {
    width: 200px;
    height: 200px;
    border-color: rgba(63, 128, 239, 0.12);
  }
  .about-deco-arc--left {
    border-right-color: transparent;
    border-bottom-color: transparent;
  }
  .about-deco-arc--right {
    border-left-color: transparent;
    border-top-color: transparent;
  }
}

/* =====================================================
   DASHBOARD UTILITIES
   ===================================================== */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.disabled-btn {
  pointer-events: none;
}