/* ============================================
   Ruby's Cafe and Market Place — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e293b;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
    top: 30%;
    left: 15%;
    border-radius: 50%;
    animation: float-slow 5s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #0d9488;
    bottom: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f59e0b;
    top: 20%;
    left: 8%;
    opacity: 0.12;
    animation: float-slow 7s ease-in-out infinite;
}

/* Menu Section Geos */
.menu-geo {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.menu-geo .shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite;
}

.menu-geo .shape-square-1 {
    width: 80px;
    height: 80px;
    background: #14b8a6;
    bottom: 20%;
    left: 5%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite;
}

/* Market Section Geos */
.market-geo {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.market-geo .shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    border-radius: 50%;
    animation: float-slow 9s ease-in-out infinite;
}

.market-geo .shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #ffffff;
    top: 10%;
    right: 10%;
    opacity: 0.15;
    animation: float-slow 6s ease-in-out infinite reverse;
}

/* Contact Section Geos */
.contact-geo {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.contact-geo .shape-circle-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.contact-geo .shape-square-1 {
    width: 100px;
    height: 100px;
    background: #14b8a6;
    top: 15%;
    left: 5%;
    transform: rotate(60deg);
    animation: spin-slow 18s linear infinite;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

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

/* Hero Fade In Animation */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-fade-in:nth-child(2) { animation-delay: 0.15s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.3s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.45s; }
.hero-fade-in:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image Container */
.hero-image-container {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1e293b;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

/* Menu Cards */
.menu-card {
    transform: translateY(0);
}

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

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

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

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* Buttons */
button, a {
    cursor: pointer;
}

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

/* Image hover effects */
.menu-card img,
.about-images img,
.market-image img {
    transition: transform 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-geo {
        opacity: 0.08;
    }
    
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-square-1,
    .shape-triangle-1 {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, #contact, .hero-geo, .menu-geo, .market-geo, .contact-geo {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
