/* Custom CSS for 무투스랩 Website */

/* Import fonts */
* {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.pulse-hover:hover {
    animation: pulse 0.6s ease-in-out infinite;
}

/* Custom gradient backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.05);
}

.shadow-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Navigation styles */
.nav-link-active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Hero section particles effect */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #e5e7eb;
    transform: translateY(-5px);
}

/* Progress bar animation */
.progress-bar {
    width: 0%;
    transition: width 2s ease-in-out;
}

.progress-bar.animate {
    width: var(--progress-width);
}

/* Contact form styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive text - 모바일 가독성 최적화 */
@media (max-width: 768px) {
    /* 모바일 텍스트 가독성 최적화 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background-color: #ffffff !important;
    }
    
    /* 히어로 섹션은 파란색 배경에 흰색 텍스트 유지 */
    #home, #home * {
        color: inherit !important;
    }
    
    #home h1, #home h1 * {
        color: white !important;
    }
    
    #home p, #home span {
        color: #dbeafe !important;
    }
    
    #home .text-blue-100,
    #home .text-blue-200,
    #home .text-blue-300 {
        color: inherit !important;
    }
    
    /* 모든 회색 배경을 흰색으로 변경 (히어로 제외) */
    section:not(#home).bg-gray-50,
    section:not(#home) .bg-gray-50,
    .bg-gray-100 {
        background-color: #ffffff !important;
    }
    
    /* 그라디언트 배경은 밝은 흰색으로 */
    .bg-gradient-to-br.from-gray-50,
    .bg-gradient-to-br.from-emerald-50,
    .bg-gradient-to-br.from-indigo-50,
    .bg-gradient-to-br.from-blue-50 {
        background: #ffffff !important;
    }
    
    /* 제목 텍스트를 검은색으로 (히어로 제외) */
    body h1:not(#home h1):not(#home h1 *), 
    body h2:not(#home h2), 
    body h3:not(#home h3), 
    body h4:not(#home h4), 
    body h5:not(#home h5), 
    body h6:not(#home h6),
    .text-gray-900:not(#home .text-gray-900) {
        color: #000000 !important;
        font-weight: 800 !important;
    }
    
    /* 본문 텍스트를 검은색으로 (히어로 제외) */
    body p:not(#home p):not(#home p *), 
    body span:not(#home span):not(#home span *):not(.bg-gradient-to-r):not(.text-transparent), 
    body div:not(#home div):not(#home div *):not(.bg-gradient-to-r),
    body li:not(#home li),
    .text-gray-700:not(#home .text-gray-700),
    .text-gray-600:not(#home .text-gray-600),
    .text-gray-800:not(#home .text-gray-800),
    .text-gray-500:not(#home .text-gray-500) {
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    /* 파란색 텍스트 강화 */
    .text-blue-600,
    .text-blue-700 {
        color: #1e40af !important;
        font-weight: 600 !important;
    }
    
    .text-blue-500 {
        color: #2563eb !important;
        font-weight: 600 !important;
    }
    
    /* 링크는 파란색 유지 */
    a:not(.btn):not(.bg-gradient-to-r):not(#home a) {
        color: #1e40af !important;
        font-weight: 600 !important;
    }
    
    /* 버튼 내부 텍스트는 원래 색상 유지 */
    .btn, button,
    .bg-gradient-to-r, .bg-gradient-to-br,
    button.bg-gradient-to-r *,
    a.bg-gradient-to-r * {
        color: inherit !important;
    }
    
    /* 카드 배경 흰색으로 */
    .bg-white {
        background-color: #ffffff !important;
        border: 1px solid #e5e7eb !important;
    }
    
    /* 컬러 배지는 원래 색상 유지 */
    .bg-blue-100, .bg-green-100, .bg-red-100, 
    .bg-purple-100, .bg-indigo-100, .bg-teal-100,
    .bg-orange-100, .bg-emerald-100, .bg-amber-100,
    .bg-yellow-50, .bg-amber-50, .bg-orange-50 {
        background-color: inherit !important;
    }
    
    /* Footer 최적화 - 어두운 배경에 밝은 텍스트 */
    footer.bg-gray-900 {
        background-color: #1f2937 !important;
    }
    
    footer .text-gray-400 {
        color: #e5e7eb !important;
        font-weight: 400 !important;
    }
    
    footer h4 {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    
    footer a.text-gray-400 {
        color: #d1d5db !important;
    }
    
    footer a.text-gray-400:hover {
        color: #ffffff !important;
    }
    
    /* 빈 컨테이너 제거 */
    .module-container:empty {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .text-responsive-sm {
        font-size: 0.875rem;
    }
    
    .text-responsive-base {
        font-size: 1rem;
    }
    
    .text-responsive-lg {
        font-size: 1.125rem;
    }
    
    .text-responsive-xl {
        font-size: 1.25rem;
    }
    
    .text-responsive-2xl {
        font-size: 1.5rem;
    }
    
    .text-responsive-3xl {
        font-size: 1.875rem;
    }
    
    .text-responsive-4xl {
        font-size: 2.25rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .auto-dark-border {
        border-color: #374151;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection styles */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}

/* Logo styles */
.logo-img {
    max-height: 48px;
    width: auto;
    transition: all 0.3s ease;
}

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

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-height: 36px;
    }
}