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

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

body {
    font-family: 'Inter', sans-serif;
    background: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f0fdfa;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(13, 148, 136, 0.1);
}

#navbar.scrolled .hamburger-line {
    background: #f8fafc;
}

/* ── Geometric Background Shapes ── */
.geo-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(13, 148, 136, 0.15);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.15);
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-triangle-1 {
    bottom: 20%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(251, 191, 36, 0.06);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-ring-1 {
    top: 50%;
    left: 40%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(13, 148, 136, 0.08);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

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

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ── Floating Stat Cards ── */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

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

.floating-card.card-orders {
    animation-delay: -2s;
}

.floating-card.card-location {
    animation-delay: -4s;
}

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

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

.marquee-content {
    display: flex;
    gap: 0;
}

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

/* ── Menu Cards ── */
.menu-card {
    cursor: pointer;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(13, 148, 136, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hamburger Animation ── */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Form Styles ── */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-square-1 {
        width: 50px;
        height: 50px;
    }
    
    .shape-triangle-1 {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 45px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    .font-display.text-4xl,
    .font-display.text-5xl {
        font-size: 2rem !important;
    }
}
