/* ===========================
   Warrior Angel Studio — Global CSS
   Kolorystyka: złoto + błękit
   Efekt wejścia tytułu: z góry do środka
   =========================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: "Aptos Display", system-ui, Arial, sans-serif; color: white; }

/* Kolory */
:root {
  --gold: gold;
  --blue: dodgerblue;
  --text: white;

  --gold-ghost: rgba(255, 215, 0, 0.22);
  --blue-ghost: rgba(30, 144, 255, 0.22);

  --gold-glow: rgba(255, 215, 0, 0.45);
  --blue-glow: rgba(30, 144, 255, 0.45);

  --gold-border-soft: rgba(255, 215, 0, 0.25);
  --panel-bg: rgba(0, 0, 0, 0.45);
  --panel-bg-strong: rgba(0, 0, 0, 0.55);

  --blur-weak: 2px;
  --blur-med: 3px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-tile: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-tile-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ===========================
   TŁO STRONY
   =========================== */
body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.50) 100%),
    radial-gradient(1200px 600px at 20% 10%, rgba(255, 215, 0, 0.18), transparent 60%),
    radial-gradient(1200px 600px at 80% 90%, rgba(30, 144, 255, 0.18), transparent 60%),
    url("../studio.jpg") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/* ===========================
   STRONA GŁÓWNA (index.html)
   =========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.45);
  backdrop-filter: blur(1.5px);
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text);
  animation: slideDownCenter 1s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes slideDownCenter {
  from {
    opacity: 0;
    transform: translateY(-40vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.3),
    0 0 24px rgba(30, 144, 255, 0.25);
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
}

.enter-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.6rem;
  font-size: 1.1rem;
  color: var(--text);
  background: linear-gradient(90deg, var(--gold-ghost), var(--blue-ghost));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xl);
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  backdrop-filter: blur(var(--blur-weak));
}

.enter-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px var(--gold-glow),
    0 0 24px var(--blue-glow);
  filter: saturate(1.05);
}

/* ===========================
   NAGŁÓWKI PODSTRON
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--gold-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand .logo {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.25), 0 0 18px rgba(30, 144, 255, 0.18);
}

.brand .tag {
  display: inline-block;
  margin-left: 10px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.top-nav a:hover {
  background: linear-gradient(90deg, var(--gold-ghost), var(--blue-ghost));
  box-shadow: 0 0 14px var(--gold-glow), 0 0 18px var(--blue-glow);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===========================
   HERO / PODSTRONY
   =========================== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 38vh;
  margin-top: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--gold-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--blur-weak));
}

.hero-card {
  text-align: center;
  padding: 28px 22px;
  animation: fadeIn 1.2s ease-out;
}

.hero h1 {
  font-size: 2rem;
  letter-spacing: 1px;
}

.hero p {
  margin-top: 8px;
  opacity: 0.92;
}

/* ===========================
   KAFELKI / GRID
   =========================== */
.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  min-height: 180px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-bg-strong);
  border: 1px solid var(--gold-border-soft);
  box-shadow: var(--shadow-tile);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  backdrop-filter: blur(var(--blur-med));
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-tile-hover);
  border-color: rgba(255, 255, 255, 0.32);
  filter: saturate(1.06);
}

.t-content {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.t-content h2 {
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.t-content p {
  opacity: 0.95;
  margin-top: 4px;
}

/* ===========================
   STOPKA
   =========================== */
.site-footer {
  text-align: center;
  padding: 32px 16px 40px;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}

/* ===========================
   ANIMACJE DODATKOWE
   =========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSYWNOŚĆ
   =========================== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 34vh; }
  h1 { font-size: 2.2rem; }
  .enter-btn { font-size: 1rem; padding: 0.75rem 2rem; }
}

/* === Intro: filmowa sekwencja wejścia (wolniejsza) === */
.content { animation: none !important; }

.content h1 {
  animation: slideDownCenter 1.2s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 0s;
}

.content .subtitle {
  opacity: 0;
  animation: fadeInUp 1s ease-out both;
  animation-delay: 0.9s; /* po tytule */
}

.content .enter-btn {
  opacity: 0;
  animation: fadeInUp 1s ease-out both;
  animation-delay: 1.8s; /* po podtytule */
}

/* Kluczowe klatki */
@keyframes slideDownCenter {
  from { opacity: 0; transform: translateY(-50vh); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dla osób z preferencją redukcji ruchu */
@media (prefers-reduced-motion: reduce) {
  .content h1,
  .content .subtitle,
  .content .enter-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

