/* Custom styles for Pho Tay Ho */

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

/* Base animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

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

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Floating stat cards */
.floating-card {
    position: absolute;
}

.card-1 {
    top: 0;
    right: 0;
    animation: float-1 4s ease-in-out infinite;
    z-index: 10;
}

.card-2 {
    top: 50%;
    left: 0;
    animation: float-2 5s ease-in-out infinite;
    z-index: 5;
}

.card-3 {
    animation: float-3 4.5s ease-in-out infinite;
    z-index: 8;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 116, 145, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse-glow 6s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 173, 186, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation: pulse-glow 8s ease-in-out infinite 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 209, 217, 0.08);
    top: 30%;
    left: 15%;
    animation: rotate-slow 20s linear infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 116, 145, 0.08);
    top: 20%;
    right: 10%;
    animation: float-1 7s ease-in-out infinite;
    transform-origin: center;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 173, 186, 0.06);
    bottom: 30%;
    right: 25%;
    animation: rotate-slow 15s linear infinite;
    transform: rotate(45deg);
}

.line-pattern {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.02) 40px,
        rgba(255, 255, 255, 0.02) 80px
    );
    top: 0;
    left: 0;
}

/* Menu cards */
.menu-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(108, 29, 46, 0.1);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal (progressive enhancement - only active with JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
}

/* Reduced motion preference */
@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;
    }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid rgba(255, 116, 145, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c43650;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: rgba(255, 116, 145, 0.3);
    color: #3b0a12;
}
