<!DOCTYPE html>
<html lang="<%= locale || 'ko' %>" class="<%= theme === 'dark' ? 'dark' : '' %>">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%- __('services.title') || '서비스 - SmartSolTech' %></title>
    
    <!-- SEO Meta Tags -->
    <meta name="description" content="SmartSolTech의 전문 서비스를 확인하세요. 웹 개발, 모바일 앱, UI/UX 디자인, 디지털 마케팅 등 다양한 기술 솔루션을 제공합니다.">
    <meta name="keywords" content="웹 개발, 모바일 앱, UI/UX 디자인, 디지털 마케팅, 기술 솔루션, SmartSolTech">
    
    <!-- PWA -->
    <meta name="theme-color" content="#3B82F6">
    <link rel="manifest" href="/manifest.json">
    <link rel="apple-touch-icon" href="/images/icons/icon-192x192.png">
    
    <!-- Styles -->
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <link href="/css/main.css" rel="stylesheet">
    <link href="/css/fixes.css" rel="stylesheet">
    <link href="/css/dark-theme.css" rel="stylesheet">
</head>
<body>
    <%- include('partials/navigation') %>

    <!-- Services Hero Section -->
    <section class="hero-section bg-gradient-to-br from-blue-600 via-purple-600 to-blue-800 pt-20">
        <div class="container mx-auto px-4 py-20 text-center text-white">
            <h1 class="text-5xl md:text-6xl font-bold mb-6" data-aos="fade-up">
                우리의 <span class="text-yellow-300">서비스</span>
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90" data-aos="fade-up" data-aos-delay="200">
                혁신적인 기술로 비즈니스의 성장을 지원합니다
            </p>
        </div>
    </section>

    <!-- Services Grid -->
    <section class="section-padding">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <% if (services && services.length > 0) { %>
                    <% services.forEach((service, index) => { %>
                        <div class="bg-white rounded-2xl shadow-xl p-8 hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2" 
                             data-aos="fade-up" 
                             data-aos-delay="<%= index * 100 %>">
                            
                            <!-- Service Icon -->
                            <div class="w-16 h-16 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center mb-6">
                                <i class="<%= service.icon || 'fas fa-cog' %> text-white text-2xl"></i>
                            </div>

                            <!-- Service Info -->
                            <h3 class="text-2xl font-bold text-gray-900 mb-4">
                                <%= service.name %>
                            </h3>
                            
                            <p class="text-gray-600 mb-6 leading-relaxed">
                                <%= service.shortDescription || service.description %>
                            </p>

                            <!-- Pricing -->
                            <% if (service.pricing) { %>
                                <div class="mb-6">
                                    <div class="text-sm text-gray-500 mb-1">시작가격</div>
                                    <div class="text-2xl font-bold text-blue-600">
                                        <%= service.pricing.basePrice ? service.pricing.basePrice.toLocaleString() : '상담' %>
                                        <% if (service.pricing.basePrice) { %>
                                            <span class="text-sm text-gray-500">원~</span>
                                        <% } %>
                                    </div>
                                    <% if (service.pricing.priceRange) { %>
                                        <div class="text-sm text-gray-500">
                                            <%= service.pricing.priceRange.min.toLocaleString() %>원 - 
                                            <%= service.pricing.priceRange.max.toLocaleString() %>원
                                        </div>
                                    <% } %>
                                </div>
                            <% } %>

                            <!-- Action Buttons -->
                            <div class="flex flex-col gap-3">
                                <a href="/contact?service=<%= service._id %>" 
                                   class="block w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white text-center py-3 rounded-lg font-semibold hover:from-blue-700 hover:to-purple-700 transition-all duration-300">
                                    문의하기
                                </a>
                                <a href="/calculator?service=<%= service._id %>" 
                                   class="block w-full border-2 border-blue-600 text-blue-600 text-center py-3 rounded-lg font-semibold hover:bg-blue-600 hover:text-white transition-all duration-300">
                                    비용 계산하기
                                </a>
                            </div>

                            <!-- Featured Badge -->
                            <% if (service.featured) { %>
                                <div class="absolute top-4 right-4">
                                    <span class="bg-yellow-500 text-white px-2 py-1 rounded-full text-xs font-bold">
                                        <i class="fas fa-star"></i> 인기
                                    </span>
                                </div>
                            <% } %>
                        </div>
                    <% }) %>
                <% } else { %>
                    <div class="col-span-full text-center py-12">
                        <i class="fas fa-cogs text-6xl text-gray-300 mb-4"></i>
                        <h3 class="text-2xl font-bold text-gray-500 mb-2">서비스 준비 중</h3>
                        <p class="text-gray-400">곧 다양한 서비스를 제공할 예정입니다!</p>
                    </div>
                <% } %>
            </div>
        </div>
    </section>

    <!-- Process Section -->
    <section class="section-padding bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16" data-aos="fade-up">
                <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
                    프로젝트 진행 과정
                </h2>
                <p class="text-xl text-gray-600">
                    체계적이고 전문적인 프로세스로 프로젝트를 진행합니다
                </p>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <!-- Step 1 -->
                <div class="text-center" data-aos="fade-up" data-aos-delay="100">
                    <div class="w-20 h-20 bg-blue-600 rounded-full flex items-center justify-center mx-auto mb-6">
                        <span class="text-white text-2xl font-bold">1</span>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 mb-4">상담 및 기획</h3>
                    <p class="text-gray-600">
                        고객의 요구사항을 정확히 파악하고 
                        최적의 솔루션을 기획합니다
                    </p>
                </div>

                <!-- Step 2 -->
                <div class="text-center" data-aos="fade-up" data-aos-delay="200">
                    <div class="w-20 h-20 bg-purple-600 rounded-full flex items-center justify-center mx-auto mb-6">
                        <span class="text-white text-2xl font-bold">2</span>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 mb-4">디자인 및 설계</h3>
                    <p class="text-gray-600">
                        사용자 중심의 직관적인 디자인과 
                        견고한 시스템 아키텍처를 설계합니다
                    </p>
                </div>

                <!-- Step 3 -->
                <div class="text-center" data-aos="fade-up" data-aos-delay="300">
                    <div class="w-20 h-20 bg-green-600 rounded-full flex items-center justify-center mx-auto mb-6">
                        <span class="text-white text-2xl font-bold">3</span>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 mb-4">개발 및 구현</h3>
                    <p class="text-gray-600">
                        최신 기술과 모범 사례를 활용하여 
                        효율적이고 확장 가능한 솔루션을 개발합니다
                    </p>
                </div>

                <!-- Step 4 -->
                <div class="text-center" data-aos="fade-up" data-aos-delay="400">
                    <div class="w-20 h-20 bg-orange-600 rounded-full flex items-center justify-center mx-auto mb-6">
                        <span class="text-white text-2xl font-bold">4</span>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 mb-4">테스트 및 배포</h3>
                    <p class="text-gray-600">
                        철저한 테스트를 통해 품질을 보장하고 
                        안정적인 배포를 진행합니다
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- Why Choose Us Section -->
    <section class="section-padding">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
                <!-- Content -->
                <div data-aos="fade-right">
                    <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-6">
                        왜 SmartSolTech를 선택해야 할까요?
                    </h2>
                    
                    <div class="space-y-6">
                        <!-- Feature 1 -->
                        <div class="flex items-start">
                            <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-rocket text-blue-600 text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-semibold text-gray-900 mb-2">최신 기술 활용</h3>
                                <p class="text-gray-600">
                                    항상 최신 기술 트렌드를 파악하고, 검증된 기술 스택을 활용하여 
                                    미래 지향적인 솔루션을 제공합니다.
                                </p>
                            </div>
                        </div>

                        <!-- Feature 2 -->
                        <div class="flex items-start">
                            <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-users text-green-600 text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-semibold text-gray-900 mb-2">전문가 팀</h3>
                                <p class="text-gray-600">
                                    각 분야의 전문가들로 구성된 팀이 협력하여 
                                    최고 품질의 결과물을 보장합니다.
                                </p>
                            </div>
                        </div>

                        <!-- Feature 3 -->
                        <div class="flex items-start">
                            <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-clock text-purple-600 text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-semibold text-gray-900 mb-2">빠른 대응</h3>
                                <p class="text-gray-600">
                                    신속한 커뮤니케이션과 효율적인 프로젝트 관리로 
                                    정해진 일정 내에 프로젝트를 완료합니다.
                                </p>
                            </div>
                        </div>

                        <!-- Feature 4 -->
                        <div class="flex items-start">
                            <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-4 flex-shrink-0">
                                <i class="fas fa-headset text-orange-600 text-xl"></i>
                            </div>
                            <div>
                                <h3 class="text-xl font-semibold text-gray-900 mb-2">지속적인 지원</h3>
                                <p class="text-gray-600">
                                    프로젝트 완료 후에도 지속적인 유지보수와 기술 지원을 
                                    통해 장기적인 파트너십을 유지합니다.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Image/Visual -->
                <div class="relative" data-aos="fade-left">
                    <div class="bg-gradient-to-br from-blue-100 to-purple-100 rounded-2xl p-8 h-96 flex items-center justify-center">
                        <div class="text-center">
                            <i class="fas fa-award text-6xl text-blue-600 mb-4"></i>
                            <h3 class="text-2xl font-bold text-gray-900 mb-2">품질 보장</h3>
                            <p class="text-gray-600">
                                고객 만족을 위한<br>
                                최고 품질의 서비스
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- CTA Section -->
    <section class="section-padding bg-gradient-to-r from-blue-600 to-purple-600 text-white">
        <div class="container mx-auto px-4 text-center">
            <h2 class="text-3xl md:text-4xl font-bold mb-6" data-aos="fade-up">
                프로젝트를 시작할 준비가 되셨나요?
            </h2>
            <p class="text-xl mb-8 opacity-90" data-aos="fade-up" data-aos-delay="200">
                무료 상담을 통해 최적의 솔루션을 제안해드리겠습니다
            </p>
            <div class="flex flex-col sm:flex-row gap-4 justify-center" data-aos="fade-up" data-aos-delay="400">
                <a href="/contact" class="bg-white text-blue-600 px-8 py-3 rounded-full hover:bg-gray-100 transition-colors font-semibold">
                    무료 상담 신청
                </a>
                <a href="/calculator" class="border-2 border-white text-white px-8 py-3 rounded-full hover:bg-white hover:text-blue-600 transition-colors font-semibold">
                    비용 계산하기
                </a>
                <a href="/portfolio" class="border-2 border-white text-white px-8 py-3 rounded-full hover:bg-white hover:text-blue-600 transition-colors font-semibold">
                    포트폴리오 보기
                </a>
            </div>
        </div>
    </section>

    <%- include('partials/footer') %>

    <!-- Scripts -->
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="/js/main.js"></script>
</body>
</html>