@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background-color: #050505;
    color: #e5e7eb;
    scroll-behavior: smooth;
}

/* Parallax Utilities */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-accent {
    color: #38bdf8;
}

.bg-accent {
    background-color: #38bdf8;
}

.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation fallback */
.animate-fade-in-up,
.animate-fade-in-down {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in-up {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
    }

    .animate-fade-in-down {
        animation: fadeInDown 0.8s ease-out forwards;
        opacity: 0;
    }
}

/* Scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Tilt Card */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    position: relative;
    overflow: hidden;
}

.tilt-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

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

/* Shimmer text */
.text-shimmer {
    background: linear-gradient(to right, #38bdf8 20%, #818cf8 40%, #818cf8 60%, #38bdf8 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

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

/* Floating background shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -20px);
    }

    50% {
        transform: translate(-15px, 10px);
    }

    75% {
        transform: translate(20px, 15px);
    }
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle Effect Layer */
#sparkle-layer {
    position: absolute;
    inset: 0;
    z-index: 15;
    /* Above background, below text */
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-fade 3s ease-in-out infinite;
}

@keyframes sparkle-fade {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    10% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}


/* FAQ Section Custom Styles */
.faq-trigger {
    position: relative;
    overflow: hidden;
}

.faq-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.faq-trigger:hover::after {
    transform: translateX(100%);
}

.faq-icon {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.group:hover .faq-icon {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Contact Section Custom Styles */
@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: shine 1.5s infinite;
}

/* Engine Section Custom Styles */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

