html, body {
  overflow-x: hidden;
}

:root {
  --color-bg: #fff9fb;
  --color-bg-alt: #ffffff;
  --color-primary: #f472b6;
  --color-accent-yellow: #fde68a;
  --color-accent-red: #fecaca;
  --color-accent-blue: #bfdbfe;
  --color-accent-purple: #e9d5ff;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-shadow-soft: rgba(15, 23, 42, 0.08);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.button,
.button:hover,
.button:focus,
.primary-button,
.primary-button:hover,
.primary-button:focus,
.pastel-btn,
.pastel-btn:hover,
.pastel-btn:focus {
  text-decoration: none !important;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.pastel-btn:focus,
.pastel-btn:focus-visible,
.song-button:focus,
.song-button:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

.site-header .nav-list a:focus,
.site-header .nav-list a:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.song-button:focus,
.song-button:focus-visible {
  outline: none !important;
  box-shadow:
    0 10px 22px rgba(255, 150, 200, 0.45),
    0 5px 14px rgba(255, 180, 220, 0.35);
}

.footer-links a:focus,
.footer-links a:focus-visible,
.footer-links a:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
}


.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: var(--space-xs) var(--space-m);
  background-color: var(--color-text-main);
  color: #ffffff;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-s);
  top: var(--space-s);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: var(--space-s) var(--space-l);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

/* LOGO */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
}

.logo-mark {
  font-size: 1.4rem;
}

/* NAVIGATION */
.main-nav {
  margin: 0 auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text-main);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: transparent;
  display: inline-block;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.site-header .nav-list a:hover,
.site-header .nav-list a:focus {
  background-image: linear-gradient(
    90deg,
    #fde68a,
    #f9a8d4,
    #bfdbfe
  ) !important;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
}

.site-header .nav-list a:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* NAVIGATION TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0.3rem;
  margin-left: 1rem;
  z-index: 1100;
  box-shadow: none !important;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background-color: #111827;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* NAVIGATION MOBILE */
@media (max-width: 800px) {
  .site-header {
    padding-inline: var(--space-m);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: auto;
    width: min(260px, 80vw);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
  }

  .main-nav.open {
    display: block;
    animation: fadeInNav 0.25s ease;
  }

  @keyframes fadeInNav {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
  }

  .nav-list a {
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
    padding: 0.7rem 0.9rem;
    transform: none;
  }
}

/* BASE SECTIONS */
.section {
  padding: var(--space-xl) var(--space-l);
  max-width: 900px;
  margin: 0 auto;
  scroll-margin-top: 5rem;
}

.section-header {
  margin-bottom: var(--space-l);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 var(--space-s);
}

.section-subtitle {
  margin: 0;
  color: var(--color-text-muted);
}

/* HERO */
.hero {
  padding: 5rem var(--space-l) 3.5rem;
  background: linear-gradient(
    90deg,
    #fff3c4 0%,
    #ffe5f0 50%,
    #e2f0ff 100%
  );
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
  max-width: 32rem;
}

.hero-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.hero-flat {
  background: linear-gradient(
    90deg,
    #fff3c4 0%,
    #ffe5f0 40%,
    #e3eeff 100%
  );
  
  width: 100vw;               
  margin-left: 50%;           
  transform: translateX(-50%);
  border-radius: 0 !important;
}


.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 3rem;
  align-items: center;
}

.hero-image img {
  width: 70%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  font-size: 3.8rem;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero-tagline {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: #1b1b1b;
}

.hero-intro {
  color: #4b5563;
  max-width: 650px;
  margin-bottom: 2rem;
}

.no-underline,
.no-underline:focus,
.no-underline:hover {
  text-decoration: none !important;
}

/* BUTTONS */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent-purple)
  );
  color: #111827;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-button:hover,
.primary-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pastel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff, #bfdbfe);
  border-radius: 50px;
  font-weight: 600;
  color: #111827;
  font-size: 0.93rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.pastel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 1rem;
  animation: sparkle 1.8s infinite ease-in-out;
}

@keyframes sparkle {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}


.content-block {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--space-l);
  margin-bottom: var(--space-l);
  box-shadow: 0 10px 20px var(--color-shadow-soft);
}

.content-block h3 {
  margin-top: 0;
  margin-bottom: var(--space-s);
  font-size: 1.35rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* ABOUT */
.highlight-box {
  max-width: 650px;
  margin: 2rem auto;
  padding: 1.8rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-yellow),
    var(--color-accent-pink, #f9a8d4)
  );
  border-radius: var(--radius-card);
  border: 1px solid rgba(248, 181, 121, 0.55);
  box-shadow: 0 10px 20px var(--color-shadow-soft);
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
}

