/* 전역 스타일 */
:root {
    --primary-color: #0076FF;    /* 밝은 파란색 */
    --secondary-color: #FFB84D;  /* 밝은 노란색 */
    --accent-color: #FF6B8E;     /* 밝은 분홍색 */
    --text-color: #2D3748;
    --light-bg: #FFFFFF;
    --dark-bg: #4A5566;
    --green-color: #10B981;      /* 초록색 */
    --purple-color: #A78BFA;     /* 보라색 */
    --orange-color: #FF8E53;     /* 주황색 */
    --navbar-height: 76px;       /* 네비게이션 바 높이 */
}

/* 스크롤 패딩으로 헤더 높이 보정 */
html {
    scroll-padding-top: calc(var(--navbar-height) + 20px);
}

@font-face {
    font-family: 'NanumSquareNeo';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot);
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.ttf) format("truetype");
}

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

body {
    font-family: 'NanumSquareNeo', 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 76px;
    background-color: var(--light-bg);
    background-image: url('/images/bg-pattern.svg');
    background-attachment: fixed;
    background-size: 200px;
    background-position: center;
    background-repeat: repeat;
}

h1, h2, h3, .navbar-brand, .hero-title, .hero-subtitle, .section-title, .feature-title {
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
}

/* 네비게이션 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 0 0 20px 20px;
    padding: 10px 0;
}

.navbar-brand {
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-brand img {
    transition: all 0.3s ease;
    margin-right: 8px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    margin: 0 3px;
    font-size: 1.05rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(93, 124, 245, 0.1);
}

.navbar-light .navbar-nav .nav-item:last-child .nav-link {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.6rem 1.4rem;
}

.navbar-light .navbar-nav .nav-item:last-child .nav-link:hover {
    background: linear-gradient(135deg, #ee5a52, #ff6b6b);
    transform: translateY(-2px);
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1FDDE9);
    color: white;
    padding: 7rem 0 8rem;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    clip-path: polygon(
        0% 0%, 
        100% 0%, 
        100% calc(100% - 67px),
        98% calc(100% - 65px),
        96% calc(100% - 63px),
        94% calc(100% - 61px),
        92% calc(100% - 60px),
        90% calc(100% - 59px),
        88% calc(100% - 58px),
        86% calc(100% - 58px),
        84% calc(100% - 59px),
        82% calc(100% - 61px),
        80% calc(100% - 64px),
        78% calc(100% - 68px),
        76% calc(100% - 73px),
        74% calc(100% - 78px),
        72% calc(100% - 84px),
        70% calc(100% - 90px),
        68% calc(100% - 96px),
        66% calc(100% - 101px),
        64% calc(100% - 105px),
        62% calc(100% - 108px),
        60% calc(100% - 110px),
        58% calc(100% - 111px),
        56% calc(100% - 110px),
        54% calc(100% - 108px),
        52% calc(100% - 105px),
        50% calc(100% - 101px),
        48% calc(100% - 96px),
        46% calc(100% - 90px),
        44% calc(100% - 84px),
        42% calc(100% - 78px),
        40% calc(100% - 73px),
        38% calc(100% - 68px),
        36% calc(100% - 64px),
        34% calc(100% - 61px),
        32% calc(100% - 59px),
        30% calc(100% - 58px),
        28% calc(100% - 58px),
        26% calc(100% - 59px),
        24% calc(100% - 60px),
        22% calc(100% - 61px),
        20% calc(100% - 63px),
        18% calc(100% - 65px),
        16% calc(100% - 67px),
        14% calc(100% - 69px),
        12% calc(100% - 71px),
        10% calc(100% - 73px),
        8% calc(100% - 75px),
        6% calc(100% - 76px),
        4% calc(100% - 77px),
        2% calc(100% - 77px),
        0% calc(100% - 77px)
    );
}

.scroll-title {
    width: 100vw;
    min-height: 300px;
    padding: 2rem !important;
    padding-top: 50px !important;
    box-shadow: none !important;
    max-width: 100vw;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.15;
}

/* .hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('/images/wave-bottom.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
} */

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    color: #fff;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 0.85rem 1.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 11px 0 rgba(0, 0, 0, 0.1);
}

.cta-button:active {
    top: 4px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

/* 섹션 공통 스타일 */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #6c757d;
}

