/* ========================================
   BECCA'S PANCAKE PORTFOLIO
   Warm · Verspielt · Professionell-Absurd
   ======================================== */

:root {
  --golden: #F5A623;
  --butter: #FDD87A;
  --syrup: #8B4513;
  --cream: #FFF8EE;
  --dark: #2C1810;
  --orange: #E8722A;
  --pink: #F7C5A0;
  --white: #FFFDF9;
  --shadow: rgba(44, 24, 16, 0.12);

  --font-display: 'Righteous', sans-serif;
  --font-hand: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLL REVEAL BASE ── */
.reveal-up, .reveal-left, .reveal-right, .reveal-drop {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-drop  { transform: translateY(-60px) scale(0.9); }

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible, .reveal-drop.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }
.delay-5 { transition-delay: 0.6s; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(255, 248, 238, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px var(--shadow);
  padding: 0.8rem 3rem;
}
.nav-logo {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--syrup);
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce);
}
.nav-logo:hover { transform: scale(1.1) rotate(-3deg); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--golden) !important;
  color: var(--dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4) !important;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.hero-bg-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--butter); top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: var(--pink); bottom: 50px; left: -50px; animation-delay: 3s; }
.blob-3 { width: 200px; height: 200px; background: var(--golden); top: 50%; left: 40%; animation-delay: 1.5s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-title span { display: block; }
.hero-title .italic { font-style: italic; color: var(--orange); }
.hero-sub {
  font-size: 1rem;
  color: var(--syrup);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, background 0.2s;
}
.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(44, 24, 16, 0.25);
  background: var(--syrup);
}
.btn-arrow { transition: transform 0.2s; }
.hero-btn:hover .btn-arrow { transform: translateX(4px); }

/* PANCAKE IMAGE */
.hero-pancake {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-pancake-img {
  width: min(420px, 90%);
  height: auto;
  animation: stackFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(139, 69, 19, 0.25));
}
@keyframes stackFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--syrup);
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTIONS ── */
.section {
  padding: 8rem 3rem;
  position: relative;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 3rem;
  line-height: 1.15;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--syrup);
  max-width: 600px;
  margin-bottom: 3rem;
  margin-top: -1.5rem;
}

/* ABOUT */
.about { background: var(--white); }
.cv-grid { display: flex; flex-direction: column; gap: 2rem; }
.cv-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: 16px;
  border-left: 4px solid var(--golden);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.cv-entry:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px var(--shadow);
}
.cv-year {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
  padding-top: 0.2rem;
}
.cv-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.cv-content p { font-size: 0.95rem; color: #5a3d2b; line-height: 1.7; }
.cv-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.cv-tags span {
  background: var(--golden);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* PORTFOLIO */
.portfolio { background: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--golden), var(--orange));
}
.project-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 20px 50px var(--shadow);
  border-color: var(--golden);
}
.project-emoji { font-size: 3rem; margin-bottom: 1rem; }
.project-meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem; }
.project-content h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-content p { font-size: 0.9rem; color: #5a3d2b; line-height: 1.65; }
.project-rating { margin-top: 1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.project-rating span { font-weight: 700; color: var(--orange); }

/* SKILLS */
.skills { background: var(--dark); color: var(--cream); }
.skills .section-label { color: var(--golden); }
.skills .section-title { color: var(--cream); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-item {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(245,166,35,0.2);
  transition: background 0.25s, border-color 0.25s;
}
.skill-item:hover {
  background: rgba(245,166,35,0.08);
  border-color: rgba(245,166,35,0.5);
}
.skill-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.skill-icon { font-size: 1.3rem; }
.skill-name { font-size: 0.9rem; font-weight: 500; flex: 1; color: var(--cream); }
.skill-level { font-family: var(--font-hand); font-size: 0.85rem; color: var(--golden); font-weight: 700; }
.skill-bar { background: rgba(255,255,255,0.1); border-radius: 50px; height: 6px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--golden), var(--orange)); border-radius: 50px; width: 0; transition: width 1.2s var(--ease-smooth); }

/* QUIZ */
.quiz-section { background: var(--white); }
.quiz-container {
  background: var(--cream);
  border-radius: 24px;
  padding: 3rem;
  max-width: 700px;
  border: 2px solid var(--butter);
  box-shadow: 0 8px 48px var(--shadow);
}
.quiz-progress {
  background: var(--butter);
  border-radius: 50px;
  height: 6px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--golden), var(--orange));
  border-radius: 50px;
  width: 0%;
  transition: width 0.5s var(--ease-smooth);
}

.question-slide { display: none; }
.question-slide.active { display: block; animation: questionIn 0.4s var(--ease-smooth); }
@keyframes questionIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.question-number { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.question-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; line-height: 1.3; }
.options-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.option-btn {
  background: var(--white);
  border: 2px solid var(--butter);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.option-btn:hover { border-color: var(--golden); background: #fff9ed; transform: translateX(4px); }
.option-btn.correct { border-color: #4CAF50; background: #f0fff0; color: #2d6a30; }
.option-btn.wrong   { border-color: #e74c3c; background: #fff0f0; color: #a02020; }
.option-btn .option-icon { font-size: 1.2rem; }

.quiz-result {
  text-align: center;
  animation: questionIn 0.5s var(--ease-smooth);
}
.quiz-result .result-emoji { font-size: 4rem; margin-bottom: 1rem; }
.quiz-result h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--dark); margin-bottom: 0.8rem; }
.quiz-result p { font-size: 1rem; color: var(--syrup); line-height: 1.7; margin-bottom: 1.5rem; }
.quiz-score { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; color: var(--orange); margin: 0.5rem 0 1.5rem; }

/* CONTACT */
.contact { background: var(--cream); }
.contact-wrapper { max-width: 600px; }
.contact-locked {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 20px;
  border: 2px dashed var(--butter);
}
.lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-locked p { color: var(--syrup); margin-bottom: 1.5rem; font-size: 1.05rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-result-banner {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  display: none;
  margin-bottom: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
}
.form-result-banner.show { display: block; }
.form-result-banner.gold  { background: #fff8d6; color: #7a5c00; border: 2px solid var(--golden); }
.form-result-banner.silver { background: #f5f5f5; color: #555; border: 2px solid #ccc; }
.form-result-banner.bronze { background: #fff0e8; color: #7a3300; border: 2px solid #e0884a; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--white);
  border: 2px solid var(--butter);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--golden);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn { align-self: flex-start; }

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 3rem;
}
.footer-logo { font-size: 3rem; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--font-hand); font-size: 1.1rem; color: var(--golden); margin-bottom: 0.75rem; min-height: 1.5em; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; }

/* CONFETTI */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

/* KONAMI OVERLAY */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.92);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s;
}
.konami-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.konami-content {
  background: var(--cream);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
}
.konami-content h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.recipe { font-size: 1rem; line-height: 1.9; color: var(--syrup); margin-bottom: 1.5rem; }

/* UTILITY */
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; }
  .hero-pancake { order: -1; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .cv-entry { grid-template-columns: 1fr; }
  .section { padding: 5rem 1.5rem; }
}
