/* AI Tuning 전용 테마 - 주황/골드 계열 */

:root {
    /* AI 튜닝 컬러 (주황/골드) */
    --tuning-primary: #f59e0b;      /* Amber */
    --tuning-secondary: #fbbf24;    /* 밝은 Amber */
    --tuning-dark: #d97706;         /* 진한 Amber */
    --tuning-light: #fcd34d;        /* 연한 Amber */

    /* LLM 튜닝 컬러 (파란색) */
    --llm-color: #3b82f6;
    --llm-light: #60a5fa;

    /* Diffusion 튜닝 컬러 (보라색) */
    --diffusion-color: #8b5cf6;
    --diffusion-light: #a78bfa;

    /* 경량화 컬러 (초록색) */
    --optimization-color: #10b981;
    --optimization-light: #34d399;

    /* 강화학습 컬러 (빨강/핑크) */
    --rl-color: #ef4444;
    --rl-light: #f87171;

    /* 카드 배경 */
    --card-bg: rgba(20, 16, 10, 0.6);
    --card-hover-bg: rgba(245, 158, 11, 0.15);

    /* 테두리 */
    --border-color: rgba(245, 158, 11, 0.2);
}

/* Light 모드 오버라이드 */
[data-theme="light"] {
    --tuning-primary: #d97706;
    --tuning-secondary: #f59e0b;
    --card-bg: rgba(245, 158, 11, 0.04);
    --card-hover-bg: rgba(245, 158, 11, 0.1);
    --border-color: rgba(245, 158, 11, 0.25);
    --light-section-bg: rgba(245, 158, 11, 0.02);
}

/* Hero 섹션 주황 테마 */
.home {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.08) 100%);
}

.home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(251, 191, 36, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(252, 211, 77, 0.15) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

[data-theme="light"] .home {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(251, 191, 36, 0.04) 100%);
}

[data-theme="light"] .home::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(252, 211, 77, 0.1) 0%, transparent 50%);
}

/* Hero 타이틀 그라데이션 */
.home__title-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero 버튼 주황 테마 */
.button__primary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.button__primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

/* 섹션 배경 효과 제거 */
.about::before,
.features::before,
.infra::before,
.contact::before {
    display: none !important;
}

.about,
.features,
.infra,
.contact {
    background: transparent;
}

[data-theme="light"] .about,
[data-theme="light"] .features,
[data-theme="light"] .infra,
[data-theme="light"] .contact {
    background: var(--light-section-bg);
}

/* ===================== */
/*    튜닝 카드 그리드     */
/* ===================== */

.tuning-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .tuning-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tuning-cards-grid {
        grid-template-columns: 1fr;
    }
}

.tuning-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tuning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.tuning-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
}

.tuning-card__icon svg {
    stroke: var(--tuning-primary);
}

.tuning-card--llm .tuning-card__icon {
    background: rgba(59, 130, 246, 0.1);
}

.tuning-card--llm .tuning-card__icon svg {
    stroke: var(--llm-color);
}

.tuning-card--diffusion .tuning-card__icon {
    background: rgba(139, 92, 246, 0.1);
}

.tuning-card--diffusion .tuning-card__icon svg {
    stroke: var(--diffusion-color);
}

.tuning-card--optimization .tuning-card__icon {
    background: rgba(16, 185, 129, 0.1);
}

.tuning-card--optimization .tuning-card__icon svg {
    stroke: var(--optimization-color);
}

.tuning-card--rl .tuning-card__icon {
    background: rgba(239, 68, 68, 0.1);
}

.tuning-card--rl .tuning-card__icon svg {
    stroke: var(--rl-color);
}

.tuning-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tuning-card--llm .tuning-card__title {
    color: var(--llm-light);
}

.tuning-card--diffusion .tuning-card__title {
    color: var(--diffusion-light);
}

.tuning-card--optimization .tuning-card__title {
    color: var(--optimization-light);
}

.tuning-card--rl .tuning-card__title {
    color: var(--rl-light);
}

.tuning-card__description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tuning-card__tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(245, 158, 11, 0.15);
    color: var(--tuning-secondary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tuning-card--llm .tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--llm-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.tuning-card--diffusion .tag {
    background: rgba(139, 92, 246, 0.15);
    color: var(--diffusion-light);
    border-color: rgba(139, 92, 246, 0.3);
}

.tuning-card--optimization .tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--optimization-light);
    border-color: rgba(16, 185, 129, 0.3);
}

