/* ──────────── Base Reset ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: 'Pretendard Variable', Pretendard, -apple-system,
    BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo',
    'Noto Sans KR', sans-serif;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

/* ──────────── Keyframes ──────────── */
@keyframes charFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes auroraFloat {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(5%, 8%) rotate(120deg); }
  66%  { transform: translate(-4%, 5%) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,255,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(255,0,255,0); }
}
@keyframes lineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ──────────── Utility Styles ──────────── */
.section-pad { padding: 8rem 3rem; }
@media (max-width: 768px) { .section-pad { padding: 6rem 1.5rem; } }

/* For kinetic text in main.js */
.kinetic-char {
  display: inline-block;
  opacity: 0;
  animation: charFadeUp 0.55s cubic-bezier(.22,.68,0,1.2) forwards;
}

/* Gradient text helpers */
.grad-purple-cyan {
  background: linear-gradient(90deg, #7b2fff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-magenta-cyan {
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Combined animation for gradient kinetic text */
.kinetic-char.kinetic-grad-animated-char {
  background: linear-gradient(270deg, #ff00ff, #7b2fff, #00ffff, #ff00ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback */
  /* Combine both animations */
  animation:
    charFadeUp 0.55s cubic-bezier(.22,.68,0,1.2) forwards,
    gradientShift 6s ease infinite;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(.22,.68,0,1.2),
              transform 0.75s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Horizontal divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 480px;
}
.divider-line { flex: 1; height: 1px; }
.divider-line-l { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08)); }
.divider-line-r { background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent); }


/* ──────────── Header ──────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.header-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #f5f5f5 30%, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.header-nav a {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  margin-left: 2.5rem;
}
.header-nav a:hover { color: #f5f5f5; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #f5f5f5;
  padding: 0.25rem;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 3rem;
  z-index: 9998;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #f5f5f5; }

@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .header-nav  { display: none; }
  .hamburger   { display: block; }
  .mobile-menu { top: 60px; }
}

/* ──────────── Buttons ──────────── */
.btn-outline-magenta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #ff00ff;
  color: #ff00ff;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline-magenta:hover {
  background: rgba(255,0,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255,0,255,0.18);
}
.btn-solid-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(45deg, #ff00ff, #7b2fff, #00ffff);
  background-size: 200% auto;
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}
.btn-solid-gradient:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,47,255,0.4);
}

/* ──────────── Hero Section (main.js) ──────────── */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6; /* Increased opacity for visibility */
}
.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #444 0%, transparent 100%);
  animation: lineGrow 1.5s ease-out infinite alternate;
}

