/* ==========================================================================
   KU CHWALE BRYKA - MASTER STYLESHEET
   Rich animations, dark luxury aesthetics, glassmorphism & simulator arena
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(28, 34, 56, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-bright: rgba(255, 215, 0, 0.3);
  
  --primary: #ff3b56;
  --primary-glow: rgba(255, 59, 86, 0.5);
  --gold: #ffb703;
  --gold-glow: rgba(255, 183, 3, 0.4);
  --accent-blue: #3a86ff;
  --accent-purple: #8338ec;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background animated canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--accent-purple));
  z-index: 1000;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #fff 10%, var(--gold) 45%, var(--primary) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glow-text {
  text-shadow: 0 0 40px rgba(255, 59, 86, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4365, #ff2a44 40%, #c90022);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(255, 42, 68, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(255, 42, 68, 0.7), 0 0 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.5s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

/* ==========================================
   FLOATING NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 500;
  transition: all var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(12, 16, 28, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-logo {
  transform: rotate(15deg) scale(1.1);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.nav-brand-text span {
  color: var(--gold);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 4px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-btn-highlight {
  background: linear-gradient(135deg, var(--gold), #f39c12);
  color: #07090e !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.nav-btn-highlight:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.6);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 59, 86, 0.22) 0%, rgba(255, 183, 3, 0.15) 35%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

/* 3D Floating Hero Showcase */
.hero-showcase {
  margin: 20px auto 44px;
  display: flex;
  justify-content: center;
}

.hero-avatar-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

.hero-avatar-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 3;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  animation: heroFloat 5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-avatar-wrapper:hover .hero-avatar-img {
  transform: scale(1.08) rotate(3deg);
}

.avatar-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 86, 0.5) 0%, rgba(255, 183, 3, 0.3) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.avatar-ring-outer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 183, 3, 0.4);
  animation: ringSpin 25s linear infinite;
  z-index: 2;
}

.avatar-ring-inner {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 50%;
  border: 1px solid rgba(255, 59, 86, 0.4);
  animation: ringSpinRev 18s linear infinite;
  z-index: 2;
}

.avatar-floating-tag {
  position: absolute;
  bottom: 0;
  background: rgba(12, 16, 28, 0.9);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  z-index: 4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: tagFloat 4s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ringSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

/* Scroll indicator */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(4px);
  color: var(--gold);
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 2px;
  animation: mouseWheel 2s infinite;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ==========================================
   SECTIONS COMMON
   ========================================== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 3D Tilt Card Base */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* ==========================================
   SECTION: TRIBUTE & MIŁE SŁOWA
   ========================================== */
.tribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.tribute-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tribute-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 183, 3, 0.15);
}

.highlight-card {
  background: linear-gradient(145deg, rgba(28, 20, 36, 0.85), rgba(18, 22, 36, 0.85));
  border-color: rgba(255, 59, 86, 0.3);
}

.highlight-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.card-glass-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: -15px;
}

.quote-text {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.author-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.quote-author h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.quote-author span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================
   SECTION: CECHY LEGENDY
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition-fast);
  text-align: left;
}

.feature-box:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 59, 86, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================
   SECTION: GALERIA WSPOMNIEŃ
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.gallery-item {
  grid-column: span 4;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 183, 3, 0.2);
}

.gallery-item.featured-span {
  grid-column: span 6;
}

