/* INDL Corporation - Tech-Heavy Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FF9F66;
    --primary-dark: #FF8447;
    --secondary: #4A9EFF;
    --accent: #9D4EDD;
    --gradient-primary: linear-gradient(135deg, #FF9F66 0%, #FF8447 100%);
    --gradient-tech: linear-gradient(135deg, #FF9F66 0%, #4A9EFF 50%, #9D4EDD 100%);
    --bg-darkest: #1a1a1a;
    --bg-darker: #242424;
    --bg-dark: #2a2a3e;
    --bg-card: #2d2d3d;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 159, 102, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(90deg, rgba(255, 159, 102, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 159, 102, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 159, 102, 0.1);
}

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

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.logo::before {
    content: '>';
    position: absolute;
    left: -20px;
    color: var(--primary);
    animation: blink 1.5s infinite;
}

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

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    transition: all 0.3s ease;
}

nav a::before {
    content: '//';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--primary);
    transition: all 0.3s ease;
}

nav a:hover::before {
    opacity: 1;
    left: -20px;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.language-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    gap: 0.5rem;
    background: rgba(45, 45, 61, 0.95);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 159, 102, 0.2);
}

.lang-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 159, 102, 0.2);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-darkest);
    box-shadow: var(--shadow-glow);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darkest);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 159, 102, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-darkest);
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 159, 102, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 159, 102, 0.05) 0%, rgba(74, 158, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card p { color: var(--text-secondary); }

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 159, 102, 0.1);
    border: 1px solid rgba(255, 159, 102, 0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 159, 102, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 159, 102, 0.3);
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 159, 102, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.8rem; color: var(--text-secondary); }
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 159, 102, 0.1);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 159, 102, 0.2);
    }
    nav ul.active { right: 0; }
    .menu-toggle { display: flex; }
    .hero { min-height: 80vh; }
    .language-switcher { bottom: 20px; right: 20px; }
}

.page-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 1s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loader {
    width: 60px; height: 60px;
    border: 4px solid rgba(255, 159, 102, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.floating-shapes {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 300px; height: 300px;
    background: var(--gradient-primary);
    top: 10%; left: 5%;
}

.shape-2 {
    width: 200px; height: 200px;
    background: var(--gradient-tech);
    top: 60%; right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px; height: 150px;
    background: var(--secondary);
    bottom: 20%; left: 50%;
    animation-delay: 10s;
}

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

/* === 고급 애니메이션 === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 159, 102, 0.4), 0 0 50px rgba(255, 159, 102, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 159, 102, 0.6), 0 0 80px rgba(255, 159, 102, 0.3);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 159, 102, 0.3);
        box-shadow: 0 0 20px rgba(255, 159, 102, 0.2);
    }
    50% {
        border-color: rgba(255, 159, 102, 0.8);
        box-shadow: 0 0 40px rgba(255, 159, 102, 0.4);
    }
}

/* 스크롤 애니메이션 클래스 */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animate-active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate-left.animate-active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate-right.animate-active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate-scale.animate-active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger 애니메이션 */
.stagger-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.animate-active .stagger-animate:nth-child(1) { 
    transition-delay: 0.1s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(2) { 
    transition-delay: 0.2s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(3) { 
    transition-delay: 0.3s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(4) { 
    transition-delay: 0.4s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(5) { 
    transition-delay: 0.5s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(6) { 
    transition-delay: 0.6s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(7) { 
    transition-delay: 0.7s; opacity: 1; transform: translateY(0);
}
.stagger-container.animate-active .stagger-animate:nth-child(8) { 
    transition-delay: 0.8s; opacity: 1; transform: translateY(0);
}

/* 카드 3D 효과 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* 글로우 효과 */
.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* 플로팅 효과 */
.float-effect {
    animation: float 6s ease-in-out infinite;
}

/* 펄스 효과 */
.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* 그라디언트 애니메이션 */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* 마우스 트래킹 글로우 */
.mouse-glow {
    position: relative;
    overflow: hidden;
}

.mouse-glow::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 159, 102, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mouse-glow:hover::before {
    opacity: 1;
}

/* 진보된 카드 호버 */
.advanced-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.advanced-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 159, 102, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.advanced-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 159, 102, 0.3);
}

/* 텍스트 글리치 효과 */
.glitch-text {
    position: relative;
}

.glitch-text:hover {
    animation: glitch 0.5s;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* 카운트업 애니메이션 */
.countup {
    font-variant-numeric: tabular-nums;
}

/* 타이핑 효과 */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary);
    }
}

/* 패럴랙스 레이어 */
.parallax-layer {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 입자 효과 컨테이너 */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* 진보된 로딩 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: 10000;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9998;
    transition: width 0.1s;
}

/* 섹션 구분선 애니메이션 */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 4rem 0;
    opacity: 0.3;
}

/* 반짝이는 버튼 */
.shimmer-button {
    position: relative;
    overflow: hidden;
}

.shimmer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

/* 애니메이션 안전 장치 - 내용이 항상 보이도록 */
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right,
.scroll-animate-scale,
.stagger-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* 애니메이션 활성화시에만 효과 적용 */
.animate-enabled .scroll-animate {
    opacity: 0;
    transform: translateY(60px);
}

.animate-enabled .scroll-animate.animate-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-enabled .scroll-animate-left {
    opacity: 0;
    transform: translateX(-80px);
}

.animate-enabled .scroll-animate-left.animate-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-enabled .scroll-animate-right {
    opacity: 0;
    transform: translateX(80px);
}

.animate-enabled .scroll-animate-right.animate-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-enabled .scroll-animate-scale {
    opacity: 0;
    transform: scale(0.85);
}

.animate-enabled .scroll-animate-scale.animate-active {
    opacity: 1;
    transform: scale(1);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-enabled .stagger-animate {
    opacity: 0;
    transform: translateY(40px);
}

.animate-enabled .stagger-container.animate-active .stagger-animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   모바일 최적화 추가
   ========================================== */

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    /* 터치 디바이스 전용 */
    * {
        -webkit-tap-highlight-color: rgba(255, 159, 102, 0.2);
    }
    
    a, button {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 159, 102, 0.3);
    }
}

