/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0c0c1a;
    color: #e8e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.muted { color: rgba(255,255,255,0.4); font-weight: 400; }

/* ===== Animated Background Blobs ===== */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    will-change: transform;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob--1 {
    width: 500px;
    height: 500px;
    background: #7c3aed;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob--2 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: 40%;
    right: -8%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.blob--3 {
    width: 350px;
    height: 350px;
    background: #6366f1;
    bottom: -5%;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

.page-wrap {
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav { display: flex; gap: 4px; }

.nav__link {
    padding: 6px 14px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav__link:hover {
    color: #fff;
    background: rgba(167, 139, 250, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #e8e8f0;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn--fill {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn--fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: #e8e8f0;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn--lg { padding: 15px 34px; font-size: 0.95rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--alt { background: rgba(255,255,255,0.02); }

.section__top { margin-bottom: 40px; }

.section__title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section__desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab {
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab:hover {
    color: #fff;
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}

.tab.active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    border-color: transparent;
}

/* ===== Grid ===== */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }


/* ===== Scroll Grid (2 rows, horizontal scroll) ===== */
.scroll-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.scroll-grid > * {
    scroll-snap-align: start;
}

.scroll-grid::-webkit-scrollbar {
    height: 5px;
}

.scroll-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
}

.scroll-grid::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.25);
    border-radius: 3px;
}

.scroll-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.4);
}

/* ===== Cards — White Glass ===== */
.card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.card.hidden { display: none; }

.card--highlight {
    border-color: rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.08);
}

.card__thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card__thumb svg {
    width: 36px;
    height: 36px;
    color: rgba(255,255,255,0.2);
    z-index: 1;
}

.card__thumb--1 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.card__thumb--2 { background: linear-gradient(135deg, #1e3a5f, #1e40af); }
.card__thumb--3 { background: linear-gradient(135deg, #3b1f6e, #6d28d9); }
.card__thumb--4 { background: linear-gradient(135deg, #1e3a5f, #0369a1); }
.card__thumb--5 { background: linear-gradient(135deg, #312e81, #4338ca); }
.card__thumb--6 { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.card__thumb--7 { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.card__thumb--8 { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.card__thumb--9 { background: linear-gradient(135deg, #4c1d95, #6d28d9); }

.card__body { padding: 14px; flex: 1; }

.card__body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.card__body p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ===== Tags ===== */
.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 100px;
    margin-bottom: 10px;
}

.tag--warm {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.tag--blue {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

/* ===== About ===== */
.about {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.about__photo {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__photo svg {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.15);
}

.about__text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: #fff;
}

.about__role {
    font-size: 0.9rem;
    color: #a78bfa;
    margin-bottom: 20px;
}

.about__text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.chips span {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    transition: all 0.2s;
}

.chips span:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
}

/* ===== Book Card ===== */
.book-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.book-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.book-card__cover {
    width: 90px;
    height: 126px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #312e81, #4c1d95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.book-card__cover svg {
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.25);
}

.book-card__date {
    font-size: 0.75rem;
    color: #a78bfa;
    display: block;
    margin-bottom: 6px;
}

.book-card__info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.book-card__info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
}

/* ===== Class Card ===== */
.class-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.class-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.class-card__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 14px;
    display: block;
}

.class-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.class-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* ===== Blog Card ===== */
.blog-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.4s ease both;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.blog-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 0.72rem;
    color: #a78bfa;
    margin-bottom: 8px;
}

.blog-card__body h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__body p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.blog-card__tags span {
    font-size: 0.68rem;
    padding: 2px 8px;
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
}

.blog-loading {
    grid-row: 1 / -1;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 480px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(167,139,250,0.25);
}

.contact-item svg {
    flex-shrink: 0;
    color: #a78bfa;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0 28px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__logo {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

.footer__nav { display: flex; gap: 20px; }

.footer__nav a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.footer__nav a:hover { color: #c4b5fd; }

.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .book-card, .class-card {
    animation: fadeUp 0.4s ease both;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 12, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 12px 20px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        gap: 0;
    }
    .nav.show { display: flex; }
    .nav__link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        border-radius: 0;
        font-size: 0.95rem;
    }
    .menu-toggle { display: flex; }

    .hero { padding: 80px 0 50px; }
    .section { padding: 60px 0; }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .scroll-grid { grid-auto-columns: 200px; }
    .about { grid-template-columns: 1fr; gap: 28px; }
    .about__photo { width: 140px; height: 140px; }
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .book-card { flex-direction: column; gap: 14px; }
    .book-card__cover { width: 70px; height: 98px; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__copy { text-align: left; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: 2.2rem; }
}
