/* Custom styles that extend Tailwind */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* Animation for back to top button */
#backToTop {
    transition: all 0.3s ease-in-out;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced button styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 2rem;
    font-weight: 500;
    color: white;
    border-radius: 9999px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: all 0.3s;
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Enhanced section headers */
.section-header {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.section-header:hover::after {
    transform: scaleX(1);
}

/* Shape dividers */
.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Custom styles for the testimonial section */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom styles for the map filter */
.grayscale-50 {
    filter: grayscale(50%);
}

/* Animation for the mobile menu */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Animation for elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-fadeIn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header::after {
        bottom: -5px;
        height: 2px;
    }
    
    .btn-primary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Legal page content spacing (Terms & Conditions, etc.) */
.legal-content {
    color: #374151;
    line-height: 1.75;
}

.legal-content h2 {
    margin: 1.75rem 0 0.75rem;
    font-weight: 600;
    color: #111827;
}

.legal-content .heading-num {
    font-weight: 900 !important;
    margin-right: 0.35rem;
}

.legal-content p {
    margin: 0.75rem 0;
}

.legal-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.legal-content li {
    margin: 0.4rem 0;
}

.legal-content ol li + li {
    margin-top: 0.6rem;
}