/* custom-styles.css */

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

/* Beautiful animated gradient for hero */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

main>section:first-of-type {
    background: linear-gradient(-45deg, #f0f4ff, #e0e7ff, #f3e8ff, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

/* Floating animation for hero image */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

main>section:first-of-type .relative.w-full {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25) !important;
}

/* Slide up fade animation for hero elements */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main>section:first-of-type .flex-col>* {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

main>section:first-of-type .flex-col> :nth-child(1) {
    animation-delay: 0.1s;
}

main>section:first-of-type .flex-col> :nth-child(2) {
    animation-delay: 0.3s;
}

main>section:first-of-type .flex-col> :nth-child(3) {
    animation-delay: 0.5s;
}

main>section:first-of-type .flex-col> :nth-child(4) {
    animation-delay: 0.7s;
}

/* Enhanced Button Hover States */
a.bg-gradient-to-r,
button.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a.bg-gradient-to-r::after,
button.bg-gradient-to-r::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #4f46e5, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

a.bg-gradient-to-r:hover::after,
button.bg-gradient-to-r:hover::after {
    opacity: 1;
}

a.bg-gradient-to-r:hover,
button.bg-gradient-to-r:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), 0 8px 10px -6px rgba(37, 99, 235, 0.1) !important;
}

/* Glassmorphism Feature Cards */
.grid.md\\:grid-cols-3>div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.grid.md\\:grid-cols-3>div:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Card Icons Pulse effect on hover */
.grid.md\\:grid-cols-3>div:hover svg {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Nav Links Underline Animation */
nav a {
    position: relative;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

/* Premium overlay grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opactiy='0.05'/%3E%3C/svg%3E");
    opacity: 0.015;
    z-index: 9999;
}

/* Shine effect on secondary CTA */
section div.bg-gradient-to-br {
    position: relative;
}

section div.bg-gradient-to-br::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

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

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}