.highlight-box ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1rem;
}

.highlight-box li {
  margin-bottom: 0.5rem;
}

.highlight-long {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2.5rem 3rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #fde68a, #fbcfe8, #e9d5ff);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.highlight-emoji-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.highlight-emoji-title h3 {
  margin: 0.3rem 0 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.emoji-big {
  font-size: 2.3rem;
  display: block;
}

.highlight-emoji-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-emoji-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.highlight-emoji-list .emoji {
  font-size: 1.35rem;
}

.about-flip-card {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  perspective: 1200px;
}

.about-flip-card-inner {
  position: relative;
  width: 100%;
  height: 440px;
  text-align: center;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.about-flip-card:hover .about-flip-card-inner,
.about-flip-card:focus-within .about-flip-card-inner {
  transform: rotateY(180deg);
}

.about-flip-card-front,
.about-flip-card-back {
  position: absolute;
  inset: 0;
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-flip-card-front {
  background: linear-gradient(135deg, #fde68a, #fbcfe8, #e9d5ff, #bfdbfe);
  text-align: center;
  color: #111827;
}

.about-flip-card-front .flip-emoji {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
}

.about-flip-card-front h3 {
  margin: 0;
  font-size: 1.4rem;
}

.about-flip-card-back {
  background: #ffffff;
  color: var(--color-text-main);
  text-align: left;
  font-size: 1rem;
  transform: rotateY(180deg);
  overflow-y: auto;
}

@media (max-width: 768px) {
  .about-flip-card-inner {
    height: 480px;
  }
}

.about-highlight {
  max-width: 650px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
}

/* PERSPECTIVES */
.persp-flip-grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 768px) {
  .persp-flip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.persp-flip-card {
  width: 100%;
  perspective: 1400px;
}

.persp-flip-card-inner {
  position: relative;
  width: 100%;
  height: 680px;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.persp-flip-card:hover .persp-flip-card-inner,
.persp-flip-card:focus-within .persp-flip-card-inner {
  transform: rotateY(180deg);
}

.persp-flip-card-front,
.persp-flip-card-back {
  position: absolute;
  inset: 0;
  padding: 2.2rem;
  border-radius: var(--radius-card);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.persp-flip-card-front {
  text-align: center;
  color: #111827;
}

.persp-flip-card-front .flip-emoji {
  font-size: 2.7rem;
  margin-bottom: 0.8rem;
}

.persp-flip-card-front h3 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.persp-flip-card-front p.flip-front-caption {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.persp-flip-card--sun .persp-flip-card-front {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.persp-flip-card--peach .persp-flip-card-front {
  background: linear-gradient(135deg, #fed7e2, #f9a8d4);
}

.persp-flip-card--sky .persp-flip-card-front {
  background: linear-gradient(135deg, #bfdbfe, #e0f2fe);
}

.persp-flip-card-back {
  background: #ffffff;
  color: var(--color-text-main);
  text-align: left;
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: 2rem 2rem;
}

/* EXPERIMENTS */
.exp-vertical {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-card {
  padding: 2.2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.exp-icon {
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 0.2rem;
}

.exp-card h3 {
  text-align: center;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
}

.exp-card p {
  margin: 0;
  font-size: 1.1rem;
  color: #1e1e1e;
  line-height: 1.6;
}

.exp-yellow {
  background: linear-gradient(135deg, #fff5d6, #ffe6b3);
}

.exp-pink {
  background: linear-gradient(135deg, #ffd6e8, #ffc4da);
}

.exp-blue {
  background: linear-gradient(135deg, #d6f0ff, #c2e4ff);
}

.experiment-note-pretty {
  margin-top: 2rem;
  padding: 1.7rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #e1ffe8, #c8fff5);
  border: 1px solid rgba(160, 255, 220, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  color: #185a42;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 0 25px rgba(255, 180, 220, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  max-width: 360px;
  margin-inline: auto;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.18),
    0 0 35px rgba(170, 200, 255, 0.45),
    0 0 50px rgba(255, 200, 230, 0.35);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 14px solid rgba(255, 255, 255, 0.9);
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  object-position: center 35%;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.gallery-item figcaption {
  padding: 1.4rem 1.2rem 2rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #444;
}

.gallery-item figcaption strong {
  font-size: 1.22rem;
  display: block;
  margin-bottom: 0.6rem;
  color: #111;
}

/* SONG */
.song-card {
  max-width: 620px;
  margin: 3rem auto;
  padding: 2.2rem 2rem;
  background: linear-gradient(
    135deg,
    #fff7fa,
    #fefaff,
    #f8f9ff
  );
  border-radius: 32px;
  box-shadow:
    0 18px 40px rgba(255, 180, 220, 0.3),
    0 10px 20px rgba(150, 200, 255, 0.25);
  text-align: center;
  border: 1px solid rgba(255, 200, 230, 0.35);
}

.song-title {
  font-size: 1.75rem;
  margin-bottom: 0.7rem;
}

.song-description {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.7rem;
}

.song-image-wrapper {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.8rem;
}

.song-image-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.song-image-wrapper:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.song-button {
  display: inline-block;
  background: linear-gradient(135deg, #ffb6d6, #ff9bc9, #ffb6e5);
  padding: 0.9rem 2.3rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white !important;
  text-decoration: none !important;
  box-shadow:
    0 6px 15px rgba(255, 150, 200, 0.4),
    0 4px 10px rgba(255, 180, 220, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.song-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 22px rgba(255, 150, 200, 0.45),
    0 5px 14px rgba(255, 180, 220, 0.35);
}

.song-button:active {
  transform: translateY(0);
  box-shadow:
    0 6px 12px rgba(255, 150, 200, 0.3);
}

/* REFLECTION */
.reflection-card {
  background: linear-gradient(135deg, #fff7fc, #f4fbff);
  padding: 2.2rem;
  border-radius: 22px;
  border: 1px solid rgba(200, 200, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.reflection-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 32px rgba(180, 200, 255, 0.35),
    0 10px 24px rgba(255, 180, 240, 0.28);
}

.reflection-card h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reflection-card h3 .icon {
  font-size: 1.6rem;
}

.reflection-card p {
  line-height: 1.65;
  color: #333;
  margin-bottom: 1rem;
}

.pastel-list {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
}

.pastel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 1.06rem;
  line-height: 1.55;
}

.pastel-list li .bullet {
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

/* FOOTER */
.footer-wrapper {
  margin-top: 4rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-purple),
    var(--color-accent-blue),
    var(--color-accent-yellow)
  );
  padding: 3rem 2rem 2rem;
  color: #1a1a1a;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-column h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-column p {
  margin: 0;
  line-height: 1.6;
  max-width: 380px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-links a {
  text-decoration: none;
  color: #111;
  transition: opacity 0.25s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* RESPONSIVE  */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding-inline: var(--space-xxl);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* =========================
   MOBILE / TABLET <= 768px
   ========================= */
@media (max-width: 768px) {


  html, body {
    overflow-x: hidden;
  }

  .hero-flat {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: min(92%, 360px);
    height: auto;
  }


  .about-flip-card-inner {
    height: auto;              
    min-height: 360px;
  }

  .about-flip-card-front,
  .about-flip-card-back {
    padding: 1.25rem;
  }


  .about-flip-card-back {
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---------- THREE THINGS ---------- */
  .highlight-long {
    max-width: 100%;
    padding: 1.4rem 1.1rem;
    margin: 2rem auto;
  }

  .highlight-emoji-title h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .highlight-emoji-list {
    padding: 0;
    margin: 0;
  }

  .highlight-emoji-list li {
    display: grid;
    grid-template-columns: 2rem 1fr;   /* emoji | text */
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    align-items: start;

    /* IMPORTANT: oprește “ruperi urâte” */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;

    font-size: 1.05rem;
    line-height: 1.5;
  }

  .highlight-emoji-list li .emoji {
    margin-top: 0.15rem;
  }


  .persp-flip-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
  }

  .persp-flip-card-inner {
    height: auto;
    min-height: 420px;
  }

  .persp-flip-card-back {
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }


  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .gallery-item {
    max-width: 100%;
    width: 100%;
  }

  .gallery-item img {
    width: 100%;
    height: 260px;        
    object-fit: cover;
    object-position: center;
    display: block;
  }


  .gallery-item img[alt*="happy mind happy life"] {
    object-fit: contain;
    background: #fff;
  }
}

@media (max-width: 600px) {
  .gallery-item img {
    height: 320px;          
  }
}

/* FIX FINAL (CSS-only) pentru "Three things..." */
.highlight-emoji-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-emoji-list li {
  position: relative;
  padding-left: 2.2rem;   
  margin-bottom: 0.9rem;


  display: block !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  line-height: 1.55;
}

.highlight-emoji-list li .emoji {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.6rem;
  text-align: center;
}

.highlight-emoji-list li {
  white-space: normal !important;
}

.highlight-emoji-list li {
  display: block;
}

.highlight-emoji-list li * {
  display: inline;
}


