/* ========================================
   Ting's Chinese Restaurant — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFF9F5;
    color: #1a1a2e;
    overflow-x: hidden;
}

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

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

.shape-square-1 {
    bottom: 20%;
    left: 3%;
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 74, 0.06);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    top: 40%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 74, 0.05);
    animation: rotate 12s linear infinite;
}

.shape-circle-2 {
    bottom: 10%;
    right: 25%;
    width: 80px;
    height: 80px;
    background: rgba(45, 45, 68, 0.06);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.shape-dots {
    top: 20%;
    left: 8%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 107, 74, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.6;
    animation: float 7s ease-in-out infinite reverse;
}

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

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

/* Navbar */
.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-link {
    position: relative;
}

#mobile-menu {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

#mobile-menu.closed {
    transform: translateX(100%);
}

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

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

/* 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;
    }
    
    .geometric-shape {
        animation: none !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

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

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

/* Selection */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1a1a2e;
}
