:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #a855f7;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(90deg, #7162f2, #e04bab);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 4px;
    --radius-sm: 2px;
    --radius-full: 100px;

    /* Light theme variables */
    --bg-light: #ffffff;
    --bg-light-secondary: #f8fafc;
    --bg-card-light: #ffffff;
    --bg-card-light-hover: #f1f5f9;
    --text-dark: #1e293b;
    --text-dark-secondary: #334155;
    --text-dark-muted: #475569;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-light-hover: 0 20px 60px rgba(99, 102, 241, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #000000;
}

#heroVideo1 {
    height: 64.69vh !important;
    min-height: 64.69vh !important;
    top: 100px !important;
    transform: translateX(-50%) !important;
}

#heroVideo2 {
    height: 75vh !important;
    min-height: 75vh !important;
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg::after {
    display: none;
}



/* Hero Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -5s;
    animation-duration: 12s;
}

@keyframes orbFloat {

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

    25% {
        transform: translate(20px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-15px, 20px) scale(0.95);
    }

    75% {
        transform: translate(25px, 15px) scale(1.05);
    }
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particle-2 {
    left: 25%;
    top: 60%;
    animation-delay: -3s;
    animation-duration: 22s;
    width: 4px;
    height: 4px;
}

.particle-3 {
    left: 50%;
    top: 30%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.particle-4 {
    left: 70%;
    top: 70%;
    animation-delay: -9s;
    animation-duration: 16s;
    width: 8px;
    height: 8px;
}

.particle-5 {
    left: 85%;
    top: 25%;
    animation-delay: -12s;
    animation-duration: 24s;
    width: 5px;
    height: 5px;
}

.particle-6 {
    left: 40%;
    top: 80%;
    animation-delay: -4s;
    animation-duration: 19s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-kakao {
    background: #fff200;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 103, 0.3);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-kakao svg {
    width: 17px;
    height: 17px;
}

.btn-kakao:hover {
    background: #e6db00;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 103, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
}

.btn-lang {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14.4px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 24px 80px;
    z-index: 1;
    background: #000000;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(32px, 6.5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-cta .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.hero-cta .btn-lg svg {
    width: 15px;
    height: 15px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

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

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Hero Partners Marquee */
.hero-partners {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    z-index: 2;
    background: rgba(255, 255, 255, 0.07);
    padding: 12px 0;
    backdrop-filter: blur(5px);
}

.hero-partners-track {
    display: flex;
    gap: 48px;
    animation: heroMarquee 25s linear infinite;
    width: max-content;
}

@keyframes heroMarquee {
    0% {
        transform: translateX(0);
    }

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

.hero-partner-logo {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.hero-partner-logo:hover {
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-dark-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 12px;
}

.service-card {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    border: none;
    border-radius: var(--radius);
    transition: none;
    box-shadow: var(--shadow-light);
    color: white;
    width: 85%;
    margin: 0 auto;
}


.service-card.featured {
    /* Featured 스타일도 동일하게 유지하되, 필요시 미세 조정 */
    /* background: linear-gradient(...)  이미 공통 스타일 적용됨 */
    transform: scale(1.05);
    /* 강조를 위해 크기만 살짝 키움 */
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-full);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.service-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-link {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.service-link:hover {
    color: white;
}

/* Solutions */
.solutions {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: #E4E3DB;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-content {
    padding: 30px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-light-hover);
    border-color: var(--primary);
}

.solution-portfolio {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-light);
}

.solution-portfolio .portfolio-desc {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 12px;
}

.solution-portfolio .portfolio-tags {
    justify-content: flex-start;
}

.solution-portfolio .portfolio-tags span {
    background: var(--bg-light);
    color: var(--primary-dark);
    border: 1px solid var(--border-light);
}


.solution-content:hover::before {
    opacity: 1;
}

.solution-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.solution-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--text-dark);
}

