/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --gold-accent: #d4af37;
    --light-gold: #f4e5c2;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open House Banner */
.open-house-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a3 50%, #d4af37 100%);
    z-index: 9999;
    padding: 8px 15px; /* Reduced padding */
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    animation: slideDown 0.5s ease-out;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.banner-icon {
    font-size: 22px; /* Smaller icon */
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.banner-text {
    flex: 1;
    text-align: center;
}

.banner-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; /* Smaller heading */
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
}

.banner-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; /* Smaller text */
    color: var(--primary-color);
    margin: 2px 0 0;
    font-weight: 500;
}

.banner-cta {
    display: flex;
    gap: 15px;
}

.banner-btn {
    background: var(--primary-color);
    color: var(--gold-accent);
    padding: 6px 16px; /* Smaller button */
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem; /* Smaller font */
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


/* Open House Tag in Hero */
.open-house-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4af37, #f4e4a3);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    animation: gentleFloat 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.open-house-tag i {
    font-size: 14px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 55px; /* Adjusted for smaller banner */
    right: 20px;
    z-index: 9998; /* Just below banner (9999) but above everything else */
    display: flex;
    gap: 5px;
    background: rgba(26, 26, 26, 0.9);
    padding: 5px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.lang-btn {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--gold-accent);
    color: var(--primary-color);
}

.lang-btn.active:hover {
    background: #b8941f;
}

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

/* Smooth scroll for all browsers */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    margin: 0;
    padding: 0;
    padding-top: 45px; /* Reduced space for smaller banner */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(44, 44, 44, 0.7) 100%),
                url('./assets/front_facade.jpg') center/cover fixed;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 60px;
    z-index: 2;
    position: relative;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gold-accent);
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-price {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--white);
    font-weight: 300;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: none; /* Hidden - using background image on hero instead */
}

/* Desktop hero positioning - smaller card at bottom-left */
@media (min-width: 769px) {
    .hero {
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 0 50px 50px;
    }

    .hero-content {
        max-width: 480px;
        padding: 40px;
        margin: 0;
        flex: none;
    }

    .hero h1 {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .hero-price {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-actions {
        gap: 15px;
    }

    .hero-actions .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Large desktop screens - even more refined positioning */
@media (min-width: 1200px) {
    .hero {
        padding: 0 0 60px 60px;
    }

    .hero-content {
        max-width: 500px;
    }
}

/* Floating DuProprio Button */
.floating-duproprio-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--gold-accent);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards 1s,
               gentleGlow 3s ease-in-out infinite 1.5s;
}

.floating-duproprio-btn:hover {
    background: var(--gold-accent);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5),
                0 0 30px rgba(212, 175, 55, 0.4);
    padding-right: 28px;
    animation: slideInUp 0.5s ease forwards,
               gentleGlowHover 1.5s ease-in-out infinite;
}

.floating-duproprio-btn i {
    font-size: 16px;
}

/* Animation for floating button */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth attention-grabbing animation with blur effect */
@keyframes gentleGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(212, 175, 55, 0.2);
        border-color: var(--gold-accent);
    }
    25% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35),
                    0 0 30px rgba(212, 175, 55, 0.35),
                    0 0 50px rgba(212, 175, 55, 0.15);
        border-color: #e6c157;
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
                    0 0 40px rgba(212, 175, 55, 0.5),
                    0 0 60px rgba(212, 175, 55, 0.2);
        border-color: #f0cb5c;
    }
    75% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35),
                    0 0 30px rgba(212, 175, 55, 0.35),
                    0 0 50px rgba(212, 175, 55, 0.15);
        border-color: #e6c157;
    }
}

/* Stronger glow on hover */
@keyframes gentleGlowHover {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5),
                    0 0 30px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6),
                    0 0 40px rgba(212, 175, 55, 0.5);
    }
}

/* Initial attention pulse with background glow */
.floating-duproprio-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: var(--gold-accent);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: initialPulse 2s ease-out 2s 2, backgroundGlow 4s ease-in-out infinite 4s;
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

/* Smooth background glow effect */
@keyframes backgroundGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(20px);
    }
    50% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.3);
        filter: blur(25px);
    }
}

@keyframes initialPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: auto;
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* HonestDoor button styling */
.btn-honestdoor {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 14px 20px;
}

.btn-honestdoor:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-honestdoor i {
    color: var(--gold-accent);
}

