:root {
  --purple:      #C9B8FF;
  --purple-dark: #8B6FE8;
  --pink:        #FFD6E7;
  --pink-dark:   #F5A0C0;
  --mint:        #B8F0E6;
  --mint-dark:   #5ECFB8;
  --yellow:      #FFF0B8;
  --cream:       #FFF8F0;
  --navy:        #1E1B2E;
  --navy-soft:   #3D3660;
  --text:        #2D2A45;
  --text-light:  #6B6899;
  --white:       #FFFFFF;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  48px;

  --shadow-sm: 0 2px 12px rgba(139, 111, 232, 0.12);
  --shadow-md: 0 8px 32px rgba(139, 111, 232, 0.18);
  --shadow-lg: 0 20px 60px rgba(139, 111, 232, 0.22);

  --nav-h: 70px;
  --transition: 0.3s 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;
}

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

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ol, ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

/* ====================================
   NAVBAR
   ==================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--purple);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-soft);
  transition: transform var(--transition);
}
.nav-logo:hover { transform: scale(1.05); }
.logo-emoji { font-size: 1.4rem; animation: floatEmoji 3s ease-in-out infinite; }

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: all 0.25s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--purple-dark);
  border-radius: 99px;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--navy-soft); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy-soft);
  border-radius: 99px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ====================================
   HERO
   ==================================== */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F0EAFF 0%, #FFE8F4 40%, #E8FBF6 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--white);
  border: 2px solid var(--purple);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 24px;
  animation: popIn 0.6s var(--transition) both;
}

.hero-logo-wrap {
  margin-bottom: 24px;
  animation: popIn 0.7s var(--transition) 0.1s both;
}

.hero-logo-ring {
  display: inline-block;
  padding: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--purple), 0 0 0 8px var(--pink);
  animation: floatLogo 4s ease-in-out infinite;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
  animation: popIn 0.8s var(--transition) 0.2s both;
}
.title-accent {
  background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 24px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.tag {
  padding: 6px 16px;
  background: var(--white);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow-sm);
  color: var(--navy-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.5s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dark), #b06ff5);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(139, 111, 232, 0.4);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(139, 111, 232, 0.5); }

.btn-secondary {
  background: var(--white);
  color: var(--purple-dark);
  border: 2.5px solid var(--purple);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { box-shadow: var(--shadow-md); }

/* Hero deco stars */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.deco-star {
  position: absolute;
  font-size: 1.5rem;
  animation: floatStar 5s ease-in-out infinite;
}
.s1 { top: 15%; left: 8%;  animation-delay: 0s;    animation-duration: 4s; }
.s2 { top: 25%; right: 10%; animation-delay: 0.8s; animation-duration: 5s; }
.s3 { top: 65%; left: 5%;  animation-delay: 1.5s; animation-duration: 6s; }
.s4 { bottom: 20%; right: 8%; animation-delay: 0.4s; animation-duration: 4.5s; }
.s5 { top: 50%; left: 15%; animation-delay: 2s;   animation-duration: 5.5s; }

/* ====================================
   BUBBLES (shared background deco)
   ==================================== */
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: floatBubble 8s ease-in-out infinite;
}
.b1 { width: 300px; height: 300px; background: var(--purple);  top: -80px;  left: -80px;  animation-delay: 0s; }
.b2 { width: 200px; height: 200px; background: var(--pink);    top: 30%;    right: -60px; animation-delay: 2s; }
.b3 { width: 150px; height: 150px; background: var(--mint);    bottom: 10%; left: 20%;    animation-delay: 1s; }
.b4 { width: 100px; height: 100px; background: var(--yellow);  top: 60%;    right: 15%;   animation-delay: 3s; }
.b5 { width: 80px;  height: 80px;  background: var(--purple);  bottom: 5%;  right: 5%;    animation-delay: 1.5s; }
.db1 { width: 250px; height: 250px; background: var(--pink);   top: -50px;  right: -50px; animation-delay: 0.5s; }
.db2 { width: 180px; height: 180px; background: var(--mint);   bottom: -40px; left: -40px; animation-delay: 2.5s; }
.fb1 { width: 200px; height: 200px; background: var(--purple); top: -60px;  left: -60px;  animation-delay: 0s; }
.fb2 { width: 150px; height: 150px; background: var(--pink);   bottom: -40px; right: -40px; animation-delay: 1s; }

/* ====================================
   SECTIONS — shared
   ==================================== */
.section { padding: 100px 24px; position: relative; overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: var(--purple);
  color: var(--navy-soft);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
}

/* ====================================
   ABOUT
   ==================================== */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
   height: 100%;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.story-card { border-color: var(--purple); }
.story-card:hover { border-color: var(--purple-dark); }
.tutorial-card { border-color: var(--mint-dark); }
.tutorial-card:hover { border-color: var(--mint-dark); }
.ending-card {
  border-color: var(--yellow);
}

.ending-card:hover {
  border-color: #e6c84f;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.about-card p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}

.story-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--purple);
}
.stat { text-align: center; flex: 1; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--purple-dark);
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tutorial-list { display: flex; flex-direction: column; gap: 20px; }
.tutorial-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--mint-dark), var(--purple-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(94, 207, 184, 0.4);
}
.step-content strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 3px;
}
.step-content p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