/* 모바일 버튼 크기 확대 */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 100%;
    }
    
    /* 입력 필드 최적화 */
    input, textarea, select {
        font-size: 16px !important; /* iOS 줌 방지 */
        min-height: 48px;
        padding: 0.8rem;
        touch-action: manipulation;
    }
    
    textarea {
        min-height: 120px;
    }
    
    /* 모바일 헤더 최적화 */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(26, 26, 26, 0.95);
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    /* 모바일 메뉴 개선 */
    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--primary);
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(255, 159, 102, 0.2);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(255, 159, 102, 0.1);
        transform: translateX(-5px);
    }
    
    /* Hero 섹션 모바일 */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    /* 카드 모바일 */
    .card, .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card h3, .service-card h3 {
        font-size: 1.5rem;
    }
    
    /* 그리드 모바일 */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* 통계 모바일 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 섹션 타이틀 모바일 */
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* 기술 사양 박스 모바일 */
    .tech-spec-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .tech-spec-box h4 {
        font-size: 1.1rem;
    }
    
    .tech-details {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    /* 리스트 모바일 */
    .feature-list li {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    /* CTA 섹션 모바일 */
    .cta-section {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* 컨테이너 모바일 */
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* 언어 전환 버튼 모바일 */
    .language-switcher {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 60px;
    }
    
    /* 폼 모바일 */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* 테이블 모바일 - 스크롤 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    /* 코드 블록 모바일 */
    pre, code {
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 모달/팝업 모바일 */
    .modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* 스크롤 인디케이터 모바일 */
    .scroll-indicator {
        height: 3px;
    }
    
    /* 페이지 로더 모바일 */
    .loader {
        width: 50px;
        height: 50px;
    }
    
    /* 플로팅 셰이프 모바일에서 숨김 */
    .floating-shapes {
        display: none;
    }
    
    /* 입자 효과 모바일에서 감소 */
    .particles-container {
        display: none;
    }
    
    /* 3D 효과 모바일에서 비활성화 */
    .card-3d:hover {
        transform: none;
    }
    
    /* 애니메이션 간소화 */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* 작은 모바일 (iPhone SE 등) */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .card, .service-card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 가로 모드 모바일 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    nav ul {
        padding: 4rem 2rem 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 터치 스크롤 최적화 */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}

/* 모바일 Safe Area (노치 대응) */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
    
    header {
        padding-top: max(0, env(safe-area-inset-top));
    }
    
    .language-switcher {
        bottom: max(1rem, env(safe-area-inset-bottom));
        right: max(1rem, env(safe-area-inset-right));
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .card, .service-card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* 다크 모드 강제 (시스템 설정 무시) */
@media (prefers-color-scheme: light) {
    :root {
        color-scheme: dark;
    }
}

/* 모바일 성능 최적화 */
@media (max-width: 768px) {
    * {
        will-change: auto !important;
    }
    
    .card, .service-card {
        will-change: transform;
    }
}
