/* Custom animations and styles that can't be replicated with Tailwind utilities */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient X animation for homepage */
@keyframes gradient-x {
    0%, 100% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(100%);
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Thank you message show/hide */
#thankYouMessage.show {
    display: flex !important;
}

/* Fade in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInDelay2 1s ease-out 0.6s both;
}

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

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

/* Morphing blob animation */
@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

/* Border pulse animation */
@keyframes borderPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Premium glow animation */
@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.5); }
}

/* Animated shapes */
@keyframes shapeFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translateX(0px) scale(1); }
    50% { transform: translateX(20px) scale(1.1); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 1; }
    50% { transform: translateY(-10px) translateX(-15px); opacity: 0.8; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.9; }
}

@keyframes morphBlob1 {
    0%, 100% { border-radius: 50% 30% 70% 40%; transform: rotate(0deg); }
    25% { border-radius: 30% 70% 40% 50%; transform: rotate(90deg); }
    50% { border-radius: 70% 40% 50% 30%; transform: rotate(180deg); }
    75% { border-radius: 40% 50% 30% 70%; transform: rotate(270deg); }
}

@keyframes morphBlob2 {
    0%, 100% { border-radius: 40% 60% 30% 70%; transform: rotate(0deg); }
    25% { border-radius: 60% 30% 70% 40%; transform: rotate(-90deg); }
    50% { border-radius: 30% 70% 40% 60%; transform: rotate(-180deg); }
    75% { border-radius: 70% 40% 60% 30%; transform: rotate(-270deg); }
}

@keyframes particleFloat1 {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-50px) translateX(20px); }
    50% { transform: translateY(-20px) translateX(-15px); }
    75% { transform: translateY(-80px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes particleFloat2 {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-30px) translateX(-20px); }
    66% { transform: translateY(-60px) translateX(25px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes particleFloat3 {
    0% { transform: translateY(0px) translateX(0px); }
    40% { transform: translateY(-40px) translateX(-30px); }
    80% { transform: translateY(-10px) translateX(15px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Gradient border utilities */
.gradient-border {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-border-hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.6));
    animation: borderPulse 1.5s ease-in-out infinite;
}

/* Custom cursor styles */
.cursor-main {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(59, 130, 246, 1) 0%, rgba(59, 130, 246, 0.7) 50%, rgba(59, 130, 246, 0.3) 100%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.3);
    transition: all 0.1s ease;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Cursor trail */
.cursor-trail {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transition: all 0.1s ease;
}

/* Animated background elements */
.animated-shape-1 {
    animation: shapeFloat1 12s ease-in-out infinite;
}

.animated-shape-2 {
    animation: shapeFloat2 8s ease-in-out infinite;
}

.particle-1 {
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-2 {
    animation: particleFloat 8s ease-in-out infinite 2s;
}

.particle-3 {
    animation: particleFloat 10s ease-in-out infinite 4s;
}

/* Legacy particle animations for backward compatibility */
.particle-float-1 {
    animation: particleFloat1 20s linear infinite;
}

.particle-float-2 {
    animation: particleFloat2 25s linear infinite 5s;
}

.particle-float-3 {
    animation: particleFloat3 30s linear infinite 10s;
}

.morph-blob-1 {
    animation: morphBlob1 25s ease-in-out infinite;
}

.morph-blob-2 {
    animation: morphBlob2 30s ease-in-out infinite reverse;
}

/* Premium service styling */
.premium-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.8); }
}

.premium-badge-pulse {
    animation: premiumBadgePulse 2s ease-in-out infinite;
}

/* Gradient radial utility */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Hamburger menu animation */
.hamburger-line {
    transition: all 0.3s ease;
}

#line1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#line2.open {
    opacity: 0;
}

#line3.open {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation menu animations */
#navMenu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#navMenu.open {
    transform: translateX(0);
}

.nav-item {
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item.animate {
    transform: translateX(0);
    opacity: 1;
}

/* Backdrop blur fallback */
.backdrop-blur-fallback {
    background: rgba(0, 0, 0, 0.8);
}

@supports (backdrop-filter: blur(20px)) {
    .backdrop-blur-fallback {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(20px);
    }
}