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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    /* Modern sans-serif for body */
    color: #e0e0e0;
    line-height: 1.7;
    background-color: #1a1f3a;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif KR', serif;
    /* Serif for headings for elegance */
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #b0b0b0;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6b8fd4;
    transition: width 0.3s ease;
}

.desktop-nav a:hover {
    color: #ffffff;
}

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

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #1a1f3a;
    color: #e0e0e0;
    z-index: 1002;
    transition: right 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding-left 0.3s ease;
}

.mobile-nav a:hover {
    padding-left: 10px;
    color: #ffffff;
}

.mobile-menu-logo {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-logo h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.hero-text-section {
    height: 40%;
    width: 100%;
    background-color: #1a1f3a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-text-set {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.hero-text-set.active {
    opacity: 1;
    pointer-events: auto;
}

/* PC용 텍스트는 모바일에서 숨김 */
@media (max-width: 768px) {
    .hero-text-pc {
        display: none !important;
    }
}

/* 모바일용 텍스트는 PC에서 숨김 */
@media (min-width: 769px) {
    .hero-text-mobile {
        display: none !important;
    }
}

.hero-text-set .hero-content {
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hero-text-set:not(.active) .hero-content {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.hero-text-set.active .hero-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-image-section {
    height: 60%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom effect */
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}

/* Desktop Background Images */
.slide-1 {
    background-image: url('images/sectionimg/1.jpg');
}

.slide-2 {
    background-image: url('images/sectionimg/2.jpg');
}

.slide-3 {
    background-image: url('images/sectionimg/5-1.jpg');
}

.slide-4 {
    background-image: url('images/sectionimg/1.jpg');
}

.slide-5 {
    background-image: url('images/sectionimg/1.jpg');
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    /* Dark gradient overlay */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1.5rem 1rem;
    margin: 0;
}

.hero-content .badge {
    margin-bottom: 0.8rem;
    background-color: #1a1f3a;
    color: white;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    text-shadow: none;
    word-break: keep-all;
    animation: fadeInUp 1s ease-out;
    line-height: 1.3;
}

.hero-content .highlight {
    color: #ffffff;
    text-shadow: none;
    font-weight: 700;
}

.hero-content .highlight::after {
    display: none;
}

.hero-content .feature-list {
    text-align: center;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-content .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 0;
    text-shadow: none;
    animation: fadeInUp 1s ease-out 0.5s backwards;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.hero-content .feature-list li:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-content .feature-list i {
    color: #ffffff;
    margin-right: 10px;
}

.hero-contact-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    background-color: #1a1f3a;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(26, 31, 58, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-contact-btn:hover {
    background-color: #252b4d;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 31, 58, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-content p {
    font-size: 1.8rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    font-weight: 300;
    line-height: 1.6;
}

.hero-content .sub-text {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-top: 1rem;
    word-break: keep-all;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
    z-index: 10;
    pointer-events: none;
}

/* Content Sections Common Styles */
.content-section {
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
    /* Prevent animation overflow */
}

.content-section:nth-child(odd) {
    background-color: #1a1f3a;
}

.content-section:nth-child(even) {
    background-color: #252b4d;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

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

.container.column {
    flex-direction: column;
    gap: 3rem;
}

.text-content {
    flex: 1;
}

.text-content.center-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #6b8fd4;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-content h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-break: keep-all;
}

.highlight {
    color: #6b8fd4;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(107, 143, 212, 0.3);
    z-index: -1;
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.feature-list i {
    color: #6b8fd4;
}

.highlight-box {
    background-color: rgba(107, 143, 212, 0.15);
    padding: 1rem;
    border-left: 4px solid #6b8fd4;
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    color: #e0e0e0;
}

.sub-text,
.main-desc,
.sub-desc {
    color: #b0b0b0;
}

.text-content p {
    color: #b0b0b0;
}

.image-content {
    flex: 1;
}

/* Image Content Updates */
.image-content img,
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Deeper shadow */
    transition: transform 0.5s ease;
    filter: contrast(1.05) brightness(1.02);
    /* Enhance clarity */
}

.hover-zoom {
    overflow: hidden;
    border-radius: 20px;
}

.hover-zoom img:hover {
    transform: scale(1.08);
    /* Slightly larger zoom */
}

.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    /* Increased gap */
    width: 100%;
}

.grid-item.hover-lift img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* Zigzag Grid Updates */
.zigzag-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    /* Increased gap */
    width: 100%;
}

.zigzag-row {
    display: flex;
    width: 100%;
    position: relative;
}

.zigzag-row.left {
    justify-content: flex-start;
}

.zigzag-row.right {
    justify-content: flex-end;
}

.zigzag-row img {
    width: 65%;
    /* Increased width */
    max-width: 700px;
    /* Increased max-width */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    filter: contrast(1.05) brightness(1.02);
}

.zigzag-row img:hover {
    transform: scale(1.03);
    z-index: 2;
}

/* Book Slider */
.book-slider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.book-slide img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-slide img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Book Grid (3x3) */
.book-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.book-grid-item {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-grid-item img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(37, 43, 77, 0.8);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: #6b8fd4;
    background-color: rgba(255, 255, 255, 0.15);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-group label {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e0e0e0;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #6b8fd4, #4a6ba8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(107, 143, 212, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 143, 212, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #252b4d;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

.modal-content.modal-success {
    border-top: 4px solid #2ecc71;
}

.modal-content.modal-error {
    border-top: 4px solid #e74c3c;
}

.modal-header {
    padding: 1.5rem 2rem;
    background-color: #1a1f3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background-color: #1a1f3a;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #6b8fd4, #4a6ba8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(107, 143, 212, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 143, 212, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    background-color: #0f1325;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sitemap-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sitemap-link:hover {
    color: #6b8fd4;
}

.footer-logo h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Floating Apply Button (상단) */
.floating-apply-btn {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 2000;
}

/* Floating Buttons (하단) */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.float-btn.apply-btn {
    width: auto;
    height: auto;
    min-width: 70px;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    font-size: 1rem;
    font-weight: 700;
    flex-direction: row;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.float-btn.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.float-btn.apply-btn:hover::before {
    left: 100%;
}

.float-btn.apply-btn i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.float-btn.apply-btn span {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.float-btn.apply-btn {
    width: auto;
    height: auto;
    min-width: 70px;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    font-size: 1rem;
    font-weight: 700;
    flex-direction: row;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.float-btn.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.float-btn.apply-btn:hover::before {
    left: 100%;
}

.float-btn.apply-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.6);
}

.float-btn.apply-btn i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.float-btn.apply-btn span {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.float-btn.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.float-btn.phone {
    background-color: #2DB400;
    /* Naver Green style or Brand Color */
}

.float-btn.top-btn {
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-btn.top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-btn.top-btn.visible:hover {
    transform: translateY(-5px);
}

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

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Advanced Scroll Animations */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 1;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

.reveal-zoom {
    transform: scale(1);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.reveal-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation for Lists/Grids */
.stagger-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 모바일 퀵 메뉴 */
.mobile-quick-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-quick-menu {
        display: block !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1a1f3a;
        padding: 1rem 0;
        z-index: 998;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: visible !important;
        min-height: auto;
        max-height: none !important;
        height: auto !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .quick-menu-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, auto) !important;
        gap: 0.5rem;
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: visible !important;
        height: auto !important;
        min-height: auto;
        max-height: none !important;
    }

    .quick-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 0.3rem;
        background-color: rgba(107, 143, 212, 0.2);
        color: #e0e0e0;
        text-decoration: none;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid rgba(107, 143, 212, 0.3);
        word-break: keep-all;
        min-height: 40px;
        width: 100%;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .quick-menu-btn:hover,
    .quick-menu-btn:active {
        background-color: #6b8fd4;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(107, 143, 212, 0.3);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Mobile Background Images */
    .slide-1 {
        background-image: url('images/sectionimg/1.jpg');
    }

    .slide-2 {
        background-image: url('images/sectionimg/2.jpg');
    }

    .slide-3 {
        background-image: url('images/sectionimg/5-1.jpg');
    }

    .slide-4 {
        background-image: url('images/sectionimg/1.jpg');
    }

    .slide-5 {
        background-image: url('images/sectionimg/1.jpg');
    }

    /* 모바일 히어로 섹션 전체 재설정 */
    .hero {
        height: calc(100vh - 60px);
        padding-top: 0;
        min-height: 500px;
        position: relative;
        overflow: hidden;
    }

    /* 모바일 히어로 이미지 섹션 - 아래로 이동 */
    .hero-image-section {
        position: absolute;
        top: 20%;
        left: 0;
        width: 100%;
        height: 80%;
        z-index: 1;
    }

    .hero-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom;
    }

    /* 모바일 히어로 텍스트 섹션 - 이미지 위에 오버레이 */
    .hero-text-section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text-set {
        position: absolute;
        top: 210px;
        left: 190px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        pointer-events: none;
    }

    .hero-text-set.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-text-mobile {
        display: flex !important;
    }

    .hero-text-pc {
        display: none !important;
    }

    .hero-text-set .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        padding: 1rem;
        text-align: center;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 21;
    }

    .hero-text-set .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        word-break: keep-all;
        color: white;
        font-weight: 700;
    }

    .hero-text-set .hero-content .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.5rem;
        background-color: #1a1f3a;
        color: white;
        border-radius: 50px;
    }

    .hero-text-set .hero-content .sub-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 0.5rem;
        color: #e0e0e0;
    }

    .hero-text-set .hero-content .feature-list {
        margin-top: 0.5rem;
        gap: 0.4rem;
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-text-set .hero-content .feature-list li {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-text-set:not(.active) .hero-content {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    .hero-text-set.active .hero-content {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    }

    .hero-contact-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        margin-top: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .header-container {
        padding: 1rem;
    }

    header {
        height: auto;
        min-height: 60px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

    main {
        margin-top: calc(60px + 140px); /* 헤더 높이 + 모바일 퀵 메뉴 높이 */
        padding-top: 2rem;
    }

    .content-section:first-child {
        margin-top: 0;
    }

    .container {
        flex-direction: column !important;
        gap: 2rem;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    /* Mobile Image Adjustments */
    .zigzag-row img {
        width: 95%;
        max-width: none;
    }

    .image-content img,
    .grid-item img {
        width: 100%;
    }

    .image-grid-2 {
        grid-template-columns: 1fr;
    }

    .book-slider-container {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .book-slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        transition: transform 0.5s ease-in-out;
        will-change: transform;
        width: 900%; /* 9개 슬라이드 × 100% */
    }

    .book-slide {
        width: 11.111%; /* 100% / 9개 = 11.111% */
        min-width: 11.111%;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .book-slide img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    /* Book Grid (Mobile - 3x3) */
    .book-grid-container {
        width: 100%;
        padding: 0 1rem;
    }

    .book-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 1rem;
    }

    .book-grid-item {
        max-width: 100%;
    }

    .book-grid-item img {
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .floating-apply-btn {
        top: 10px;
        right: 15px;
    }

    .floating-buttons {
        bottom: 20px;
        right: 15px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .float-btn.apply-btn {
        min-width: 60px;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .float-btn.apply-btn span {
        font-size: 0.85rem;
    }
}