/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --bg-primary: #2B0A3D;
    --bg-secondary: #0f2027;
    --bg-light: #F5F5F5;
    --bg-dark: #111111;
    --bg-white: #ffffff;
    
    /* Accent Colors */
    --accent-primary: #00E0FF;
    --accent-secondary: #E91E63;
    --accent-gradient: linear-gradient(135deg, #00E0FF 0%, #E91E63 100%);
    
    /* Background Gradients */
    --gradient-hero: linear-gradient(135deg, #2B0A3D 0%, #0f2027 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-dark: #333333;
    --text-accent: var(--accent-primary);
    
    /* Card Effects */
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --section-padding: 100px 0;
    --container-padding: 0 24px;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--gradient-hero);
    position: relative;
    /* overflow 설정은 위의 html, body 규칙에서 통합 관리 */
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    line-height: 1.4;
    word-break: keep-all;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #333333; /* 검정색으로 변경 - 가독성 향상 */
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(43, 10, 61, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.nav-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-logo h2 span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(43, 10, 61, 0.3) 0%, rgba(15, 32, 39, 0.3) 100%),
        url('헤더섹션배경이미지.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #333333; /* 검정색으로 변경 - 가독성 향상 */
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-gradient);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 224, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: #f9f9f9;
    position: relative;
    text-align: center;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.about .section-title {
    color: var(--text-dark);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-message {
    font-size: clamp(1.1rem, 2vw, 1.3rem); /* 텍스트 크기 줄임 */
    line-height: 1.8;
    color: #444;
    text-align: center;
    margin-top: 2rem;
    font-weight: 400;
}

.about-message strong {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.services .about-features {
    margin-bottom: 0;
}

.feature {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* 빛나는 효과를 위해 추가 */
}

/* 서비스 특징 박스 빛나는 효과 */
.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

.feature h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

.feature p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--bg-white);
    position: relative;
}

.services .section-title {
    color: var(--text-dark);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo Services Section */
.logo-services {
    padding: var(--section-padding);
    background: #fafafa;
    position: relative;
    margin-top: 2rem;
}

.logo-services .section-title {
    color: var(--text-dark);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 224, 255, 0.1);
    overflow: hidden; /* 빛나는 효과를 위해 추가 */
}

/* 서비스 카드 빛나는 효과 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2; /* 빛나는 효과 위에 표시 */
}

/* Work Process Section */
.work-process {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 224, 255, 0.1);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-content {
    text-align: center;
}

.process-steps {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.process-steps strong {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.delivery-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.info-value {
    font-size: 1rem;
    color: var(--text-dark);
}

.info-value strong {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

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

.portfolio .section-title::after {
    background: var(--accent-gradient);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--bg-white);
    border: 1px solid rgba(0, 224, 255, 0.2);
    box-shadow: var(--card-shadow);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--card-shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(0.3) brightness(0.8);
    max-width: 100%;
    display: block;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1);
}

.portfolio-overlay {
    display: none;
}

/* .portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
} */

/* .portfolio-overlay h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

/* .portfolio-overlay p {
    font-size: 0.95rem;
    color: var(--text-secondary);
} */

/* Portfolio More Button */
.portfolio-more {
    text-align: center;
    margin-top: 4rem;
}

.portfolio-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    border: 2px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.portfolio-cta:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.portfolio-cta .arrow {
    font-size: 1.2rem;
    transition: var(--transition);
}

.portfolio-cta:hover .arrow {
    transform: translateX(5px);
}

/* Portfolio Item Link Styles */
.portfolio-item {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* Portfolio Trust Badge */
.portfolio-trust-badge {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 224, 51, 0.1), rgba(0, 224, 255, 0.1));
    border: 2px solid rgba(255, 224, 51, 0.4);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem auto 2rem;
    max-width: 650px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(255, 224, 51, 0.15);
    transition: all 0.3s ease;
}

.portfolio-trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(255, 224, 51, 0.2);
}

.trust-badge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trust-badge-header:hover {
    transform: scale(1.05);
}

.trust-badge-header:focus {
    outline: 2px solid rgba(255, 224, 51, 0.5);
    outline-offset: 2px;
}

.kmong-logo-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.kmong-icon {
    width: 100%;
    height: 100%;
}

