/* Custom styles for Chattyshack */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c42857;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a31d46;
}

/* Menu tab active state */
.menu-tab {
    background: transparent;
    color: rgba(251, 226, 235, 0.6);
}

.menu-tab.active {
    background: #c42857;
    color: white;
    box-shadow: 0 4px 15px rgba(196, 40, 87, 0.3);
}

.menu-tab:not(.active):hover {
    background: rgba(196, 40, 87, 0.2);
    color: rgba(251, 226, 235, 0.9);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Geometric accent shapes */
.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 24px;
}

.geo-rounded {
    border-radius: 50% 20% 50% 20%;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Selection color */
::selection {
    background: #c42857;
    color: white;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #c42857;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
