/* 
  NeoLiv Golf One - Custom Luxury Design System
  Expert Senior Frontend Implementation
*/

:root {
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --navy-900: #0a1128;
    --navy-950: #000814;
    --glass: rgba(10, 17, 40, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
}

/* Base Optimization */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    scroll-snap-type: y proximity; /* Subtle snap for brochure feel */
}

body {
    background-color: var(--navy-950);
    color: #FAFAF9;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Panel System */
.panel {
    scroll-snap-align: start;
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.active .panel-bg {
    transform: scale(1.05); /* Gentle parallax effect */
}

/* Navigation - Premium Glassmorphism */
#main-nav {
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-nav.nav-visible {
    transform: translateY(0) !important;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Rotate Prompt Logic */
#rotate-prompt {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: radial-gradient(circle at center, rgba(10,14,20,0.9), var(--navy-950));
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    25%, 75% { transform: rotate(-90deg); }
}

.rotate-icon svg {
    animation: rotateIcon 3s ease-in-out infinite;
}

/* Intersection Reveal System */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* International Telephone Input Overrides */
.iti { 
    width: 100%; 
    overflow: visible !important; /* Critical for flags */
}
.iti__selected-flag {
    background: rgba(255,255,255,0.02) !important;
    border-right: 1px solid var(--border-glass) !important;
    z-index: 20 !important;
}
.iti__country-list {
    background: var(--navy-900) !important;
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass) !important;
    z-index: 4000 !important; /* Must be above modal z-index */
}
.iti__country:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

/* Typography Enhancements */
@font-face {
    font-family: 'TrajanPro';
    src: url('../fonts/TRAJANPRO-BOLD.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

h2, h3, h4 {
    letter-spacing: -0.02em;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Forced Landscape Fix */
.video-rotate-trick {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100svh !important;
    height: 100svw !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .panel { min-height: 100svh; }
    #scroll-wrapper { padding-bottom: 60px; }
}

/* Modal Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

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

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SimpleLightbox Customization */
.sl-overlay { background: rgba(5,7,10,0.95) !important; backdrop-filter: blur(10px); }
.sl-wrapper .sl-close, .sl-wrapper .sl-navigation button {
    color: var(--gold) !important;
}

/* Swiper Gallery Customization */
.gallery-swiper {
    width: 100%;
    position: relative;
}

.gallery-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gallery-swiper .swiper-button-next:focus,
.gallery-swiper .swiper-button-prev:focus {
    outline: none !important;
    box-shadow: none !important;
}

@media (hover: hover) {
    .gallery-swiper .swiper-button-next:hover,
    .gallery-swiper .swiper-button-prev:hover {
        background-color: rgba(0, 8, 20, 0.8) !important;
        border-color: rgba(212, 175, 55, 0.4) !important;
    }
    .gallery-swiper .swiper-button-next:hover svg,
    .gallery-swiper .swiper-button-prev:hover svg {
        transform: scale(1.1);
    }
}

.gallery-swiper .swiper-button-next:active,
.gallery-swiper .swiper-button-prev:active {
    transform: scale(0.95);
    background-color: rgba(0, 8, 20, 0.9) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
    display: none !important; /* Remove default swiper icons */
}

@media (max-width: 768px) {
    .gallery-swiper {
        aspect-ratio: 4/3 !important;
    }
    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 44px !important;
        height: 44px !important;
    }
    .gallery-swiper .swiper-button-next svg,
    .gallery-swiper .swiper-button-prev svg {
        width: 20px;
        height: 20px;
    }
}

/* Scrollbar hiding utility */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

