/* =========================================
           CSS VARIABLES & RESET
========================================= */
:root {
  --primary-color: #ad56ff;
  --secondary-color: #00e5ff;
  --bg-dark: #0a0a0a;
  --bg-light: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #cacaca;
  --font-en: "Montserrat", sans-serif;
  --font-kr: "Noto Sans KR", sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  font-family: var(--font-kr);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* =========================================
           TYPOGRAPHY & HIERARCHY
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  text-transform: uppercase;
}

.section-title {
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 4rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* =========================================
           NAVIGATION
========================================= */
nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

nav.scrolled {
  background-color: rgba(10, 10, 10, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  padding: 15px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: var(--font-en);
  z-index: 1001;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: var(--transition);
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: var(--transition);
  transform-origin: left center; }
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-only {
  display: none !important;
}

/* =========================================
           QUICK SECTION
========================================= */
.quick {
  position: fixed;
  right: 50px;
  top: 50%;
  transform: translateY(-40%);
  z-index: 200;
  opacity: 0;
  transition: 0.8s;
  width: 80px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 60px;
  border-top-right-radius: 0;
  box-sizing: border-box;
  padding: 10px;
  pointer-events: none;
}

.quick::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -11px;
  width: 0;
  height: 0;
  border-bottom: 20px solid transparent;
  border-left: 11px solid #ddd;
  z-index: 1;
}

.quick::after {
  content: "";
  position: absolute;
  top: 0px;
  right: -9px;
  width: 0;
  height: 0;
  border-bottom: 18px solid transparent;
  border-left: 9px solid white;
  z-index: 2;
}

.quick.view {
  opacity: 1 !important;
  pointer-events: auto;
}

.quick .call {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  width: 80%;
  margin: auto;
  border-bottom: 1px solid #a0a0a0c0;
}
.quick .call:last-child {
  border: none;
}

.quick .top_btn a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  background: var(--primary-color);
  border-bottom: none;
  padding: 0;
}

.quick .call img {
  transition: 0.5s;
}
.quick .top_btn img {
  width: 40%;
}

.quick .call:hover img {
  filter: invert(76%) sepia(14%) saturate(1135%) hue-rotate(149deg) brightness(98%) contrast(96%);
}

/* =========================================
           HERO SECTION
========================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(10, 10, 10, 0.7)), url("../img/main.jpg") center/cover;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-title {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--text-main);
}

.hero-desc {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(138, 43, 226, 0.5);
}

/* =========================================
           LAYOUT & COMMON
========================================= */
section {
  padding: 90px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
           ABOUT SECTION
========================================= */
.about-modern {
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.modern-row {
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 60px 0;
}

.modern-row.reverse {
  flex-direction: row-reverse;
}

.modern-img-wrapper {
  flex: 1.2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modern-img-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 660px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-img-wrapper:hover img {
  transform: scale(1.03);
}

.modern-text-wrapper {
  flex: 1;
}

.modern-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.modern-text-wrapper h3 {
  font-size: 3rem;
  font-family: var(--font-kr);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-main);
}

.modern-text-wrapper p {
  font-size: 1.19rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 300;
}

.modern-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.modern-list li {
  position: relative;
  padding-left: 35px;
  font-size: 1.27rem;
  color: var(--text-main);
  margin-bottom: 18px;
  font-weight: 500;
}

.modern-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.2rem;
}

/* =========================================
           PROGRAMS SECTION
========================================= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.program-card {
  background-color: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.program-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.program-img {
  height: 250px;
  background-color: #333;
  position: relative;
  overflow: hidden;
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-img img {
  transform: scale(1.1);
}

.program-content {
  padding: 40px 30px;
}

.program-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 200px;
  right: 20px;
  font-family: var(--font-en);
}

.program-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-family: var(--font-kr);
}

.program-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-tags span {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(138, 43, 226, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* =========================================
           SLOGAN SECTION
========================================= */
.slogan {
  background: url(../img/slogan.jpg) fixed center;
  background-size: cover;
  text-align: center;
  width: 100% !important;
  max-width: 100%;
  font-size: 1.4rem;
  padding: 100px 20px;
}

.slogan img {
  margin: 0 auto 3rem auto;
  max-width: 250px;
}

.slogan p {
  line-height: 1.8;
}

/* =========================================
           LOCATION & FOOTER
========================================= */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-light);
  border-radius: 30px;
  overflow: hidden;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: #222;
}

.info-wrapper {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  margin-bottom: 30px;
}

.info-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: var(--font-kr);
}

.info-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

footer {
  background-color: #050505;
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo span {
  color: var(--primary-color);
}

.footer-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================
           RESPONSIVE MEDIA QUERIES
========================================= */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
  .modern-row, .modern-row.reverse {
    flex-direction: column;
    gap: 50px;
    padding: 30px 0;
  }
  .modern-img-wrapper img {
    max-height: 500px;
  }
  .location-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 네비게이션 & 모바일 메뉴 */
  nav#navbar {
    padding: 15px 20px;
  }
  nav.scrolled {
    padding: 15px 20px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
    gap: 25px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* 타이포그래피 & 여백 */
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-desc {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
  section {
    padding: 60px 20px;
  }

  /* 어바웃 섹션 */
  .modern-text-wrapper h3 {
    font-size: 2.2rem;
  }
  .modern-text-wrapper p {
    font-size: 1rem;
  }
  .modern-list li {
    font-size: 1.05rem;
  }

  /* 프로그램 섹션 */
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  /* 슬로건 섹션 */
  .slogan {
    font-size: 1.1rem;
    padding: 70px 20px;
  }
  .slogan img {
    max-width: 180px;
  }

  /* 오시는길 섹션 */
  .info-wrapper {
    padding: 40px 20px;
  }
  .map-wrapper {
    min-height: 300px;
  }

  /* 퀵 메뉴 축소 및 위치 조정 */
  .quick {
    right: 15px;
    width: 50px;
    padding: 8px;
    border-radius: 40px;
  }
  .quick::before, .quick::after {
    display: none; 
  }
  .quick .call {
    padding: 12px 0;
  }
  .quick .call img {
    width: 20px;
  }
  .quick .top_btn a {
    width: 35px;
    height: 35px;
  }
  .quick .top_btn img {
    width: 15px;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }

  .quick {
    right: 15px;
    top: auto;
    bottom: 25px; 
    transform: none;
    width: auto;
    padding: 0;
    background: transparent; 
    border: none; /* 테두리 제거 */
    display: flex;
    flex-direction: column;
    gap: 15px; /* 버튼 간격 여백 */
  }

  .quick::before, .quick::after {
    display: none;
  }

  .quick .call, .quick .top_btn a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .quick .top_btn a {
    background: #333; 
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3.4rem;
  }
  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .modern-text-wrapper h3 {
    font-size: 1.8rem;
  }
}