/* ===================================
   Font Face
   =================================== */
@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'GmarketSans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    opacity: 1;
    word-break: keep-all;
    word-wrap: break-word;
}

ul, ol {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

p {
    margin: 0;
    line-height: normal;
}

.text-bold {
    font-weight: 700;
}

.text-medium {
    font-weight: 500;
}

.text-light {
    font-weight: 300;
}

/* ===================================
   Utilities
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

/* ===================================
   Animation Classes
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* 슬라이드 업 애니메이션 (아래에서 위로) */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 줌인 애니메이션 */
.zoom-in {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1s ease, transform 1s ease;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* 회전 페이드인 애니메이션 */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.rotate-in.active {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 바운스 애니메이션 */
.bounce-in {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #4d972d;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3d7a23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 151, 45, 0.3);
}

.btn-secondary {
    background-color: #FDD835;
    color: #333;
}

.btn-secondary:hover {
    background-color: #FBC02D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.3);
}

/* ===================================
   Section Badge
   =================================== */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4d972d;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 20px;
}

.section-badge.green {
    background-color: #4d972d;
}

.section-badge.center {
    display: block;
    text-align: center;
}



/* ===================================
   Popup Layer
   =================================== */
   .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.popup-btn {
    position: absolute;
    cursor: pointer;
    border: none;
}

.popup-btn-close {
    top: 2%;
    right: 2%;
    width: 13%;
    height: 8%;
}

.popup-btn-action {
    bottom: calc(3% + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 12%;
}
