/**
 * Home Page (Main Page) Styles
 * 메인 페이지 전용 스타일
 */

/* ========================================
   Hero Section (메인 페이지 최상단 섹션)
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--text-primary);
    overflow: hidden;
    padding: var(--space-20) 0;
}

/* Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    animation: floatGlow 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* 코드 배경 컨테이너 */
.code-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 코드 블록들 */
.code-block {
    position: absolute;
    opacity: 0.12;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre;
}

.code-block-1 { top: 5%; left: 2%; }        /* 왼쪽 상단 끝 */
.code-block-2 { top: 25%; right: 5%; }     /* 오른쪽 중상단 */
.code-block-3 { top: 75%; left: 20%; }     /* 왼쪽 하단 - 더 아래로, 더 왼쪽으로 */

.code-block .keyword { color: var(--accent-blue); font-weight: 500; }
.code-block .function { color: var(--accent-gold); }
.code-block .string { color: #10b981; }
.code-block .comment { color: var(--text-tertiary); font-style: italic; }
.code-block .number { color: #f59e0b; }

/* 파티클 캔버스 */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: minmax(600px, 1.2fr) minmax(400px, 1fr); /* 최소 너비 설정으로 좌우 흔들림 방지 */
    gap: var(--space-20);
    align-items: center;
    z-index: 3;
}

/* ========================================
   Hero - Left Content
   ======================================== */

.hero-content {
    padding-right: var(--space-8);
    animation: fadeInUp 0.8s ease-out;
}

.hero__label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-blue-light);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: var(--font-black);
    line-height: 1.3;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
    height: 320px; /* 타이핑 효과 중에도 고정된 높이 (4줄) - 높이 대폭 증가 */
    width: 100%; /* 너비 고정으로 좌우 흔들림 방지 */
    overflow: visible;

    /* 🎯 제목 줄맞춤 최적화 */
    text-align: left;
    word-break: keep-all;
}

/* 타이핑 커서 */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent-gold);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero__title-highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.7;  /* 1.6 → 1.7: 가독성 향상 */
    margin-bottom: var(--space-10);
    max-width: 600px;

    /* 🎯 본문 줄맞춤 최적화 */
    text-align: left;
    word-break: keep-all;
}

.hero__buttons {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.hero__button {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    cursor: pointer;
}

.hero__button--primary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.hero__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    color: #000000;
}

.hero__button--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero__button--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Hero - Right Quick Contact Form
   ======================================== */

