/* ==========================================================================
   Studio Chorok - Luminous Bright Art Atmosphere & Deep Void Contact System
   Version: 1.5.0
   Author: Studio Chorok Creative Direction
   Typography: Unified Pretendard (Strictly No Italics)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Dual Luminous & Deep Void Atmosphere)
   -------------------------------------------------------------------------- */
:root {
  /* Bright Atmosphere Tokens (Sections 1-4 Default) */
  --bg-atmosphere: #f2f8f5;
  --bg-atmosphere-rgb: 242, 248, 245;

  --text-pure: #051910;
  --text-primary: #0a251a;
  --text-secondary: #2c4a3c;
  --text-dim: #5a786a;

  --emerald-primary: #059669;
  --emerald-glow: #10b981;
  --cyan-accent: #0284c7;
  --gold-accent: #d97706;

  --border-subtle: rgba(5, 150, 105, 0.15);
  --border-accent: rgba(2, 132, 199, 0.35);

  --header-glass-bg: rgba(242, 248, 245, 0.82);
  --logo-filter: invert(0);
  --nav-link-color: #1e3a2f;
  --nav-link-active: #059669;

  /* Typography: Pure Pretendard */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;

  /* Layout */
  --header-height: 90px;
  --container-width: 1240px;

  /* Motion & Easings */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --theme-transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);

  /* Interactive Ambient Spotlight Tokens */
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --spotlight-color: rgba(5, 150, 105, 0.15);
  --spotlight-glow: rgba(2, 132, 199, 0.08);
}

/* Deep Void Atmosphere Tokens (Section 5 Contact Theme) */
body.theme-contact-dark {
  --bg-atmosphere: #030705;
  --bg-atmosphere-rgb: 3, 7, 5;

  --text-pure: #ffffff;
  --text-primary: #f1f5f3;
  --text-secondary: #9cb3a8;
  --text-dim: #5c7569;

  --emerald-primary: #00ff88;
  --emerald-glow: #00ff88;
  --cyan-accent: #00f2fe;
  --gold-accent: #ffd166;

  --border-subtle: rgba(52, 211, 153, 0.15);
  --border-accent: rgba(52, 211, 153, 0.4);

  --header-glass-bg: rgba(3, 7, 5, 0.85);
  --logo-filter: invert(1) brightness(1.2);
  --nav-link-color: #9cb3a8;
  --nav-link-active: #00ff88;

  /* Interactive Ambient Spotlight for Deep Void */
  --spotlight-color: rgba(0, 255, 136, 0.22);
  --spotlight-glow: rgba(0, 242, 254, 0.15);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Foundation
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: color var(--theme-transition),
              border-color var(--theme-transition);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-atmosphere);
  color: var(--text-primary);
  transition: background-color var(--theme-transition);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-atmosphere);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--theme-transition);
}

::selection {
  background: var(--emerald-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. 3D WebGL Background Canvas & Adaptive Vignette
   -------------------------------------------------------------------------- */
#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#webgl-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ambient-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(var(--bg-atmosphere-rgb), 0.65) 100%),
              linear-gradient(180deg, rgba(var(--bg-atmosphere-rgb), 0.15) 0%, rgba(var(--bg-atmosphere-rgb), 0.75) 100%);
  transition: background var(--theme-transition);
}

/* Interactive Mouse-Tracking Ambient Spotlight */
#ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(750px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), var(--spotlight-color) 0%, var(--spotlight-glow) 35%, transparent 70%);
  transition: background var(--theme-transition);
  mix-blend-mode: normal;
  will-change: background;
}

