:root {
    /* Light Mode (Default) */
    --bg-primary: #F7F4F0;
    --bg-secondary: #EDE9E3;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-border: rgba(0, 0, 0, 0.06);
    --overlay-bg: rgba(247, 244, 240, 0.95);
    --header-scrolled-bg: rgba(247, 244, 240, 0.4);
    --header-scrolled-border: rgba(0, 0, 0, 0.08);

    /* Dynamic viewport height for mobile */
    --vh: 1vh;
    --transition-speed: 0.4s;
    --hero-bg: url('https://res.cloudinary.com/dzug5s7sk/image/upload/f_auto,q_auto,w_1600,c_limit/v1770243933/CasaAguila_-02_htpieu.jpg');
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.95);
    --header-scrolled-bg: rgba(0, 0, 0, 0.4);
    --header-scrolled-border: rgba(255, 255, 255, 0.08);
    --hero-bg: url('https://res.cloudinary.com/dzug5s7sk/image/upload/f_auto,q_auto,w_1600,c_limit/v1770244500/AGUILA-CELRAS-06_mimokn.jpg');
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Header */
header.transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

header.transparent-header.scrolled {
    padding: 1rem 5%;
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-scrolled-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 300;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.desktop-nav a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Adaptive menu colors for light mode when scrolled */
body:not(.dark-mode) header.transparent-header.scrolled .desktop-nav a {
    color: rgba(26, 26, 26, 0.7);
}

body:not(.dark-mode) header.transparent-header.scrolled .desktop-nav a:hover {
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

body:not(.dark-mode) header.transparent-header.scrolled .theme-toggle,
body:not(.dark-mode) header.transparent-header.scrolled #lang-selector {
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.3);
}

body:not(.dark-mode) header.transparent-header.scrolled #lang-selector {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Burger */
.mobile-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-burger span {
    display: block;
    height: 1px;
    width: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-burger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--overlay-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    font-weight: 300;
    transition: opacity 0.3s;
}

.mobile-nav a:hover {
    opacity: 0.7;
}

body.menu-open {
    overflow: hidden;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.logo-link:hover h1 {
    opacity: 0.7;
}

header h1 {
    font-size: 1.2rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s, text-shadow 0.3s;
}

body:not(.dark-mode) header.transparent-header.scrolled h1 {
    color: #1a1a1a;
    text-shadow: none;
}

body:not(.dark-mode) header.transparent-header.scrolled .mobile-burger span,
body:not(.dark-mode).menu-open .mobile-burger span {
    background-color: #1a1a1a;
}

/* Language Selector */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    outline: none;
}

.theme-toggle:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle .material-symbols-outlined {
    font-size: 0;
    /* Hide original text ligatures */
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.theme-toggle .material-symbols-outlined::before {
    font-size: 1.2rem;
    /* Show icon from pseudo-element only */
}

/* Show sun icon in light mode (default), moon in dark mode */
.theme-toggle .material-symbols-outlined::before {
    content: 'light_mode';
}

body.dark-mode .theme-toggle .material-symbols-outlined::before {
    content: 'dark_mode';
}

#lang-selector {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1rem 0.6rem 1.2rem;
    text-align: center;
    text-align-last: center;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    cursor: pointer;
    border-radius: 4px;
    outline: none;
    transition: border-color var(--transition-speed);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 10px;
    padding-right: 2.5rem;
}

#lang-selector:hover {
    border-color: #fff;
}

#lang-selector option {
    background: #1a1a1a;
    color: #fff;
}

/* Media Queries for Navigation */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-burger {
        display: flex;
    }

    header h1 {
        font-size: 1rem;
        letter-spacing: 0.3rem;
    }

    #lang-selector {
        padding: 0.5rem 0.8rem 0.5rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.1rem;
        background-position: right 0.5rem center;
        padding-right: 2rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    /* Fallback for older browsers */
    height: 100dvh;
    /* Dynamic viewport height for modern browsers */
    min-height: -webkit-fill-available;
    /* iOS Safari fallback */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: contrast(1.05) brightness(0.8);
}

