/**
 * Custom CSS for PT Zhipu Tools Indonesia
 * Additional styles beyond Tailwind CSS
 */

/* Scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom utilities that might be needed */

/* Smooth animations */
.transition-all-300 {
    transition: all 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1990e6 0%, #0ea5e9 100%);
}

/* Primary colors */
.text-primary {
    color: #4a7c59 !important;
}

.bg-primary {
    background-color: #4a7c59 !important;
}

.hover\:text-primary:hover {
    color: #4a7c59 !important;
}

/* Custom footer background */
.bg-footer-green {
    background-color: #4a7c59;
}
.bg-footer-green-btn {
    background-color: #4a7c59;
}

.bg-footer-green-btn:hover {
    background-color: #90d6a3;
}
.gradient-dark {
    background: linear-gradient(135deg, #111a21 0%, #1a2632 100%);
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Focus states for accessibility */
.focus-outline:focus {
    outline: 2px solid #1990e6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-primary {
        background: #1990e6 !important;
        webkit-print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .text-gray-400 {
        color: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom breakpoints if needed */
@media (min-width: 1440px) {
    .container-xl {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Utility classes for common patterns */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Custom animations for page elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Larger touch targets */
    .mobile-touch {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .mobile-spacing {
        padding: 1rem;
    }
    
    /* Font size adjustments */
    .mobile-text-sm {
        font-size: 0.875rem;
    }
}