/* DuProprio hero button - hide on desktop (floating button visible) */
.btn-duproprio-hero {
    display: none;
}

@media (max-width: 768px) {
    .btn-duproprio-hero {
        display: inline-flex;
    }
}

/* Quick Stats */
.quick-stats {
    background: var(--light-gray);
    padding: 60px 0;
}

.quick-stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
}

/* Description Section */
.description-section {
    padding: 100px 0;
}

.description-content {
    max-width: 800px;
}

.description-content .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
}

.description-content p {
    color: #333; /* Darker gray for better readability */
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 400;
}

/* Gallery Hero Section - Full Viewport Professional */
.gallery-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Gallery Header */
.gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
    z-index: 10;
}

.gallery-title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Playfair Display', serif;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

/* Gallery Carousel Container */
.gallery-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-pages {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.gallery-page.active {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
}

.gallery-page.sliding-in {
    display: flex;
    pointer-events: none;
}

.gallery-page.sliding-out {
    display: flex;
    pointer-events: none;
}

/* Gallery Grid - Dynamic based on viewport */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    padding: 120px 60px 80px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

/* Partial grid for last page - same size items */
.gallery-grid-partial {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, 1fr);
    gap: 20px;
    padding: 120px 60px 80px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

/* Large screens - 4x4 grid (16 items) */
@media (min-height: 900px) and (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    .gallery-grid-partial {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 1fr;
    }
}

/* Small screens keep default 4x3 */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* 3D Tour Trigger in Gallery */
.gallery-3d-trigger {
    position: relative;
}

.gallery-3d-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-3d-overlay img {
    filter: blur(3px) brightness(0.4);
    transition: filter 0.3s ease, transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-3d-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    pointer-events: none;
}

.gallery-3d-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gold-accent);
    animation: rotate3d 4s linear infinite;
}

.gallery-3d-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-3d-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.gallery-3d-trigger:hover .gallery-3d-overlay img {
    filter: blur(5px) brightness(0.3);
    transform: scale(1.05);
}

.gallery-3d-trigger:hover .gallery-3d-content i {
    animation-duration: 2s;
    color: #f4e4a3;
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove different sizes - all items same size */
.gallery-item-large,
.gallery-item-wide,
.gallery-item-tall {
    grid-column: span 1;
    grid-row: span 1;
}

/* Hover Effects */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(212, 175, 55, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

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

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.4);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-nav:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.3);
}

.gallery-nav.prev {
    left: 40px;
}

.gallery-nav.next {
    right: 40px;
}

.gallery-nav i {
    font-size: 20px;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: #d4af37;
    border-color: #d4af37;
    width: 30px;
    border-radius: 6px;
}

/* Gallery Subtitle */
.gallery-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000; /* Above banner */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 80vh;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    overflow: hidden;
}

.lightbox-container:active {
    cursor: grabbing;
}

/* Lightbox slider system - Clean approach with fade */
.lightbox-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide {
    position: absolute;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
}

.lightbox-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.lightbox-slide.sliding-in {
    display: block;
    opacity: 0;
}

.lightbox-slide.sliding-out {
    display: block;
    opacity: 1;
}

/* IDs for the three slides */
#lightbox-prev,
#lightbox-current,
#lightbox-next {
    display: block;
    opacity: 1;
}

/* Smooth dragging state */
.lightbox-slider.dragging {
    cursor: grabbing;
}

.lightbox-slider.dragging .lightbox-slide {
    transition: none;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 16px;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    white-space: nowrap;
}

/* Thumbnail strip */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    max-width: 90%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-accent) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 3px;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.lightbox-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--gold-accent);
}

