/* Custom styles for Great American Bagel */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation text color handling */
.nav-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile menu link styles */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-link:hover {
    padding-left: 0.75rem;
    color: #5eead4;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #5eead4;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 4px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

/* Scroll-triggered animations */
.fade-up {
    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);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 0.3s; }

/* Custom selection color */
::selection {
    background: #14b8a6;
    color: white;
}

/* Image hover zoom with overflow protection */
.group img {
    will-change: transform;
}

/* Remove outline for mouse users, keep for keyboard */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Subtle parallax on hero */
#hero {
    perspective: 1px;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Gallery grid item hover */
.grid > div > img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}
