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

body {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

.inner {
    width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 헤더 ===== */
header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header .inner {
    width: 1100px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    height: 60px;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 100%;
    width: auto;
}

header .main-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header .main-menu ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

header .main-menu ul li a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

header .main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #669900, #99cc33);
    transition: width 0.3s ease;
}

header .main-menu ul li a:hover {
    color: #669900;
}

header .main-menu ul li a:hover::after {
    width: 100%;
}

header .sub-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .sub-menu ul.social {
    display: flex;
    list-style: none;
    gap: 10px;
}

header .sub-menu ul.social li img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

header .sub-menu ul.social li img:hover {
    transform: scale(1.1);
}

header .sub-menu .search {
    height: 34px;
    position: relative;
}

header .sub-menu .search input {
    width: 36px;
    height: 34px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
    outline: none;
    background-color: #fff;
    color: #777;
    font-size: 12px;
    transition: width 0.4s ease;
}

header .sub-menu .search input:focus {
    width: 190px;
    border-color: #669900;
}

header .sub-menu .search .material-icons {
    height: 24px;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

header .sub-menu .search input:focus + .material-icons {
    color: #669900;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 28px;
}

@media (max-width: 768px) {
    header .main-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        transform: none;
        z-index: 999;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    header .main-menu.active {
        max-height: 500px;
    }

    header .main-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    header .main-menu ul li {
        border-bottom: 1px solid #f0f0f0;
    }

    header .main-menu ul li:last-child {
        border-bottom: none;
    }

    header .main-menu ul li a {
        display: block;
        padding: 15px 0;
    }

    header .main-menu ul li a::after {
        display: none;
    }
}

/* ===== 히어로 섹션 ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #1a1a2e, #3d1e6e);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-notes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-equalizer {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 5px;
    z-index: 2;
    height: 70px;
}

.hero-equalizer span {
    width: 5px;
    background: linear-gradient(to top, #669900, #99cc33);
    border-radius: 3px 3px 0 0;
    animation: eqBar 0.6s ease-in-out infinite alternate;
    height: 5px;
    opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
}

.hero-desc {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator .material-icons {
    font-size: 40px;
    color: #fff;
    opacity: 0.8;
}

/* ===== 버튼 ===== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #669900, #99cc33);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 153, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 153, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #669900;
    border: 2px solid #669900;
}

.btn-outline:hover {
    background: #669900;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 섹션 공통 ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #669900, #99cc33);
    border-radius: 2px;
}

/* ===== 소개 섹션 ===== */
.about {
    background: #f8f9fa;
}

.about-profile {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.profile-image {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #669900, #99cc33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-image .teacher-placeholder {
    width: 100%;
    height: 100%;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image .material-icons {
    font-size: 100px;
    color: #fff;
}

.profile-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-role {
    font-size: 1.1rem;
    color: #669900;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-desc {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #669900;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

.stat-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stat-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 153, 0, 0.15);
    border: 2px solid #669900;
}

/* ===== 이력 타임라인 ===== */
.career {
    background: #fff;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    background: #f8f9fa;
    padding: 20px 22px;
    border-radius: 12px;
    border-left: 4px solid #99cc33;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-item.current {
    border-left-color: #669900;
    background: #f0f7e6;
}

.timeline-dot {
    display: none;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: #669900;
    display: block;
    margin-bottom: 4px;
}

.timeline-item.current .timeline-year::after {
    content: ' 진행중';
    font-size: 0.7rem;
    background: #669900;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.timeline-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== 전문분야 ===== */
.specialty {
    background: #fff;
}

.specialty-tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background: #669900;
    color: #fff;
    border-color: #669900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 153, 0, 0.3);
}

.specialty-tag .material-icons {
    font-size: 22px;
    color: #669900;
}

.specialty-tag:hover .material-icons {
    color: #fff;
}

/* ===== 문의하기 섹션 ===== */
.contact {
    background: #f8f9fa;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.contact-card .material-icons {
    font-size: 44px;
    color: #669900;
    margin-bottom: 18px;
}

.contact-card .kakao-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 18px;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.contact-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card.kakao {
    background: #FEE500;
}

.contact-card.kakao h3,
.contact-card.kakao p {
    color: #391B1B;
}

/* ===== 푸터 ===== */
footer {
    background: #111;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #669900, #99cc33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.footer-logo-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.footer-logo-sub {
    display: block;
    font-size: 0.75rem;
    color: #99cc33;
    letter-spacing: 2px;
}

.footer-info p {
    color: #aaa;
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* ===== 애니메이션 ===== */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatNote {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-100vh) rotate(25deg); opacity: 0; }
}

@keyframes eqBar {
    from { height: 4px; }
    to   { height: var(--max-h, 40px); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.fade-in { animation: fadeInUp 1s ease; }
.fade-in-delay { animation: fadeInUp 1s ease 0.3s both; }
.fade-in-delay-2 { animation: fadeInUp 1s ease 0.6s both; }

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
    .inner {
        width: 100%;
        padding: 0 30px;
    }

    header .inner {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .sub-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-tags {
        gap: 6px;
    }

    .hero-tags span {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-profile {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

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

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}
