/* ============================================
   Cafe by the Girls — Custom Styles
   Forest Green + Off-White | Vibrant Modern
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FEFAE0;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #264a33;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FEFAE0;
    color: #1B4332;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #FEFAE0;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.15);
}

.btn-primary:hover {
    background: transparent;
    color: #FEFAE0;
    border-color: #FEFAE0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FEFAE0;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(254, 250, 224, 0.5);
}

.btn-secondary:hover {
    background: rgba(254, 250, 224, 0.1);
    border-color: #FEFAE0;
    transform: translateY(-2px);
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 250, 224, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

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

#navbar.scrolled .font-display {
    color: #1B4332;
}

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

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

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

/* --- Menu Cards --- */
.menu-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.12);
}

/* --- Gallery --- */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Geometric Shapes (Hero) --- */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

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

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

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #FDF6C4;
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: float 12s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #F5D346;
    top: 20%;
    right: 10%;
    transform: rotate(15deg);
    animation: spin 25s linear infinite;
}

.geo-square-rotated {
    width: 200px;
    height: 200px;
    background: #FBED9A;
    top: 60%;
    right: 20%;
    transform: rotate(45deg);
    animation: float 18s ease-in-out infinite;
}

.geo-circle-small {
    width: 60px;
    height: 60px;
    background: #FDF6C4;
    border-radius: 50%;
    bottom: 25%;
    right: 30%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-green {
    opacity: 0.08 !important;
    background: #9bb5a3 !important;
}

.geo-green-2 {
    opacity: 0.06 !important;
    background: #b8d4b4 !important;
}

/* --- Dot Grid --- */
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(254, 250, 224, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

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

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

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

.marquee-item {
    flex-shrink: 0;
}

/* --- Scroll Indicator --- */
.scroll-dot {
    animation: bounce 2s ease-in-out infinite;
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- Mobile Menu Animation --- */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    .geo-triangle {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid #F5D346;
    }
    .geo-square-rotated {
        width: 100px;
        height: 100px;
    }
}