@media (max-width: 992px) {
  .gallery-item {
    grid-column: span 6;
  }
  .gallery-item.featured-span {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .gallery-item, .gallery-item.featured-span {
    grid-column: span 12;
  }
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 16, 28, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  z-index: 5;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #000;
}

.gallery-item.featured-span .img-wrapper {
  height: 440px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-item:hover .img-wrapper img {
  transform: scale(1.08);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.gallery-item:hover .img-overlay {
  opacity: 1;
}

.zoom-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  transform: translateY(15px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .zoom-icon {
  transform: translateY(0);
}

.overlay-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
}

.overlay-sub {
  font-size: 0.9rem;
  color: var(--gold);
}

.gallery-caption {
  padding: 20px 24px;
}

.gallery-caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================
   SECTION: STATYSTYKI
   ========================================== */
.stats-section {
  padding: 60px 0;
  background: rgba(12, 16, 28, 0.5);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 20px;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  display: inline-block;
  line-height: 1;
}

.stat-unit {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-infinity {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* ==========================================
   SECTION: KSIĘGA WSPOMNIEŃ (GUESTBOOK)
   ========================================== */
.guestbook-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.guest-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  animation: cardFadeIn 0.5s ease-out;
}

.guest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 3, 0.4);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.guest-author {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
}

.guest-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 183, 3, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.guest-msg {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guest-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 14px;
}

/* Form */
.tribute-form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-glass-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8, 11, 20, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.25);
}

.submit-btn {
  width: 100%;
  padding: 14px;
}

/* ==========================================
   SECTION: THE REQUESTED FINALE & BUTTON
   "na samym koncu ma byc przycisk otwórz symulator bryka"
   ========================================== */
.simulator-cta-section {
  padding: 130px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at bottom, rgba(255, 42, 68, 0.15) 0%, rgba(12, 16, 28, 0.8) 60%, var(--bg-dark) 100%);
  border-top: 2px solid rgba(255, 59, 86, 0.3);
}

.cta-glow-circle {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 42, 68, 0.35) 0%, rgba(255, 183, 3, 0.2) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  padding: 8px 22px;
  background: rgba(255, 59, 86, 0.15);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.cta-desc {
  max-width: 760px;
  margin: 0 auto 44px;
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Simulator Mini Preview Animation */
.simulator-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.preview-bryk-floater img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  animation: chaseBob 2s ease-in-out infinite alternate;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.preview-apple-floater {
  font-size: 4rem;
  animation: appleFlee 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 20px rgba(255, 0, 0, 0.5));
}

.preview-arrow {
  font-size: 1.8rem;
  color: var(--gold);
}

@keyframes chaseBob {
  0% { transform: translateX(0) scale(1); }
  100% { transform: translateX(35px) scale(1.1); }
}

@keyframes appleFlee {
  0% { transform: translateX(0) rotate(-10deg); }
  100% { transform: translateX(35px) rotate(15deg); }
}

/* THE GRAND SIMULATOR BUTTON */
.grand-button-wrapper {
  margin: 20px auto 30px;
  display: flex;
  justify-content: center;
}

.btn-grand-simulator {
  position: relative;
  background: linear-gradient(135deg, #ff1a38 0%, #ff5e00 50%, #ffb703 100%);
  color: #ffffff;
  border: none;
  padding: 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 50px rgba(255, 42, 68, 0.6), 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn-grand-simulator:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 0 80px rgba(255, 42, 68, 0.85), 0 20px 50px rgba(0, 0, 0, 0.8);
}

.btn-grand-simulator:active {
  transform: scale(0.97);
}

.grand-btn-aura {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 59, 86, 0.6), transparent 70%);
  filter: blur(15px);
  z-index: 1;
  animation: auraPulse 2.5s infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.grand-btn-content {
  position: relative;
  z-index: 2;
  background: #0d101d;
  border-radius: var(--radius-full);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--transition-fast);
}

.btn-grand-simulator:hover .grand-btn-content {
  background: #14192d;
}

.grand-icon {
  font-size: 3.2rem;
  animation: iconBounce 1.5s infinite alternate;
}

.grand-icon-pulse {
  font-size: 2.4rem;
  animation: pulseRotate 2s infinite;
}

@keyframes iconBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.15); }
}

@keyframes pulseRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.2); }
}

.grand-text-box {
  text-align: left;
}

.grand-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.grand-title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.cta-footnote {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-glass);
  background: #05060a;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.footer-sim-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-sim-link:hover {
  color: var(--gold);
}

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

