/* Custom styles beyond Tailwind */

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation for page elements - SPEED INCREASED */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .section-title, .service-card {
    animation: fadeIn 0.3s ease-out forwards; /* Reduced from 0.5s to 0.3s */
}

/* Custom styling for focus states */
a:focus, button:focus {
    outline: 2px solid #F2A900;
    outline-offset: 2px;
}

/* Custom hover animations - SPEED INCREASED */
.hover-grow {
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Reduced from 0.3s to 0.2s */
}

.hover-grow:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Service card hover effect - SPEED INCREASED */
.service-card {
    transition: all 0.3s ease; /* Reduced from 0.4s to 0.3s */
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(46, 139, 192, 0.15) 100%);
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.3s ease; /* Reduced from 0.4s to 0.3s */
}

.service-card:hover::before {
    transform: scaleY(1);
}

/* Navigation menu transition - SPEED INCREASED */
@media (max-width: 768px) {
    #nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0F4C81;
        z-index: 50;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out; /* Reduced from 0.3s to 0.2s */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #nav-links.show {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    #nav-links a {
        display: block;
        padding: 0.75rem 2rem;
        transition: background-color 0.15s ease; /* Reduced from 0.2s to 0.15s */
    }
    
    #nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Custom styling for sections */
.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #0F4C81, #2E8BC0);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Custom image styling - SPEED INCREASED */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay img {
    transition: transform 0.3s ease; /* Reduced from 0.5s to 0.3s */
}

.img-overlay:hover img {
    transform: scale(1.05);
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 76, 129, 0.7), rgba(15, 76, 129, 0.4));
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0F4C81 0%, #2E8BC0 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #F5F5F5 0%, #E5E5E5 100%);
}

/* Card styling - SPEED INCREASED */
.card-effect {
    border-radius: 12px;
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-effect:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Team member cards - SPEED INCREASED */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card .team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 76, 129, 0.9), transparent);
    padding: 1.5rem;
    transform: translateY(100px);
    transition: transform 0.2s ease; /* Reduced from 0.3s to 0.2s */
}

.team-card:hover .team-info {
    transform: translateY(0);
}

/* Additional button styles - SPEED INCREASED */
.btn-primary {
    background-color: #0F4C81;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    z-index: -1;
}

.btn-primary:hover {
    background-color: #0c3d68;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-outline-primary {
    background-color: transparent;
    color: #0F4C81;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    border: 2px solid #0F4C81;
}

.btn-outline-primary:hover {
    background-color: #0F4C81;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: #F2A900;
    color: #333333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
    z-index: -1;
}

.btn-accent:hover {
    background-color: #d99600;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover::after {
    height: 100%;
}

/* Custom animation for hero elements - SPEED INCREASED */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards; /* Reduced from 0.6s to 0.4s */
}

.animate-delay-100 {
    animation-delay: 0.05s; /* Reduced from 0.1s to 0.05s */
}

.animate-delay-200 {
    animation-delay: 0.1s; /* Reduced from 0.2s to 0.1s */
}

.animate-delay-300 {
    animation-delay: 0.15s; /* Reduced from 0.3s to 0.15s */
}

/* Rotating gear animation - SPEED INCREASED */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rotate-gear {
    animation: rotate 12s linear infinite; /* Reduced from 20s to 12s */
}

/* Statistics counter animation - SPEED INCREASED */
.count-up {
    transition: all 0.3s ease; /* Reduced from 0.5s to 0.3s */
}

/* Dots background */
.bg-dots {
    background-image: radial-gradient(rgba(15, 76, 129, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Wave effect for sections */
.wave-top {
    position: relative;
}

.wave-top::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 50px;
    background-size: cover;
}

/* Vertical timeline styling */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #0F4C81;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-content {
    position: relative;
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #F2A900;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 5rem;
    color: #F2A900;
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

/* Image hover effects - SPEED INCREASED */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-zoom img {
    transition: transform 0.3s ease; /* Reduced from 0.5s to 0.3s */
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0F4C81;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2E8BC0;
}

/* Mobile Navigation Styles - SPEED INCREASED */
@media (max-width: 767px) {
    #nav-links {
        transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
        max-height: 0;
        overflow: hidden;
    }
    
    #nav-links.hidden {
        max-height: 0;
    }
    
    #nav-links:not(.hidden) {
        max-height: 300px; /* Adjust based on your menu height */
        margin-top: 1rem;
    }
    
    #nav-links a {
        display: block;
        padding: 0.75rem 0;
    }
}

/* Header Styles - SPEED INCREASED */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
}

/* Add padding to body to prevent content jump */
body {
    padding-top: 140px; /* Adjust this value based on your header height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Add background to header when fixed */
.header-fixed .bg-primary {
    background-color: rgba(15, 76, 129, 0.95); /* Match your primary color with some transparency */
    backdrop-filter: blur(8px);
}

/* Add styles for top info bar */
.top-info-bar {
    color: #F5F5F5;
}

.top-info-bar a {
    color: #F5F5F5;
    transition: color 0.2s ease; /* Reduced from 0.3s to 0.2s */
}

.top-info-bar a:hover {
    color: #F2A900;
}

/* Text shadow for better readability on image backgrounds */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Basic Styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
} 