/* ===== Custom Styles for The Lofts on Manning ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0c14;
}
::-webkit-scrollbar-thumb {
    background: #2a2a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection */
::selection {
    background: rgba(161, 29, 48, 0.6);
    color: #fff;
}

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

#navbar.scrolled {
    background: rgba(13, 12, 20, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    letter-spacing: 0.05em;
}

/* ===== Hero Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

.card-4 {
    animation-delay: -1s;
}

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

/* ===== Scroll Line ===== */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

/* ===== Loft Cards ===== */
.loft-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loft-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.loft-card:nth-child(2) {
    transition-delay: 0.15s;
}

.loft-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ===== Section Reveals ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Gold Accent Line ===== */
.gold-line {
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* ===== Button Hover Glow ===== */
button, .group:hover button {
    position: relative;
}

/* ===== Image Hover Overlay ===== */
.group:hover .absolute.inset-0 {
    background: linear-gradient(to top, rgba(13, 12, 20, 0.7) 0%, transparent 60%);
}

/* ===== Contact Form Focus ===== */
input:focus, textarea:focus {
    background: rgba(20, 19, 35, 0.8);
}

/* ===== Decorative Diamond ===== */
.rotate-45 {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ===== Parallax-like subtle movement ===== */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation-duration: 6s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .loft-card,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

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