@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* sec1 */
.sec1 {
  background: url(../img/sec1_bg.jpg) no-repeat center top;
  padding: 80px 0 40px;
}

.sec1 .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sec1 .t35 {
  font-size: 35px;
  line-height: 1.2;
  font-weight: 600;
}

.sec1 .t19 {
  font-size: 19px;
  padding: 3em 0;
}

.sec1 b {
  color: green;
}

/* 히어로 섹션 - 더 다이나믹하게 */
.hero {
  height: 100vh;
  background: url("../img/main.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.hero-content {
  max-width: 600px;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 100;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 18px 45px;
  text-decoration: none;
  border: 2px solid white;
  font-weight: 300;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover {
  background: white;
  color: #2d5016;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 갤러리 섹션 - 더 인터랙티브하게 */
/* 갤러리 섹션 */
.gallery {
  padding: 100px 0;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 4rem;
  color: #2d5016;
  letter-spacing: 2px;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(45, 80, 22, 0.15);
}

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

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

/* 반응형 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .gallery h2 {
    font-size: 2rem;
  }

  /* sec1 */
  .sec1 {
    background: url(../img/sec1_bg.jpg) no-repeat right bottom;
    padding: 80px 0 92vw;
    background-size: 220%;
  }

  .sec1 .container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sec1 .t35 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
  }

  .sec1 .t19 {
    font-size: 17px;
    padding: 3em 0;
  }
}

/* 스크롤 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* 소개 섹션 - 카드 스타일로 변경 */
.about {
  padding: 120px 0;
  background: white;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(45, 80, 22, 0.03));
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.about-text {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-text::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(45, 80, 22, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.about-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(45, 80, 22, 0.2);
}

.about-text:hover::before {
  top: -10%;
  right: -10%;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 100;
  color: #2d5016;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #666;
  font-weight: 300;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.about-text:hover p {
  color: #555;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.1);
}

/* 서비스 섹션 */
.services {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8f5e8 100%);
  position: relative;
  overflow: hidden;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 4rem;
  color: #2d5016;
  letter-spacing: 2px;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.services-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.services-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.services-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

.service-card {
  background: white;
  text-align: center;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 80, 22, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(45, 80, 22, 0.2);
}

.service-card:hover::before {
  left: 100%;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 300;
  color: #2d5016;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #5a8f2a;
}

.service-card p {
  color: #666;
  font-weight: 300;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: #555;
}

/* 슬라이더 컨트롤 */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.slider-btn {
  background: white;
  border: 2px solid #2d5016;
  color: #2d5016;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: #2d5016;
  color: white;
  transform: scale(1.1);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.slider-btn:disabled:hover {
  background: white;
  color: #2d5016;
}

/* 인디케이터 */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(45, 80, 22, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #2d5016;
  transform: scale(1.3);
}

/* 반응형 */
@media (max-width: 768px) {
  .services-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }
}

/* 스크롤 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* 수강 안내 섹션 - 완전히 다른 레이아웃 */
.classes {
  padding: 120px 0;
  background: linear-gradient(135deg, #2d5016 0%, #1a2f0d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.classes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.classes-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.classes h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 100;
  margin-bottom: 4rem;
  letter-spacing: 2px;
  color: white;
}

.classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.class-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.class-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.class-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.class-item:nth-child(even) .class-image {
  order: 2;
}

.class-item:nth-child(even) .class-content {
  order: 1;
}

.class-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.class-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.class-item:hover .class-image img {
  transform: scale(1.1);
}

.class-content h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.class-item:hover .class-content h3 {
  transform: translateX(10px);
}

.class-content p {
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* 연락처 섹션 - 더 인터랙티브하게 */
.contact {
  padding: 120px 0;
  background: linear-gradient(135deg, #2d5016 0%, #5a8f2a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.contact h2 {
  font-size: 2.8rem;
  font-weight: 100;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.contact-content > p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-item {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item h3 {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.contact-item:hover h3 {
  transform: translateY(-2px);
  opacity: 1;
}

.contact-item p {
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.contact-item:hover p {
  opacity: 1;
}

/* 반응형 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .classes {
    padding: 70px 0;
  }

  .class-item {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 2rem;
  }

  .class-item:nth-child(even) .class-image,
  .class-item:nth-child(even) .class-content {
    order: unset;
  }

  .class-content h3 {
    font-size: 1.5em;
  }

  .classes h2 {
    font-size: 2.4em;
  }

  .class-content p {
    font-size: 17px;
  }

  .nav-links {
    display: none;
  }
.gallery {
  padding: 60px 0;
}
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid div:nth-child(odd) {
    display: none;
  }

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

}

/* 스크롤 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* 추가 인터랙티브 요소 */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(45, 80, 22, 0.3);
  border-radius: 50%;
  animation: float-random 15s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 3s;
}

.floating-element:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes float-random {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }

  25% {
    transform: translateY(-20px) translateX(10px);
  }

  50% {
    transform: translateY(-10px) translateX(-15px);
  }

  75% {
    transform: translateY(-25px) translateX(5px);
  }
}

/* sec4 */
.sec4 {
  padding: 80px 0;
  background: url(../img/sec4_bg.jpg) no-repeat right center;
  background-size: 50%;
}


/* 반응형 */
@media (max-width: 768px) {

  .sec4 {
    padding: 60px 0 68vw;
    background-size: 100%;
    background-position: bottom center;
  }
  }