/* --------------------------------------------------------------------------
   4. Minimalist Adaptive Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 54px;
  background: transparent;
  transition: all 0.5s var(--ease-gentle), background-color var(--theme-transition);
}

.site-header.scrolled {
  background: var(--header-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.brand-logo:hover {
  opacity: 1;
}

.brand-logo img {
  height: 24px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--theme-transition);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-sans);
  color: var(--nav-link-color);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--nav-link-active);
  transition: width 0.35s var(--ease-cinematic);
}

.nav-link:hover {
  color: var(--nav-link-active);
}

.nav-link.active {
  color: var(--nav-link-active);
}

.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-pure);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-accent);
  background: rgba(var(--bg-atmosphere-rgb), 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease-cinematic);
}

.header-cta:hover {
  background: var(--emerald-primary);
  color: #ffffff;
  border-color: var(--emerald-primary);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Floating Navigation Indicator
   -------------------------------------------------------------------------- */
.floating-progress {
  position: fixed;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.floating-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  z-index: -1;
}

.floating-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--emerald-primary);
  transition: height 0.3s ease-out;
}

.progress-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.35);
  cursor: pointer;
  position: relative;
  transition: all 0.4s var(--ease-cinematic);
}

.progress-dot::before {
  content: attr(data-index);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.progress-dot:hover::before {
  opacity: 1;
}

.progress-dot.active {
  background: var(--emerald-primary);
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

body.theme-contact-dark .progress-dot.active {
  background: var(--emerald-glow);
  box-shadow: 0 0 14px var(--emerald-glow);
}

/* --------------------------------------------------------------------------
   6. Fullscreen Editorial Sections (Pretendard & Pure Typography)
   -------------------------------------------------------------------------- */
.main-wrapper {
  position: relative;
  z-index: 10;
}

.art-section {
  min-height: 100vh;
  width: 100%;
  padding: 140px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.editorial-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}

/* Editorial Category Tag: Pure Clean Text (No Oval, No Dot) */
.editorial-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.editorial-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-accent);
  font-weight: 700;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: color var(--theme-transition);
}

/* Grand Display Typography with Pretendard (Strictly No Italics) */
.editorial-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-bottom: 28px;
  max-width: 1100px;
  transition: color var(--theme-transition);
}

/* Dynamic Title Gradient: High Contrast in Bright, Radiant Glow in Dark */
.editorial-title .title-gradient {
  background: linear-gradient(135deg, #047857 0%, #0284c7 40%, #10b981 75%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--theme-transition);
}

body.theme-contact-dark .editorial-title .title-gradient,
#section-5 .editorial-title .title-gradient {
  background: linear-gradient(135deg, #ffffff 10%, #00f2fe 45%, #00ff88 75%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.editorial-text {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  transition: color var(--theme-transition);
}

/* --------------------------------------------------------------------------
   7. Contact Section (Section 5: Deep Void Aesthetic)
   -------------------------------------------------------------------------- */
#section-5 {
  /* Inherently styled for the deep void realm */
}

#section-5 .editorial-tag {
  color: #00f2fe;
}

#section-5 .editorial-title {
  color: #ffffff;
}

#section-5 .editorial-text {
  color: #9cb3a8;
}

.contact-editorial-box {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-email-link {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  width: fit-content;
}

.contact-email-link:hover {
  color: #00ff88;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateX(6px);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-art {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease-cinematic);
}

.btn-art-primary {
  background: #00ff88;
  color: #030705;
  border: 1px solid #00ff88;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.35);
}

.btn-art-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-art-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.btn-art-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Interactive Toast Notification
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 100px);
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(3, 7, 5, 0.92);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 14px 28px;
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.25);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-cinematic);
}

.toast-notice.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   9. Minimalist Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 40px 54px;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  transition: border-color var(--theme-transition);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color var(--theme-transition);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--emerald-primary);
}

body.theme-contact-dark .footer-link:hover {
  color: var(--emerald-glow);
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 32px;
  }
  .floating-progress {
    display: none;
  }
  .art-section {
    padding: 120px 32px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 24px;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--header-glass-bg);
    backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    gap: 32px;
    transition: right 0.4s var(--ease-cinematic);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }
  .main-nav.active {
    right: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .art-section {
    padding: 100px 24px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
