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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(-45deg, #215aff, #4054b2, #3498db);
    background-size: 300% 300%;
    color: white;
    animation: buttonGradient 4s ease infinite;
    box-shadow: 0 4px 15px rgba(33, 90, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 90, 255, 0.4);
    animation-duration: 2s;
}

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

.btn-secondary {
    background: white;
    color: #215aff;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.btn-outline {
    background: transparent;
    color: #215aff;
    border: 2px solid #215aff;
}

.btn-outline:hover {
    background: #215aff;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h2 {
    color: #215aff;
    font-size: 24px;
    font-weight: 800;
}

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

.nav-link {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #215aff;
}

.contact-btn {
    background: #215aff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
}

.contact-btn:hover {
    background: #1a41ad;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000; /* 비디오 로드 전 기본 배경 */
}

/* 비디오 배경 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* 어두운 오버레이 필터 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(45deg, rgba(33, 90, 255, 0.18) 0%, rgba(64, 84, 178, 0.18) 100%);
    z-index: 5;
}

/* 원형 그라디언트 회전 효과 (비디오 위에) */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(26, 188, 156, 0.12) 0%,
        rgba(52, 152, 219, 0.12) 25%,
        rgba(155, 89, 182, 0.12) 50%,
        rgba(231, 76, 60, 0.12) 75%,
        rgba(241, 196, 15, 0.12) 100%);
    animation: rotateGradient 25s linear infinite;
    z-index: 6;
}

/* 두 번째 레이어 - 더 복잡한 패턴 */
.hero::after {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg,
        rgba(255, 255, 255, 0.06) 0deg,
        transparent 60deg,
        rgba(255, 255, 255, 0.03) 120deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.05) 240deg,
        transparent 300deg,
        rgba(255, 255, 255, 0.06) 360deg);
    animation: rotateGradient 35s linear infinite reverse;
    z-index: 7;
}

/* 부유하는 원형 요소들 */
.hero-floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: floatUpDown 6s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.floating-circle:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.floating-circle:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 6s;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) scale(1.05);
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 50;
    width: 100%;
}

.hero-badge {
    display: block !important;
    padding: 0;
    margin-bottom: 30px !important;
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: none;
    border: none;
    backdrop-filter: none;
    line-height: 1.2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    opacity: 0;
    animation: slideInUp 1.2s ease 0.5s forwards;
}

.main-message {
    color: white !important;
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    display: block !important;
    margin: 0 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    line-height: 1.1 !important;
}

.sub-message {
    color: white !important;
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    display: block !important;
    margin: 0 !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.1 !important;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    line-height: 1.8;
    animation: slideInUp 1.2s ease 1s forwards;
}

.hero-subtitle strong {
    color: #ffd700;
    font-weight: 600;
}

.highlight-text {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    opacity: 0;
    animation: slideInUp 1.2s ease 1.3s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
    opacity: 0;
    animation: slideInUp 1.2s ease 1.6s forwards;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideInUp 1.2s ease 2s forwards, bounce 2s ease-in-out 3s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

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

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222222;
}

.section-header p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* AI Services Detail Section */
.ai-services {
    background: white;
    padding: 100px 0;
    position: relative;
}

