/* ============================================================
   Studio Lizards and Wizards — main.css
   ============================================================ */

/* 1. Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Poppins:wght@400;500;600&display=swap');

/* 2. Design Tokens
   ============================================================ */
:root {
  --sky-top: #c4e8ff;
  --sky-bottom: #55b4e8;
  --panel-bg: rgba(15, 6, 40, 0.88);
  --panel-border: rgba(155, 100, 255, 0.40);
  --panel-glow: rgba(110, 50, 240, 0.20);
  --header-bg: rgba(12, 5, 32, 0.92);
  --sidebar-bg: rgba(12, 5, 32, 0.97);
  --sidebar-width: 260px;
  --header-height: 64px;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --gold: #f59e0b;
  --gold-hover: #fbbf24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border-radius: 12px;
}

/* 3. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

/* 4. Cloud background
   ============================================================ */
#sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#sky canvas,
.sky canvas {
  position: absolute;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translateX(-600px); opacity: 0; }
  8%   { opacity: var(--cloud-opacity, 0.85); }
  92%  { opacity: var(--cloud-opacity, 0.85); }
  100% { transform: translateX(calc(100vw + 600px)); opacity: 0; }
}

/* 5. Header
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  box-shadow: 0 2px 20px var(--panel-glow);
}

.hamburger {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

#logo {
  height: 42px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.studio-name {
  font-family: 'Bangers', cursive;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 16px rgba(196, 130, 255, 0.7);
}

/* 6. Sidebar
   ============================================================ */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 200;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--panel-border);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

#sidebar.open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
}

.sidebar-logo {
  height: 36px;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.sidebar-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-list {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.nav-item {
  margin: 2px 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}

.nav-link.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.22);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* 7. Main content
   ============================================================ */
#main-content {
  position: fixed;
  inset: 0;
  padding-top: var(--header-height);
  overflow-y: auto;
  z-index: 1;
  scroll-behavior: smooth;
}

/* 8. Shared section styles
   ============================================================ */
.section-page {
  min-height: calc(100vh - var(--header-height));
  padding: 40px 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--panel-border);
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 3px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(196, 130, 255, 0.7);
}

.section-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 9. Panels
   ============================================================ */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px var(--panel-glow);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* 10. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}

.btn-download {
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 600;
}

.btn-download:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.15);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 11. Home — splash layout (mirrors the standalone splash page)
   ============================================================ */
.home-splash {
  position: fixed;
  inset: 0;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* let clicks through to sky */
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  pointer-events: auto;
}

.splash-logo {
  width: min(800px, 80vw);
  filter: drop-shadow(0 12px 28px rgba(0, 50, 120, 0.3));
  animation: logo-float 5s ease-in-out infinite;
  margin-bottom: -100px;
  margin-top: -50px;
}

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

/* Tagline bar — dark purple gradient pill with shimmer */
.hero-tagline {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #120830 0%, #2b1068 50%, #120830 100%);
  border: 2px solid rgba(172, 118, 255, 0.55);
  border-radius: 60px;
  padding: 13px 50px;
  font-family: 'Bangers', cursive;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 4px;
  color: var(--text);
  text-shadow:
    0 0 22px rgba(200, 160, 255, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 30px rgba(130, 60, 255, 0.3),
    0 5px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-tagline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.13) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.splash-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 12. About section
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.about-panel-title {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--accent-hover);
}

.team-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
}

.team-placeholder i {
  font-size: 3rem;
  color: var(--panel-border);
}

/* 13. Projects section
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px var(--panel-glow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-title {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.25);
  color: var(--accent-hover);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-actions {
  margin-top: auto;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  user-select: none;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.carousel-slide i {
  font-size: 2.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 6, 40, 0.75);
  border: 1px solid var(--panel-border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
}

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

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
}

/* 14. Downloads section
   ============================================================ */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px var(--panel-glow);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-icon {
  font-size: 2.4rem;
  color: var(--accent);
  min-width: 48px;
  text-align: center;
}

.download-info {
  flex: 1;
  min-width: 200px;
}

.download-title {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--text);
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.download-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.download-version {
  font-size: 0.8rem;
  color: var(--accent-hover);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.download-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 15. Contact section
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(29, 29, 29, 0.822);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-title {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--accent-hover);
}

.contact-email-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Honeypot — off-screen, zero footprint, stays in DOM so bots fill it in */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Required field marker */
.form-required {
  color: var(--accent-hover);
}

/* Narrow the CAPTCHA answer input */
.contact-captcha-input {
  max-width: 160px;
}

/* Submission result banner */
.contact-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.contact-result--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.contact-result--err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
}

.social-btn.discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.social-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
}

.social-btn.twitter:hover {
  background: #14171A;
  border-color: #555;
}

.social-btn.tiktok:hover {
  background: #010101;
  border-color: #ff0050;
  box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
}

.social-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.social-btn.coffee:hover {
  background: #FFDD00;
  border-color: #e0c000;
  color: #1a1a1a;
}

/* 16. Shimmer animation
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* 17. Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 230px;
  }

  .section-page {
    padding: 24px 16px;
  }

  .splash-logo {
    width: min(300px, 72vw);
  }

  .hero-tagline {
    padding: 11px 28px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .studio-name {
    display: none;
  }

  .splash-logo {
    width: min(240px, 78vw);
  }
}
