/* Custom Styles for JNM Soft Website */

* {
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Navigation */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

/* Scroll to Top Button */
#scroll-top {
    transition: opacity 0.3s, transform 0.3s;
}

#scroll-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#scroll-top:hover {
    transform: translateY(-3px);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Success/Error Messages */
.success-message {
    background-color: #10b981;
    color: white;
}

.error-message {
    background-color: #ef4444;
    color: white;
}

/* Portfolio Card Hover Effect */
.portfolio-card {
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
}

/* Pagination */
.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #2563eb;
    color: white;
}

.pagination-btn.active {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Portfolio Item Styles */
.portfolio-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.portfolio-item:hover {
    border-left-color: #2563eb;
    background-color: #f9fafb;
}

/* Tag Styles */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Category Badge Colors */
.badge-restaurant {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-medical {
    background-color: #dcfce7;
    color: #166534;
}

.badge-education {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.badge-retail {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-corporate {
    background-color: #e5e7eb;
    color: #374151;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Responsive Map */
#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Print Styles */
@media print {
    nav, footer, #scroll-top {
        display: none;
    }
}
