/* Jakarta Creative Hub - Modern Styles */

/* CSS Custom Properties */
:root {
    --jch-primary: #1e40af;
    --jch-primary-dark: #1e3a8a;
    --jch-secondary: #3b82f6;
    --jch-accent: #60a5fa;
    --jch-success: #10b981;
    --jch-warning: #f59e0b;
    --jch-error: #ef4444;
    --jch-dark: #111827;
    --jch-gray-50: #f9fafb;
    --jch-gray-100: #f3f4f6;
    --jch-gray-200: #e5e7eb;
    --jch-gray-300: #d1d5db;
    --jch-gray-400: #9ca3af;
    --jch-gray-500: #6b7280;
    --jch-gray-600: #4b5563;
    --jch-gray-700: #374151;
    --jch-gray-800: #1f2937;
    --jch-gray-900: #111827;
    
    /* Typography */
    --jch-font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --jch-font-family-display: 'Poppins', var(--jch-font-family);
    
    /* Shadows */
    --jch-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --jch-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --jch-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --jch-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --jch-radius-sm: 4px;
    --jch-radius-md: 8px;
    --jch-radius-lg: 12px;
    --jch-radius-xl: 16px;
    --jch-radius-2xl: 20px;
    --jch-radius-3xl: 24px;
    
    /* Transitions */
    --jch-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --jch-transition-fast: all 0.15s ease-out;
    --jch-transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
body {
    font-family: var(--jch-font-family);
    color: var(--jch-gray-800);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jch-font-family-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--jch-gray-900);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Header Styles */
.jch-modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--jch-transition);
}

.jch-modern-header .nav-link {
    position: relative;
}

.jch-modern-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--jch-primary), var(--jch-secondary));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.jch-modern-header .nav-link:hover {
    color: var(--jch-primary) !important;
}

.jch-modern-header .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.jch-modern-header .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jch-modern-header .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--jch-primary);
}

.jch-modern-header .search-btn:hover {
    background: var(--jch-primary) !important;
    color: white !important;
    transform: scale(1.05);
}

.jch-modern-header .btn-login:hover {
    background: var(--jch-primary);
    color: white !important;
}

.jch-modern-header .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* Button Styles */
.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4) !important;
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.btn-cta-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4) !important;
}

/* Feature Cards */
.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-modern {
    transition: var(--jch-transition);
}

/* Social Links */
.social-link:hover {
    background: var(--jch-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Newsletter Form */
.newsletter-form input:focus {
    outline: none;
    border-color: var(--jch-primary) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.newsletter-form button:hover {
    background: var(--jch-primary) !important;
    transform: scale(1.05);
}

/* Footer Links */
.footer-links a:hover {
    color: var(--jch-secondary) !important;
    transform: translateX(4px);
}

.footer-bottom-links a:hover {
    color: var(--jch-secondary) !important;
}

/* Responsive Animations */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hero-stats {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 28px !important;
    }
    
    .feature-card-modern {
        padding: 32px 24px !important;
    }
    
    .features-cta {
        padding: 32px 24px !important;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--jch-primary) 0%, var(--jch-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--jch-primary) 0%, var(--jch-secondary) 100%);
}

.shadow-modern {
    box-shadow: var(--jch-shadow-xl);
}

.rounded-modern {
    border-radius: var(--jch-radius-2xl);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left-color: var(--jch-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--jch-gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--jch-primary), var(--jch-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--jch-primary-dark), var(--jch-primary));
}

/* Focus States */
*:focus {
    outline: 2px solid var(--jch-primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--jch-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .jch-modern-header,
    .scroll-indicator,
    .floating-element,
    .hero-bg-animation {
        display: none !important;
    }
    
    .hero-modern {
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}