.ai-services-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.ai-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ai-card {
    border-radius: 25px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-card-blue {
    background: linear-gradient(135deg, #4285f4, #3367d6);
}

.ai-card-dark-blue {
    background: linear-gradient(135deg, #1a237e, #3f51b5);
}

.ai-card-purple {
    background: linear-gradient(135deg, #6a1b9a, #9c27b0);
}

.ai-card-gray {
    background: linear-gradient(135deg, #546e7a, #78909c);
}

.ai-card-content {
    flex: 1;
    z-index: 2;
}

.ai-card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ai-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.ai-card-icon {
    flex-shrink: 0;
    margin-left: 20px;
    z-index: 2;
}

/* SaaS Icon Styles */
.saas-icon {
    position: relative;
    width: 120px;
    height: 100px;
}

.cloud-shape {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.device-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-icons i {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: deviceFloat 3s ease-in-out infinite;
}

.device-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.device-icons i:nth-child(3) {
    animation-delay: 1s;
}

.device-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

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

/* Chatbot Mockup Styles */
.chatbot-mockup {
    width: 120px;
    height: 100px;
    position: relative;
}

.phone-frame {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 10px;
    height: 100%;
    position: relative;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.chat-messages {
    font-size: 0.7rem;
    line-height: 1.3;
}

.message {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 5px 8px;
    margin-bottom: 5px;
}

.typing {
    opacity: 0.7;
    font-style: italic;
    animation: typing 2s ease-in-out infinite;
}

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

/* AI Robot Styles */
.ai-robot {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-head {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.robot-eyes {
    display: flex;
    gap: 8px;
}

.eye {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: robotBlink 3s ease-in-out infinite;
}

@keyframes robotBlink {
    0%, 95%, 100% { transform: scaleY(1); }
    97.5% { transform: scaleY(0.1); }
}

.speech-bubbles {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bubble {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.6rem;
    text-align: center;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble:nth-child(2) {
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    animation-delay: 2s;
}

@keyframes bubbleFloat {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    33% { opacity: 1; transform: translateY(-3px); }
    66% { opacity: 0.8; transform: translateY(0); }
}

/* Search Interface Styles */
.search-interface {
    width: 100px;
    height: 80px;
    position: relative;
}

.browser-window {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    height: 100%;
    position: relative;
}

.browser-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin-bottom: 10px;
}

.search-box {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.search-box i {
    font-size: 1rem;
    opacity: 0.8;
}

.cursor {
    width: 0;
    height: 0;
    border-left: 8px solid rgba(255, 255, 255, 0.8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    position: absolute;
    bottom: 10px;
    right: 15px;
    animation: cursorMove 2s ease-in-out infinite;
}

@keyframes cursorMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* Right Side Services List */
.ai-services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #215aff;
    box-shadow: 0 10px 25px rgba(33, 90, 255, 0.1);
    transform: translateY(-2px);
}

.service-item h4 {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.service-item .highlight {
    color: #215aff;
    font-weight: 700;
}

.service-item p {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for AI Services */
@media (max-width: 968px) {
    .ai-services-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ai-card {
        flex-direction: column;
        text-align: center;
        min-height: 200px;
        padding: 30px 20px;
    }
    
    .ai-card-icon {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .ai-card-content h3 {
        font-size: 1.5rem;
    }
    
    .service-item {
        padding: 25px 20px;
    }
    
    .service-item h4 {
        font-size: 1.2rem;
    }
}


.services {
    background: #f8f9fa;
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 90, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #222222;
}

.service-card p {
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: white;
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding-top: 100px;
}

.portfolio-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222222;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 250px;
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.portfolio-image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Web 프로젝트 이미지들의 배경색을 흰색으로 설정 */
.portfolio-image img[src*="web_project_2"],
.portfolio-image img[src*="web_project_3"] {
    background-color: white;
    padding: 20px;
    object-fit: contain;
}

.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.placeholder-content span {
    font-size: 1.2rem;
    font-weight: 600;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #222222;
}

.portfolio-content p {
    color: #666666;
    margin-bottom: 25px;
}

/* Process Section */
.process {
    background: #f8f9fa;
}

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

.process-step {
    background: white;
    padding: 30px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
}

.process-step:hover {
    background: #215aff;
    color: white;
    border-color: #215aff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(33, 90, 255, 0.3);
    z-index: 2;
}



.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.process-step:hover .step-icon {
    background: white;
    color: #215aff;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.process-step p {
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.process-step:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    color: #222222;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #215aff;
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: #666666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #222222;
}

.contact-details p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #215aff;
    margin-bottom: 5px;
}

.contact-details span {
    color: #666666;
    font-size: 0.9rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group:nth-child(3),
.form-group:nth-child(4) {
    grid-template-columns: 1fr;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #215aff;
    box-shadow: 0 0 0 3px rgba(33, 90, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Form Message Styles */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

#submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(33, 90, 255, 0.3) !important;
}

/* Footer */
.footer {
    background: #222222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #215aff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-contact h4,
.footer-services h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: #cccccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #215aff;
    width: 16px;
}

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

.footer-services li {
    margin-bottom: 10px;
}

.footer-services a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-services a:hover {
    color: #215aff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 120px 0 150px;
    }

    .services {
        position: relative;
        padding: 60px 0;
    }

    .portfolio {
        margin-top: 0;
        padding-top: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .hero-badge {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .main-message {
        font-size: 3.2rem !important;
        margin: 0 !important;
        margin-bottom: 1rem !important;
        line-height: 1.1 !important;
    }

    .sub-message {
        font-size: 3.2rem !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .process-step {
        padding: 25px 10px;
    }
    
    .process-step h4 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.8rem;
    }

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

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

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

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

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

    .hero-badge {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .main-message {
        font-size: 2.6rem !important;
        margin: 0 !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.1 !important;
    }

    .sub-message {
        font-size: 2.6rem !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 30px 20px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .process-step {
        padding: 20px 8px;
    }
    
    .process-step h4 {
        font-size: 0.9rem;
    }
    
    .process-step p {
        font-size: 0.75rem;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Homepage Generator Section */
.homepage-generator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.homepage-generator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(33, 90, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 84, 178, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.generator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Generator Form Styles */
.generator-form {
    position: sticky;
    top: 120px;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.form-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #215aff;
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 90, 255, 0.1);
    transform: translateY(-1px);
}

/* Color Theme Selection */
.color-themes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.color-theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
    position: relative;
}

.color-theme:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-theme.active {
    border-color: #215aff !important;
    background: rgba(33, 90, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 90, 255, 0.3) !important;
}

.color-theme.active .color-preview {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(33, 90, 255, 0.4);
}

.color-theme.active span {
    color: #215aff !important;
    font-weight: 700 !important;
}

.color-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.color-theme:hover .color-preview {
    transform: scale(1.1);
}

/* 10가지 색상 테마 정의 */
.color-preview.blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.color-preview.green {
    background: linear-gradient(135deg, #059669, #047857);
}

.color-preview.purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.color-preview.orange {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.color-preview.red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.color-preview.white {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 3px solid #e2e8f0;
}

.color-preview.black {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.color-preview.yellow {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.color-preview.indigo {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

.color-preview.gray {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.color-theme span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666666;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* 밝은 배경색 테마들 - 어두운 글씨 */
.color-theme[data-theme="yellow"] span,
.color-theme[data-theme="yellow"].active span {
    color: #854d0e !important;
}

.color-theme[data-theme="white"] span {
    color: #374151;
}

.color-theme[data-theme="white"].active span {
    color: #4b5563 !important;
}

/* 어두운 배경색 테마들 - 밝은 글씨 */
.color-theme[data-theme="black"] span {
    color: #374151;
}

.color-theme[data-theme="black"].active span {
    color: #1f2937 !important;
}

.color-theme[data-theme="gray"] span {
    color: #374151;
}

.color-theme[data-theme="gray"].active span {
    color: #4b5563 !important;
}

.color-theme[data-theme="indigo"] span {
    color: #3730a3;
}

.color-theme[data-theme="indigo"].active span {
    color: #4338ca !important;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.btn-generate::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.6s ease;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* CTA Message */
.cta-message {
    text-align: center;
    padding: 25px;
    background: rgba(33, 90, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(33, 90, 255, 0.2);
}

.cta-message p {
    color: #666666;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Generator Preview Styles */
.generator-preview {
    position: relative;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.preview-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222222;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* Preview Frame */
.preview-frame {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    min-height: 600px;
    position: relative;
    border: 1px solid #e9ecef;
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: 
        linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
        linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.placeholder-content {
    text-align: center;
    color: #999999;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cccccc;
}

.placeholder-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 15px;
}

.placeholder-content p {
    line-height: 1.6;
    color: #999999;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

.ai-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.ai-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #215aff, #4054b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: aiPulse 2s ease-in-out infinite;
    position: relative;
}

.ai-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #215aff, #4054b2);
    opacity: 0.3;
    animation: aiRipple 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes aiRipple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.loading-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 20px;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.step {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666666;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active {
    background: linear-gradient(135deg, #215aff, #4054b2);
    color: white;
    border-color: rgba(33, 90, 255, 0.3);
    animation: stepGlow 1.5s ease-in-out infinite;
}

@keyframes stepGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 90, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 90, 255, 0);
    }
}

/* Generated Preview Content */
.generated-preview {
    padding: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.generated-preview iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 20px;
}

/* Responsive Design for Generator */
@media (max-width: 1024px) {
    .generator-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .generator-form {
        position: static;
    }
    
    .color-themes {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .color-theme {
        padding: 10px 6px;
    }
    
    .color-preview {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .form-card {
        padding: 30px 25px;
    }
    
    .preview-frame {
        min-height: 400px;
    }
    
    .placeholder-content {
        padding: 30px 20px;
    }
    
    .placeholder-content i {
        font-size: 2rem;
    }
    
    .placeholder-content h4 {
        font-size: 1.2rem;
    }
    
    .ai-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .loading-text h4 {
        font-size: 1.1rem;
    }
    
    .color-themes {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .color-theme {
        padding: 8px 4px;
    }
    
    .color-preview {
        width: 22px;
        height: 22px;
    }
    
    .color-theme span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 25px 20px;
    }
    
    .color-themes {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .color-theme {
        padding: 6px 3px;
    }
    
    .color-preview {
        width: 20px;
        height: 20px;
        border: 2px solid white;
    }
    
    .color-theme span {
        font-size: 0.7rem;
    }
    
    .preview-frame {
        min-height: 300px;
    }
    
    .placeholder-content {
        padding: 20px 15px;
    }
    
    .loading-steps {
        gap: 8px;
    }
    
    .step {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}