/* 프로그램 하이라이트 */
.feature-card {
    background-color: white;
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 3px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-card:nth-child(1) {
    border-top: 6px solid var(--accent-color);
}

.feature-card:nth-child(2) {
    border-top: 6px solid var(--green-color);
}

.feature-card:nth-child(3) {
    border-top: 6px solid var(--purple-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, var(--accent-color), #ff9e9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--green-color), #90ee90);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--purple-color), #d4a4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

/* 바이브코딩 소개 */
.vibe-coding-section {
    background-color: var(--light-bg);
}

.vibe-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vibe-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.vibe-image:hover img {
    transform: scale(1.05);
}

/* 타임라인 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

@media (min-width: 768px) {
    .timeline-item.right::after {
        left: -13px;
    }
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 강사 프로필 */
.instructor-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

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

.instructor-info {
    padding: 1.5rem;
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 테스티모니얼 */
.testimonial-slider {
    position: relative;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    text-align: center;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-role {
    color: #6c757d;
    font-size: 0.9rem;
}

/* FAQ 섹션 */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    background-color: white;
    padding: 1.6rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    background-color: rgba(93, 124, 245, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.faq-question.active {
    background-color: var(--primary-color);
    color: white;
    border-left: 5px solid #3D5DD8;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.faq-answer {
    display: none;
    padding: 1.8rem;
    background-color: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin-top: -5px;
    border-left: 5px solid #f0f0f0;
}

/* 애니메이션 효과 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

@keyframes float {
    0% {transform: translateY(0px);}
    50% {transform: translateY(-10px);}
    100% {transform: translateY(0px);}
}

.bounce-animation {
    animation: bounce 2s ease infinite;
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

/* 스크롤 애니메이션 초기 상태 - 처음부터 숨겨놓기 */
.section-title, .feature-card, .vibe-image, .camp-info-card, .contact-card {
    opacity: 0;
    transform: translateY(20px);
}

/* 페이드인 애니메이션 키프레임 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 애니메이션 활성화 상태 - 한 번만 재생하고 마지막 상태 유지 */
.section-title, .feature-card, .vibe-image, .camp-info-card, .contact-card {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* 배경 이미지 두둥실 애니메이션 */
@keyframes floatingBack1 {
    0% { transform: translate(-50%, -50%) scale(1.0) translateY(0px) rotate(0deg); }
    25% { transform: translate(-50%, -50%) scale(0.9) translateY(-10px) rotate(-5deg); }
    50% { transform: translate(-50%, -50%) scale(1.0) translateY(-6px) rotate(2deg); }
    75% { transform: translate(-50%, -50%) scale(0.9) translateY(-9px) rotate(-3deg); }
    100% { transform: translate(-50%, -50%) scale(1.0) translateY(0px) rotate(0deg); }
}

@keyframes floatingBack2 {
    0% { transform: translate(-50%, -50%) scale(0.9) translateY(0px) rotate(0deg); }
    30% { transform: translate(-50%, -50%) scale(0.7) translateY(-10px) rotate(4deg); }
    60% { transform: translate(-50%, -50%) scale(0.9) translateY(-8px) rotate(-4deg); }
    80% { transform: translate(-50%, -50%) scale(0.7) translateY(-6px) rotate(2deg); }
    100% { transform: translate(-50%, -50%) scale(0.9) translateY(0px) rotate(0deg); }
}

.floating-back-1 {
    animation: floatingBack1 8s ease-in-out infinite;
    animation-delay: 0s;
    transform-origin: center center;
    opacity: 1;
}

.floating-back-2 {
    animation: floatingBack2 8s ease-in-out infinite;
    transform-origin: center center;
    opacity: 1;
}

/* 이미지 halo 효과 */
.image-halo {
    position: relative;
}

.image-halo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.1) 60%, transparent 70%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: haloBreathing 4s ease-in-out infinite;
}

/* halo 크기 변화 애니메이션 */
@keyframes haloBreathing {
    0% { transform: translate(-50%, -50%) scale(0.8); }
    50% { transform: translate(-50%, -50%) scale(1.0); }
    100% { transform: translate(-50%, -50%) scale(0.8); }
}

.image-halo > * {
    position: relative;
    z-index: 1;
}

.counter-wrapper {
    width: 280px;
}

/* 추가 스타일 - 카운트다운 타이머 */
#countdown-timer {
    display: flex;
    justify-content: center;
    margin: 0;
}

.countdown-text {
    font-family: 'Jua', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.countdown-number {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Jua', sans-serif;
}

.countdown-label {
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Jua', sans-serif;
}

@media (max-width: 500px) {
    .counter-wrapper {
        width: 230px;
    }

    .countdown-label {
        font-size: 1.4rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }
}

/* 연락처 섹션 */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
}

.submit-button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #3f45b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 푸터 */
footer {
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/footer-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 18px;
        right: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* FAQ 검색 스타일 */
.input-group-lg .form-control,
.input-group-lg .btn {
    height: calc(2.875rem + 2px); /* 정확한 높이 맞춤 */
    line-height: 1.5;
}

.input-group-lg .btn {
    padding: 0.75rem 1.25rem;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* 부드러운 배경색 변화 */
}

.input-group-lg .btn:hover {
    background-color: #0056b3; /* 호버 시 배경색만 변경 */
    transform: none !important; /* 위치 이동 효과 완전 제거 */
}

.input-group-lg .btn:active,
.input-group-lg .btn:focus {
    transform: none !important; /* 클릭/포커스 시 위치 이동 효과 완전 제거 */
}

/* 모든 모달을 브라우저 중앙에 위치시키기 */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3rem);
}

.modal-content {
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

/* 모바일에서 모달 최적화 */
@media (max-width: 768px) {
    .modal-dialog-centered {
        min-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem);
    }
}