.hero-form {
    background: rgba(30, 40, 65, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow:
        30px 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(59, 130, 246, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s backwards, cardFloat 6s ease-in-out 1s infinite;

    /* 3D Tilt Effect */
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.hero-form:hover:not(.focused) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(37, 99, 235, 0.6) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        40px 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(59, 130, 246, 0.4),
        inset 0 0 80px rgba(59, 130, 246, 0.2);
}

/* Focused state - card becomes flat when form is focused */
.hero-form.focused {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(0) !important;
    background: rgba(30, 40, 65, 0.6);
    box-shadow:
        30px 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Gradient border effect on hover */
.hero-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 197, 253, 0.8) 100%);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-form:hover:not(.focused)::before {
    opacity: 0.7;
}

.hero-form__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.hero-form__subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.hero-form__group {
    margin-bottom: var(--space-4);
}

.hero-form__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.hero-form__label--required::after {
    content: '*';
    color: #ff6b6b;
    margin-left: var(--space-1);
}

.hero-form__input,
.hero-form__select,
.hero-form__textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: rgba(10, 15, 27, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: all var(--transition-base);
}

.hero-form__textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.hero-form__input::placeholder,
.hero-form__textarea::placeholder {
    color: var(--text-tertiary);
}

.hero-form__input:focus,
.hero-form__select:focus,
.hero-form__textarea:focus {
    outline: none;
    background: rgba(10, 15, 27, 0.8);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.hero-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.hero-form__select option {
    background: var(--color-secondary);
    color: var(--color-white);
}

.hero-form__button {
    width: 100%;
    padding: var(--space-3);
    background: var(--gradient-gold);
    color: var(--bg-primary);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.hero-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.hero-form__button:active {
    transform: translateY(0);
}

.hero-form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hero-form__button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: var(--space-2);
    border: 2px solid var(--color-secondary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Form Message (성공/에러 메시지) */
.form-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    animation: slideDown 0.3s ease-out;
}

.form-message svg {
    flex-shrink: 0;
}

.form-message--success {
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

.form-message--error {
    background: rgba(245, 101, 101, 0.15);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: #f56565;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-form__note {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
    margin-top: var(--space-4);
    line-height: 1.5;
}

/* Form Messages */
.hero-form__message {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    text-align: center;
}

.hero-form__message--success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
}

.hero-form__message--error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #e57373;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   2. Core Values Section
   ======================================== */
.core-values {
    background: var(--bg-secondary);
    position: relative;
}

.core-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.core-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.core-value-card {
    text-align: center;
    padding: var(--space-10);
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.core-value-card:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.core-value-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.core-value-card__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.core-value-card__description {
    color: var(--text-secondary);
    line-height: 1.8;  /* 1.7 → 1.8: 가독성 향상 */

    /* 🎯 카드 설명 줄맞춤 최적화 */
    text-align: left;
    word-break: keep-all;
}

/* ========================================
   3. Services Section
   ======================================== */
.services {
    position: relative;
    background-image: url('../../images/Main_page_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.85);
    pointer-events: none;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 30px;
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    box-shadow:
        30px 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        40px 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.service-card__description {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.8;  /* 1.6 → 1.8: 가독성 향상 */

    /* 🎯 서비스 카드 설명 줄맞춤 최적화 */
    text-align: left;
    word-break: keep-all;
}

.service-card__link {
    color: var(--accent-gold);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card__link:hover {
    color: var(--accent-gold-light);
    transform: translateX(4px);
}

/* ========================================
   4. Case Studies Section
   ======================================== */
.case-studies {
    background: var(--bg-secondary);
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.case-studies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.case-study {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-study::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
}

.case-study:hover::before {
    opacity: 1;
    top: -30%;
    right: -30%;
}

.case-study:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.case-study__number {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    margin-bottom: var(--space-4);
}

.case-study__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.case-study__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   5. Process Section
   ======================================== */
.process {
    position: relative;
    background-image: url('../../images/Main_page_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.85);
    pointer-events: none;
    z-index: 0;
}

.process .container {
    position: relative;
    z-index: 1;
}

.process__timeline {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(212, 175, 55, 0.3) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(212, 175, 55, 0.3) 100%);
    z-index: -1;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0 auto var(--space-4);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.process-step__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.process-step__description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ========================================
   6. Statistics Section
   ======================================== */
.statistics {
    background: var(--bg-secondary);
    position: relative;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.statistics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.stat-card__number {
    font-size: var(--text-6xl);
    font-weight: var(--font-black);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* Jackpot animation effect */
@keyframes jackpotGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
    }
}

.stat-card.animate-in .stat-card__number {
    animation: jackpotGlow 0.5s ease-in-out;
}

.stat-card__label {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ========================================
   7. Partnership Banner
   ======================================== */
.partnership-banner {
    background: var(--gradient-dark);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.partnership-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.partnership-banner__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partnership-banner__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partnership-banner__description {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    color: var(--text-secondary);
}

.partnership-banner__button {
    display: inline-block;
    padding: var(--space-4) var(--space-10);
    background: var(--gradient-gold);
    color: var(--bg-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4);
    transition: all var(--transition-base);
}

.partnership-banner__button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6);
}

/* ========================================
   8. FAQ Section
   ======================================== */
.faq {
    position: relative;
    background-image: url('../../images/Main_page_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.85);
    pointer-events: none;
    z-index: 0;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.faq__list {
    max-width: 800px;
    margin: var(--space-12) auto 0;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-item__question h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.faq-item__icon {
    font-size: var(--text-2xl);
    color: var(--accent-gold);
    transition: all var(--transition-base);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item__answer p {
    padding-top: var(--space-4);
    padding-bottom: var(--space-2);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ Active State */
.faq-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.faq-item.active .faq-item__answer {
    /* max-height is set dynamically by JavaScript */
    opacity: 1;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

/* FAQ Item Hover Enhancement */
.faq-item__question:hover .faq-item__icon {
    transform: scale(1.1);
    border-color: rgba(212, 175, 55, 0.6);
}

.faq-item.active .faq-item__question:hover .faq-item__icon {
    transform: rotate(45deg) scale(1.1);
}

/* Focus State for Accessibility */
.faq-item__question:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 4px;
    border-radius: 10px;
}

/* ========================================
   9. Final CTA Section
   ======================================== */
.final-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #667eea 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.final-cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.final-cta__description {
    font-size: var(--text-xl);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    opacity: 0.95;
}

.final-cta__buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.final-cta__button {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.final-cta__button--primary {
    background: var(--color-white);
    color: var(--color-secondary);
}

.final-cta__button--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.final-cta__button--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    backdrop-filter: blur(10px);
}

.final-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* ========================================
   Keyframe Animations
   ======================================== */

/* Card Floating Animation */
@keyframes cardFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px);
    }
}

/* ========================================
   Responsive Design (반응형)
   Desktop-First Approach
   ======================================== */

/* ========================================
   Tablet Landscape (1024px ~ 1280px)
   ======================================== */
@media (max-width: 1280px) {
    /* Hero Section */
    .hero-container {
        max-width: 1200px;
        gap: var(--space-12);
    }

    .hero__title {
        font-size: clamp(36px, 4.5vw, 56px);
        height: 200px; /* 타블릿: 고정 높이 (4줄) */
    }

    /* Services Grid */
    .services__grid {
        gap: var(--space-5);
    }

    /* Process Timeline */
    .process__timeline {
        gap: var(--space-5);
    }
}

/* ========================================
   Tablet Portrait (768px ~ 1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* Hero Section - 2단 유지하되 비율 조정 */
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
        padding: 0 var(--space-6);
    }

    .hero__title {
        font-size: clamp(32px, 4vw, 48px);
        height: 180px; /* 타블릿 포트레이트: 고정 높이 (4줄) */
    }

    .hero__subtitle {
        font-size: var(--text-lg);
    }

    /* Hero Form - 크기 축소 */
    .hero-form {
        padding: var(--space-8);
    }

    .hero-form__title {
        font-size: var(--text-xl);
    }

    /* Core Values - 2열 */
    .core-values__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* Services - 2열 */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* Case Studies - 그대로 3열 유지 (작은 화면에서는 1열) */
    .case-studies__grid {
        gap: var(--space-6);
    }

    /* Process - 여전히 가로 배치 (작은 화면에서 세로) */
    .process__timeline {
        gap: var(--space-4);
    }

    .process-step {
        padding: var(--space-5);
    }

    /* Statistics - 2x2 그리드 */
    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .stat-card__number {
        font-size: var(--text-5xl);
    }
}

/* ========================================
   Mobile (< 768px) - 메인 반응형
   ======================================== */
@media (max-width: 768px) {
    /* ==================== Hero Section ==================== */
    .hero {
        min-height: auto;
        padding: var(--space-12) 0;
    }

    /* Hero Container - 세로 배치 */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        padding: 0 var(--space-3); /* var(--space-4) → var(--space-3): 패딩 축소 */
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero__label {
        font-size: var(--text-sm); /* var(--text-xs) → var(--text-sm): 크기 증가 */
        padding: var(--space-2) var(--space-4); /* 패딩 증가 */
    }

    .hero__title {
        font-size: clamp(36px, 9vw, 46px); /* 폰트 크기 대폭 증가 */
        line-height: 1.35;
        height: 200px; /* 180px → 200px: 높이 증가 */
        text-align: left;
        margin-bottom: var(--space-6);
    }

    .hero__subtitle {
        font-size: var(--text-lg); /* var(--text-base) → var(--text-lg): 크기 증가 */
        margin-bottom: var(--space-8);
    }

    .hero__buttons {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }

    .hero__button {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6); /* var(--space-3) → var(--space-4): 패딩 증가 */
        font-size: var(--text-lg); /* var(--text-base) → var(--text-lg): 버튼 텍스트 크기 증가 */
    }

    /* Hero Form - 3D 효과 제거, 평면으로 */
    .hero-form {
        transform: none !important;
        animation: none !important;
        padding: var(--space-8); /* var(--space-6) → var(--space-8): 패딩 증가 */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .hero-form::before {
        display: none;
    }

    .hero-form__title {
        font-size: var(--text-xl); /* var(--text-lg) → var(--text-xl): 크기 증가 */
    }

    .hero-form__subtitle {
        font-size: var(--text-sm); /* var(--text-xs) → var(--text-sm): 크기 증가 */
        margin-bottom: var(--space-4);
    }

    .hero-form__input,
    .hero-form__select,
    .hero-form__textarea {
        font-size: var(--text-base); /* var(--text-sm) → var(--text-base): 크기 증가 */
    }

    .hero-form__button {
        padding: var(--space-3) var(--space-5); /* 패딩 증가 */
        font-size: var(--text-base); /* var(--text-sm) → var(--text-base): 크기 증가 */
    }

    /* ==================== Core Values ==================== */
    .core-values__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .core-value-card {
        padding: var(--space-8);
    }

    .core-value-card__icon {
        font-size: 2.5rem;
    }

    .core-value-card__title {
        font-size: var(--text-xl);
    }

    /* ==================== Services ==================== */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .service-card {
        padding: var(--space-6);
    }

    .service-card__icon {
        font-size: 2rem;
    }

    .service-card__title {
        font-size: var(--text-lg);
    }

    /* ==================== Case Studies ==================== */
    .case-studies__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .case-study {
        padding: var(--space-6);
    }

    .case-study__number {
        font-size: var(--text-4xl);
    }

    .case-study__title {
        font-size: var(--text-xl);
    }

    /* ==================== Process ==================== */
    .process__timeline {
        flex-direction: column;
        gap: var(--space-5);
    }

    .process__timeline::before {
        display: none;
    }

    .process-step {
        padding: var(--space-5);
    }

    .process-step__number {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }

    .process-step__title {
        font-size: var(--text-base);
    }

    .process-step__description {
        font-size: var(--text-xs);
    }

    /* ==================== Statistics ==================== */
    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .stat-card {
        padding: var(--space-6);
    }

    .stat-card__number {
        font-size: var(--text-4xl);
        min-width: 100px;
    }

    .stat-card__label {
        font-size: var(--text-base);
    }

    /* ==================== Partnership Banner ==================== */
    .partnership-banner__title {
        font-size: var(--text-3xl);
    }

    .partnership-banner__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

    .partnership-banner__button {
        padding: var(--space-3) var(--space-8);
        font-size: var(--text-base);
        width: 100%;
        text-align: center;
    }

    /* ==================== FAQ ==================== */
    .faq__list {
        margin-top: var(--space-8);
    }

    .faq-item {
        padding: var(--space-5);
        margin-bottom: var(--space-3);
    }

    .faq-item__question h3 {
        font-size: var(--text-base);
    }

    .faq-item__icon {
        font-size: var(--text-xl);
        width: 26px;
        height: 26px;
    }

    .faq-item__answer p {
        font-size: var(--text-sm);
        padding-top: var(--space-3);
    }

    /* ==================== Final CTA ==================== */
    .final-cta__title {
        font-size: var(--text-4xl);
    }

    .final-cta__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }

    .final-cta__buttons {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }

    .final-cta__button {
        width: 100%;
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-base);
        justify-content: center;
    }
}

/* ========================================
   Small Mobile (< 640px) - 추가 최적화
   ======================================== */
@media (max-width: 640px) {
    /* Hero */
    .hero-container {
        padding: 0 var(--space-2); /* 작은 모바일: 패딩 더 축소 */
    }

    .hero__label {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero__title {
        font-size: clamp(32px, 8.5vw, 42px); /* 폰트 크기 증가 */
        height: 180px; /* 160px → 180px */
        margin-bottom: var(--space-5);
    }

    .hero__subtitle {
        font-size: var(--text-base); /* var(--text-sm) → var(--text-base) */
    }

    /* Section Headers */
    .section-subtitle {
        font-size: var(--text-xs);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-description {
        font-size: var(--text-sm);
    }

    /* Statistics - 1열 */
    .statistics__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stat-card__number {
        font-size: var(--text-5xl);
    }

    /* FAQ */
    .faq-item__question h3 {
        font-size: var(--text-sm);
        line-height: 1.5;
    }

    /* Final CTA */
    .final-cta__title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   Landscape Mode (가로 모드 최적화)
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .hero-form {
        padding: var(--space-5);
    }

    .section {
        padding: var(--space-8) 0;
    }
}
