:root {
  --primary: #7d5fff;
  --primary-hover: #6c5ce7;
  --transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  --bg-body: #f0f2f5;
  --glass-bg: rgba(255, 255, 255, 0.93);
  --glass-border: rgba(255, 255, 255, 1);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  --text-main: #111;
  --text-muted: #555;
  --text-inverse: #fff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.5);
  --bg-overlay: rgba(255, 255, 255, 0);
  
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  --locked-grey: #e0e0e0;
  --toast-bg: rgba(20, 20, 23, 0.95);
}

[data-theme="dark"] {
  --bg-body: #0f0f12;
  --glass-bg: rgba(20, 20, 23, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --text-inverse: #000;
  --nav-bg: rgba(20, 20, 23, 0.85);
  --card-border: rgba(255, 255, 255, 0.05);
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --locked-grey: #2a2a2a;
  --toast-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .sponsor-logo-clean,
[data-theme="dark"] .sponsor-logo {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; margin: 0; padding: 0; overflow-x: hidden; }

::selection {
  background: var(--primary);
  color: white;
}

button, a.btn, .icon-btn, .menu-btn, .action-link, .lang-btn, .cookie-btn {
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:active, .icon-btn:active, .menu-btn:active, .lang-btn:active, .cookie-btn:active {
  transform: scale(0.92) !important; 
  transition: transform 0.1s;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body); 
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('assets/BG_TV_WEB.webp'); 
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

section.page {
  content-visibility: auto; 
  contain-intrinsic-size: 1000px;
  will-change: transform, opacity;
  width: 100%;
  box-sizing: border-box;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(125, 95, 255, 0.05); }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-hover); }

#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-body); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-content { text-align: center; }
.loader-circle {
  width: 50px; height: 50px; border: 4px solid rgba(125, 95, 255, 0.2);
  border-top: 4px solid var(--primary); border-radius: 50%;
  margin: 0 auto 20px; animation: spin 0.8s linear infinite;
}
.loader-text {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  letter-spacing: 4px; color: var(--text-main); font-size: 1.2rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hero-header { padding: 8vh 1rem 4rem; text-align: center; }
.logo-link { text-decoration: none; display: inline-block; cursor: pointer; transition: transform 0.1s; }
.logo-link:active { transform: scale(0.95); }

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 11vw, 7rem);
  font-weight: 900;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 25px rgba(0,0,0,0.4);
  letter-spacing: -3px;
  line-height: 1;
}

.motto-bar { 
  display: flex; align-items: center; justify-content: center; 
  margin-top: 15px; height: 30px; 
} 
.typewriter-text {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main); font-weight: 800; 
  letter-spacing: 3px; text-transform: uppercase; 
  font-size: clamp(0.6rem, 2.5vw, 0.9rem);
  background: rgba(255,255,255,0.15);
  padding: 4px 14px; border-radius: 6px;
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease;
  opacity: 1;
}
.typewriter-text.fade {
  opacity: 0;
}

.glass-nav { 
  position: sticky; top: 20px; z-index: 100; display: flex; justify-content: center; padding: 0 1rem;
  transition: transform 0.4s ease-in-out; 
  will-change: transform;
}
.glass-nav.hidden { transform: translateY(-150%); }
.glass-nav.menu-open { transform: none !important; }

.nav-container {
  position: relative; 
  padding: 10px 20px; 
  border-radius: 100px;
  display: flex; gap: 2rem; align-items: center; 
  border: 1px solid var(--card-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  isolation: isolate;
}

.nav-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
}

.menu { display: flex; gap: 1.5rem; align-items: center; }
.menu a {
  text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif; text-transform: uppercase;
  transition: var(--transition); position: relative;
  white-space: nowrap;
  padding: 5px;
}
.menu a:hover, .menu a.active { color: var(--primary); }
.menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--primary); transition: width 0.3s;
}
.menu a:hover, .menu a.active::after { width: 100%; }
.menu a:active { transform: scale(0.95); color: var(--primary-hover); }

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  border-left: 1px solid rgba(150,150,150,0.3); 
  padding-left: 15px; 
  margin-left: 5px; 
  flex-shrink: 0;
}

.icon-btn {
  background: transparent; border: none; cursor: pointer; color: var(--text-main);
  padding: 8px;
  transition: 0.3s; position: relative;
  border-radius: 50%;
}
.icon-btn:hover { color: var(--primary); transform: rotate(15deg); background: rgba(0,0,0,0.03); }
.icon-btn svg { width: 22px; height: 22px; }

