/* FILE: static/css/custom.css */
/**
 * Onehux Digital Services (ODS) - Custom Styles (UPDATED)
 * Additional styles beyond Tailwind CSS utility classes.
 */

/* Global Styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #154bba;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3a8f;
}

/* Navigation Links */
.nav-link {
    @apply text-gray-700 hover:text-onehux-blue transition-colors duration-200 font-medium;
    position: relative;
}

.nav-link.active {
    @apply text-onehux-blue;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f9d000;
    border-radius: 2px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f9d000;
    border-radius: 2px;
}

/* Mobile Navigation Links - IMPROVED */
.mobile-nav-link {
    @apply block px-4 py-3 text-gray-700 hover:bg-blue-50 hover:text-onehux-blue transition-all duration-200 font-medium rounded-lg;
}

.mobile-nav-link.active {
    @apply bg-gradient-to-r from-blue-50 to-yellow-50 text-onehux-blue border-l-4 border-onehux-blue;
}

.mobile-nav-link:hover {
    transform: translateX(4px);
}

/* Buttons */
.btn-primary {
    @apply bg-onehux-blue text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-all duration-200 transform hover:scale-105 shadow-md;
}

.btn-secondary {
    @apply bg-onehux-yellow text-gray-900 px-6 py-3 rounded-lg font-semibold hover:bg-yellow-500 transition-all duration-200 transform hover:scale-105 shadow-md;
}

.btn-outline {
    @apply border-2 border-onehux-blue text-onehux-blue px-6 py-3 rounded-lg font-semibold hover:bg-onehux-blue hover:text-white transition-all duration-200;
}

/* Service Cards */
.service-card {
    @apply bg-white rounded-xl shadow-md hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2 overflow-hidden cursor-pointer;
}

.service-card-badge {
    @apply absolute top-4 right-4 bg-onehux-yellow text-gray-900 text-xs font-bold px-3 py-1 rounded-full;
}

/* Portfolio Cards */
.portfolio-card {
    @apply relative overflow-hidden rounded-xl shadow-lg group cursor-pointer;
}

.portfolio-overlay {
    @apply absolute inset-0 bg-gradient-to-t from-black/80 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-end p-6;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #154bba 0%, #f9d000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #154bba 0%, #1e5dd8 50%, #f9d000 100%);
}

/* Section Headers */
.section-header {
    @apply text-3xl md:text-4xl font-bold text-gray-900 mb-4;
}

.section-subheader {
    @apply text-lg text-gray-600 max-w-3xl mx-auto mb-12;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #154bba 0%, #f9d000 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.animated-underline:hover::after {
    transform: scaleX(1);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(21, 75, 186, 0.1);
    border-top: 3px solid #154bba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce Animation */
.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Badge */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

.badge-info {
    @apply bg-blue-100 text-blue-800;
}

/* Form Inputs */
.form-input {
    @apply w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-onehux-blue focus:ring-2 focus:ring-onehux-blue focus:ring-opacity-20 transition-all duration-200;
}

.form-input:focus {
    outline: none;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Nigerian Flag Colors (for CAC/Tax services) */
.ng-green {
    background-color: #008751;
}

.ng-green-text {
    color: #008751;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #154bba;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #f9d000;
    color: #000;
}

::-moz-selection {
    background-color: #f9d000;
    color: #000;
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Float Button - Additional styling for responsiveness */
@media (max-width: 640px) {
    .fixed.bottom-6.right-6 {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .mobile-nav-link {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .mobile-nav-link .text-2xl {
        font-size: 1.5rem;
    }
}

/* Prevent body scroll when modals are open */
body.modal-open {
    overflow: hidden;
}