/* Custom CSS for RateApp Landing Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Gradient text animation */
.gradient-text-animate {
    background: linear-gradient(-45deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #22d3ee;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(59, 130, 246, 0.3));
}

/* Step cards */
.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

/* App cards */
.app-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
    background: rgba(34, 211, 238, 0.2);
}

/* Contact items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateX(5px);
}

/* Form styling */
input, textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

input:focus, textarea:focus {
    outline: none !important;
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(156, 163, 175, 0.8) !important;
}

/* Button hover effects */
.btn-gradient {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
}

/* Navigation active state */
.nav-active {
    color: #22d3ee !important;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .feature-card,
    .step-card,
    .app-card {
        margin-bottom: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #22d3ee;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

/* Selection color */
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Section backgrounds */
#home {
    background: linear-gradient(120deg, #011533 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}
#features {
    background: linear-gradient(90deg, #1d437c 0%, #011533 100%);
    position: relative;
    overflow: hidden;
}
#how-it-works {
    background: linear-gradient(120deg, #011533 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}
#apps {
    background: linear-gradient(120deg, #011533 0%, #062c67 100%);
    position: relative;
    overflow: hidden;
}
#download {
    background: linear-gradient(120deg, #011533 0%, #6366f1 100%);
    position: relative;
    overflow: hidden;
}
#contact {
    background: linear-gradient(120deg, #011533 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

/* Animated SVG blobs */
.animated-blob {
    position: absolute;
    z-index: 0;
    opacity: 0.18;
    filter: blur(8px);
    pointer-events: none;
    animation: blobMove 18s ease-in-out infinite alternate;
}
.animated-blob.blob1 {
    top: -120px; left: -120px; width: 400px; height: 400px;
    animation-delay: 0s;
}
.animated-blob.blob2 {
    bottom: -100px; right: -100px; width: 350px; height: 350px;
    animation-delay: 4s;
}
.animated-blob.blob3 {
    top: 50%; left: 80%; width: 250px; height: 250px;
    transform: translateY(-50%);
    animation-delay: 8s;
}
@keyframes blobMove {
    0%   { transform: scale(1)   translateY(0)   rotate(0deg); }
    50%  { transform: scale(1.1) translateY(-30px) rotate(10deg); }
    100% { transform: scale(1)   translateY(0)   rotate(-10deg); }
}

/* Glassmorphism improvements */
.feature-card, .step-card, .app-card, .contact-item, #contact form, .bg-white\/10 {
    background: rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
}

/* Particle effect for hero section */
#hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    opacity: 0.12;
    animation: particleMove 12s linear infinite;
}
@keyframes particleMove {
    0% { transform: translateY(0) scale(1); opacity: 0.12; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 0.18; }
    100% { transform: translateY(0) scale(1); opacity: 0.12; }
}

/* Section divider (wavy) */
.section-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Framer-motion inspired animations */
.fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-in-down {
    animation: fade-in-down 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-in-left {
    animation: fade-in-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-in-right {
    animation: fade-in-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.scale-in {
    animation: scale-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Staggered animation delays for cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }
.stagger-9 { animation-delay: 0.9s; }
.stagger-10 { animation-delay: 1.0s; }

body, html {
    font-family: 'Jost', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif !important;
    font-weight: 700;
}

/* Animated pattern dots for hero section */
.pattern-dot {
  animation: pattern-float 4s ease-in-out infinite alternate;
}
.pattern-dot:nth-child(1) { animation-delay: 0s; animation-duration: 4s; }
.pattern-dot:nth-child(2) { animation-delay: 0.5s; animation-duration: 3.5s; }
.pattern-dot:nth-child(3) { animation-delay: 1s; animation-duration: 4.5s; }
.pattern-dot:nth-child(4) { animation-delay: 1.5s; animation-duration: 4s; }
.pattern-dot:nth-child(5) { animation-delay: 2s; animation-duration: 3.8s; }
.pattern-dot:nth-child(6) { animation-delay: 2.5s; animation-duration: 4.2s; }
.pattern-dot:nth-child(7) { animation-delay: 3s; animation-duration: 4.6s; }

@keyframes pattern-float {
  0%   { transform: translateY(0); opacity: 0.8; }
  50%  { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
} 