/* Custom styles for Freetown Innovation Hub website */

/* CSS Variables for branding */
:root {
    --fih-blue: #1C3D7A;
    --fih-green: #38A169;
    --fih-light-gray: #f8f9fa;
    --fih-dark-gray: #6b7280;
}

/* Custom utility classes */
.bg-fih-blue { 
    background-color: var(--fih-blue); 
}

.text-fih-blue { 
    color: var(--fih-blue); 
}

.border-fih-green { 
    border-color: var(--fih-green); 
}

.text-fih-green { 
    color: var(--fih-green); 
}

/* Font setup */
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
}

/* Custom scrollbar for aesthetics */
::-webkit-scrollbar { 
    width: 8px; 
}

::-webkit-scrollbar-thumb { 
    background: var(--fih-blue); 
    border-radius: 4px; 
}

::-webkit-scrollbar-track { 
    background: #f1f1f1; 
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced animations */
.hover-lift:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* Loading animation for images */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--fih-green);
    outline-offset: 2px;
}

/* Enhanced button styles */
.btn-primary {
    background-color: var(--fih-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2d5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 61, 122, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--fih-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--fih-blue);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--fih-blue);
    color: white;
    transform: translateY(-2px);
}

/* Mobile-first responsive design enhancements */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .space-x-4 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0.5rem;
    }
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Logo image styling */
#logo-image {
    transition: transform 0.3s ease;
    border-radius: 20px;
}

#logo-image:hover {
    transform: scale(1.05);
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}