/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-user-select: none;
    /* Disable text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disable context menu (implemented in JS, but adding CSS just in case) */
body {
    -webkit-touch-callout: none;
}

/* Section Margins */
section {
    margin-bottom: 80px;
    scroll-margin-top: 80px; /* Offset for mobile header */
}

@media (min-width: 768px) {
    section {
        margin-bottom: 120px;
        scroll-margin-top: 96px; /* Offset for desktop header */
    }
}

/* Parallax Effect */
.bg-fixed-bg {
    background-image: url('../img/bggs.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* For iOS parallax support */
@supports (-webkit-touch-callout: none) {
    .bg-fixed-bg {
        background-attachment: scroll;
    }
}

/* Header shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Link Overlay Animation */
.overlay-link {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.overlay-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

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

/* Gallery Hover */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility to ensure FV images don't gap */
#fv img {
    display: block;
}

/* Custom Scroll Top Button */
#scroll-top.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Prevent horizontal scroll from Swiper fade */
.swiper-fade .swiper-slide {
    pointer-events: none;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}