/* ========================================
   제이디브랜딩 웹사이트 스타일시트
   ======================================== */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --dark-color: #1A1A2E;
    --light-color: #F7F7F7;
    --white: #ffffff;
    --gray: #666666;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

/* ========================================
   네비게이션
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ========================================
   히어로 섹션
   ======================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FDB750 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 20px); opacity: 0; }
}

/* ========================================
   섹션 공통 스타일
   ======================================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--gray);
    margin-bottom: 60px;
}

/* ========================================
   CEO 소개 섹션
   ======================================== */
#ceo {
    background: var(--light-color);
}

.ceo-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.ceo-image {
    position: sticky;
    top: 120px;
}

.ceo-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.ceo-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.info-card h4 {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 20px;
}

.info-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card h5 i {
    margin-right: 10px;
}

.info-section {
    margin-top: 20px;
}

.info-card ul {
    padding-left: 0;
}

.info-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 책 그리드 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.book-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.book-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.book-title {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    color: var(--dark-color);
    line-height: 1.4;
}

.new-book {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   서비스 섹션
   ======================================== */
#services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-card ul li {
    padding: 10px 0;
    color: var(--gray);
    font-size: 16px;
}

/* ========================================
   포트폴리오 섹션
   ======================================== */
#portfolio {
    background: var(--light-color);
}

.portfolio-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item.active {
    display: block;
    opacity: 1;
}

.portfolio-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.image-container.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.image-container.clickable:hover {
    transform: scale(1.02);
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 53, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.image-container.clickable:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 10px;
}

.image-overlay span {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

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

.portfolio-info h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.portfolio-info h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.slider-btn i {
    font-size: 20px;
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   프랜차이즈 섹션
   ======================================== */
#franchise {
    background: var(--white);
}

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

.franchise-card {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.franchise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.franchise-image {
    height: 200px;
    overflow: hidden;
}

.franchise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.franchise-card:hover .franchise-image img {
    transform: scale(1.1);
}

.franchise-card h3 {
    font-size: 24px;
    padding: 20px 20px 10px;
}

.franchise-card p {
    padding: 0 20px 20px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   교육 섹션
   ======================================== */
#education {
    background: var(--light-color);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #F7931E);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.education-programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.program-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.program-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.program-card ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray);
}

.program-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.seminar-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.seminar-photos img:first-child {
    object-position: center 20%;
}

.seminar-photos img:hover {
    transform: scale(1.05);
}

/* ========================================
   프로세스 섹션
   ======================================== */
#process {
    background: var(--white);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #F7931E);
    color: var(--white);
    font-size: 28px;
    font-weight: 900;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.step-content p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   유튜브 섹션
   ======================================== */
#youtube {
    background: var(--light-color);
}

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

.youtube-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.youtube-stat {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.youtube-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #FF0000;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.youtube-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.youtube-btn i {
    margin-right: 10px;
}

/* ========================================
   상담 신청 섹션
   ======================================== */
#contact {
    background: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), #F7931E);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.submit-btn i {
    margin-right: 10px;
}

.success-message {
    display: none;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background: #4CAF50;
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.8;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* ========================================
   푸터
   ======================================== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.phone-btn {
    background: linear-gradient(135deg, var(--primary-color), #F7931E);
    color: var(--white);
}

.phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

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

.kakao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(254, 229, 0, 0.4);
}

.email-btn {
    background: #4285F4;
    color: var(--white);
}

.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   반응형 디자인
   ======================================== */

/* 태블릿 */
@media (max-width: 1023px) {
    .ceo-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .ceo-image img {
        max-width: 250px;
    }

    .services-grid {
        gap: 20px;
    }

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

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

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

    .prev-btn {
        left: -25px;
    }

    .next-btn {
        right: -25px;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* 네비게이션 */
    .hamburger {
        display: flex;
    }

    .nav-content {
        position: relative;
    }

    .lang-switch {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    /* 히어로 */
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    /* CEO */
    .ceo-content {
        grid-template-columns: 1fr;
    }

    .ceo-image {
        position: static;
        text-align: center;
    }

    .ceo-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .books-grid {
        gap: 15px;
    }

    .book-item img {
        height: 150px;
    }

    /* 서비스 */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 포트폴리오 */
    .portfolio-images {
        grid-template-columns: 1fr;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* 프랜차이즈 */
    .franchise-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 36px;
    }

    .education-programs {
        grid-template-columns: 1fr;
    }

    .seminar-photos {
        grid-template-columns: 1fr;
    }

    /* 프로세스 */
    .process-step {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    /* 유튜브 */
    .youtube-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 푸터 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }
}
