/* ═══════════════════════════════════════════════════════════════
   DA-MIN KIM — VIOLINISTE  |  styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:       #0a1a2e;
  --blue-deep:  #0d2a4e;
  --blue-mid:   #1a4a7a;
  --blue-soft:  #2a6aaa;
  --blue-light: #4a90d9;
  --blue-pale:  #d0e8f8;
  --gold:       #c9a84c;
  --gold-light: #e6c96a;
  --white:      #ffffff;
  --off-white:  #ece8e1;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #8899aa;

  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', sans-serif;
  --font-korean: 'Noto Sans KR', sans-serif;

  --nav-h:   70px;
  --gap:     clamp(1.5rem, 4vw, 3rem);
  --radius:  4px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.ko { font-family: var(--font-korean), var(--font-sans); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.section-header.light h2 { color: var(--white); }
.section-header.light .section-tag { color: var(--gold-light); border-color: var(--gold-light); }

.section-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
  border-bottom: 1px solid var(--blue-soft);
  padding-bottom: 5px;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(10, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.55);
  padding: 2px 4px;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active { color: var(--gold); }

.lang-sep { color: rgba(255,255,255,.25); font-size: 0.7rem; }

/* Logo + Instagram grouped on the left */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger wrapper */
.nav-persistent {
  display: flex;
  align-items: center;
}

.nav-insta {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.7);
  transition: color 0.2s;
}

.nav-insta:hover { color: var(--gold); }

.nav-insta svg {
  width: 30px;
  height: 30px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(160deg,
      #061422 0%,
      #0d2a4e 40%,
      #1a3d6e 70%,
      #0d2a4e 100%);
}

/* Decorative wave lines */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 38px,
      rgba(255,255,255,.015) 38px,
      rgba(255,255,255,.015) 40px
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(42,106,170,.25) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) clamp(1rem, 5vw, 3rem) 3rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 16vw, 13rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  line-height: 2;
  margin-bottom: 2.5rem;
}

.btn-hero {
  display: inline-block;
  padding: 0.85em 2.8em;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s;
}

.btn-hero:hover {
  background: var(--gold);
  color: var(--navy);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.5));
  margin: 0 auto;
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════════ */
#about {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr 185px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10,26,46,.22);
  aspect-ratio: 3 / 4;
  background: var(--blue-deep);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.bio-block p {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  color: var(--text-mid);
  line-height: 1.85;
}

.bio-block p strong { color: var(--navy); font-weight: 600; }

/* Right-margin callout column */
.about-callouts {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(10,26,46,.12);
}

.callout-group { }

.callout-title {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}

.callout-list {
  list-style: none;
}

.callout-list li {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(10,26,46,.06);
  line-height: 1.35;
}

.callout-list li em {
  font-style: italic;
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════════════ */
#gallery {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

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

.gallery-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   MEDIA
═══════════════════════════════════════════════════════════════════ */
#media {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
}

.media-sub-heading {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
  border-bottom: 1px solid var(--blue-soft);
  padding-bottom: 3px;
  margin-bottom: 1.5rem;
}

.media-grid + .media-sub-heading {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.media-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.3s;
}

.media-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.media-play svg {
  width: 64px;
  height: 45px;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.media-item:hover .media-play svg {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════════ */
#contact {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #071929 0%, var(--blue-deep) 60%, #0c2341 100%);
  z-index: 0;
}

#contact .container { position: relative; z-index: 1; }

/* Contact mailto */
.contact-mailto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.contact-invite {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,.65);
  font-style: italic;
  max-width: 480px;
}

.contact-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
}

.contact-action:hover { color: var(--gold); }

.contact-action svg {
  width: 30px;
  height: 30px;
}

.contact-action span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
#footer {
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
  }

  .about-callouts {
    grid-column: 1 / -1;
    position: static;
    flex-direction: row;
    gap: 3rem;
    border-left: none;
    border-top: 1px solid rgba(10,26,46,.12);
    padding-left: 0;
    padding-top: 2rem;
  }

  .callout-group { flex: 1; }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame { aspect-ratio: 3/4; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .hamburger { display: flex; }

  .nav-right {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,26,46,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    pointer-events: none;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
  }

  .lang-switcher {
    justify-content: flex-start;
    padding-top: 0.3rem;
  }

  .lang-btn { font-size: 0.75rem; }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
    height: auto;
  }

  .gallery-item img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }

}

@media (max-width: 540px) {
  .photo-frame { max-width: 280px; margin: 0 auto; }

  .about-callouts {
    flex-direction: column;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

}

/* ══════════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4, 10, 18, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
}

.lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
  display: block;
}

.lightbox.open .lightbox-img-wrap img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
  transition: color 0.2s;
  z-index: 3010;
}

.lightbox-close svg {
  width: 28px;
  height: 28px;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 3.5rem;
  font-family: var(--font-serif);
  cursor: pointer;
  padding: 1rem 1.25rem;
  line-height: 1;
  transition: color 0.2s;
  z-index: 3010;
  user-select: none;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
}

.gallery-item { cursor: pointer; }

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next { display: none; }

  .lightbox-img-wrap img {
    max-width: 96vw;
    max-height: 82vh;
  }

  .lightbox-counter { bottom: 2rem; }
}

/* ══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--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; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