.bg-1 {
    background-image: var(--hero-bg);
    z-index: 1;
    transition: background-image 0.8s ease-in-out;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 10vh 5% 0 5%;
    max-width: 1100px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-glass-box {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .hero-glass-box {
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-title {
    font-family: 'Roboto Serif', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01rem;
    color: #fff;
    max-width: 800px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.hero-glass-box:hover .hero-title {
    text-shadow: 0 8px 35px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.hero-price {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 0.25rem;
    opacity: 0.9;
    position: relative;
    padding-top: 1.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.hero-glass-box:hover .hero-price {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.hero-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-top: 2rem;
}

.hero-scroll:hover {
    opacity: 0.7;
}

.hero-scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    font-weight: 400;
}

.hero-scroll .material-symbols-outlined {
    font-size: 2.5rem;
    font-weight: 200;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Property Specifications Section */
.specs-section {
    padding: 6rem 5%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.spec-item .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 2.4rem;
    color: var(--text-primary);
    text-transform: none !important;
    font-style: normal;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-weight: 200;
}

.spec-item span:last-child {
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
}

@media (max-width: 480px) {
    .specs-section {
        padding: 4rem 5%;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .spec-item span:last-child {
        font-size: 0.65rem;
        letter-spacing: 0.1rem;
    }
}

/* Floor Plans Section */
.floor-plans-section {
    padding: 8rem 5%;
    background-color: var(--bg-secondary);
}

.plans-container {
    max-width: 1000px;
    margin: 4rem auto 0 auto;
}

.plans-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.plan-tab {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.plan-tab:hover {
    color: var(--text-primary);
}

.plan-tab.active {
    color: var(--text-primary);
    font-weight: 500;
}

.plan-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
}

.plans-display {
    position: relative;
    min-height: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.plan-image-wrapper {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.plan-image-wrapper.active {
    display: block;
}

.plan-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.plan-image-wrapper img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .plans-tabs {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        border-bottom: none;
    }

    .plan-tab.active::after {
        display: none;
    }

    .plan-tab.active {
        background: var(--card-bg);
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }

    .plans-display {
        padding: 0;
        min-height: 200px;
    }
}

/* Genova & About Combined Section */
.genova-section {
    padding: 10rem 5% 4rem 5%;
    /* Increased bottom padding */
    background-color: var(--bg-primary);
}

.about-contact-section {
    padding: 4rem 5% 8.5rem 5%;
    /* Top padding kept but total gap is now 8rem */
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.genova-grid,
.about-content-grid {
    display: grid;
    gap: 6rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.genova-grid {
    grid-template-columns: 400px 1fr;
    /* Larger images */
}

.about-content-grid {
    grid-template-columns: 1fr 400px;
    /* Larger images */
    margin-bottom: 10rem;
}

.genova-image,
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 400px;
    /* 4:3 Ratio */
    height: 300px;
    /* 4:3 Ratio */
}

.genova-image img,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.genova-image:hover img,
.about-image:hover img {
    transform: scale(1.05);
}

.genova-text,
.about-text {
    text-align: left;
}

.about-text {
    padding-top: 1rem;
}

@media (max-width: 992px) {

    .genova-grid,
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .genova-text,
    .about-text {
        order: 1;
    }

    .genova-image,
    .about-image {
        order: 2;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto;
    }
}

.section-title {
    font-family: 'Roboto Serif', serif;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    backdrop-filter: blur(15px);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05rem;
}

.contact-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.method .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 2rem;
    color: var(--text-primary);
    text-transform: none !important;
    font-style: normal;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    transition: color 0.3s, opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
    color: var(--text-primary);
}

.construction-details-section {
    padding: 8rem 5%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.construction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.construction-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.construction-content h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.construction-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.construction-mini-gallery {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mini-item {
    flex: 1;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.mini-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.partner-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-primary);
}

.partner-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.partner-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.partner-link:hover {
    border-color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 900px) {

    .construction-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .construction-card {
        padding: 2rem;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

/* Gallery Section / Slider */
.gallery-section {
    padding: 8rem 0;
    /* Removing side padding to allow edge-to-edge scrolling on mobile */
    background-color: var(--bg-primary);
}

.gallery-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.gallery-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;

    /* Scroll Snapping */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Flex item sizing for slider */
    flex: 0 0 30%;
    /* Show 3 ~ 4 items on desktop */
    scroll-snap-align: start;

    /* Keep 1:1 aspect ratio */
    aspect-ratio: 1 / 1;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
    /* slightly subtle zoom than previous */
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 2%;
}

.next-btn {
    right: 2%;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 30px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--text-primary);
}

@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    .gallery-slider-container {
        padding: 0 0;
        /* Remove padding entirely to allow edge bleed */
    }

    .gallery-slider {
        padding: 0 5% 2rem 5%;
        /* Padding inside slider so first item isn't flush */
        gap: 1.5rem;
    }

    .gallery-item {
        flex: 0 0 85%;
        /* Peek next item to show it's a slider */
        scroll-snap-align: center;
        /* Center snap feels better on mobile */
    }

    .slider-btn {
        display: none;
        /* Hide buttons on touch devices, rely on swipe */
    }

    .gallery-caption {
        transform: translateY(0);
        /* always show caption on mobile */
        padding: 3rem 1.5rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
}

#lightbox-caption {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem !important;
    cursor: pointer;
    z-index: 2100;
    transition: opacity 0.3s;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3.5rem !important;
    cursor: pointer;
    z-index: 2100;
    padding: 1rem;
    transition: opacity 0.3s, transform 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2.5rem !important;
    }
}

/* Footer */
.site-footer {
    padding: 8rem 0 4rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer-quote {
    max-width: 800px;
    margin: 0 auto 6rem;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

.footer-quote .quote-text {
    font-family: 'Roboto Serif', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.6;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.footer-quote .quote-author {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: var(--text-muted);
    font-weight: 400;
    font-style: normal;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-left: 5%;
    padding-right: 5%;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.credits {
    font-family: 'Rubik', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.footer-link:hover {
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer-quote .quote-text {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Tablet and Mobile */
@media (max-width: 768px) {

    /* Mobile-optimized background image */
    :root {
        --hero-bg: url('https://res.cloudinary.com/dzug5s7sk/image/upload/f_auto,q_auto,w_800,c_limit/v1770243933/CasaAguila_-02_htpieu.jpg');
    }

    body.dark-mode {
        --hero-bg: url('https://res.cloudinary.com/dzug5s7sk/image/upload/f_auto,q_auto,w_800,c_limit/v1770244500/AGUILA-CELRAS-06_mimokn.jpg');
    }

    .bg-1 {
        background-image: var(--hero-bg);
        filter: none;
        background-attachment: scroll;
    }

    /* Adjust hero section for mobile viewport */
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Lighter overlay for better mobile visibility */
    .hero-overlay {
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    }

    /* Adjust header padding for mobile */
    header.transparent-header {
        padding: 1rem 4%;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 1.5rem;
    }

    .hero-price {
        font-size: 0.9rem;
        margin-bottom: 3rem;
        letter-spacing: 0.15rem;
    }

    .hero-scroll .material-symbols-outlined {
        font-size: 2rem;
    }

    /* Genova, About & Contact Mobile */
    .desktop-nav {
        display: none;
    }

    .genova-section,
    .about-contact-section {
        padding: 6rem 5% 4rem 5%;
    }

    .genova-grid,
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
        text-align: left;
    }

    .genova-text,
    .about-text {
        text-align: left;
        order: 1;
    }

    .genova-image,
    .about-image {
        order: 2;
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-description {
        font-size: 1.05rem;
        text-align: left;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 3rem;
        text-align: left;
    }

    .contact-description {
        text-align: left;
    }

    .contact-methods {
        align-items: flex-start;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .bg-1 {
        background-image: var(--hero-bg);
        background-position: center center;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-price {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .hero-scroll-text {
        letter-spacing: 0.2rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 10%;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-price {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}