/* ========================================
   Vivi's Frutas Y Raspados — Custom Styles
   ======================================== */

/* Base reset & smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Decorative Background Shapes
   ======================================== */
.bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(123, 44, 191, 0.06);
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 60%;
    left: 8%;
    opacity: 0.6;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(36, 10, 61, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(36, 10, 61, 0.95);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    max-height: 400px;
    padding-top: 0.5rem;
}

.mobile-link {
    border-bottom: 1px solid rgba(123, 44, 191, 0.2);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-text {
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
    opacity: 1;
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

.hero-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Floating cards */
.hero-float-card {
    animation: float 4s ease-in-out infinite;
}

.float-card-1 {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 25%;
    left: -20px;
    animation-delay: 1s;
}

.float-card-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion - content always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-float-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Product Cards
   ======================================== */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Buttons & Interactive Elements
   ======================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #fff;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #240a3d;
}

::-webkit-scrollbar-thumb {
    background: #7B2CBF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a234c4;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .shape-dots {
        width: 100px;
        height: 100px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-card-main {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .hero-float-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-card-main img {
        height: 300px !important;
    }
}