.trust-badge-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FFE033, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.trust-badge-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Trust Indicator (for portfolio page) */
.portfolio-trust-indicator {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-indicator-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.trust-indicator-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.trust-indicator-badge:hover::before {
    left: 100%;
}

.trust-indicator-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Portfolio Highlight Text */
.highlight-text {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin: 3rem auto 2rem;
    font-weight: 500;
    font-style: italic;
    max-width: 600px;
    line-height: 1.6;
    position: relative;
}

.highlight-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    position: absolute;
    left: -30px;
    top: -10px;
    font-family: serif;
    opacity: 0.3;
}

.highlight-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    position: absolute;
    right: -30px;
    bottom: -20px;
    font-family: serif;
    opacity: 0.3;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--gradient-light);
    position: relative;
}

.testimonials .container {
    padding: 0 2rem; /* 기본 좌우 패딩 */
}

/* 모바일에서 testimonials 클릭 방지 */
@media (max-width: 768px) {
    .testimonial-image {
        pointer-events: none !important;
        cursor: default !important;
    }
    
    .testimonial-image:hover {
        transform: none !important;
        box-shadow: var(--card-shadow) !important;
    }
    
    .testimonial-image::before {
        display: none !important;
    }
    
    /* 모바일에서 히어로 서브타이틀 줄바꿈 표시 */
    .mobile-br {
        display: inline !important;
    }
}

/* 데스크톱에서는 모바일 줄바꿈 숨김 */
.mobile-br {
    display: none;
}

/* 모바일에서 푸터와 히어로 섹션 줄바꿈 표시 */
@media (max-width: 768px) {
    .mobile-br {
        display: inline !important;
    }
    
    /* 모바일에서는 구분선 숨김 */
    .desktop-separator {
        display: none !important;
    }
}

/* PC에서는 구분선 표시, 모바일 줄바꿈 숨김 */
.desktop-separator {
    display: inline;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

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

.testimonials-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* 기본 패딩 제거 */
}

