/* Neodesha Guesthouse — Custom Styles */

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

/* Base link styles */
a {
    text-decoration: none;
}

/* Selection color */
::selection {
    background-color: rgba(232, 108, 79, 0.2);
    color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A8A8A8;
}

/* Mobile menu animations */
#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Hamburger animation */
#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(5px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Subtle hover underline for internal nav links */
nav a:not(.no-underline):hover {
    position: relative;
}
nav a:not(.no-underline):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #E86C4F;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.3s ease;
}
nav a:not(.no-underline):hover::after {
    transform-origin: left;
}

/* Form focus ring custom */
input:focus, textarea:focus {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .group:hover img { transform: none !important; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal { display: none; }
    body { background: white; color: black; }
    section { padding: 20px 0; }
}
