@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');

/* Base styles */
* {
    font-family: 'Kumbh Sans', sans-serif;
    box-sizing: border-box;
}

:root {
    --bs-primary-rgb: 61, 94, 223;
    --primary-color: #2549D5;
    --text-color: #4F4F4F;
    --light-text-color: #667085;
    --background-color: #FCFAFA;
    --card-border-color: rgba(167, 167, 167, 0.2);
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: bold;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-hover-bg: #1a3bc0;
    --bs-btn-active-bg: #1634b0;
}

.mb-4 {
    color: var(--text-color);
}

.mb-0 {
    color: var(--light-text-color);
}

.card {
    --bs-card-border-color: var(--card-border-color);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-logo {
    width: 170px;
    height: 200px;
    margin-bottom: -70px;
    max-width: 100%;
    height: auto;
}

.footer {
    margin-top: auto;
    padding: 1rem 0;
    background-color: #ffffff;
}

/* Container adjustments */
.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.slideInUp {
    animation-name: slideInUp;
}

.pulse {
    animation-name: pulse;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Media Queries for Responsive Design */
/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .img-logo {
        width: 130px;
        height: auto;
        margin-bottom: -50px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-left: 10px;
        margin-right: 10px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .footer {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Reduce animation for better performance on mobile */
    .animated {
        animation-duration: 0.5s;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .img-logo {
        width: 150px;
        height: auto;
        margin-bottom: -60px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .col, .col-md-4, .col-md-6, .col-lg-4, .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Medium to Large devices (desktops, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 96%;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* For high-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .img-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles for better printing */
@media print {
    body {
        background-color: #ffffff;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .animated {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .no-print {
        display: none !important;
    }
}

/* RTL support for better internationalization */
[dir="rtl"] {
    .card {
        text-align: right;
    }

    .navbar-brand {
        margin-right: 0;
        margin-left: 1rem;
    }
}

/* Improved form elements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button style enhancements */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Useful utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}
