/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --accent: #FF6B35;
    --accent-light: #FF8F5E;
    --bg-dark: #0B0D17;
    --bg-card: #141627;
    --bg-card-hover: #1A1D35;
    --text: #EAEAEA;
    --text-muted: #8B8FA3;
    --border: rgba(108, 92, 231, 0.15);
    --glow: rgba(108, 92, 231, 0.4);
    --success: #00B894;
    --danger: #FF4757;
}

html { scroll-behavior: smooth; }

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Particle Canvas ===== */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Animations ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotateX(10deg) rotateY(-10deg); }
    50% { transform: translateY(-20px) rotateX(10deg) rotateY(-10deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotateX(-5deg) rotateY(15deg); }
    50% { transform: translateY(-15px) rotateX(-5deg) rotateY(15deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotateX(8deg) rotateY(-12deg); }
    50% { transform: translateY(-25px) rotateX(8deg) rotateY(-12deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--glow), 0 0 60px rgba(108,92,231,0.1); }
    50% { box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(108,92,231,0.2); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loadingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.animate-fade-down { animation: fadeDown 0.8s ease-out forwards; }
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.delay-2 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

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

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(108, 92, 231, 0.4);
}
.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.6);
}

/* ===== 3D Floating Cards ===== */
.floating-cards {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: rgba(20, 22, 39, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-icon { font-size: 1.6rem; }
.card-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.card-1 { top: 15%; left: 5%; animation: float 6s ease-in-out infinite; }
.card-2 { top: 25%; right: 5%; animation: float2 7s ease-in-out infinite 0.5s; }
.card-3 { bottom: 30%; left: 8%; animation: float3 5.5s ease-in-out infinite 1s; }
.card-4 { bottom: 20%; right: 8%; animation: float 8s ease-in-out infinite 1.5s; }
.card-5 { top: 50%; left: 50%; transform: translateX(-50%); animation: float2 6.5s ease-in-out infinite 0.8s; }

@media (max-width: 768px) {
    .floating-cards { display: none; }
}

/* ===== Sections Common ===== */
section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

/* ===== Recommend ===== */
.recommend { background: linear-gradient(180deg, transparent, rgba(108,92,231,0.03), transparent); }

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.recommend-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}
.recommend-card.visible { opacity: 1; transform: translateY(0); }
.recommend-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108,92,231,0.15);
}
.rec-icon { font-size: 2.2rem; margin-bottom: 16px; }
.recommend-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.recommend-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* ===== Curriculum ===== */
.curriculum { background: linear-gradient(180deg, transparent, rgba(255,107,53,0.03), transparent); }

.steps { display: flex; flex-direction: column; gap: 32px; }

.step-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-60px);
}
.step-card.visible { opacity: 1; transform: translateX(0); }
.step-card:nth-child(2) { transform: translateX(60px); }
.step-card:nth-child(2).visible { transform: translateX(0); }
.step-card:hover { border-color: var(--accent); box-shadow: 0 20px 60px rgba(255,107,53,0.1); }

.step-number {
    flex-shrink: 0;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.step-content ul { list-style: none; }
.step-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.step-content li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

.step-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(108,92,231,0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
}

@media (max-width: 600px) {
    .step-card { flex-direction: column; gap: 16px; }
    .step-number { width: 60px; height: 60px; font-size: 0.75rem; }
}

/* ===== Schedule Section ===== */
.schedule-section { background: linear-gradient(180deg, transparent, rgba(108,92,231,0.04), transparent); }

.schedule-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(108,92,231,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.apply-closed-notice {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
}
.closed-icon { font-size: 3rem; margin-bottom: 16px; }
.apply-closed-notice p { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.apply-closed-notice span { font-size: 0.9rem; color: var(--text-muted); }

.schedule-list { display: flex; flex-direction: column; gap: 32px; }

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}
.schedule-card.visible { opacity: 1; transform: translateY(0); }
.schedule-card:hover { border-color: rgba(108,92,231,0.4); box-shadow: 0 20px 60px rgba(108,92,231,0.1); }

.schedule-card-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.schedule-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108,92,231,0.15);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.schedule-title {
    font-size: 1.3rem;
    font-weight: 800;
    flex: 1;
    padding: 0 16px;
}

.schedule-status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}
.schedule-status-badge.open { background: rgba(0,184,148,0.15); color: #00B894; }
.schedule-status-badge.closed { background: rgba(255,71,87,0.15); color: var(--danger); }

.schedule-card-body { padding: 28px 32px; }

.timeslots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.timeslot-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}
.timeslot-item:hover { border-color: var(--primary); background: rgba(108,92,231,0.05); }

.timeslot-time {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.timeslot-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.timeslot-count.full { color: var(--danger); font-weight: 600; }

.timeslot-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.timeslot-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,231,0.4); }
.timeslot-btn:disabled {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.full-course-item {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
    margin-top: 4px;
}
.full-course-btn {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
}
.full-course-btn:hover { box-shadow: 0 6px 20px rgba(0,184,148,0.4) !important; }

.schedule-location {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.location-icon { font-size: 1.3rem; flex-shrink: 0; }
.location-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.location-address { font-size: 0.88rem; color: var(--text-muted); }

.kakao-map-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #1a1d35;
}

/* ===== Apply Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out forwards;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 1.4rem; font-weight: 800; }

.modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.modal-selected-info {
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 24px;
}

/* ===== Apply Form ===== */
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B8FA3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,92,231,0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.spinner { width: 20px; height: 20px; animation: spin 1s linear infinite; }

/* ===== Fee Banner ===== */
.fee-banner {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

/* ===== Fee Info Card (schedule section) ===== */
.fee-info-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    margin-bottom: 32px;
}
.fee-info-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}
.fee-info-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Fee Highlight ===== */
.fee-highlight {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0;
}

/* ===== Hero Fee ===== */
.hero-fee-highlight {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a78bfa;
}

/* ===== Deposit Card ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.deposit-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    margin-top: 20px;
}
.deposit-guide {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.deposit-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.deposit-amount strong {
    color: #a78bfa;
    font-size: 1.3rem;
}
.deposit-bank {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.deposit-account-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.deposit-account-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 0.5px;
}
.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: opacity 0.2s;
    font-family: inherit;
}
.copy-btn:hover { opacity: 0.8; }
.deposit-owner {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 6px;
}
.deposit-name-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.deposit-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
}
.deposit-notes li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
}
.deposit-notes li::before { content: '* '; }

.modal-success {
    text-align: center;
    padding: 24px 20px;
}
.modal-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-success h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.modal-success p { color: var(--text-muted); }

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-sub { margin-top: 4px; font-size: 0.78rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .section-title { margin-bottom: 40px; }
    .recommend-grid { grid-template-columns: 1fr; }
    .schedule-card-header { flex-direction: column; align-items: flex-start; }
    .schedule-title { padding: 0; }
    .timeslots { grid-template-columns: 1fr; }
    .modal-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .schedule-card-body { padding: 20px; }
    .schedule-card-header { padding: 20px; }
}