.tuning-card--rl .tag {
    background: rgba(239, 68, 68, 0.15);
    color: var(--rl-light);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ===================== */
/*    VRAM 테이블         */
/* ===================== */

.vram-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.vram-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.vram-table th,
.vram-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.vram-table th {
    background: rgba(245, 158, 11, 0.1);
    color: var(--tuning-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vram-table td {
    color: var(--text-secondary);
}

.vram-table td strong {
    color: var(--text-main);
}

.vram-table tr:last-child td {
    border-bottom: none;
}

.vram-table tr:hover td {
    background: var(--card-hover-bg);
}

[data-theme="light"] .vram-table {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .vram-table th {
    background: rgba(245, 158, 11, 0.08);
    color: var(--tuning-dark);
}

/* ===================== */
/*    Features 카테고리   */
/* ===================== */

.features__category {
    margin-bottom: 4rem;
}

.features__category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.features__category-title svg {
    stroke: var(--tuning-primary);
}

.llm-title {
    color: var(--llm-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.llm-title svg {
    stroke: var(--llm-color);
}

.diffusion-title {
    color: var(--diffusion-light);
    border-color: rgba(139, 92, 246, 0.3);
}

.diffusion-title svg {
    stroke: var(--diffusion-color);
}

.optimization-title {
    color: var(--optimization-light);
    border-color: rgba(16, 185, 129, 0.3);
}

.optimization-title svg {
    stroke: var(--optimization-color);
}

.rl-title {
    color: var(--rl-light);
    border-color: rgba(239, 68, 68, 0.3);
}

.rl-title svg {
    stroke: var(--rl-color);
}

[data-theme="light"] .llm-title {
    color: var(--llm-color);
}

[data-theme="light"] .diffusion-title {
    color: var(--diffusion-color);
}

[data-theme="light"] .optimization-title {
    color: var(--optimization-color);
}

[data-theme="light"] .rl-title {
    color: var(--rl-color);
}

/* Features Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

.feature__item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature__icon {
    flex-shrink: 0;
}

.feature__icon svg {
    stroke: var(--tuning-primary);
}

.feature__item--llm .feature__icon svg {
    stroke: var(--llm-color);
}

.feature__item--diffusion .feature__icon svg {
    stroke: var(--diffusion-color);
}

.feature__item--optimization .feature__icon svg {
    stroke: var(--optimization-color);
}

.feature__item--rl .feature__icon svg {
    stroke: var(--rl-color);
}

.feature__content {
    flex: 1;
}

.feature__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================== */
/*    인프라 섹션         */
/* ===================== */

.infra {
    padding: 6rem 0;
}

.infra-card {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    border: 2px solid var(--tuning-primary);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.infra-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.infra-card__header svg {
    stroke: var(--tuning-primary);
}

.infra-card__header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tuning-secondary);
}

.infra-card__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 12px;
}

@media (max-width: 480px) {
    .infra-card__specs {
        grid-template-columns: 1fr;
    }
}

.spec-item {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.infra-card__tools {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-tag {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(245, 158, 11, 0.15);
    color: var(--tuning-secondary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .infra-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

[data-theme="light"] .infra-card__header h3 {
    color: var(--tuning-dark);
}

[data-theme="light"] .tool-tag {
    background: rgba(245, 158, 11, 0.1);
    color: var(--tuning-dark);
}

/* 스크롤 프로그레스 바 주황 테마 */
#scroll-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%) !important;
}

/* 섹션 타이틀 라인 주황 테마 */
.section__title-line {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

/* ===================== */
/*    우선 연구 과제      */
/* ===================== */

.priority-title {
    color: var(--tuning-secondary) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.priority-title svg {
    stroke: var(--tuning-primary) !important;
    fill: rgba(245, 158, 11, 0.2);
}

.features__category-desc {
    color: var(--text-secondary);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* 카드 뱃지 */
.tuning-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #000;
}

.tuning-card__badge--rl {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
}

/* Feature 아이템 뱃지 */
.feature__item {
    position: relative;
}

.feature__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #000;
}

.feature__badge.badge--rl {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
}
