/* ============================================
   Hung Phat Vietnamese Banh Mi & Coffee
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 77, 81, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 129, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192, 77, 81, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(192, 77, 81, 0.04);
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
}

.square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 129, 129, 0.05);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    border-radius: 8px;
}

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

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

/* Navigation */
#navbar {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(128, 39, 43, 0.1);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(128, 39, 43, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

/* Button Hover Effects */
a:hover {
    transition: all 0.3s ease;
}

/* Image Hover */
img {
    max-width: 100%;
    height: auto;
}

/* Selection Color */
::selection {
    background: #b83b3f;
    color: #FFF8F0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2e32;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 br {
        display: none;
    }
    
    .circle-1 {
        width: 200px;
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    .fixed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
