/* FlyOnKadi Landing Page - Custom Animations & Effects */

/* ===================================
   Particle Animations
   =================================== */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: float-particle 10s ease-in-out infinite reverse;
}

.particle-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation: float-particle 12s ease-in-out infinite;
}

.particle-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation: float-particle 9s ease-in-out infinite;
}

.particle-5 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: 30%;
    right: 25%;
    animation: float-particle 11s ease-in-out infinite reverse;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-15px, -60px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(30px, -40px) scale(1.05);
        opacity: 0.6;
    }
}

/* ===================================
   Floating Phone Animation
   =================================== */
.floating-phone {
    animation: float-phone 4s ease-in-out infinite;
}

@keyframes float-phone {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

/* ===================================
   Notification Bubble Animation
   =================================== */
.notification-bubble {
    animation: slide-in-bounce 1s ease-out 1s both;
}

@keyframes slide-in-bounce {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================
   Shimmer Button Effect
   =================================== */
.shimmer-button {
    position: relative;
    overflow: hidden;
}

.shimmer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.shimmer-button:hover::before {
    left: 100%;
}

/* ===================================
   Glass Morphism Cards
   =================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.2);
}

/* ===================================
   Scroll Reveal Animations
   =================================== */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll-reveal][data-delay="100"].revealed {
    transition-delay: 0.1s;
}

[data-scroll-reveal][data-delay="200"].revealed {
    transition-delay: 0.2s;
}

[data-scroll-reveal][data-delay="300"].revealed {
    transition-delay: 0.3s;
}

[data-scroll-reveal][data-delay="400"].revealed {
    transition-delay: 0.4s;
}

/* ===================================
   Gradient Text Effect
   =================================== */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===================================
   Laptop Tilt Effect
   =================================== */
.laptop-tilt {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.laptop-tilt:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ===================================
   WhatsApp Float Pulse
   =================================== */
.whatsapp-float {
    animation: pulse-float 2s ease-in-out infinite;
}

@keyframes pulse-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 50px rgba(34, 197, 94, 0.6);
    }
}

/* ===================================
   Counter Animation
   =================================== */
[data-counter] {
    font-variant-numeric: tabular-nums;
}

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

/* ===================================
   Custom Scrollbar (Webkit)
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #FFD700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #FFA500);
}

/* ===================================
   Loading States
   =================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   Fade In Animations
   =================================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   Bounce Animation
   =================================== */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

/* ===================================
   Spin Animation
   =================================== */
.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Glow Effect
   =================================== */
.glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .floating-phone {
        animation: float-phone-mobile 3s ease-in-out infinite;
    }
    
    @keyframes float-phone-mobile {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .notification-bubble {
        max-width: 200px;
        font-size: 0.75rem;
    }
    
    .particle {
        display: none; /* Hide particles on mobile for performance */
    }
    
    .laptop-tilt {
        transform: none;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .whatsapp-float,
    .notification-bubble,
    .particle {
        display: none;
    }
}

/* ===================================
   WhatsApp Message Animations
   =================================== */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slide-in-left 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.animate-typing {
    animation: typing 1.5s ease-in-out infinite;
}

/* WhatsApp Background Pattern */
#whatsapp-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(0,0,0,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