kbd {
  display: inline-block;
  padding: 2px 7px;
  background: var(--white);
  border: 1.5px solid var(--purple);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple-dark);
  box-shadow: 0 2px 0 var(--purple);
}

/* ====================================
   DEVELOPER
   ==================================== */
.dev-section {
  background: linear-gradient(160deg, #F0EAFF 0%, #E8FBF6 100%);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: auto;
   justify-content: center;
  gap: 24px;
}
.dev-card:nth-child(4),
.dev-card:nth-child(5) {
  grid-column: auto;
  margin-left: auto;
  margin-right: auto;
}
.dev-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.scriptwriter { background: #FFD4A8; color: #8B4500; }
.dev-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
}

.dev-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.dev-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 4px var(--pink);
  transition: transform var(--transition);
}
.dev-card:hover .dev-avatar { transform: scale(1.08) rotate(-3deg); }
.dev-badge {
  position: absolute;
  bottom: 0; right: -4px;
  font-size: 1.2rem;
  background: var(--white);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.dev-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.dev-role {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.web-dev   { background: var(--purple); color: var(--navy-soft); }
.game-dev  { background: var(--mint);   color: #2D6B60; }
.designer  { background: var(--yellow); color: #7A5E00; }
.sound     { background: var(--pink);   color: #8B3A60; }

.dev-bio { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }

.dev-socials { display: flex; gap: 10px; justify-content: center; }

.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  transition: transform var(--transition), box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.social-btn:hover { transform: translateY(-3px) scale(1.15); box-shadow: var(--shadow-md); }

.social-btn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.gh { background: linear-gradient(135deg, #24292e, #4a4f54); }
.social-btn.em { background: linear-gradient(135deg, var(--purple-dark), #b06ff5); }

/* ====================================
   GALLERY
   ==================================== */
.gallery-section { background: var(--white); }

.gallery-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--cream);
  border: 2px solid var(--purple);
  transition: all 0.25s ease;
}
.tab-btn:hover { background: var(--purple); color: var(--navy-soft); }
.tab-btn.active { background: var(--purple-dark); color: var(--white); border-color: var(--purple-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item--wide {
  grid-column: span 1;
}

.gallery-item {
  border-radius: 18;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
   transition: all 0.3s ease;
 aspect-ratio: 16/10;
  width: 100%;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
      display:block;

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,46,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.gallery-item.hidden{
    opacity:0;
    transform:scale(0.8);
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 46, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s var(--transition);
}
.lightbox-caption {
  margin-top: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.4rem;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ====================================
   RATING
   ==================================== */
.rating-section { background: var(--white); }

.rating-wrap {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating-form-card {
  background: var(--cream);
  border: 2px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-hint {
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.star-row {
  display: flex;
  gap: 8px;
}

.star {
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--purple);
  opacity: 0.3;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.star.active, .star.hovered {
  opacity: 1;
  color: #f5a623;
  transform: scale(1.15);
}

.star-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple-dark);
  min-height: 20px;
  margin: 0;
}

.rating-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}
.rating-input:focus { border-color: var(--purple-dark); }

.rating-textarea {
  width: 100%;
  height: 90px;
  padding: 10px 14px;
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}
.rating-textarea:focus { border-color: var(--purple-dark); }

.rating-err {
  font-size: 0.85rem;
  color: #e74c3c;
  min-height: 18px;
  margin: 0;
}

.rating-summary {
  background: var(--cream);
  border: 2px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.avg-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avg-score {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--purple-dark);
  line-height: 1;
}

.avg-stars {
  font-size: 1.4rem;
  color: #f5a623;
  letter-spacing: 2px;
}

.avg-count {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 700;
  margin: 4px 0 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--cream);
  border: 2px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
}

.review-stars {
  font-size: 1rem;
  color: #f5a623;
}

.review-comment {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}
/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 70px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-content { position: relative; z-index: 2; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-thanks {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}
.footer-team {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.footer-team strong { color: var(--purple); }
.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--purple);
  margin: 0 auto 20px;
  border-radius: 99px;
}
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--purple-dark), #b06ff5);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes floatEmoji {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(12px, -18px) scale(1.04); }
  66%       { transform: translate(-8px, 10px) scale(0.97); }
}
@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50%       { transform: translateY(-20px) rotate(15deg); opacity: 1; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%       { transform: scale(1.2); }
  50%       { transform: scale(1); }
  75%       { transform: scale(1.15); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ====================================
   RESPONSIVE
   ==================================== */

/* Tablet */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 248, 240, 0.97);
    padding: 16px 20px 24px;
    border-bottom: 2px solid var(--purple);
    z-index: 999;
  }
  .nav-links.open {
    display: flex !important;
  }
}

/* Mobile */
/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding: 70px 20px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 248, 240, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 24px;
    border-bottom: 2px solid var(--purple);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(201, 184, 255, 0.3);
  }
  .nav-link:last-child { border-bottom: none; }

  .hero-logo { width: 110px; height: 110px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }

  .dev-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }
  .dev-card {
    width: 90%;
    max-width: 300px;
    margin: 0 auto !important;
  }
  .dev-card:nth-child(4),
  .dev-card:nth-child(5) {
    grid-column: auto !important;
    margin-left: auto !important;
  }

  .gallery-grid { grid-template-columns: 1fr; }
  .about-card { padding: 28px 22px; }
  .story-stats { gap: 12px; }
}