/* Custom Animations and Styles */
:root {
    --primary-blue: #003580;
    --primary-orange: #FF6B00;
    --white: #FFFFFF;
    --light-gray: #F4F7F6;
    --dark-blue: #002354;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shine 3s infinite;
}

.card-hover {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 40px 80px -15px rgba(0, 53, 128, 0.3);
}

.card-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 53, 128, 0.8));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.card-hover:hover::after {
    opacity: 1;
}

/* More Attractive Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reveal-anim {
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1 !important; /* Ensure visibility even if animation is slow */
}

/* Fix Hidden Text issues */
.hidden-text-fix {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Mobile Portrait Optimization */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Center most text on mobile but be less aggressive */
    .mobile-text-center {
        text-align: center !important;
    }
    
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    h1 {
        font-size: 2.75rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    /* Navbar mobile fixes */
    #navbar {
        height: 80px !important;
    }

    #nav-logo {
        height: 60px !important;
        width: auto !important;
    }

    .hidden-on-mobile {
        display: none !important;
    }

    /* Ensure menu button is on the right */
    nav .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Fix image issues - prevent them from being too large or distorted */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 1.5rem !important; /* Slightly smaller radius for mobile */
    }
}

/* Enhanced Hover for Images */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.8s ease-in-out;
}
.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Smooth reveal for all sections */
[data-aos] {
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-right {
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Button Pulse Effect */
@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.btn-pulse {
    animation: button-pulse 2s infinite;
}

/* Floating Animation for Images */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-floating {
    animation: floating 8s ease-in-out infinite;
}

/* Text Reveal Gradient */
.text-reveal-gradient {
    background: linear-gradient(90deg, #fff, #ff6b00, #fff);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    to { background-position: 200% center; }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { height: 0; top: 0; opacity: 0; }
    50% { height: 100%; top: 0; opacity: 1; }
    100% { height: 0; top: 100%; opacity: 0; }
}

.scroll-indicator-line {
    position: relative;
    overflow: hidden;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--primary-orange);
    animation: scroll-line 2s ease-in-out infinite;
}

/* Image Reveal Effect */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-blue);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal:hover::after {
    transform: translateX(100%);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-dark {
    background: rgba(0, 53, 128, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 53, 128, 0.1);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
    color: var(--primary-blue) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero Title Glow */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

/* Hidden Content Fixes */
.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 1024px) {
    .lg\:block {
        display: none;
    }
}

@media (max-width: 768px) {
    .hidden-on-mobile {
        display: none;
    }

    header .container {
        justify-content: space-between;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}


/* Footer Headings Color */
.footer-heading {
    color: #2563eb !important; /* Vibrant Blue */
}
