/* Custom CSS for Somalia ETA Website */

:root {
    --primary-color: #143BB0;
    --primary-dark: #0f2e8a;
    --primary-light: #4a6fd1;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Increase horizontal padding for larger screens */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Header Styles */
.navbar-brand h4 {
    font-size: 1.4rem;
    line-height: 1.2;
    color: #000000 !important;
    font-weight: 700 !important;
    margin-top: 0.5rem;
}

.navbar-brand h6 {
    font-size: 0.875rem;
    line-height: 1.1;
    color: #757575 !important;
    font-weight: 500 !important;
}

/* Eligibility Button Styling */
.eligibility-btn {
    background-color: #e0e0e0 !important;
    color: #1a1a1a !important;
    font-size: 1.05rem !important;
}

/* Language dropdown text styling */
.dropdown-item .text-muted {
    color: #000000 !important;
    font-size: 0.7rem !important;
}

/* Alert Banner */
.alert-banner {
    border-bottom: 1px solid rgba(36, 79, 187, 0.1);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    padding-right: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Mobile Navigation Styles */
#mobileNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

#mobileNav.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1050;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1051;
}

.mobile-nav-close:hover {
    color: #143BB0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.mobile-nav-item {
    margin-bottom: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1.25rem 0;
    color: #333;
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
    text-align: left;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #143BB0;
}

/* Hero Section */
.hero-pattern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    background-repeat: repeat;
    background-size: 100px 100px;
}

/* Validate eTA section with transparent white background */
.validate-eta-section {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    box-shadow: none !important;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: none !important;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Discover Section */
.discover-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border-width: 2px;
    box-shadow: none !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Form Controls */
.form-control {
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(20, 59, 176, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

/* Modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Dropdown */
.dropdown-menu {
    border-radius: 1rem;
    border: none;
    box-shadow: none !important;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(20, 59, 176, 0.1);
    color: var(--primary-color);
}

/* Offcanvas */
.offcanvas {
    border-radius: 1rem 0 0 1rem;
}

.offcanvas-header {
    background: transparent;
    color: inherit;
}

.offcanvas-title {
    color: inherit;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form Switches */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(20, 59, 176, 0.25);
}

/* Footer */
footer {
    background: #e9ecef !important;
    border-top: 1px solid var(--border-color);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand h4 {
        font-size: 1.25rem;
    }
    
    .navbar-brand h6 {
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .marquee-content {
        animation: marquee 30s linear infinite;
    }
    
    /* Make hero section large texts smaller on mobile */
    .hero-large-text {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .marquee-content {
        animation: marquee 20s linear infinite;
    }
    
    /* Make hero section large texts smaller on mobile */
    .hero-large-text {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Dark Mode Support - Removed (site now stays in light mode only) */

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Text Animations */
.text-animate {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Focus Indicators */
.btn:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-color: #000000;
        --border-color: #000000;
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .offcanvas,
    .modal,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container-fluid {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Accessibility Improvements */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.shadow-lg {
    box-shadow: none !important;
}

.z-3 {
    z-index: 3 !important;
}
