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

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Apply animations to elements */
.hero-content {
    animation: fadeIn 1s ease-out;
}

.feature-card {
    animation: fadeIn 0.5s ease-out;
    transition: transform 0.3s ease-in-out;
}

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

.testimonial-card {
    animation: fadeIn 0.7s ease-out;
    transition: transform 0.3s ease-in-out;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Wave animation for the hero SVG */
.hero-wave {
    animation: wave 3s ease-in-out infinite;
}

/* Floating animation for the logo */
.logo-float {
    animation: float 3s ease-in-out infinite;
}

/* Smooth transitions */
.nav-link {
    transition: color 0.3s ease;
}

.button {
    transition: all 0.3s ease;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom shadows */
.custom-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Section transitions */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fixed header adjustments */
body {
    padding-top: 0; /* Remove padding from body */
}

header.fixed {
    top: 0;
    position: fixed;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    body {
        padding-top: 0; /* Remove padding from body for mobile */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel Image Sizing Fix */
.p-carousel .p-carousel-item img,
.comma-carousel img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Testimonial Image Sizing Fix */
.testimonial-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* Header spacing fix to prevent overlap */
main {
    padding-top: 80px; /* Account for fixed header */
}

/* Fix white text on white background */
.hero-section {
    color: white;
}

/* Ensure proper contrast for text */
.text-white {
    color: white !important;
}

/* PrimeVue MegaMenu styling fix */
.p-megamenu {
    background: transparent !important;
    border: none !important;
}

.p-megamenu .p-menuitem-link {
    color: rgb(55, 65, 81) !important;
}

.p-megamenu .p-menuitem-link:hover {
    color: rgb(37, 99, 235) !important;
    background: transparent !important;
}

/* Fix MegaMenu dropdown panels */
.p-megamenu-panel {
    background: white !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