/* Hero Section new classes */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-background-image {
  position: absolute; inset: 0;
  background-image: url('./images/bgimg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.5); /* Darker overlay */
  opacity: 0.7; /* 30% faint */
  filter: blur(2px); /* 30% blur */
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 1.5rem;
  max-width: 860px;
  width: 100%;
}

.hero-sublabel {
  color: #ff00ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: charFadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
  font-size: clamp(2rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}

.hero-subtitle {
  color: #a3a3a3;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: charFadeUp 0.8s ease 2.6s forwards;
}

.hero-cta-wrap {
  opacity: 0;
  animation: charFadeUp 0.8s ease 3.0s forwards;
}

.scroll-indicator-wrap {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0; animation: charFadeUp 0.8s ease 3.8s forwards;
}

@media (max-width: 768px) {
  .hero-section { min-height: 500px; }
  .hero-sublabel { font-size: 0.65rem; margin-bottom: 1.5rem; }
  .hero-headline { font-size: clamp(1.8rem, 8vw, 4rem); margin-bottom: 1.5rem; }
  .hero-subtitle { font-size: clamp(0.8rem, 2.5vw, 1rem); margin-bottom: 2rem; }
  .scroll-indicator-wrap { bottom: 1.5rem; }
}

/* Orb adjustments for smaller screens */
@media (max-width: 768px) {
  .hero-orb:nth-child(2) { /* first orb */
    width: 320px; height: 320px;
    top: 10%; left: -10%;
  }
  .hero-orb:nth-child(3) { /* second orb */
    width: 240px; height: 240px;
    bottom: 8%; right: -5%;
  }
  .hero-orb:nth-child(4) { /* third orb (if exists) */
    width: 160px; height: 160px;
    top: 45%; right: 10%;
  }
}

/* ──────────── Magazine Section (main.js) ──────────── */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 1.5rem;
}
.mag-card-a { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 480px; }
.mag-card-b { grid-column: 3 / 4; grid-row: 1 / 2; }
.mag-card-c { grid-column: 4 / 5; grid-row: 1 / 2; }
.mag-card-d { grid-column: 3 / 5; grid-row: 2 / 3; }

@media (max-width: 1024px) {
  .magazine-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .mag-card-a { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
  .mag-card-b { grid-column: auto;  grid-row: auto; }
  .mag-card-c { grid-column: auto;  grid-row: auto; }
  .mag-card-d { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 640px) {
  .magazine-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .mag-card-a, .mag-card-b, .mag-card-c, .mag-card-d {
    grid-column: auto; grid-row: auto;
    min-height: 240px;
  }
}

/* Card grayscale → color on hover */
.mag-card-inner { height: 100%; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: border-color 0.3s, transform 0.3s; }
.mag-card-inner:hover { border-color: rgba(255,0,255,0.18); transform: translateY(-3px); }
.mag-card-img  {
  position: absolute;
  inset: 0;
  filter: grayscale(100%);
  transition: filter 0.45s ease, transform 0.45s ease;
  transform-origin: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mag-card-inner:hover .mag-card-img { filter: grayscale(0%); transform: scale(1.06); }
.mag-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.mag-card-read-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff00ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  z-index: 2;
}

.magazine-section-header-text {
  color: #ff00ff;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.magazine-section-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 3.5rem;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .magazine-section-headline { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 2.5rem; }
  .mag-card-overlay { padding: 1rem; }
}

/* ──────────── Mind Profile Section (main.js) ──────────── */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
  animation: auroraFloat infinite ease-in-out;
}

.mind-profile-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #07070e 50%, #0a0a0a 100%);
}

.mind-profile-content {
  position: relative; z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.mind-profile-sublabel {
  color: #00ffff;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.mind-profile-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.mind-profile-description {
  color: #a3a3a3;
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 3rem;
  font-weight: 300;
}

.mind-profile-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  margin-top: 3rem;
}

.mind-profile-stat-item {
  text-align: center;
}

.mind-profile-stat-num {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #f5f5f5;
}

.mind-profile-stat-label {
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .mind-profile-headline { font-size: clamp(2rem, 8vw, 3.5rem); }
  .mind-profile-description { font-size: 0.9rem; margin-bottom: 2rem; }
  .mind-profile-stat-num { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .mind-profile-stat-label { font-size: 0.65rem; }
}

/* Aurora blob adjustments for smaller screens */
@media (max-width: 768px) {
  .aurora-blob:nth-child(1) { /* first blob */
    width: 500px; height: 500px;
    top: -100px; left: -100px;
  }
  .aurora-blob:nth-child(2) { /* second blob */
    width: 350px; height: 350px;
    bottom: -50px; right: 0%;
  }
  .aurora-blob:nth-child(3) { /* third blob */
    width: 250px; height: 250px;
    top: 45%; left: 50%;
  }
}

/* ──────────── InMind Section (main.js) ──────────── */
.flower-orb-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff00ff, #7b2fff, #00ffff);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(123,47,255,0.6);
}
.flower-orb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #ff00ff, #7b2fff, #00ffff);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite alternate;
  filter: blur(15px);
  opacity: 0.7;
  z-index: 0;
}
.flower-orb-inner {
  position: relative;
  font-size: 3.5rem;
  z-index: 1;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.flower-pill {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c8c8c8;
  letter-spacing: 0.02em;
}

.inmind-section-radial-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(123,47,255,0.04) 0%, transparent 100%);
  pointer-events: none;
}

.inmind-content {
  position: relative; z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.inmind-sublabel {
  color: #ff00ff;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.inmind-flower-orb-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.inmind-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.inmind-description {
  color: #a3a3a3;
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 3rem;
}

.flower-tags-label {
  color: #2e2e2e;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.flower-tags-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .inmind-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .inmind-description { font-size: 0.9rem; margin-bottom: 2rem; }
  .flower-orb-wrap { width: 100px; height: 100px; }
  .flower-orb-inner { font-size: 3rem; }
  .flower-pill { font-size: 0.7rem; padding: 5px 12px; }
}

/* ──────────── Footer ──────────── */
.site-footer {
  padding: 3rem;
  border-top: 1px solid rgba(255,255,255,0.055);
  background: #0a0a0a;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 0.35rem; }
.footer-copy { color: #2e2e2e; font-size: 0.72rem; letter-spacing: 0.02em; }
.footer-email {
  color: #555; text-decoration: none;
  font-size: 0.83rem; transition: color 0.2s;
}
.footer-email:hover { color: #f5f5f5; }
.footer-icon { color: #555; transition: color 0.2s; }
.footer-icon:hover { color: #ff00ff; }
.footer-icon.x:hover { color: #00ffff; }
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo { margin-bottom: 0.5rem; }
  .footer-email { margin-top: 1rem; }
}