/* Additional custom styles beyond Tailwind */

/* Smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Ensure images don't get too large */
img {
    max-width: 100%;
    height: auto;
}

/* Background pattern for some sections */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hover effects for cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Active navigation link styles */
.nav-link.active {
    color: #0B3D91;
    font-weight: 600;
}

/* Footer styling */
footer a:hover {
    text-decoration: underline;
}

/* Helper class for image container */
.img-container {
    overflow: hidden;
    border-radius: 0.5rem;
}

.img-container img {
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Custom styling for statistics */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Button effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.btn:hover:after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Custom animation for scrolling */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add a delay for each consecutive element */
.animate-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-300 {
    transition-delay: 0.3s;
}

/* Custom underline effect for links */
.link-underline {
    position: relative;
}

.link-underline:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0B3D91;
    visibility: hidden;
    transition: all 0.3s ease;
}

.link-underline:hover:after {
    visibility: visible;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Add scroll-to-top button styles */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0B3D91;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 49;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Custom style for form focus states */
input:focus, textarea:focus {
    border-color: #0B3D91;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.2);
}