/* Custom styles for Nonna's Pizza & Pasta Ankeny */

:root {
    --midnight-950: #020610;
    --midnight-900: #0D1B2A;
    --mint-400: #5EEAD4;
    --mint-500: #34D399;
    --orange-400: #FB923C;
    --orange-500: #F97316;
    --rose-400: #FB7185;
    --rose-500: #F43F5E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-950);
    color: white;
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--midnight-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(94, 234, 212, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 234, 212, 0.5);
}

/* Hero decorative shapes */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(94, 234, 212, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(249, 115, 22, 0.08);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(94, 234, 212, 0.04);
    top: 25%;
    right: 38%;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(249, 115, 22, 0.06);
    top: 60%;
    right: 10%;
    transform: rotate(-15deg);
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(94, 234, 212, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    bottom: 20%;
    left: 15%;
}

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

#navbar.scrolled {
    background: rgba(2, 6, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint-400);
    transition: width 0.3s ease;
}

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.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);
    width: 24px;
}

/* Menu card hover */
.group:hover .group-hover\:bg-mint-500\/20 {
    background-color: rgba(94, 234, 212, 0.2);
}

/* Button hover effects */
a[href="#menu"], a[href="#about"], a[href="#specials"], a[href="#gallery"], a[href="#contact"] {
    text-decoration: none;
}

/* Gallery grid adjustments */
.grid-cols-2 img,
.grid-cols-3 img,
.grid-cols-4 img {
    display: block;
}

/* Ensure good contrast on all sections */
section {
    position: relative;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: white;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
