/* ============================================
   Qavah Coffee — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ============================================
   Geometric Animations
   ============================================ */

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.c1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.c2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float2 10s ease-in-out infinite;
}

.c3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: float3 6s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.s1 {
    width: 80px;
    height: 80px;
    background: rgba(45, 212, 191, 0.12);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin1 12s linear infinite;
}

.s2 {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.06);
    bottom: 25%;
    right: 10%;
    transform: rotate(20deg);
    animation: spin2 8s linear infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.t1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(45, 212, 191, 0.1);
    top: 30%;
    right: 5%;
    animation: float3 7s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 15%;
    left: 5%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float2 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

@keyframes spin1 {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes spin2 {
    from { transform: rotate(20deg); }
    to { transform: rotate(-340deg); }
}

/* ============================================
   Marquee Animation
   ============================================ */

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

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* ============================================
   Menu Cards
   ============================================ */

.menu-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(30, 58, 138, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
    border-color: rgba(45, 212, 191, 0.3);
}

/* ============================================
   Gallery Items
   ============================================ */

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

.gallery-item img {
    transition: transform 0.5s ease;
}

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

/* ============================================
   Navbar Scroll State
   ============================================ */

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-scrolled .logo-text {
    color: #1e3a8a !important;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-link {
    position: relative;
}

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

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

/* ============================================
   Focus States
   ============================================ */

input:focus, textarea:focus {
    outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 640px) {
    .geo-circle {
        display: none;
    }
    
    .geo-square, .geo-triangle {
        display: none;
    }
}
