/* ============================================
   New York Connection Youth Hostel
   Custom Styles
============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1f1d1a;
}
::-webkit-scrollbar-thumb {
    background: #c93d1e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8301a;
}

/* Selection */
::selection {
    background: #c93d1e;
    color: #fff;
}

/* ============================================
   Navigation
============================================ */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(31, 29, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-text {
    transition: color 0.5s ease;
}

.navbar-subtext {
    transition: color 0.5s ease;
}

.navbar-link {
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f49d82;
    transition: width 0.3s ease;
}

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

/* ============================================
   Mobile Menu
============================================ */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #f49d82;
    transition: width 0.3s ease;
}

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

#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

#mobileMenu.hidden {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================
   Scroll Reveal
============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ============================================
   Cards
============================================ */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Buttons
============================================ */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* ============================================
   Input Focus
============================================ */
input:focus, textarea:focus {
    outline: none;
}

/* ============================================
   Map
============================================ */
iframe {
    filter: saturate(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .section-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}
