:root {
    --bg-color: #0f1115;
    --text-color: #e0e0e0;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --secondary-bg: #16181d;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.6s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    color: #fff;
}

h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    /* Ensures visibility on light/dark backgrounds */
    transition: background 0.3s ease, padding 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
        background: rgba(0,0,0,0.8);
        mix-blend-mode: normal; /* Overlay mode for mobile clarity */
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a.active {
    border-bottom: 1px solid var(--accent-color);
}

.lang-switcher {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.lang-switcher a.active {
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin: 2rem 0 0 0;
        padding: 1.5rem 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 60%;
        justify-content: center;
    }
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 999;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 16s infinite;
}

/* Slide 1: Winter Balcony */
.slide:nth-child(1) {
    animation-delay: 0s;
}

/* Slide 2: Summer Drone */
.slide:nth-child(2) {
    animation-delay: 8s;
}

@keyframes heroFade {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1.05); }
    40% { opacity: 1; transform: scale(1); }
    50% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem); /* Reduced slightly for smaller iPhones */
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.2rem; /* Reduce logo size on tiny phones to prevent clashing with menu icon */
    }
}

.lead-hero {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-outline {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes bounce {

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

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

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* About Section */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.placeholder-img {
    background-color: var(--secondary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    border: 1px solid #333;
}

.vertical {
    height: 600px;
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=2653&auto=format&fit=crop');
    /* Placeholder */
    background-size: cover;
}

/* Gallery Section */
.dark-bg {
    background-color: var(--secondary-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-flow: dense;
    gap: 1.5rem;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 615px; /* 300 * 2 + gap */
}

.gallery-item.medium, .gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.portrait {
    grid-row: span 2;
    height: 615px;
}

.gallery-item {
    height: 300px;
    background-color: #2a2a2a;
    /* Placeholder color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item span {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

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

/* Placeholder backgrounds removed - using inline styles */
.gallery-item.full-frame {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #111; /* Dark background to fill gaps */
}

.gallery-item {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item.pos-bottom-left {
    background-position: bottom left;
}

.gallery-item.pos-center {
    background-position: center;
}

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


.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio for aerial view */
}

.lead {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.specs-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.specs-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* Specs Section */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.spec-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Location Section */
.location-section {
    padding: 8rem 0;
    background-color: var(--primary-bg);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.map-wrapper {
    position: relative;
    border: 1px solid #333;
    height: 500px;
    background: #1a1a1a;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 1;
}

.lifestyle-highlights {
    padding: 2rem;
}

.lifestyle-highlights h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.distance-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #222;
}

.distance-card .number {
    font-size: 2rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    min-width: 80px;
}

.distance-card .label {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
}

.distance-card .label strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 0.2rem;
}

@media (max-width: 1024px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    .map-wrapper {
        height: 400px;
    }
}

/* Footer */
.footer-section {
    padding: 6rem 0;
    border-top: 1px solid #333;
}

.center-text {

    text-align: center;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #666;
}

/* Animations Restored for Hero */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: slowZoom 20s infinite alternate;
}

/* Parallax Divider Styles */
.parallax-divider {
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.parallax-divider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-divider h3 {
    z-index: 2;
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Specific styling for location page */
.map-container {
    width: 100%;
    height: 500px;
    margin: 2rem 0;
    border: 1px solid #333;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.usp-item {
    background: var(--secondary-bg);
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.usp-item h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Removed old conflicting navigation styles - replaced by optimized mobile-first logic */


    .split-layout {
        flex-direction: column;
    }

    .vertical {
        height: 400px;
    }

    .parallax-divider {
        height: 40vh;
        background-attachment: scroll;
        /* Disable parallax on mobile */
    }

    .parallax-divider h3 {
        font-size: 2rem;
    }
}

/* Video Section */
.video-section {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
    background: #000;
}

.video-section-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5;
}

.video-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.video-section .container {
    position: relative;
    z-index: 2;
}
/* Land Potental Gallery Improvements */
.split-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-image-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease;
    background-color: #000;
}

.video-wrapper:hover {
    transform: scale(1.01);
    border-color: var(--accent-color);
}

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

/* Video Placeholder & Lazy Loading */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.5s ease;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.video-placeholder:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(184, 150, 93, 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--accent-color);
    margin-left: 8px;
}

.video-placeholder:hover .play-button {
    transform: scale(1.15);
    background: var(--accent-color);
    box-shadow: 0 0 30px rgba(184, 150, 93, 0.5);
}

.video-placeholder:hover .play-button::after {
    border-left-color: #000;
}

/* Loading state for iframe */
.video-wrapper.loading::after {
    content: '';
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(184, 150, 93, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .video-container {
        grid-template-columns: 1fr;
    }
}

.organic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

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

.allotment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.allotment-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.allotment-img:hover {
    transform: scale(1.05);
    filter: brightness(1);
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}