/* ============================================
   GREEN APPLE INN — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* ---------- Gold Button ---------- */
.gold-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 50%, #d4af37 100%);
    background-size: 200% 200%;
    color: #0a1628;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.gold-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #f0d78c 0%, #d4af37 50%, #b8941f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    background-position: right center;
}

.gold-button:hover::before {
    opacity: 1;
}

.gold-button:active {
    transform: translateY(0);
}

.gold-button span {
    position: relative;
    z-index: 1;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4af37, #34d399);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #d4af37 !important;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.5rem;
}

/* Hamburger Animation */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #line2 {
    opacity: 0;
}

#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Room Cards ---------- */
.room-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- Amenity Items ---------- */
.amenity-item {
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-4px);
}

/* ---------- Scroll Indicator ---------- */
@keyframes scroll-indicator {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ---------- Form Styles ---------- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0d78c, #d4af37);
}

/* ---------- Parallax Hero ---------- */
#hero {
    position: relative;
}

#hero img {
    will-change: transform;
}

/* ---------- Decorative Line ---------- */
.gold-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