.close {
    position: absolute;
    top: 30px;
    right: 45px;
    font-size: 40px;
    font-weight: 300;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.close:hover {
    color: var(--gold-accent);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    opacity: 0.7;
}

.prev:hover, .next:hover {
    background: rgba(212, 175, 55, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 3D Tour Modal */
.modal-3d {
    display: none;
    position: fixed;
    z-index: 10001; /* Above banner and lightbox */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-3d.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-3d-content {
    width: 98vw;
    height: 95vh;
    max-width: 1800px;
    background: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-3d.active .modal-3d-content {
    transform: scale(1);
}

.modal-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-bottom: 1px solid var(--gold-accent);
    position: relative;
    z-index: 10;
}

.modal-3d-header h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 500;
}

.modal-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-fullscreen:hover {
    background: var(--gold-accent);
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #e74c3c;
    color: var(--white);
    transform: rotate(90deg);
}

.modal-3d-body {
    height: calc(100% - 60px);
    position: relative;
    background: #000;
}

#tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features Section - Million Dollar Luxury */
.features-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(44, 44, 44, 0.88) 50%, rgba(26, 26, 26, 0.92) 100%),
                url('./assets/cuisine.jpg') center/cover fixed;
    overflow: hidden;
}

@media (max-width: 768px) {
    .features-section {
        background-attachment: scroll; /* Fix parallax on mobile */
        padding: 80px 0;
    }
}

.features-section .section-title {
    color: var(--white);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.features-section .section-title::after {
    background: var(--gold-accent);
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.feature-category:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.99);
    border-color: rgba(212, 175, 55, 0.5);
}

.feature-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), rgba(212, 175, 55, 0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-category:hover::before {
    transform: scaleX(1);
}

.feature-category h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 10px;
}

.feature-category h3 i {
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.feature-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-category li {
    padding: 6px 0;
    color: #333; /* Dark text on white card background */
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.feature-category li:hover {
    color: var(--primary-color); /* Darker on hover */
}

.feature-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    font-weight: bold;
    font-size: 0.85rem;
    top: 6px;
}

/* Virtual Tour Section */
.virtual-tour-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(rgba(26, 26, 26, 0.82), rgba(26, 26, 26, 0.82)),
                url('./assets/Salle_de_bain_haut.jpg') center/cover fixed;
    padding: 120px 0;
    margin: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .virtual-tour-section {
        background-attachment: scroll; /* Fix parallax on mobile */
        padding: 80px 0;
    }
}

.vt-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.vt-text {
    flex: 1;
}

.vt-text h2 {
    font-size: 3.5rem;
    color: var(--gold-accent);
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.vt-text p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.vt-image {
    flex: 1;
}

.vt-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

/* Mobile-only buttons */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-flex !important;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 120px 0;
    background: linear-gradient(rgba(248, 248, 248, 0.92), rgba(248, 248, 248, 0.92)),
                url('./assets/front_facade.jpg') center/cover fixed;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-section {
        background-attachment: scroll; /* Fix parallax on mobile */
        padding: 60px 0;
    }
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    padding: 60px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-lead {
    font-size: 1.25rem;
    color: #1a1a1a; /* Much darker text for contact section */
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500; /* Slightly bolder for better readability */
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

/* Phone button styling */
.btn-primary .fa-phone {
    transform: rotate(90deg);
    margin-right: 2px;
}

/* SMS icon adjustment */
.btn-primary .fa-comment-dots {
    font-size: 1.1em;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gold-accent);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
    }

    .hero-content {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 15px;
    }

    .floating-duproprio-btn {
        bottom: 25px;
        right: 25px;
        padding: 12px 20px;
    }

    .vt-content {
        flex-direction: column;
    }

    .modal-3d-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .modal-3d-header {
        padding: 12px 20px;
    }

    .modal-3d-body {
        height: calc(100% - 50px);
    }
}

