/* ============================================
   Friends Villa — Premium Dark Luxury Styles
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0508;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A84C, #A07830);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F5CC6E, #C9A84C);
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5CC6E;
}

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

/* Base */
body {
    overflow-x: hidden;
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, #F5CC6E 0%, #C9A84C 50%, #A07830 100%);
    color: #1A0A14;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #F5CC6E 50%, #C9A84C 100%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}
.btn-gold:hover::before {
    left: 0;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.3);
}
.btn-gold span,
.btn-gold svg,
.btn-gold p,
.btn-gold a {
    position: relative;
    z-index: 1;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: #C9A84C;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-outline:hover {
    border-color: #C9A84C;
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.1);
}

/* Section Labels */
.section-label {
    display: block;
}

/* Section Title */
.section-title {
    letter-spacing: -0.02em;
}

/* Section Description */
.section-desc {
    line-height: 1.8;
}

/* Room Cards */
.room-card {
    cursor: pointer;
}
.room-card .group:hover img {
    transform: scale(1.05);
}

/* Amenity Cards */
.amenity-card {
    cursor: default;
}

/* Navigation */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(10, 5, 8, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(201, 168, 76, 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, #C9A84C, #F5CC6E);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #C9A84C !important;
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    transition: all 0.3s ease;
}
.mobile-link:hover {
    color: #F5CC6E !important;
    transform: translateX(8px);
}

/* Menu Button */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeUp 0.8s 0.3s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-title {
    animation: fadeUp 1s 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-tagline {
    animation: fadeUp 0.8s 0.8s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-ctas {
    animation: fadeUp 0.8s 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-scroll {
    animation: fadeIn 1s 1.5s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Dot Animation */
.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { top: -12px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }

/* Staggered room cards */
.room-card:nth-child(1) { transition-delay: 0.1s; }
.room-card:nth-child(2) { transition-delay: 0.2s; }
.room-card:nth-child(3) { transition-delay: 0.3s; }

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .reveal.visible {
        animation: none;
    }
}

/* Gold shimmer on hover for decorative elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Image aspect ratios */
img {
    display: block;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    @media (max-width: 480px) {
        #hero h1 {
            font-size: 2.25rem;
        }
    }
}

/* Loading state for form */
.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}