.trophy-btn:hover { transform: scale(1.1) !important; color: #FFD700; }
.badge-notification-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #FF0000; border-radius: 50%; border: 1px solid var(--nav-bg); }

[data-theme="light"] .moon-icon { display: block; } [data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; } [data-theme="dark"] .sun-icon { display: block; }

.menu-btn { 
  display: none; 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  padding: 10px;
  flex-direction: row;
  align-items: center; 
  gap: 12px; 
  z-index: 1001; 
}
.menu-label { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.8rem; color: var(--text-main); letter-spacing: 1.5px; white-space: nowrap; }
.hamburger { width: 22px; height: 2px; background: var(--text-main); position: relative; transition: 0.3s; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text-main); transition: 0.3s; }
.hamburger::before { transform: translateY(-7px); } 
.hamburger::after { transform: translateY(7px); }
.menu-btn.open .hamburger { background: transparent; }
.menu-btn.open .hamburger::before { transform: rotate(45deg); }
.menu-btn.open .hamburger::after { transform: rotate(-45deg); }

.lang-btn {
  background: transparent; 
  border: 2px solid var(--primary); 
  color: var(--primary);
  padding: 5px 12px; 
  border-radius: 30px; 
  cursor: pointer; 
  font-weight: 800;
  font-family: 'Montserrat', sans-serif; 
  transition: var(--transition); 
  font-size: 0.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.lang-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 30px; padding: 3rem; margin-bottom: 2.5rem; transition: var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); 
  transform: translate3d(0,0,0);
  width: 100%;
  box-sizing: border-box;
}
.glass-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); }

.hero-card:hover {
  transform: none !important;
  box-shadow: var(--glass-shadow) !important;
}
.hero-card .card-image img {
  transition: none !important;
}
.hero-card:hover .card-image img {
  transform: none !important;
}

.stats-container { display: flex; justify-content: space-around; align-items: center; padding: 2rem; margin-bottom: 3rem; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-number { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3rem; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 50px; background: var(--text-muted); opacity: 0.2; }

.section-label-simple { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; margin: 3rem 0 1rem; }

.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  grid-auto-rows: 380px; 
  gap: 24px;
  grid-template-areas: 
    "printables printables sneak"
    "station train sneak";
  margin-bottom: 1.5rem;
}

.events-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 3rem;
}

.area-printables { grid-area: printables; justify-content: center; }
.area-printables .bento-text-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 2rem 3rem; }

.area-sneak { grid-area: sneak; justify-content: flex-end; }
.area-station { grid-area: station; }
.area-train { grid-area: train; }

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  transition: 0.4s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: none; z-index: 2; }

.bento-dark { background: #0c0c10; color: #fff; justify-content: flex-end; }

.bento-bg-img { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.55; 
  filter: brightness(0.85) contrast(1.05); 
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease; 
  z-index: 0; 
}

.vivid-img { 
  opacity: 0.55; 
  filter: brightness(0.85) contrast(1.05);
}

.bento-item:hover .bento-bg-img,
.bento-item:hover .vivid-img { 
  transform: scale(1.04); 
  opacity: 0.7; 
  filter: brightness(0.95) contrast(1.1);
}

.bento-text { padding: 2rem; position: relative; z-index: 2; }
.bento-text h3 { font-size: 2rem; line-height: 1.1; margin-bottom: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; }
.bento-text p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; max-width: 90%; }

.bento-overlay-gradient { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 90%; 
  background: linear-gradient(to top, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.5) 55%, transparent 100%); 
  z-index: 1; 
}

.area-station, .area-train {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bento-img-box {
  height: 190px; 
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--card-border);
}

.bento-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-item:hover .bento-img-box img {
  transform: scale(1.05);
}

.bento-content-box {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.bento-content-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.bento-content-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 15px 0;
}

.bento-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bento-actions .bento-btn-primary,
.bento-actions .bento-btn-secondary {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.8rem;
  border-radius: 12px;
  justify-content: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  transition: all 0.3s ease;
}

.bento-btn-primary {
  background: #ff7800;
  color: #ffffff;
  border: 1px solid rgba(255, 120, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 120, 0, 0.25);
}
.bento-btn-primary:hover {
  background: #e06900;
  transform: translateY(-2px);
}

