/* Chi Cafe — Custom Styles */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5ebf83;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #082313 !important;
}

.navbar-scrolled .nav-link {
    color: #082313 !important;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

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

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-circle {
    animation: floatCircle 4s ease-in-out infinite;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Selection Color */
::selection {
    background: #3aa363;
    color: #fdfbf7;
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    nav, footer, #contact {
        display: none;
    }
}

/* Reduced 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;
    }
}

/* Loading State */
.page-loaded #home {
    opacity: 1;
}

#home {
    opacity: 1;
}

/* Gallery Item Hover */
.rounded-2xl.overflow-hidden.group img,
.rounded-3xl.overflow-hidden.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button Ripple Effect */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(58, 163, 99, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
