/* ==========================================
   FLAVORFY - ENHANCED CREATIVE STYLES
   ========================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1b2a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F7931E 0%, #FF6B35 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Ensure all images are visible immediately */
img {
    opacity: 1 !important;
}

.logo-img,
.cuisine-card img,
.food-card-3d img {
    opacity: 1 !important;
    transition: transform 0.5s ease;
}

/* Custom Cursor - DISABLED for performance */
/* Cursor elements are removed via JavaScript */

/* Performance Optimizations */
.food-card-3d,
.feature-card-3d,
.cuisine-card img {
    will-change: transform;
}

/* Navbar Styles */
#navbar {
    background: rgba(13, 27, 42, 0);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav-link {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.5s forwards;
}

.mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

.mobile-nav-link:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient Animation */
@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 4s ease infinite;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* 3D Cards */
.food-card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.food-card-3d:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 107, 53, 0.3);
}

.feature-card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card-3d:hover::before {
    left: 100%;
}

.feature-card-3d:hover {
    transform: translateY(-8px);
}

/* Progress Bar Animation */
.progress-bar {
    animation: progressFill 2s ease-out forwards;
    transform-origin: left;
}

@keyframes progressFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Stat Card Animation */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Reveal Animation */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Element */
.magnetic-element {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Particle Canvas */
#particles-js {
    opacity: 0.3;
}

/* Loading Screen */
#loading-screen {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Glow Effects */
.glow-accent {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.glow-accent:hover {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.8);
}

/* Text Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #fff 0%, #FF6B35 50%, #fff 100%);
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

/* Bento Grid Hover Effects */
.bento-card {
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bento-card:hover::after {
    width: 500px;
    height: 500px;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 20px;
    height: 20px;
    animation: ripple 0.6s linear;
}

/* Perspective Container */
.perspective-container {
    perspective: 1000px;
}

/* Logo Animation */
.logo-img {
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Scroll Indicator */
@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .food-card-3d {
        position: relative !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .custom-cursor,
    .custom-cursor-follower,
    #particles-js,
    #loading-screen,
    .magnetic-element {
        display: none;
    }
}