/* ============================================
   펀킨메이트 - CSS Design System
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Colors */
    --primary: #3A4868;
    --primary-dark: #2a3650;
    --secondary: #6B7280;
    --accent: #C27B4A;
    --accent-light: #d4956a;

    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(194, 123, 74, 0.3);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #f5f5f5;
    --text-secondary: #c4c4c4;
    --text-muted: #a0a0a0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

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

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-title.center {
    text-align: center;
}

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

/* ============================================
   Preloader
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    text-align: center;
}

.preloader-logo img {
    width: 200px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    margin-top: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: preloaderBar 1s ease-in-out infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes preloaderBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 45px;
    transition: transform var(--transition-fast);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Sub-page spacing */
.sub-page section {
    padding-top: 160px;
    min-height: 100vh;
}

.sub-page .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

[data-theme="dark"] .sub-page .navbar {
    background: rgba(26, 26, 46, 0.95);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-cube-logo {
    width: 120px;
    height: auto;
    top: 20%;
    left: 10%;
    transform: rotate(15deg);
    animation-delay: 0s;
    opacity: 0.6;
}

.shape-sphere-logo {
    width: 160px;
    height: auto;
    top: 60%;
    right: 15%;
    transform: rotate(-15deg);
    animation-delay: -5s;
    opacity: 0.4;
}

.shape-cylinder-logo {
    width: 100px;
    height: auto;
    bottom: 20%;
    left: 25%;
    transform: rotate(30deg);
    animation-delay: -10s;
    opacity: 0.5;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 24px;
}

.hero-logo {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-logo img {
    max-width: 300px;
    margin: 0 auto;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.5s;
}

.title-word:nth-child(2) {
    animation-delay: 0.65s;
}

.title-word:nth-child(3) {
    animation-delay: 0.8s;
}

.title-word:nth-child(4) {
    animation-delay: 0.95s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.4s;
}

.hero-cta svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.8s;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(194, 123, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero:hover .cursor-glow {
    opacity: 1;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 32px;
}

.title-line {
    display: block;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.about-visual {
    position: relative;
    height: 400px;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.about-shape {
    position: absolute;
    border-radius: 20px;
}

.about-shape.shape-logo-main {
    width: 300px;
    height: auto;
    background: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.about-shape.shape-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    top: 20%;
    right: 10%;
    transform: rotate(-10deg);
}

.about-shape.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    bottom: 15%;
    left: 15%;
    transform: rotate(25deg);
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.philosophy-line {
    max-width: 800px;
    margin: 0 auto 60px;
    overflow: hidden;
}

.line-svg {
    width: 100%;
    height: 50px;
    color: var(--accent);
}

.line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease;
}

.philosophy-line.animated .line-path {
    stroke-dashoffset: 0;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.philosophy-card {
    perspective: 1000px;
    height: 350px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.philosophy-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-front {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.card-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    transform: rotateY(180deg);
}

.card-back p {
    font-size: 1rem;
    line-height: 1.8;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--accent);
    transition: transform var(--transition-normal);
}

.philosophy-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-front h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-front p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.services-tabs {
    margin-top: 60px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    position: relative;
}

.tab-btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.tab-btn.active {
    color: #fff;
    background: var(--primary);
}

.tab-btn:hover:not(.active) {
    color: var(--accent);
    transform: translateY(-2px);
}

.tab-contents {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all var(--transition-normal);
}

.tab-content.active {
    display: grid;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-image {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tab-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.image-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 100%;
    max-width: 200px;
    stroke: var(--primary);
    stroke-width: 1;
}

.tab-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-normal);
}

.tab-content.active .service-list li {
    opacity: 1;
    transform: translateX(0);
}

.tab-content.active .service-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.tab-content.active .service-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.tab-content.active .service-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* ============================================
   Process Section
   ============================================ */
.process {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--bg-tertiary);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition-normal);
}

.timeline-item.active .timeline-marker {
    background: var(--primary);
    border-color: var(--accent);
    animation: markerBounce 0.5s ease;
}

@keyframes markerBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.timeline-marker span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.timeline-item.active .timeline-marker span {
    color: #fff;
}

.timeline-content {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.timeline-item.active .timeline-content {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.timeline-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.portfolio-slider {
    margin-top: 60px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: infiniteScroll 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes infiniteScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.portfolio-item {
    flex: 0 0 350px;
    padding: 0 16px;
}

.portfolio-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.portfolio-placeholder:hover {
    transform: scale(1.05);
}

.portfolio-placeholder span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

.partner-card {
    padding: 48px 32px;
    background: var(--bg-secondary);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.partner-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.partner-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--accent);
    transition: transform var(--transition-normal);
}

.partner-card:hover .partner-icon {
    transform: scale(1.1);
}

.partner-icon svg {
    width: 100%;
    height: 100%;
}

.partner-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.partner-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: background var(--transition-normal);
}

.faq-item.active .faq-question {
    background: var(--accent);
    color: #fff;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 32px 24px;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: transform var(--transition-normal);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item:hover .info-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.info-text a,
.info-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-text a:hover {
    color: var(--accent);
}

.contact-cta {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.cta-button svg {
    width: 24px;
    height: 24px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pulse-btn {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: var(--shadow-md);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(194, 123, 74, 0.4);
    }
}

.cta-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    padding: 80px 0 40px;
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    opacity: 0.5;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 150px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-company h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-company ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-company li {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-company li span {
    font-weight: 600;
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent);
    transform: rotate(360deg);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding-top: 24px;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typing 3s steps(40) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ============================================
   Kakao Channel Button
   ============================================ */
.kakao-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform var(--transition-normal);
}

.kakao-btn:hover {
    transform: scale(1.1);
}

.kakao-btn svg {
    width: 32px;
    height: 32px;
    color: #3C1E1E;
}

/* ============================================
   Dark Mode Toggle
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all var(--transition-normal);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        height: 300px;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .process-timeline::before {
        display: none;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .tab-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tab-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-item {
        transform: none !important;
        /* Reset initial transform for simpler mobile animation */
        opacity: 1 !important;
    }

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

    .partner-card {
        padding: 30px 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo img {
        max-width: 180px;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .kakao-btn {
        bottom: 80px;
        width: 50px;
        height: 50px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .slider-track {
        animation: none;
    }
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}