@media (max-width: 768px) {
    /* Open House Banner Mobile - Much more compact */
    body {
        padding-top: 75px; /* Increased for taller banner with stacked buttons */
    }

    .language-switcher {
        top: 85px; /* Below expanded banner */
    }

    .open-house-banner {
        padding: 8px 10px; /* Slightly more padding */
    }

    .banner-content {
        flex-direction: row; /* Keep horizontal even on mobile */
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .banner-icon {
        font-size: 18px; /* Smaller on mobile */
        display: none; /* Hide icon on mobile to save space */
    }

    .banner-text {
        flex: 1;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .banner-text h3 {
        font-size: 0.75rem; /* Smaller heading */
        margin: 0;
        white-space: nowrap;
    }

    .banner-dates {
        display: flex;
        flex-direction: column;
        gap: 1px;
        line-height: 1.1;
    }

    .banner-dates p {
        font-size: 0.65rem; /* Smaller text */
        margin: 0;
        white-space: nowrap;
    }

    .banner-cta {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .banner-btn {
        padding: 5px 12px; /* Compact button */
        font-size: 0.7rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .banner-btn i {
        font-size: 0.65rem;
    }

    .banner-btn-duproprio {
        background: var(--primary-color);
        border: 2px solid var(--gold-accent);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: relative;
        overflow: hidden;
        animation: bannerButtonGlow 3s ease-in-out infinite;
        box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    }

    .banner-btn-duproprio i {
        font-size: 0.65rem;
        color: var(--gold-accent);
    }

    .banner-btn-duproprio:hover {
        background: var(--gold-accent);
        color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    }

    @keyframes bannerButtonGlow {
        0%, 100% {
            box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3),
                        0 0 10px rgba(212, 175, 55, 0.2);
            border-color: var(--gold-accent);
        }
        50% {
            box-shadow: 0 2px 15px rgba(212, 175, 55, 0.5),
                        0 0 20px rgba(212, 175, 55, 0.4);
            border-color: #f0cb5c;
        }
    }


    .open-house-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 10px;
    }

    /* Fix hero and parallax on mobile - Bottom Sheet Design */
    .hero {
        background-attachment: scroll;
        min-height: 100vh; /* Full height to show image */
        padding: 0;
        display: flex;
        align-items: flex-end; /* Push content to bottom */
        position: relative;
    }

    /* Add scroll direction arrows to hero background */
    .hero::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 30%;
        transform: translateX(-50%);
        width: 40px;
        height: 60px;
        background-image:
            linear-gradient(to bottom, transparent 40%, rgba(212, 175, 55, 0.3) 40%, rgba(212, 175, 55, 0.3) 60%, transparent 60%),
            linear-gradient(135deg, transparent 48%, rgba(212, 175, 55, 0.3) 48%, rgba(212, 175, 55, 0.3) 52%, transparent 52%),
            linear-gradient(225deg, transparent 48%, rgba(212, 175, 55, 0.3) 48%, rgba(212, 175, 55, 0.3) 52%, transparent 52%);
        background-size: 20px 20px, 20px 20px, 20px 20px;
        background-position: center 0, center 0, center 0;
        background-repeat: no-repeat;
        opacity: 0.4;
        animation: scrollArrows 2s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }

    @keyframes scrollArrows {
        0%, 100% {
            opacity: 0.3;
            transform: translateX(-50%) translateY(0);
        }
        50% {
            opacity: 0.6;
            transform: translateX(-50%) translateY(10px);
        }
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .feature-category {
        padding: 20px;
    }

    .feature-category h3 {
        font-size: 1rem;
    }

    .feature-category li {
        font-size: 0.85rem;
        padding: 5px 0;
        padding-left: 28px; /* More space for checkmark on mobile */
        color: #1a1a1a !important; /* Very dark text on mobile for maximum contrast */
        font-weight: 400;
    }

    .feature-category li::before {
        left: 6px; /* Adjust checkmark position to prevent overlap */
        top: 5px;
    }

    /* Enhanced contrast for all text on mobile */
    .contact-lead {
        color: #000 !important; /* Full black on mobile for maximum contrast */
        font-weight: 500;
        font-size: 1.15rem;
    }

    .description-content p {
        color: #1a1a1a !important; /* Darker text in description */
        font-weight: 400;
    }

    .stat-label {
        color: #1a1a1a !important;
        font-weight: 500;
    }

    .hero-content {
        position: fixed;
        bottom: 0;
        left: 10px;
        right: 10px;
        transform: translateY(calc(100% - 140px)); /* Show only essential info */
        padding: 20px 20px 30px !important;
        margin: 0 auto !important;
        border-radius: 25px !important; /* Rounded all corners */
        max-width: calc(100% - 20px);
        width: auto;
        background: rgba(26, 26, 26, 0.97) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
        transition: transform 0.3s ease;
        max-height: 85vh; /* Don't cover entire screen when expanded */
        overflow-y: auto;
        z-index: 100;
    }

    /* Swipe indicator - enhanced for visibility */
    .hero-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background: var(--gold-accent);
        border-radius: 3px;
        animation: swipePulse 2s ease-in-out infinite;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }

    @keyframes swipePulse {
        0%, 100% {
            opacity: 0.6;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.1);
        }
    }

    /* Hide swipe indicator when expanded */
    .hero-content.expanded::before {
        display: none;
    }

    /* Expanded state class */
    .hero-content.expanded {
        transform: translateY(0);
    }

    .hero-badge {
        display: none; /* Hide badges in collapsed view */
    }

    .open-house-tag {
        display: none; /* Hide tags in collapsed view */
    }

    .hero-content.expanded .hero-badge,
    .hero-content.expanded .open-house-tag {
        display: inline-flex; /* Show when expanded */
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 5px;
        margin-top: 8px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 3px;
        opacity: 0.9;
    }

    .hero-price {
        font-size: 1.6rem !important;
        margin-bottom: 15px;
        color: var(--gold-accent);
    }

    .hero-actions {
        display: none; /* Hide in collapsed view */
    }

    .hero-content.expanded .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .hero-actions .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
    }

    /* HonestDoor button on mobile */
    .btn-honestdoor {
        font-size: 0.85rem !important;
        padding: 10px 16px !important;
        text-align: center;
    }

    .btn-honestdoor span {
        white-space: normal;
        line-height: 1.3;
    }

    /* Add expand instruction in collapsed state - more visible */
    .hero-content::after {
        content: attr(data-expand-text);
        position: absolute;
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.65rem;
        color: var(--gold-accent);
        text-transform: none;
        letter-spacing: 0.3px;
        font-weight: 600;
        opacity: 1;
        pointer-events: none;
        animation: fadeInOut 2s ease-in-out infinite;
        text-align: center;
        white-space: nowrap;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    @keyframes fadeInOut {
        0%, 100% {
            opacity: 0.7;
        }
        50% {
            opacity: 1;
        }
    }

    /* Hide instruction when expanded */
    .hero-content.expanded::after {
        display: none;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .floating-duproprio-btn {
        display: none; /* Hide on mobile - now in banner */
    }

    .floating-duproprio-btn i {
        font-size: 15px;
    }

    .floating-duproprio-btn span {
        display: inline !important;
    }

    .floating-duproprio-btn:hover span {
        display: inline;
    }

    .floating-duproprio-btn:hover {
        padding: 10px 18px;
    }

    /* Quick stats on mobile */
    .quick-stats {
        padding: 30px 0; /* Less padding on mobile */
    }

    .quick-stats .container {
        flex-direction: column;
    }

    .stat-item {
        padding: 20px;
        border-bottom: 1px solid var(--medium-gray);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    /* Gallery Hero Responsive */
    .gallery-header {
        padding: 30px 15px 15px;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 0.9rem;
    }

    .gallery-pages {
        height: calc(100vh - 120px);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 12px;
        padding: 100px 30px 70px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
    }

    .gallery-nav.prev {
        left: 15px;
    }

    .gallery-nav.next {
        right: 15px;
    }

    .gallery-nav i {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-actions {
        flex-direction: column;
        gap: 15px;
    }

    .contact-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Lightbox mobile optimizations */
    .lightbox-container {
        height: 70vh;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 60vh;
    }

    .prev, .next {
        font-size: 20px;
        padding: 8px 15px;
        background: rgba(0, 0, 0, 0.3);
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .lightbox-thumbnails {
        bottom: 10px;
        padding: 5px;
        max-width: 95%;
    }

    .lightbox-thumbnail {
        width: 45px;
        height: 45px;
    }

    .lightbox-caption {
        font-size: 14px;
        padding: 8px 15px;
        bottom: -30px;
    }

    /* Hide arrows on touch devices - swipe is more natural */
    @media (hover: none) and (pointer: coarse) {
        .prev, .next {
            display: none;
        }

        .lightbox-container::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            opacity: 0;
            pointer-events: none;
            animation: swipeHint 2s ease-out 0.5s;
        }
    }
}

/* Swipe hint animation */
@keyframes swipeHint {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        transform: translate(-30%, -50%) scale(1);
    }
    60% {
        transform: translate(-70%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@media (max-width: 480px) {
    /* Additional mobile fixes for smaller screens */
    .hero {
        padding: 70px 0 20px !important; /* Even more compact on small phones */
    }

    .hero-content {
        padding: 25px 15px !important;
        margin: 10px !important;
    }

    .feature-category li {
        padding-left: 30px;
        color: #000 !important; /* Pure black on smallest screens */
    }

    .feature-category li::before {
        left: 8px;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-price {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Gallery Hero Mobile */
    .gallery-header {
        padding: 25px 10px 10px;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-subtitle {
        font-size: 0.8rem;
    }

    .gallery-pages {
        height: calc(100vh - 100px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 8px;
        padding: 80px 15px 60px;
    }

    .gallery-3d-content i {
        font-size: 2rem;
    }

    .gallery-3d-content h3 {
        font-size: 1.2rem;
    }

    .gallery-3d-content p {
        font-size: 0.8rem;
    }

    .gallery-dots {
        bottom: 15px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-nav i {
        font-size: 16px;
    }
}