/* ===== Custom Styles for Wilson 5 Cafe ===== */

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

/* ===== Geometric Background Shapes ===== */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 173, 173, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 31, 42, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 173, 173, 0.12);
    top: 30%;
    left: 5%;
    animation: spin-slow 30s linear infinite;
    transform-origin: center center;
}

.geo-rect {
    position: absolute;
    border-radius: 20px;
    pointer-events: none;
}

.geo-rect--1 {
    width: 120px;
    height: 120px;
    background: rgba(120, 31, 42, 0.05);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(120, 31, 42, 0.12) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
    animation: float-slow 12s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ===== Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-coffee {
    animation-delay: 0s;
}

.card-cocktail {
    animation-delay: -2s;
}

.card-location {
    animation-delay: -4s;
}

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

/* ===== Stat Cards ===== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(120, 31, 42, 0.08);
    border: 1px solid rgba(120, 31, 42, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(120, 31, 42, 0.12);
}

/* ===== Navigation ===== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

/* Scrolled nav state */
nav.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(120, 31, 42, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #781f2a;
}

/* ===== Menu Cards ===== */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #781f2a, #ffadad);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(120, 31, 42, 0) 0%, rgba(120, 31, 42, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== 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.revealed {
    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; }

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Back to Top ===== */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle--2 {
        width: 180px;
        height: 180px;
    }
    
    .geo-triangle--1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 66px solid rgba(255, 173, 173, 0.12);
    }
    
    .geo-rect--1 {
        width: 80px;
        height: 80px;
    }
}

/* ===== Focus styles ===== */
*:focus-visible {
    outline: 2px solid #781f2a;
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(120, 31, 42, 0.15);
    color: #781f2a;
}
