/* ==========================================================================
   RO-VIBE Design System - Inspired by SM Entertainment Premium Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07070a;
  --bg-card: rgba(18, 19, 26, 0.7);
  --bg-card-hover: rgba(28, 30, 42, 0.85);
  --text-main: #f5f6fa;
  --text-muted: #9aa0a6;
  --text-dim: #606470;
  
  /* Vibrant Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-pink: #ff0844;
  --accent-purple: #9b51e0;
  --accent-gold: #ffb199;

  --grad-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --grad-vibe: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --grad-purple: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
  --grad-dark-glass: linear-gradient(180deg, rgba(20, 20, 30, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);

  /* Border & Glass */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  /* Fonts */
  --font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 8, 68, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

/* Typography Helpers */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-vibe {
  background: var(--grad-vibe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 50px;
  font-weight: 300;
}

/* Container */
.container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
}

/* ==========================================================================
   Navigation Bar (SM Entertainment Style Sticky Glass Header)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.vibe-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-pink);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-pink);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-fast);
}

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

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

.cta-btn-nav {
  padding: 10px 24px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.cta-btn-nav:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #000;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.05);
  animation: heroPulse 12s infinite alternate ease-in-out;
}

@keyframes heroPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 90%),
              linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  z-index: 2;
  margin-top: -40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-bright);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-motto {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: #e2e8f0;
  margin: 0 auto 40px;
  max-width: 880px;
  line-height: 1.6;
  word-break: keep-all;
}

.hero-motto strong {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  padding: 16px 36px;
  border-radius: 50px;
  background: var(--grad-primary);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  padding: 16px 36px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-bright);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelMove 2s infinite ease-in-out;
}

@keyframes wheelMove {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   Section: Company Core Pillars (Motto Highlight)
   ========================================================================== */
.pillars-section {
  padding: 120px 0;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-bright);
  transform: translateY(-10px);
  box-shadow: var(--glass-shadow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 20px;
  right: 25px;
  line-height: 1;
  font-family: var(--font-family);
}

.pillar-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.pillar-card:nth-child(2) .pillar-icon {
  background: rgba(255, 8, 68, 0.1);
  color: var(--accent-pink);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: rgba(155, 81, 224, 0.1);
  color: var(--accent-purple);
}

.pillar-card:nth-child(4) .pillar-icon {
  background: rgba(255, 177, 153, 0.1);
  color: var(--accent-gold);
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Section: Featured Projects & Concert Directing (SM Ent Card Grid)
   ========================================================================== */
.projects-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 15, 25, 0.6) 50%, var(--bg-dark) 100%);
}

.projects-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: #111;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.85);
}

.project-card:hover .project-img {
  transform: scale(1.1);
  filter: brightness(1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.35) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px 30px;
  transition: var(--transition-fast);
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
  opacity: 0.8;
}

.project-hover-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-fast);
}

.project-card:hover .project-hover-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Lightbox */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f1017;
  border: 1px solid var(--glass-border-bright);
  border-radius: 24px;
  max-width: 850px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 8, 68, 0.8);
}

.modal-body {
  padding: 40px;
}

/* Filter Controls */
.filter-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--grad-primary);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   Section: Production Process (Timeline & Stage Creation)
   ========================================================================== */
.process-section {
  padding: 120px 0;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 50px;
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -9px;
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px var(--accent-pink);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
  width: 100%;
}

.timeline-content:hover {
  border-color: var(--glass-border-bright);
  transform: scale(1.02);
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section: Dynamic Banner / Energy Quote
   ========================================================================== */
.banner-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(255, 8, 68, 0.15) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-quote {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  max-width: 950px;
  margin: 0 auto 30px;
  line-height: 1.3;
  letter-spacing: -1px;
  word-break: keep-all;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-section {
  padding: 120px 0;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  backdrop-filter: blur(10px);
}

.contact-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.form-group {
  margin-bottom: 20px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 50px 0 30px;
  background: #040406;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.social-link:hover {
  background: var(--grad-primary);
  color: #000;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active, body.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #0a0b10;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.active {
    right: 0;
  }
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