/* ==========================================
   LIGHTBOX MODAL
   ========================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.94);
  backdrop-filter: blur(20px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-box {
  max-width: 85vw;
  max-height: 75vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lightbox-image-box img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 18px;
  color: #ffffff;
  font-size: 1.1rem;
  text-align: center;
  max-width: 700px;
  background: rgba(18, 22, 36, 0.8);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--gold);
  color: #000;
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* ==========================================
   THE BRYK SIMULATOR MODAL & GAME ARENA
   ========================================== */
.simulator-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.simulator-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.simulator-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 8, 0.95);
  backdrop-filter: blur(25px);
}

.simulator-window {
  position: relative;
  z-index: 2;
  width: 96vw;
  max-width: 1300px;
  height: 92vh;
  background: #090c15;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 183, 3, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sim Header */
.sim-header {
  padding: 14px 24px;
  background: rgba(18, 22, 38, 0.95);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  user-select: none;
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.sim-brand h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.sim-status-pill {
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 600;
}

/* HUD */
.sim-hud {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 10, 18, 0.8);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-item:last-child {
  border-right: none;
}

.hud-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hud-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.highlight-hud .hud-val {
  color: var(--gold);
}

/* Sim Actions */
.sim-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.sim-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.sim-tool-btn.close-btn {
  background: rgba(255, 59, 86, 0.2);
  border-color: rgba(255, 59, 86, 0.4);
  color: #ff6b81;
}

.sim-tool-btn.close-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================
   SIM ARENA (THE PLAY AREA)
   ========================================== */
.sim-arena {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at center, #101528 0%, #060810 100%);
  overflow: hidden;
  cursor: none; /* Hide real cursor so the juicy apple IS the cursor */
  user-select: none;
}

#sim-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hint overlay */
.sim-hint {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 28, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  text-align: center;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-hint.fade-out {
  opacity: 0;
}

.hint-mouse-anim {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.sim-hint p {
  color: #ffffff;
  font-size: 0.95rem;
}

.sim-hint small {
  color: var(--gold);
  font-size: 0.8rem;
}

/* The Apple (Following Mouse) */
.game-apple {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out;
  filter: drop-shadow(0 6px 15px rgba(255, 42, 68, 0.6));
}

.game-apple img {
  width: 100%;
  height: 100%;
  display: block;
  animation: appleWobble 2s ease-in-out infinite;
}

.apple-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 86, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes appleWobble {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.06); }
}

/* The Bryk Head (Image 1 without frame, rounded, chasing apple) */
.game-bryk {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  will-change: transform;
}

.game-bryk img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* NO BORDER AS REQUESTED ("bez ramki zaokraglone sam czlowiek") */
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease;
}

/* Chomp Action */
.game-bryk.chomp img {
  transform: scale(1.35) rotate(-10deg);
  filter: brightness(1.25);
}

/* Speech Bubble over Bryk */
.bryk-speech-bubble {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #ffffff;
  color: #07090e;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bryk-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #ffffff transparent;
}

.bryk-speech-bubble.show {
  transform: translateX(-50%) scale(1);
}

/* Score splash popups on bite */
.score-popup {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 183, 3, 0.8);
  pointer-events: none;
  z-index: 25;
  animation: floatUpAndFade 0.8s ease-out forwards;
}

@keyframes floatUpAndFade {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  50% { transform: translate(-50%, -80px) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -120px) scale(1.1); opacity: 0; }
}

/* Sim Footer */
.sim-footer {
  padding: 12px 24px;
  background: rgba(14, 18, 30, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  user-select: none;
}

.sim-footer-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.sim-footer-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-close-secondary {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none; /* Keep clean on smaller tablets/mobiles */
  }
  
  .sim-window {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  
  .sim-hud {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grand-btn-content {
    padding: 16px 24px;
    gap: 14px;
  }
  
  .grand-icon {
    font-size: 2.2rem;
  }
  
  .grand-title {
    font-size: 1.3rem;
  }
}
