/* ============================================
   Fika Cafe — Custom Styles
   ============================================ */

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

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

body {
    background-color: #0d1533;
    color: #dbe4ff;
}

/* Selection */
::selection {
    background: rgba(31, 196, 116, 0.3);
    color: #f0f4ff;
}

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

.shape-circle-1 {
    top: 10%;
    right: -8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 196, 116, 0.08) 0%, transparent 70%);
    border: 1px solid rgba(31, 196, 116, 0.06);
}

.shape-circle-2 {
    bottom: 15%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 124, 250, 0.06) 0%, transparent 70%);
    border: 1px solid rgba(92, 124, 250, 0.05);
}

.shape-square-1 {
    top: 45%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(31, 196, 116, 0.04);
    border: 1px solid rgba(31, 196, 116, 0.08);
    transform: rotate(45deg);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 60%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(31, 196, 116, 0.03);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-ring-1 {
    top: 25%;
    left: 8%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(92, 124, 250, 0.1);
    animation: float-slow 18s ease-in-out infinite;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 21, 51, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(92, 124, 250, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* ============================================
   Floating Cards (Hero)
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-fresh {
    animation-delay: 0s;
}

.card-coffee {
    animation-delay: -2s;
}

.card-hours {
    animation-delay: -4s;
}

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

/* ============================================
   Marquee
   ============================================ */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    display: inline-block;
    padding-left: 2rem;
}

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(31, 196, 116, 0.1);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   Only applied when JS is enabled and motion is preferred
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* When JS is enabled, add initial hidden state for below-fold reveals */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(92, 124, 250, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

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

::-webkit-scrollbar-track {
    background: #0d1533;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4c6ef5;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2 {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .floating-card.card-fresh {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        animation: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card.card-hours {
        display: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-shape,
    .floating-card,
    .marquee-track {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
