/* Custom CSS for CitrusBurn Landing Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Custom button hover effects */
.btn-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Gradient text with animation */
.gradient-text {
    background: linear-gradient(45deg, #f97316, #dc2626, #f97316);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation for hero section */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Social proof badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-green {
    background-color: #10b981;
    color: white;
}

.badge-orange {
    background-color: #f97316;
    color: white;
}

/* Trust indicators */
.trust-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.5rem;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }
    
    .floating {
        animation: none;
    }
    
    /* Mobile-specific fixes */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section mobile optimization */
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* CTA buttons mobile */
    .hero-section .cta-button {
        width: 100%;
        font-size: 1.125rem;
        padding: 1rem;
    }
    
    /* Grid adjustments */
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Product showcase mobile */
    .product-showcase img {
        max-width: 100%;
        height: auto;
    }
    
    /* Countdown timer mobile */
    .countdown-timer .time-unit {
        margin: 0 0.25rem;
    }
    
    .countdown-timer .time-value {
        font-size: 1.25rem;
    }
    
    /* Floating elements mobile */
    .floating {
        animation: none;
    }
    
    /* Typography mobile */
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-5xl {
        font-size: 2.25rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    /* Padding mobile */
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Urgency indicators */
.urgency-indicator {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Guarantee seal */
.guarantee-seal {
    position: relative;
    display: inline-block;
    background: radial-gradient(circle, #22c55e, #16a34a);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Countdown timer */
.countdown-timer {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: bold;
    margin: 1rem 0;
}

.countdown-timer .time-unit {
    display: inline-block;
    margin: 0 0.5rem;
    text-align: center;
}

.countdown-timer .time-value {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.countdown-timer .time-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Testimonial card enhancements */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f97316, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Star rating */
.star-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Tablet-specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Touch-friendly buttons and links */
@media (max-width: 1024px) {
    button, a, .cta-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .btn-hover-effect:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
    .gradient-text {
        background: #000;
        -webkit-text-fill-color: #000;
    }
    
    .btn-hover-effect:hover {
        outline: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .gradient-text {
        background: #000 !important;
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
    /* Hero section mobile */
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* CTA buttons mobile */
    .cta-button {
        width: 100%;
        font-size: 1.125rem;
        padding: 1rem;
        min-height: 48px; /* Touch-friendly height */
    }
    
    /* Grid adjustments */
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Product showcase mobile */
    .product-showcase img {
        max-width: 100%;
        height: auto;
    }
    
    /* Countdown timer mobile */
    .countdown-timer .time-unit {
        margin: 0 0.25rem;
    }
    
    .countdown-timer .time-value {
        font-size: 1.25rem;
    }
    
    /* Typography mobile */
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-5xl {
        font-size: 2.25rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    /* Padding mobile */
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Container mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Touch-friendly buttons */
    button, a, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 50;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    /* Disable floating on mobile */
    .floating {
        animation: none;
    }
    
    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Social proof notifications mobile */
    .fixed.bottom-4.right-4 {
        bottom: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Touch-friendly for tablet */
    button, a, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}