.bento-btn-secondary {
  background: rgba(176, 145, 239, 0.15); 
  color: var(--text-main);
  border: 1px solid rgba(176, 145, 239, 0.4);
}
.bento-btn-secondary:hover {
  background: rgba(176, 145, 239, 0.3);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pill-badge { 
  display: inline-block; 
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(5px); 
  border: 1px solid rgba(255,255,255,0.2); 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-size: 0.72rem; 
  font-weight: 800; 
  letter-spacing: 1px; 
  color: #fff; 
  z-index: 10; 
}

.bento-item > .pill-badge { 
  position: absolute; 
  top: 18px; 
  left: 18px; 
}

.tag-orange { background: rgba(255, 120, 0, 0.9) !important; border-color: transparent !important; }
.tag-purple { background: rgba(125, 95, 255, 0.9) !important; border-color: transparent !important; }
.tag-orange-text { color: #ff7800 !important; }

.bento-link-btn {
  display: inline-block;
  margin-top: 12px;
  background: #ff7800;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 30px;
  text-transform: uppercase;
  transition: 0.3s;
}
.bento-link-btn:hover { background: #e06900; transform: translateY(-2px); }

.event-card { justify-content: flex-end; color: white; background: #1e1e1e; height: 220px; }
.event-details { padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); width: 100%; position: relative; z-index: 2; }
.event-date { display: block; font-size: 0.75rem; font-weight: 800; color: var(--primary); margin-bottom: 3px; }
.event-card h3 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; }
.card-bg-blur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: 0.5s; filter: grayscale(50%); }
.event-card:hover .card-bg-blur { transform: scale(1.08); opacity: 0.8; filter: grayscale(0%); }

.center-text { text-align: center; }
.section-header-card { text-align: center; padding: 2rem; }
.section-title { 
  font-family: 'Montserrat', sans-serif; 
  font-size: 2.5rem; 
  font-weight: 800; 
  margin: 0; 
  color: var(--text-main); 
  letter-spacing: -1px; 
  line-height: 1.2; 
  word-break: break-word; 
  text-align: center;
}

.section-desc, .about-description { max-width: 800px; margin: 1rem auto 0; font-size: 1.1rem; color: var(--text-muted); }

.main-container { 
  max-width: 1100px; 
  margin: 3rem auto; 
  padding: 0 1.5rem; 
  width: 100%; 
  box-sizing: border-box;
  overflow: hidden;
}

.page { 
  display: none; 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity 0.5s ease, transform 0.5s ease; 
  will-change: opacity, transform; 
  width: 100%;
  box-sizing: border-box;
}
.page.active { display: block; opacity: 1; transform: translateY(0); }
.mb-4 { margin-bottom: 2rem; }

.hero-card { display: flex; align-items: center; gap: 3rem; }
.card-content { flex: 1; }
.card-content h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.2; color: var(--text-main); }
.card-content p { color: var(--text-muted); }
.tag { background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.75rem; display: inline-block; margin-bottom: 1rem; }
.card-image { flex: 1; border-radius: 20px; overflow: hidden; height: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s ease; }

.team-intro-card { padding-bottom: 3rem; }
.author-box { margin-bottom: 1rem; }
.author-role { display: block; font-size: 0.8rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.author-name { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.4rem; color: var(--text-main); }

.team-simple-mentions { margin-top: 2rem; border-top: 1px solid rgba(125,125,125,0.15); padding-top: 1.5rem; }
.team-mention-text { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; margin-bottom: 1rem; font-style: italic; }
.team-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.team-chip { background: rgba(125, 95, 255, 0.08); border: 1px solid rgba(125, 95, 255, 0.25); color: var(--text-main); padding: 6px 20px; border-radius: 30px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem; }

.timeline-wrapper { max-width: 800px; margin: 4rem auto 5rem; padding: 0 1.5rem; width: 100%; box-sizing: border-box; }
.timeline-title { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--primary); margin-bottom: 3.5rem; text-align: center; text-transform: uppercase; letter-spacing: 2px; }
.timeline { position: relative; padding-left: 130px; border-left: none; }
.timeline::before { content: ''; position: absolute; left: 90px; top: 10px; bottom: 10px; width: 3px; background: rgba(125, 95, 255, 0.3); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -46px; top: 22px; width: 15px; height: 15px; background: var(--primary); border-radius: 50%; border: 3px solid var(--bg-body); box-shadow: 0 0 10px rgba(125, 95, 255, 0.4); z-index: 2; }
.timeline-date { position: absolute; left: -130px; top: 18px; width: 70px; text-align: right; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--primary); }
.timeline-content { padding: 1.8rem; position: relative; margin-left: 0; width: 100%; box-sizing: border-box; }
.timeline-content h4 { margin: 0 0 8px 0; font-family: 'Montserrat', sans-serif; font-size: 1.25rem; color: var(--text-main); font-weight: 800; }
.timeline-content p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.active-card { border: 1px solid var(--primary); background: var(--glass-bg); }