.solution-desc {
    color: var(--text-dark-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-features {
    list-style: none;
    margin-bottom: 20px;
}

.solution-features li {
    padding: 8px 0;
    color: var(--text-dark-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.solutions .btn-outline {
    border-color: var(--border-light);
    color: var(--primary-dark);
    background: transparent;
}

.solutions .btn-outline:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.card-dots span:nth-child(1) {
    background: #ef4444;
}

.card-dots span:nth-child(2) {
    background: #eab308;
}

.card-dots span:nth-child(3) {
    background: #22c55e;
}

.card-body {
    padding: 20px;
    display: flex;
    gap: 16px;
    min-height: 240px;
}

.mock-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-item {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mock-item.active {
    background: var(--primary);
}

.mock-content {
    flex: 1;
}

.mock-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mock-card {
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.mock-editor {
    flex: 1;
    padding: 16px;
}

.editor-toolbar {
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 16px;
}

.editor-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editor-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.editor-line.long {
    width: 100%;
}

.editor-line.medium {
    width: 75%;
}

.editor-line.short {
    width: 50%;
}

.editor-block {
    height: 80px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    margin-top: 12px;
}

/* Portfolio */
.portfolio {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--bg-light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 60px 0 120px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

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

/* 그리드 아이템 래퍼 (기존 회전 래퍼 재활용) */
.fan-item {
    position: relative;
    width: 100%;
    left: auto;
    margin-left: 0;
    transform: none !important;
    transition: transform 0.3s ease, z-index 0s;
}

/* 실제 카드 비주얼 담당 */
.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* 아주 천천히 부드럽게 */
    background: var(--bg-card-light);
    width: 100%;
    /* 부모 너비 채움 */
    height: 420px;
    /* 350px * 1.2 */
    position: relative;
    /* absolute 제거 */
}

/* 각 래퍼의 회전 각도 제거 (그리드 레이아웃) */
.fan-item:nth-child(n) {
    transform: none;
    z-index: 1;
}

/* 호버 효과 */
.fan-item:hover {
    z-index: 100 !important;
    /* 맨 위로 */
}

.fan-item:hover .portfolio-item {
    transform: translateY(-15px) scale(1.03);
    /* 살짝 위로 뜨면서 조금 커짐 */
    box-shadow: 0 50px 100px rgba(99, 102, 241, 0.4);
    /* 그림자가 더 넓고 은은하게 퍼짐 */
    filter: brightness(1.05);
    /* 살짝 밝아져서 하이라이트 효과 */
}

/* 포트폴리오 이미지 높이는 100%로 변경해야 함 (부모가 350px이므로) */
.portfolio-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-icon {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.portfolio-icon svg {
    width: 64px;
    height: 64px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 24px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    background: rgba(15, 23, 42, 0.4);
    padding-bottom: 32px;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    background: var(--gradient);
    border-radius: var(--radius-full);
}

.portfolio-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.portfolio-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.portfolio-tags span {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-tags span {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.portfolio-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
}

.portfolio-result .result-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-result .result-value {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
}

/* About */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: #ffffff;
}

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

.about-desc {
    color: var(--text-dark-secondary);
    font-size: 17px;
    margin: 24px 0 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

.feature-text h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 14px;
    color: var(--text-dark-muted);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual {
    perspective: 1000px;
}

.tech-canvas {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.tech-core {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 10;
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    animation: corePulse 2s ease-in-out infinite;
}

.core-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.5);
}

.core-text {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary-light);
    letter-spacing: 2px;
}

@keyframes corePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Orbital Rings */
.orbital-ring {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.ring-1 {
    width: 220px;
    height: 220px;
    animation: orbit 15s linear infinite;
}

.ring-2 {
    width: 340px;
    height: 340px;
    animation: orbit 25s linear infinite reverse;
}

.ring-3 {
    width: 440px;
    height: 440px;
    animation: orbit 40s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.data-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-light);
}

.node-1 {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
}

.node-3 {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

/* Tech Cards */
.tech-card {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: white;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.tech-card-icon {
    font-size: 20px;
}

.tech-card-content h6 {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.tech-card-content p {
    font-size: 11px;
    color: var(--text-dark-muted);
    margin: 2px 0 0 0;
    font-weight: 600;
}

.expertise {
    top: 15%;
    left: 0;
}

.process {
    top: 45%;
    right: 0;
}

.support {
    bottom: 15%;
    left: 10%;
}

/* Performance Nodes */
.perf-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #0f172a;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    z-index: 15;
}

.p1 {
    top: 5%;
    right: 15%;
    animation: float 4s ease-in-out infinite;
}

.p2 {
    bottom: 5%;
    right: 25%;
    animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

/* Clients */
.clients {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #333d4b, #454f5d);
    color: white;
}

.clients .section-title {
    color: white;
}

.clients .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.clients-marquee {
    margin: 48px 0;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.marquee-track {
    display: flex;
    gap: 64px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.client-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
    color: var(--text-dark);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.testimonial-card {
    padding: 32px;
    background: #e4e3db;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-light-hover);
    background: #e4e3db;
}

.testimonial-content p {
    font-size: 15px;
    color: var(--text-dark-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, rgba(99, 102, 241, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.author-company {
    font-size: 13px;
    color: var(--text-dark-muted);
}

/* Contact */
.contact {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--bg-light);
}

.contact .section-title {
    color: var(--text-dark);
}

.contact .section-tag {
    color: var(--primary-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 60px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 15px;
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

/* Hide mobile KakaoTalk button on desktop */
.contact-kakao-mobile {
    display: none;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.form-buttons .btn-primary {
    flex: 0 0 auto;
    min-width: 69px;
}

.form-buttons .btn-kakao {
    flex: 0 0 auto;
    min-width: 88px;
}

.contact-form button,
.form-buttons .btn {
    margin: 0;
}

.form-buttons .btn-kakao {
    background: #fff200;
}

.form-buttons .btn-kakao:hover {
    background: #e6db00;
}

/* Contact CTA */
.contact-cta {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: var(--bg-light-secondary);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cta-subtitle {
    color: var(--text-dark-secondary);
    margin-bottom: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    width: 100%;
}

.form-group.full {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--bg-card-light);
    color: var(--text-dark);
}

.contact-form button {
    align-self: center;
    margin-top: 8px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, rgba(99, 102, 241, 0.8) 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: none;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, rgba(79, 70, 229, 0.8) 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.contact-info li {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {

    .solution-item,
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .solution-item.reverse {
        direction: ltr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .portfolio-grid,
    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

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

    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        display: none;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }

    /* Show mobile KakaoTalk button */
    .contact-kakao-mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 24px;
        background: #fff200;
    }

    .contact-kakao-mobile:hover {
        background: #e6db00;
    }
}