/* Custom styles for Feel Butter website */

/* Color Variables */
:root {
    --primary: #FFC107;
    --primary-dark: #FFA000;
    --primary-light: #FFECB3;
    --secondary: #F9A825;
}

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Custom animation for hero section */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Custom button hover effect */
.hover-grow {
    transition: transform 0.3s ease;
}

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

/* Improved form elements focus states */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Testimonial card effect */
.testimonial-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Feature card hover effect */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Custom background patterns */
.bg-pattern-dots {
    background-image: radial-gradient(rgba(255, 193, 7, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-lines {
    background-image: linear-gradient(rgba(255, 193, 7, 0.1) 1px, transparent 1px), 
                      linear-gradient(to right, rgba(255, 193, 7, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom image shapes */
.blob-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.faq-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-header:hover {
    color: var(--primary);
}

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

/* Language dropdown menu fix */
.group:hover > .group-hover\:opacity-100 {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.group:hover > .group-hover\:visible {
    visibility: visible;
    transition-delay: 0s;
}

/* Give more time for hover interaction */
.group > .group-hover\:opacity-100,
.group > .group-hover\:visible {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Add delay before hiding dropdown */
.group:not(:hover) > div {
    transition-delay: 0.5s;
}

/* Lightbox styles */
.lightbox {
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.lightbox-image {
    max-height: 90vh;
    max-width: 90vw;
}

/* Responsive font sizes */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* Adding depth to cards */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom animation for benefits section */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Custom styling for contact form */
.contact-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Preloader styles (for future implementation) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Animation Classes */
.float-in {
    animation: floatIn 0.6s ease-out;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Fruit animation */
.fruit-animation {
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Yellow gradient background */
.bg-yellow-gradient {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Custom focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Language flag styles */
.language-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.2s;
}

.language-flag:hover {
    transform: scale(1.1);
}

/* Fruit bounce animation */
.fruit-bounce {
    animation: fruitBounce 2s infinite;
}

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

/* Custom transition for FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.active {
    max-height: 500px;
}

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

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Testimonial card style */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-light);
    font-family: Georgia, serif;
    opacity: 0.6;
}

/* Accessible focus styles that work with yellow */
.focus-accessible:focus {
    outline: 2px solid #FF6F00;
    outline-offset: 2px;
}

/* Hamburger menu styles */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background-color: white;
    z-index: 50;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-container.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Hamburger button styles */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 51;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu content */
.mobile-menu {
    padding: 80px 30px 30px;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    nav .container .desktop-menu {
        display: none !important;
    }
} 