/* Refined Luxury Design System */
:root {
    /* Color Palette - HSL for better control */
    --gold: 38, 48%, 56%;      /* #c5a059 - Antique Gold */
    --gold-light: 45, 60%, 85%;
    --charcoal: 0, 0%, 10%;    /* #1a1a1a - Deep Black */
    --parchment: 40, 20%, 96%; /* #f4f1ea - Warm White */
    --pure-white: 0, 0%, 100%;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Effects */
    --glass-bg: hsla(0, 0%, 100%, 0.1);
    --glass-blur: blur(15px);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-body); 
    line-height: 1.8; 
    color: hsl(var(--charcoal)); 
    background-color: var(--pure-white);
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* Typography Refinement */
h1, h2 { 
    font-family: var(--font-display); 
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header & Hero */
.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding-bottom: 10vh;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
}

.overlay-soft {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.header-content h1 { 
    font-size: clamp(3rem, 10vw, 6rem); 
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-content p { 
    font-weight: 200; 
    letter-spacing: 0.5em; 
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Sections Styling with Depth */
#galleries-container {
    counter-reset: gallery-counter;
}

section { 
    padding: 160px 20px; 
    position: relative;
    overflow: hidden;
}

.gallery-section {
    counter-increment: gallery-counter;
}

/* Background Numbering (Artistic/Light) */
.gallery-section::before {
    content: counter(gallery-counter, decimal-leading-zero);
    position: absolute;
    top: 50px;
    left: 5%;
    font-size: 15rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: hsl(var(--charcoal));
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    text-align: center; 
    position: relative;
    z-index: 1;
}

h2 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin-bottom: 20px; 
    position: relative;
    display: inline-block;
}

/* Gold Decorative Line */
h2::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: hsl(var(--gold));
}

.gallery-subtitle { 
    font-size: 1.1rem; 
    letter-spacing: 0.1em;
    color: hsl(var(--gold)); 
    margin-bottom: 60px; 
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Swiper Refining */
.swiper { width: 100%; padding: 50px 0 100px; }
.swiper-slide {
    width: 320px;
    height: 480px;
    transition: var(--transition);
}

.swiper-slide-active { transform: scale(1.05); }

.gallery-item {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-slide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes reveal-slide {
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Share Button */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: hsl(var(--gold));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: hsl(var(--charcoal));
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img { transform: scale(1.1); }

/* Progress Bar */
#scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 1000;
}
#scroll-progress-bar {
    height: 100%; background: linear-gradient(90deg, hsl(var(--gold)), #fff); width: 0%;
}

/* Footer & CTA Refinement */
.main-footer {
    padding: 120px 20px 60px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.footer-cta {
    margin-bottom: 80px;
}

.cta-link {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: hsl(var(--gold));
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    position: relative;
    padding-bottom: 10px;
    transition: var(--transition);
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: hsl(var(--gold));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cta-link i {
    font-size: 0.9rem;
    margin-left: 10px;
    opacity: 0.7;
}

/* Luxury Closing - Final Farewell */
.final-farewell {
    height: 80vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.farewell-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: white;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.farewell-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: hsl(var(--gold));
    text-transform: uppercase;
    letter-spacing: 0.8em;
    font-weight: 200;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 auto 40px;
}

.footer-credits p {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 200;
    opacity: 0.5;
}

.studio-signature {
    font-family: var(--font-display);
    font-style: italic;
    color: hsl(var(--gold)) !important;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: none;
    opacity: 1 !important;
    position: relative;
    margin-left: 5px;
}

/* Section Variants */
.section-dark {
    background-color: #0a0a0a;
    color: white;
}

.section-light {
    background-color: var(--parchment);
    color: hsl(var(--charcoal));
}

.section-alt {
    background-color: var(--pure-white);
    color: hsl(var(--charcoal));
}

/* Video Wrapper - Responsive 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    max-width: 1000px;
    margin: 60px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Glass Elements and Depth Transitions */

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 { font-size: 3rem; }
    .swiper-slide { width: 260px; height: 380px; }
}
