/* ============================================
   Command Coffee — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #6b21a8;
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fbbf24;
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #6b21a8;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #fbbf24;
    top: 60%;
    left: 3%;
    animation: float-slow 18s ease-in-out infinite;
}

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

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

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

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 24px;
    top: 10%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-slow 12s ease-in-out infinite;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 50%;
    bottom: 20%;
    left: 48%;
    animation: float-slow 8s ease-in-out infinite reverse;
}

.hero-geo-3 {
    width: 80px;
    height: 80px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    top: 30%;
    left: 45%;
    transform: rotate(30deg);
    animation: spin-slow 20s linear infinite;
}

.hero-geo-4 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    bottom: 30%;
    right: 15%;
    animation: float-slow 10s ease-in-out infinite;
}

/* ============================================
   Navbar
   ============================================ */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    position: relative;
    z-index: 1;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
}

/* ============================================
   Floating Animation
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .nav-fixed {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 10px rgba(107, 33, 168, 0.06);
    }

    .nav-fixed.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: rgba(168, 85, 247, 0.2);
    color: #3b0764;
}
