/* ===== Custom Styles for Cafecito ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #240b2e;
    color: #f5d0f5;
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    animation: float-slow 8s ease-in-out infinite;
}

.shape-square-1 {
    top: 20%;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-medium 6s ease-in-out infinite;
}

.shape-triangle-1 {
    bottom: 25%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(160, 64, 176, 0.12);
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-2 {
    bottom: 15%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed rgba(251, 191, 36, 0.1);
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    top: 30%;
    left: 50%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(245, 158, 11, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    animation: float-medium 7s ease-in-out infinite;
}

/* ===== Floating Stat Cards ===== */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 1.3s;
}

.card-stat-3 {
    animation-delay: 2.6s;
}

/* ===== Menu Cards ===== */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}

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

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #851c98;
}

/* ===== Selection ===== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #f5d0f5;
}
