/* ========================================
   FARMASCALE LANDING PAGE - CUSTOM STYLES
   Modern Pastel Design with Mesh Pattern
   ======================================== */

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ========== MESH PATTERN ========== */
.mesh-pattern {
    background-image: 
        linear-gradient(45deg, rgba(196, 181, 253, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 181, 216, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(191, 219, 254, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(153, 246, 228, 0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    animation: mesh-move 20s linear infinite;
}

@keyframes mesh-move {
    0% {
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    }
    100% {
        background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px;
    }
}

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slide-up-delayed {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ========== UTILITY CLASSES ========== */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

.animate-fade-in-delayed {
    animation: fade-in 1.5s ease-out 0.3s both;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-slide-up-delayed {
    animation: slide-up-delayed 1s ease-out 0.2s both;
}

.animate-bounce {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ========== SCROLLBAR CUSTOMIZATION ========== */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #A78BFA, #FFB5D8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8B5CF6, #EC4899);
}

/* ========== SECTION SPECIFIC STYLES ========== */

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Pain Cards Hover Effect */
.pain-card {
    transition: all 0.3s ease;
    cursor: default;
}

.pain-card:hover {
    transform: translateX(10px);
    border-color: #ef4444;
}

/* Differential Cards */
.differential-card {
    position: relative;
    overflow: hidden;
}

.differential-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.differential-card:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

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

/* Benefit Cards */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.benefit-card:hover::after {
    width: 300px;
    height: 300px;
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer.show {
    max-height: 500px;
}

/* Form Styles */
#demo-form input,
#demo-form select {
    transition: all 0.3s ease;
}

#demo-form input:focus,
#demo-form select:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 168, 89, 0.2);
}

#demo-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#demo-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#demo-form button[type="submit"]:hover::before {
    width: 400px;
    height: 400px;
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop:hover {
    box-shadow: 0 5px 20px rgba(0, 168, 89, 0.5);
}

/* ========== INTERSECTION OBSERVER ANIMATIONS ========== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    #hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .pain-card:hover {
        transform: none;
    }
    
    .differential-card,
    .benefit-card {
        transform: none !important;
    }
    
    /* Mobile Font Size Adjustments */
    h1 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.4;
    }
    
    h4 {
        font-size: 1rem !important; /* 16px */
    }
    
    p {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.6;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
    
    /* Button adjustments */
    button, .btn, a[class*="bg-"] {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Card padding adjustments */
    .pain-card,
    .differential-card,
    .benefit-card {
        padding: 1.25rem !important;
    }
}

/* ========== LOADING ANIMATION ========== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00A859;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, #A78BFA, #FFB5D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== GLASSMORPHISM EFFECTS ========== */
.glass {
    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);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    animation: slide-up 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.success-message i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* ========== COMPARISON TABLE RESPONSIVE ========== */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 12px 8px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    header,
    #backToTop,
    #demo {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 3px solid #00A859;
    outline-offset: 2px;
}

/* ========== MOBILE MENU (if needed in future) ========== */
@media (max-width: 768px) {
    nav {
        position: relative;
    }
}

/* ========== WHATSAPP BUTTON (optional enhancement) ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(0,0,0,0.4);
}

/* ========== 3D WIREFRAME EFFECT ========== */
.wireframe-3d {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.wireframe-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(167, 139, 250, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(167, 139, 250, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* ========== HOLOGRAPHIC EFFECT ========== */
.holographic {
    background: linear-gradient(
        135deg,
        rgba(196, 181, 253, 0.3) 0%,
        rgba(255, 181, 216, 0.3) 25%,
        rgba(191, 219, 254, 0.3) 50%,
        rgba(153, 246, 228, 0.3) 75%,
        rgba(196, 181, 253, 0.3) 100%
    );
    background-size: 200% 200%;
    animation: holographic-shift 10s ease infinite;
}

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

/* ========== SOCIAL PROOF BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 100px;
    color: rgba(0, 168, 89, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* ========== NUMBER COUNTER ANIMATION ========== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ========== VIDEO PLACEHOLDER ========== */
.video-placeholder {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.video-placeholder::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: white;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ========== STATS SECTION ========== */
.stat-item {
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #00A859, #0066CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== CTA BUTTON ENHANCEMENTS ========== */
.cta-primary {
    position: relative;
    z-index: 1;
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00A859, #0066CC);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-primary:hover::after {
    opacity: 1;
}

/* ========== SMOOTH REVEAL ANIMATIONS ========== */
@keyframes reveal-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal-left {
    animation: reveal-left 0.8s ease-out;
}

.reveal-right {
    animation: reveal-right 0.8s ease-out;
}

/* ========== TIMELINE STYLES (for How It Works) ========== */
.timeline-connector {
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #FCD34D, transparent);
    transform: translateX(-50%);
}

.timeline-connector:last-child::after {
    display: none;
}

/* ========== DARK MODE SUPPORT (optional) ========== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ========== END OF STYLES ========== */