.video-wrapper { max-width: 900px; margin: 0 auto; width: 100%; }
.video-spacer { margin-top: 2.5rem; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 20px; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.6; }
.video-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 10px; text-align: center; }

.project-hero-container { position: relative; width: 100%; height: 380px; border-radius: 30px; overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--card-border); }
.project-hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-text { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 3rem 2rem 1.5rem; color: #fff; text-align: center; }
.hero-overlay-text h2 { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 900; text-transform: uppercase; margin: 0; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }

.contact-grid-clean { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 2rem; width: 100%; }
.clean-contact-card { flex: 1; min-width: 280px; max-width: 350px; text-decoration: none; padding: 2.5rem 2rem; transition: 0.3s; width: 100%; box-sizing: border-box; }
.clean-contact-card:hover { transform: translateY(-3px); box-shadow: none; }

.clean-contact-content { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.contact-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; }
.clean-contact-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--text-main); margin: 0 0 5px 0; transition: color 0.3s; }
.clean-contact-card:hover h3:not(.printables-accent h3) { color: var(--primary); }
.printables-accent:hover h3 { color: #ff7800; }
.contact-handle { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin: 0 0 25px 0; }
.action-link { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: 1px; display: inline-flex; align-items: center; }
.action-link::after { content: '→'; margin-left: 8px; transition: transform 0.3s; }
.clean-contact-card:hover .action-link::after { transform: translateX(5px); }

.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 2rem; width: 100%; }
.achievement-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; width: 100%; box-sizing: border-box; }
.ach-img-container { width: 100%; height: 260px; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ach-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.achievement-card:hover .ach-img { transform: scale(1.03); }
.ach-content { padding: 1.8rem; flex-grow: 1; }
.ach-content h3 { margin: 0 0 10px 0; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--primary); font-weight: 800; }
.ach-content p { color: var(--text-muted); }

.gallery-grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  grid-auto-flow: dense;
  padding-bottom: 4rem;
  width: 100%;
}

.gallery-tile {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1; 
  cursor: pointer;
  width: 100%;
}

.gallery-tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-tile.tall { grid-row: span 2; aspect-ratio: 1 / 2; }

.lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lazy-img.loaded { opacity: 1; transform: scale(1); }
.gallery-tile:hover { transform: translateY(-3px); box-shadow: none; z-index: 2; }

.lightbox-dialog {
  border: none;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-dialog:not([open]) {
  display: none;
}

.lightbox-dialog.open {
  display: flex;
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-inner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 0.3s;
}

.lightbox-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  display: block;
}

.lightbox-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.newsletter-wrapper,
.pro-footer { 
  max-width: 700px; 
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.newsletter-wrapper {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.neon-newsletter-card {
  padding: 1.8rem 2rem;
  text-align: center;
  border: 2px solid var(--primary);
  border-radius: 30px;
  background: var(--glass-bg);
  width: 100%;
  box-sizing: border-box;
}

.neon-newsletter-content h3 { 
  font-family: 'Montserrat', sans-serif; 
  font-size: 1.5rem; 
  font-weight: 900; 
  color: var(--text-main); 
  margin: 0 0 6px 0; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.neon-newsletter-content p { 
  color: var(--text-muted); 
  margin-bottom: 1.2rem; 
  font-size: 0.9rem; 
}

.neon-form { 
  display: flex; 
  flex-direction: row; 
  gap: 12px; 
  max-width: 500px; 
  margin: 0 auto; 
  align-items: center;
  width: 100%;
}

.neon-input-group { position: relative; flex: 1; width: 100%; }

.neon-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(125, 95, 255, 0.3);
  border-radius: 12px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
}

[data-theme="dark"] .neon-input { background: rgba(255,255,255,0.05); }

.neon-input:focus { border-color: var(--primary); background: transparent; }
.neon-label { position: absolute; top: 12px; left: 15px; color: var(--text-muted); pointer-events: none; transition: 0.3s; font-size: 0.9rem; }

.neon-input:focus ~ .neon-label,
.neon-input:not(:placeholder-shown) ~ .neon-label {
  top: -10px;
  left: 10px;
  font-size: 0.7rem;
  background: var(--glass-bg);
  padding: 0 5px;
  color: var(--primary);
  border-radius: 5px;
  font-weight: 800;
}

.neon-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 1px;
  white-space: nowrap;
}
.neon-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

.pro-footer { 
  margin-top: 2.5rem; 
  margin-bottom: 1.5rem; 
  border-radius: 30px; 
  background: var(--glass-bg); 
  backdrop-filter: blur(20px); 
  border: 1px solid var(--glass-border); 
  box-shadow: var(--glass-shadow); 
  overflow: hidden; 
}

.footer-container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.8rem 1rem 1.2rem; width: 100%; box-sizing: border-box; }
.footer-section { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.section-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; opacity: 0.7; }