.testimonial-image {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.testimonial-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.testimonial-image:hover img {
    transform: scale(1.05);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    animation: modalFadeIn 0.3s ease-in-out;
    overflow: hidden;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalSlideIn 0.3s ease-in-out;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* 이미지 로딩 실패 시 메시지 스타일 */
.modal-content img[alt*="불러올 수 없습니다"],
.modal-content img[alt*="로딩 중"] {
    color: var(--text-light);
    font-size: 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.close:hover {
    color: var(--accent-primary);
    transform: scale(1.2);
}

.modal-caption {
    margin-top: 15px;
    text-align: center;
}

.modal-caption p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* CTA Section */
.cta {
    padding: var(--section-padding);
    background: var(--gradient-dark);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.4; /* 줄간격 약간 증가 */
    word-break: keep-all; /* 데스크톱에서는 유지 */
    max-width: 800px; /* 최대 너비 제한 */
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 600px; /* 최대 너비 제한 */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.cta-button-large {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--accent-gradient);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    border: 2px solid rgba(0, 224, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.cta-button-large:hover::before {
    left: 100%;
}

.cta-button-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 224, 255, 0.4);
    border-color: var(--accent-primary);
}

/* Footer - Brand Style */
.footer {
    background: var(--gradient-dark);
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(161, 110, 255, 0.08) 50%, rgba(255, 94, 195, 0.08) 100%);
    pointer-events: none;
}

.footer-main {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand-section {
    margin-bottom: 30px;
}

.footer-brand-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.footer-brand-eng {
    color: #cccccc;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.footer-company-info {
    margin-bottom: 30px;
}

.footer-company-info p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.policy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.policy-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.footer-service-desc {
    margin-bottom: 20px;
}

.footer-service-desc p {
    color: #999999;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-warning {
    color: #ff6b6b !important;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

/* Policy Modal Styles */
.policy-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: policyModalFadeIn 0.3s ease-out;
}

.policy-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 모바일에서는 하단에서 슬라이드업 */
@media (max-width: 768px) {
    .policy-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .policy-modal.show {
        align-items: flex-end;
        padding: 0;
    }
    
    .policy-modal-content {
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        width: 100%;
        max-width: 100%;
        animation: policyModalSlideUp 0.3s ease-out;
    }
}

@keyframes policyModalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.policy-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: policyModalSlideIn 0.3s ease-out;
}

.policy-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
}

.policy-modal-header h2 {
    margin: 0;
    color: #333333;
    font-size: 1.4rem;
    font-weight: 700;
}

.policy-close {
    font-size: 28px;
    font-weight: bold;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
    background: none;
    border: none;
}

.policy-close:hover {
    color: #333333;
}

.policy-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.policy-modal-body h3 {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.policy-modal-body ul {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 12px 0;
    padding-left: 20px;
}

.policy-modal-body li {
    margin-bottom: 8px;
}

.policy-modal-body .highlight {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin: 16px 0;
}

.policy-modal-body .warning {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin: 16px 0;
    font-weight: 500;
}

.policy-modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.policy-confirm-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.policy-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

@keyframes policyModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes policyModalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .nav-logo h2 span {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-item {
        width: 100%;
        box-sizing: border-box;
    }

    .portfolio-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    
    .testimonials-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem !important; /* 간격 최소화 */
        margin-top: 0.5rem !important; /* 상단 여백 최소화 */
        max-width: 100% !important; /* 최대 너비 100% */
        padding: 0 0.5rem !important; /* 좌우 패딩 최소화 */
    }
    
    .footer-brand-name {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .footer-policy-links {
        gap: 10px;
    }
    
    .policy-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .footer-company-info p,
    .footer-service-desc p {
        font-size: 0.8rem;
    }
    
    .policy-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .policy-modal-header {
        padding: 16px 16px 0;
    }
    
    .policy-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .policy-modal-body {
        padding: 16px;
    }
    
    .policy-modal-body h3 {
        font-size: 1rem;
    }
    
    .policy-modal-body p,
    .policy-modal-body ul {
        font-size: 0.9rem;
    }
    
    .policy-modal-footer {
        padding: 12px 16px 16px;
    }
    
    .policy-confirm-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 포트폴리오 그리드 모바일 최적화 */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .portfolio-item {
        aspect-ratio: auto;
        min-height: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .portfolio-image img,
    .portfolio-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
        max-width: 100%;
    }

    /* 포트폴리오 오버레이 모바일에서 숨김 */
    .portfolio-overlay {
        opacity: 0;
        pointer-events: none;
    }

    /* 전체 이미지 반응형 강화 */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* 그리드 컨테이너 overflow 방지 */
    .container,
    .portfolio-container {
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    /* CTA 섹션 모바일 최적화 */
    .cta-title {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
        word-break: normal !important; /* keep-all 해제 */
        word-wrap: break-word !important; /* 자연스러운 줄바꿈 */
        margin-bottom: 1rem !important;
        padding: 0 1rem !important; /* 좌우 패딩 추가 */
    }
    
    .cta-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important; /* 좌우 패딩 추가 */
        word-break: normal !important;
        color: #cccccc !important; /* CTA는 어두운 배경이므로 밝은 색상 유지 */
    }
    
    .cta-button-large {
        font-size: 1.1rem !important;
        padding: 1.2rem 2.5rem !important;
        margin: 0 1rem !important; /* 좌우 여백 추가 */
    }
    
    .feature,
    .service-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .about-message {
        font-size: 1.1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .work-process {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .process-steps {
        font-size: 0.95rem;
        padding: 0;
    }

    .delivery-info {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }

        .info-item {
        text-align: center;
        width: 100%;
    }

    .highlight-text {
        font-size: 1rem;
        margin: 2rem auto 1.5rem;
        padding: 0 2rem;
    }

    .highlight-text::before,
    .highlight-text::after {
        display: none;
    }
    
    .portfolio-trust-badge {
        margin: 2rem auto 1.5rem;
        padding: 1.5rem;
    }
    
    .trust-badge-header {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .kmong-logo-container {
        width: 32px;
        height: 32px;
    }
    
    .trust-badge-title {
        font-size: 1rem;
    }
    
    .trust-badge-text {
        font-size: 1rem;
    }
    
    .portfolio-trust-indicator {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }
    
    .trust-indicator-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .trust-indicator-text {
        font-size: 0.9rem;
    }
     
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        min-height: 250px;
    }
    
    /* 모바일에서 고객후기 최적화 - 여백 최소화 */
    .testimonials {
        padding: 15px 0 5px 0 !important; /* 상하 여백 대폭 감소 */
    }
    
    .testimonials .container {
        padding: 0 0.5rem !important; /* 좌우 패딩 최소화 */
        max-width: 100% !important; /* 최대 너비 100% */
    }
    
    .testimonials .section-title {
        margin-bottom: 0.5rem !important; /* 제목 하단 여백 최소화 */
        font-size: 1.8rem !important; /* 제목 크기 조정 */
    }
    
    .testimonials .section-subtitle {
        margin-bottom: 0.8rem !important; /* 부제목 하단 여백 최소화 */
        font-size: 0.9rem !important; /* 부제목 크기 조정 */
        color: #333333 !important; /* 검정색으로 변경 - 가독성 향상 */
    }
    
    .testimonials-gallery {
        grid-template-columns: 1fr;
        gap: 0.3rem !important; /* 간격 최소화 */
        max-width: 100% !important; /* 최대 너비 100%로 변경 */
        margin: 0 auto !important; /* 여백 완전 제거, 중앙 정렬만 */
        padding: 0 0.5rem !important; /* 좌우 패딩 최소화 */
    }

    .testimonial-image {
        aspect-ratio: auto; /* 원본 이미지 비율 유지 */
        cursor: default !important; /* 클릭 커서 제거 */
        pointer-events: none !important; /* 클릭 완전 비활성화 */
        margin: 0 !important; /* 마진 제거 */
        padding: 0 !important; /* 패딩 제거 */
        width: 100% !important; /* 너비 100% */
        box-sizing: border-box !important; /* 박스 사이징 */
        border-radius: 8px !important; /* 살짝 둥근 모서리 */
    }
    
    .testimonial-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* 이미지 전체가 보이도록 */
        border-radius: 8px !important;
    }
    
    .testimonial-image:hover {
        transform: none !important; /* 호버 효과 제거 */
        box-shadow: var(--card-shadow) !important; /* 기본 그림자만 유지 */
    }
    
    .testimonial-image::before {
        display: none !important; /* 빛나는 효과 제거 */
    }

    .modal {
        padding: 20px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        z-index: 9999 !important;
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch;
        /* 모바일에서 스크롤 이슈 방지 */
        box-sizing: border-box;
        margin: 0 !important;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        /* 모바일 중앙정렬 강화 */
        margin: auto;
        transform: translate(0, 0);
        box-sizing: border-box;
    }

    .modal-content img {
        max-width: 100%;
        max-height: 85vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }

    .close {
        position: absolute;
        top: -40px;
        right: 0;
        font-size: 30px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }

    .modal-caption p {
        font-size: 1rem;
    }

    .cta-button,
    .cta-button-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 커스텀 스크롤바 제거 - 기본 스크롤바 사용 */

/* 전체 페이지 스크롤 확실히 활성화 */
html, body {
    overflow-x: hidden; /* 가로 스크롤만 숨김 */
    overflow-y: auto;   /* 세로 스크롤 활성화 */
} 

/* 🎬 WINFLOW 스타일 완전한 애니메이션 시스템 */

/* 히어로 섹션 특별 효과 */
.hero-title {
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #a16eff, #ff5ec3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 40px rgba(161, 110, 255, 0.4);
    }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 1.5rem 0;
}

.cta-button {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

/* 네비게이션 애니메이션 */
.nav-logo h2 {
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.nav-menu a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    transition: width 0.3s ease;
}

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

/* 섹션 제목 애니메이션 */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #00d4ff, #a16eff);
    transform: translateX(-50%);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.animate::after {
    width: 60px;
}

/* 서비스 카드 간단한 호버 효과 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 포트폴리오 아이템 간단한 호버 */
.portfolio-item {
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative; /* 빛나는 효과를 위해 추가 */
}

/* 포트폴리오 이미지 빛나는 효과 */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.6s;
    z-index: 2;
}

.portfolio-item:hover::before {
    left: 100%;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 고객 후기 이미지 간단한 호버 */
.testimonial-image {
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative; /* 빛나는 효과를 위해 추가 */
}

/* 고객 후기 이미지 빛나는 효과 */
.testimonial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
    z-index: 2;
}

.testimonial-image:hover::before {
    left: 100%;
}

.testimonial-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 🎬 다양한 방향 애니메이션 키프레임들 */

/* 1. 위에서 떨어지면서 바운스 */
@keyframes dropBounce {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateY(15px) scale(1.1);
    }
    80% {
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2. 타이핑 효과와 함께 페이드인 */
@keyframes typingFade {
    0% {
        opacity: 0;
        transform: scale(0.9);
        letter-spacing: 10px;
    }
    50% {
        opacity: 0.7;
        letter-spacing: 2px;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: normal;
    }
}

/* 3. 웨이브 형태로 위로 */
@keyframes waveUp {
    0% {
        opacity: 0;
        transform: translateY(50px) skewX(20deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) skewX(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) skewX(0deg);
    }
}

/* 4. 3D 회전하면서 등장 */
@keyframes rotate3D {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg) scale(0.5);
    }
    70% {
        opacity: 0.8;
        transform: perspective(400px) rotateY(-10deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg) scale(1);
    }
}

/* 5. 펄스 효과 */
@keyframes pulseGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: 0 0 0 rgba(0, 212, 255, 0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* 6. 지그재그 움직임 */
@keyframes zigzagMove {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(20px) rotate(10deg);
    }
    25% {
        opacity: 0.3;
        transform: translateX(20px) translateY(-10px) rotate(-5deg);
    }
    75% {
        opacity: 0.8;
        transform: translateX(-10px) translateY(5px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

/* 7. 스프링 바운스 */
@keyframes springBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3) rotate(90deg);
    }
    65% {
        transform: scale(0.9) rotate(45deg);
    }
    80% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 8. 매트릭스 형태 등장 */
@keyframes matrixReveal {
    0% {
        opacity: 0;
        transform: scale(0.1) rotate(45deg) skewX(45deg);
        filter: blur(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-10deg) skewX(-10deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) skewX(0deg);
        filter: blur(0px);
    }
}

/* 9. 고급 텍스트 글리치 효과 */
@keyframes textGlitch {
    0% {
        opacity: 0;
        transform: translate(-2px, -2px) skew(2deg);
        text-shadow: 2px 2px #ff0080, -2px -2px #00ff80;
    }
    25% {
        opacity: 0.7;
        transform: translate(1px, 1px) skew(-1deg);
        text-shadow: -1px 1px #ff0080, 1px -1px #00ff80;
    }
    50% {
        opacity: 0.9;
        transform: translate(-1px, 1px) skew(1deg);
    }
    75% {
        transform: translate(1px, -1px) skew(-0.5deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) skew(0deg);
        text-shadow: none;
    }
}

/* 10. 파티클 효과 */
@keyframes particleExplosion {
    0% {
        opacity: 0;
        transform: scale(0.2);
        box-shadow: 
            0 0 0 0 rgba(0, 212, 255, 1),
            0 0 0 0 rgba(161, 110, 255, 1),
            0 0 0 0 rgba(255, 94, 195, 1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow: 
            10px 10px 20px 0 rgba(0, 212, 255, 0.4),
            -10px -10px 20px 0 rgba(161, 110, 255, 0.4),
            10px -10px 20px 0 rgba(255, 94, 195, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 
            0 0 0 0 rgba(0, 212, 255, 0),
            0 0 0 0 rgba(161, 110, 255, 0),
            0 0 0 0 rgba(255, 94, 195, 0);
    }
}

/* 강조 텍스트 빛나는 효과 */
.highlight-text {
    background: linear-gradient(135deg, #00d4ff, #a16eff, #ff5ec3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    font-weight: 600;
}

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

/* 섹션별 특별 애니메이션 클래스 */
.animate-slide-left-rotate {
    animation: slideLeftRotate 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-drop-bounce {
    animation: dropBounce 1.0s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-rotate-zoom {
    animation: springBounce 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-zigzag {
    animation: zigzagMove 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-spin-scale {
    animation: rotate3D 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-matrix {
    animation: matrixReveal 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 왼쪽에서 회전하면서 날아오기 */
@keyframes slideLeftRotate {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-20deg) scale(0.7);
    }
    70% {
        opacity: 0.8;
        transform: translateX(10px) rotate(5deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

/* 🎨 간단하고 자연스러운 호버 효과들 */

/* CTA 버튼 간단한 효과 */
.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 📱 모바일/태블릿 애니메이션 최적화 */
@media (max-width: 1024px) {
    /* 모바일에서 애니메이션 성능 최적화 */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    /* 텍스트 애니메이션 요소들 모바일 최적화 */
    .hero-title,
    .hero-subtitle,
    .section-title,
    .section-subtitle,
    .about-message,
    .highlight-text {
        will-change: opacity, transform;
    }
    
    /* 호버 효과를 터치 친화적으로 */
    .service-card,
    .feature,
    .portfolio-item,
    .testimonial-image {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        /* tap-highlight-color는 비표준 속성이므로 제거 */
    }
    
    /* 모바일에서 부드러운 스크롤 */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* 메인페이지 포트폴리오 그리드 추가 반응형 */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
        max-width: none;
    }
}

/* 모바일에서 메인페이지 포트폴리오 1열로 */
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .portfolio-item {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4/3;
        margin-bottom: 1rem;
    }
} 