@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
    --primary-color: #8A2BE2;
    --secondary-color: #4A00E0;
    --accent-color: #00F5A0;
    --text-color: #EAEAEA;
    --background-color: #121212;
    --card-color: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    clip-path: circle(30% at right 70%);
    animation: moveShapes 20s infinite alternate;
}

@keyframes moveShapes {
    from {
        clip-path: circle(30% at right 70%);
    }
    to {
        clip-path: circle(40% at 10% 10%);
    }
}

header {
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 5px var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

main {
    padding-top: 80px;
}

#hero {
    background: transparent;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 245, 160, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--accent-color);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 6rem 0;
    text-align: center;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color);
}

section h2 .highlight {
    color: var(--accent-color);
}

/* Light Section */
.section-light {
    background-color: #FFFFFF;
    color: #121212;
}

.section-light h2 {
    color: #121212;
    text-shadow: none;
}

.section-light .highlight {
    color: var(--primary-color);
}

.section-light .about-card, .section-light .curriculum-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.section-light .about-card h3, .section-light .curriculum-card h4, .section-light .about-card p, .section-light .curriculum-card p {
    color: #333;
}

.section-light .about-card i, .section-light .curriculum-card i {
    text-shadow: none;
}

.about-container, .curriculum-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card, .curriculum-card {
    background: var(--card-color);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover, .curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-card i, .curriculum-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.about-card h3, .curriculum-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

/* 강사 소개 섹션 */
.instructor-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.instructor-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    margin-bottom: 1.5rem;
    object-fit: cover; /* 이미지 비율 유지하며 채우기 */
}

.instructor-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px dashed var(--accent-color);
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.instructor-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.instructor-card p {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 포트폴리오 섹션 */
.portfolio-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열로 고정 */
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* 모바일에서는 1열 */
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-item.hide {
    display: none;
}

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

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

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay span {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

#register {
    background: transparent;
    color: var(--white-color);
    padding: 6rem 5%;
    border-radius: 20px;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

#register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    opacity: 0.8;
}

#register h2 {
    color: var(--white-color);
}

#register p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

footer {
    background: #1a1a1a;
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 1.8rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: rgba(18, 18, 18, 0.95);
        text-align: center;
        padding: 2rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    section h2 {
        font-size: 2.5rem;
    }
}