.logos-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.sponsor-logo { height: 26px; filter: grayscale(100%) opacity(0.5); transition: 0.4s; }
.prusa-footer { transform: scale(1.1); margin: 0 6px; }
.sponsor-link:hover .sponsor-logo { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.sponsor-link:hover .prusa-footer { transform: scale(1.2); }

.divider { width: 1px; height: 16px; background-color: var(--text-muted); opacity: 0.2; }
.footer-section.links { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(125,125,125, 0.1); padding-top: 1rem; width: 80%; }
.footer-link { text-decoration: none; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
.footer-link:hover { color: var(--primary); }
.footer-bottom { margin-top: 0.2rem; }
.copyright { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; margin: 0; }

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 200; }
#backToTop.visible { opacity: 1; pointer-events: auto; }

.cookie-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%); width: 90%; max-width: 600px; background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; z-index: 10000; padding: 1.5rem; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.cookie-container.show { transform: translateX(-50%) translateY(0); }
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-text { display: flex; align-items: center; gap: 15px; }
.cookie-icon { font-size: 1.8rem; }
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--text-main); font-weight: 500; }
.cookie-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Outfit', sans-serif; white-space: nowrap; }
.cookie-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { max-width: 600px; width: 90%; max-height: 85vh; text-align: center; position: relative; padding: 0; border-color: transparent; transform: scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; overflow: hidden; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-scroll-area { overflow-y: auto; padding: 3rem 2rem; flex: 1; -webkit-overflow-scrolling: touch; }
.close-modal { position: absolute; top: 15px; right: 15px; background: rgba(125, 95, 255, 0.1); border-radius: 50%; width: 40px; height: 40px; border: none; font-size: 2rem; line-height: 1; color: var(--text-muted); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.close-modal:hover { background: rgba(125, 95, 255, 0.2); color: var(--primary); }

.modal-header-visual { margin-bottom: 1rem; }
.modal-icon-big { font-size: 4rem; display: block; margin-bottom: 10px; animation: float 3s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.modal-title { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--text-main); margin: 0; }
.modal-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin-top: 2rem; }
.badge-item { display: flex; flex-direction: column; align-items: center; padding: 15px; border-radius: 15px; background: rgba(0,0,0,0.03); border: 1px solid transparent; transition: 0.3s; }
.badge-item.unlocked { background: linear-gradient(135deg, rgba(125, 95, 255, 0.1), transparent); border-color: rgba(125, 95, 255, 0.3); }
.badge-item.locked { opacity: 0.6; filter: grayscale(1); }
.badge-icon-circle { width: 60px; height: 60px; background: var(--locked-grey); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 10px; box-shadow: inset 0 0 10px rgba(0,0,0,0.1); }
.badge-item.unlocked .badge-icon-circle { background: var(--gold-gradient); color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.badge-name { font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 4px; }
.badge-desc { font-size: 0.7rem; color: var(--text-muted); }

.master-reward-box { margin-top: 2rem; }
.master-reward-box.hidden { display: none; }
.master-badge-card {
  background: linear-gradient(135deg, #111, #222);
  border: 2px solid #FFD700;
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.master-crown { font-size: 3rem; display: block; margin-bottom: 10px; }
.master-badge-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; color: #FFD700; margin: 0 0 10px 0; font-weight: 900; }
.master-badge-card p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0 0 15px 0; }
.master-seal { display: inline-block; background: #FFD700; color: #000; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 0.7rem; padding: 4px 12px; border-radius: 20px; letter-spacing: 1px; }

.badges-progress { margin-bottom: 2rem; text-align: left; }
.progress-bar-bg { width: 100%; height: 10px; background: rgba(0,0,0,0.1); border-radius: 5px; overflow: hidden; margin-bottom: 5px; }
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 1s ease; border-radius: 5px; }
.progress-text { font-size: 0.8rem; font-weight: 700; color: var(--primary); float: right; }

#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.badge-toast { background: var(--toast-bg); backdrop-filter: blur(10px); color: var(--text-inverse); padding: 15px 25px; border-radius: 30px; display: flex; align-items: center; gap: 15px; border: 2px solid #FFD700; opacity: 0; transform: translateY(-20px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 300px; justify-content: center; }
.badge-toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { font-size: 2rem; }
.toast-content h4 { margin: 0; font-size: 1rem; color: #FFD700; font-family: 'Montserrat', sans-serif; }
.toast-content p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "printables printables"
      "sneak sneak"
      "station train";
  }
}

@media (max-width: 900px) {
    .neon-form {
      flex-direction: column;
    }
    
    body::before {
      width: 100vh;
      height: 100vw;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(90deg);
      background-size: cover;
    }

    .glass-nav {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 10px 15px;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-btn {
        display: flex;
        z-index: 2005; 
    }

    .menu {
        position: absolute;
        top: 120%; 
        left: 50%; 
        width: min(340px, 90vw);
        height: auto;
        background: var(--nav-bg); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        padding: 20px;
        will-change: transform, opacity;
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .menu a {
        font-size: 1rem; 
        color: var(--text-main);
        margin: 8px 0; 
        opacity: 1; 
        transform: none;
    }

    .nav-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(150,150,150,0.2);
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .card-content h2 {
        font-size: 1.8rem;
    }

    .card-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .main-container {
      padding: 0 1rem;
    }
    
    .glass-card {
      padding: 1.8rem 1.2rem;
      border-radius: 24px;
    }

    .section-header-card {
      padding: 1.5rem 1rem;
    }

    .section-title {
      font-size: 1.8rem;
    }

    .timeline-wrapper {
        padding: 0;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline::before {
        left: 0;
    }
    .timeline-date {
        position: relative;
        left: 0;
        top: 0;
        text-align: left;
        margin-bottom: 6px;
        font-size: 1rem;
        width: auto;
    }
    .timeline-dot {
        left: -26px;
        top: 28px;
    }
    .timeline-content {
        padding: 1.2rem;
    }
    
    .gallery-grid-system {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .gallery-tile, 
    .gallery-tile.wide, 
    .gallery-tile.tall {
      grid-column: auto !important;
      grid-row: auto !important;
      aspect-ratio: 1 / 1 !important;
      width: 100%;
    }
}

@media (max-width: 600px) {
  .layout-grid {
    display: flex;
    flex-direction: column;
  }
  
  .events-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .area-sneak, .area-printables, .area-station, .area-train { height: auto; min-height: 380px; } 
  .bento-img-box { height: 210px; }

  .brand-title {
      font-size: 2.5rem;
  }

  .stat-number {
      font-size: 2.5rem;
  }

  .pro-footer,
  .newsletter-wrapper {
    width: 100%;
  }
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

body { overflow-x: clip; min-height: 100dvh; }
.main-container { overflow: visible; overflow-x: clip; }
section.page { contain-intrinsic-size: auto 1000px; }

.menu a:hover::after { width: 100%; }

@media (min-width: 901px) { body::before { height: 100vh; height: 100lvh; } }

.layout-grid > .glass-card, .events-bottom-grid > .glass-card { margin-bottom: 0; }

.achievements-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.clean-contact-card { min-width: min(280px, 100%); }

.form-status { min-height: 1.3em; margin: .8rem 0 0; font-size: .85rem; font-weight: 700; }
.form-status.success { color: #2ecc71; }
.form-status.error { color: #e74c3c; }

.cookie-container { visibility: hidden; transition: transform .6s cubic-bezier(.23,1,.32,1), visibility .6s; }
.cookie-container.show { visibility: visible; }

.lightbox-dialog { position: fixed; inset: 0; height: 100vh; height: 100dvh; }
.lightbox-content img { max-height: 85vh; max-height: 85dvh; }
.modal-content { max-height: 85vh; max-height: 85dvh; }
.glass-card.modal-content { padding: 0; margin-bottom: 0; }

#toast-container { pointer-events: none; width: max-content; max-width: 100%; align-items: center; }
.badge-toast { min-width: min(300px, 90vw); max-width: calc(100vw - 2rem); }

#backToTop { bottom: 96px; right: 25px; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }

@media (hover: none) {
  .glass-card:hover, .bento-item:hover, .clean-contact-card:hover, .gallery-tile:hover { transform: none; }
  .icon-btn:hover, .lang-btn:hover, .neon-btn:hover, .cookie-btn:hover,
  .bento-link-btn:hover, .bento-btn-primary:hover, .bento-btn-secondary:hover { transform: none; }
  .trophy-btn:hover { transform: none !important; }
  .bento-item:hover .bento-bg-img, .bento-item:hover .vivid-img { transform: none; }
}

@media (max-width: 900px) {
  body::before { width: 100vh; width: 100lvh; height: 100vw; }
  .neon-btn { width: 100%; }
  .neon-input { font-size: 16px; } 
  .icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .lang-btn { min-height: 44px; min-width: 52px; }
  .menu a { padding: 10px 14px; }
}

@media (max-width: 768px) {
  .glass-card { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  
  .glass-card.achievement-card, .glass-card.bento-item { padding: 0; }
  .glass-card.neon-newsletter-card { padding: 1.5rem 1.2rem; }
  .glass-card.clean-contact-card { padding: 2rem 1.2rem; }
  .modal-scroll-area { padding: 2.5rem 1.2rem 2rem; }
  .lightbox-inner-wrapper { padding: 16px; }
  .lightbox-close-btn { top: 12px; right: 12px; }
  .ach-img-container { height: 220px; }
  .project-hero-container { height: 260px; border-radius: 24px; }
  .hero-overlay-text h2 { font-size: 1.5rem; }
  .timeline-title { font-size: 1.5rem; margin-bottom: 2rem; }
  .timeline-wrapper { margin: 3rem auto; }
  .hero-header { padding-top: 5vh; padding-bottom: 2.5rem; }
  .glass-nav { top: 12px; }
  .section-label-simple { margin-top: 2rem; }
}

@media (max-width: 600px) {
  .brand-title { font-size: clamp(1.8rem, 10.5vw, 2.6rem); letter-spacing: -1.5px; }
  .layout-grid, .events-bottom-grid { gap: 1.2rem; }
  .stats-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 1.4rem .6rem; }
  .stat-item { min-width: 0; }
  .stat-divider { display: none; }
  .stat-number { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .stat-label { font-size: .6rem; letter-spacing: .5px; }
  .section-title { font-size: 1.6rem; }
  .bento-text { padding: 1.5rem; }
  .bento-text h3 { font-size: 1.6rem; }
  .area-printables .bento-text-centered { padding: 1.5rem; }
  .cookie-content { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .cookie-text { flex-direction: column; gap: 6px; }
  .cookie-btn { width: 100%; padding: 12px; }
  #backToTop { right: 21px; bottom: 92px; width: 46px; height: 46px; }
  body.cookie-visible #backToTop { bottom: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:root {
  --radius: 20px;
  --glass-bg: rgba(255, 255, 255, 0.97);
  --glass-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
[data-theme="dark"] {
  --glass-bg: rgba(22, 22, 26, 0.95);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10001; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { left: 8px; }
main:focus { outline: none; }

.glass-card, .bento-item, .project-hero-container { border-radius: var(--radius); }
.glass-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="light"] .glass-card { border-color: rgba(16, 24, 40, .07); }
.glass-card:hover { transform: none; box-shadow: var(--glass-shadow); }
.clean-contact-card:hover, .achievement-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16, 24, 40, .12); }
.nav-container { box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08); }

.tag, .pill-badge { border-radius: 6px; letter-spacing: 1.2px; }
.tag { background: rgba(125, 95, 255, .12); color: var(--primary); }
.bento-link-btn, .neon-btn, .neon-input, .cookie-btn, .bento-btn-primary, .bento-btn-secondary { border-radius: 10px; }
.team-chip { border-radius: 8px; }

.section-title { font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: -.5px; }
.card-content h2 { letter-spacing: -.5px; }
.section-label-simple { font-size: .78rem; letter-spacing: 2.5px; }

.glass-card.neon-newsletter-card { border: 1px solid var(--glass-border); border-top: 3px solid var(--primary); border-radius: var(--radius); }
.neon-newsletter-content h3 { font-size: 1.25rem; letter-spacing: .5px; }

.cookie-icon { display: none; }
.cookie-container { border-radius: 16px; }

.pro-footer { max-width: 1100px; width: calc(100% - 3rem); margin: 3rem auto 1.5rem; border-radius: var(--radius); backdrop-filter: none; -webkit-backdrop-filter: none; }
.footer-container { align-items: stretch; text-align: left; gap: 1.8rem; padding: 2.5rem 2.2rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; width: 100%; }
.footer-brand .footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: 2px; color: var(--text-main); }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand p { margin: .6rem 0 0; color: var(--text-muted); font-size: .92rem; max-width: 42ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col .section-label { margin-bottom: 4px; }
.footer-link { font-size: .92rem; font-weight: 600; text-transform: none; }
.footer-section.sponsors { flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 14px; border-top: 1px solid rgba(125, 125, 125, .15); padding-top: 1.4rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(125, 125, 125, .15); padding-top: 1.1rem; margin-top: 0; }
.copyright { font-weight: 600; letter-spacing: .5px; }

@media (max-width: 768px) {
  
  .pro-footer { width: calc(100% - 2rem); margin-top: 2rem; }
  .footer-container { padding: 2rem 1.4rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-section.sponsors { flex-direction: column; justify-content: center; text-align: center; }
}

.pro-footer { width: min(700px, calc(100% - 2rem)); }

.contact-grid-clean { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.contact-grid-clean > .glass-card { margin-bottom: 0; max-width: none; min-width: 0; }
.tag-purple-text { color: var(--primary) !important; }

[data-theme="light"] {
  --glass-border: rgba(15, 15, 30, 0.07);
  --glass-shadow: 0 1px 2px rgba(15, 15, 30, 0.04), 0 14px 34px rgba(15, 15, 30, 0.07);
}
.glass-card, .bento-item, .neon-newsletter-card, .pro-footer, .project-hero-container { border-radius: 22px; }

.glass-card:not(a):not(.bento-item):not(.achievement-card):hover { transform: none; }
.cookie-icon { display: none; }
.cookie-container { border-radius: 16px; box-shadow: var(--glass-shadow); }

html[lang="en"] .lang-sk, html[lang="sk"] .lang-en { display: none !important; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; align-items: center; }
.hero-actions .bento-link-btn { margin-top: 0; }
.hero-btn-secondary {
  display: inline-block; text-decoration: none; text-transform: uppercase;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .85rem;
  color: var(--primary); border: 2px solid var(--primary); border-radius: 30px;
  padding: 8px 22px; transition: .3s;
}
.hero-btn-secondary:hover { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

.legal-content { max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }
.legal-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; margin: 2rem 0 .6rem; color: var(--text-main); }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: .98rem; }
.legal-content ul { padding-left: 1.2rem; margin: .5rem 0; }
.legal-content li { margin-bottom: .6rem; }
.legal-content strong { color: var(--text-main); }
.legal-content a { color: var(--primary); text-underline-offset: 3px; }

.cookie-msg p { margin: 0; }
.cookie-link { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--primary); text-underline-offset: 3px; }

.error-card { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.error-code { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(4.5rem, 20vw, 8rem); line-height: 1; color: var(--primary); letter-spacing: -4px; }
.error-card h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 5vw, 2rem); margin: .5rem 0 1rem; color: var(--text-main); }
.error-card p { color: var(--text-muted); }
.error-card .hero-actions { justify-content: center; }

@media (max-width: 479px) {
  iframe#bmc-iframe {
    top: 56px !important; bottom: auto !important;
    left: 12px !important; right: 12px !important;
    width: calc(100vw - 24px) !important; max-width: none !important;
    height: calc(100vh - 152px) !important; height: calc(100dvh - 152px) !important;
    min-height: 0 !important; max-height: none !important;
  }
  #bmc-close-btn { top: 68px !important; right: 24px !important; }
  
  body > div[style*="z-index: 9999;"]:not([id]) { max-width: calc(100vw - 112px) !important; font-size: 15px !important; padding: 12px 14px !important; }
}

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 768px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

::selection { background: var(--primary); color: #fff; }

.page { transition: opacity .35s ease, transform .35s ease; }

@media (max-width: 900px) {
  .menu { transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility .35s; }
  .menu a, .menu .nav-actions {
    opacity: 0; transform: translateY(-8px);
    transition: opacity .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1), color .2s;
  }
  .menu.open a, .menu.open .nav-actions { opacity: 1; transform: none; }
  .menu.open a:nth-child(1) { transition-delay: .05s; }
  .menu.open a:nth-child(2) { transition-delay: .10s; }
  .menu.open a:nth-child(3) { transition-delay: .15s; }
  .menu.open a:nth-child(4) { transition-delay: .20s; }
  .menu.open .nav-actions { transition-delay: .26s; }
  .menu.open a:active { transform: scale(.96); transition-delay: 0s; }
}

.footer-brand .footer-fact { margin-top: auto; transition: opacity .35s ease; padding-left: 12px; border-left: 3px solid var(--primary); font-size: .85rem; color: var(--text-muted); }
.footer-brand .footer-fact strong { color: var(--text-main); }

.footer-brand .footer-fact.fading { opacity: 0; }
.footer-brand .footer-tagline { margin-bottom: 1rem; }
@media (max-width: 768px) { .footer-brand .footer-fact { margin-top: 0; } }