/* ==========================================================================
   VIDASH CITY SHELTERS - MAIN STYLESHEET (DARK & GOLD LUXURY THEME)
   ========================================================================== */

/* 0. Smooth Scrolling & Custom Scrollbar */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #bfa15f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b46e;
}

/* 1. Global Resets & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 2. Navigation Bar */
header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #bfa15f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #bfa15f;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* BRAND LOGO IMAGE STYLING */
.brand-logo-link {
    display: inline-block;
    line-height: 0;
}

.brand-logo {
    height: 40px; /* Upgraded to make your luxury logo pop out more! */
    width: auto;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #dddddd;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #bfa15f;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #bfa15f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 3. Hero Section (Index Page) */
.hero {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(18, 18, 18, 0.9)), 
                url('index-hero.pg.jpg') center/cover no-repeat;
}

.hero h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 span {
    color: #bfa15f;
}

.typing-container {
    font-size: 20px;
    color: #bfa15f;
    min-height: 30px;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-btn {
    display: inline-block;
    background-color: #bfa15f;
    color: #121212;
    padding: 14px 32px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    background-color: #d4b46e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 161, 95, 0.3);
}

/* 4. Feature Highlights & Vidash Standard (Index Page) */
.features-overview,
.vidash-standard-section {
    max-width: 1200px;
    margin: -50px auto 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    
    /* BACKGROUND FIX APPLIED HERE */
    background-image: linear-gradient(rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0.5)), url('standard-index.pg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border-radius: 12px;
    border: 1px solid rgba(191, 161, 95, 0.3);
}

.feature-box {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(4px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-box:hover {
    border-color: #bfa15f;
    transform: translateY(-4px);
}

.feature-box h3 {
    color: #bfa15f;
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box p {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 5. Property Catalog Grid (Properties Page) */
.featured-properties {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container h2 {
    font-size: 32px;
    color: #bfa15f;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: #bfa15f;
    box-shadow: 0 12px 24px rgba(191, 161, 95, 0.15);
}

.property-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #151515;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.badge.sale {
    background-color: #bfa15f;
    color: #121212;
}

.property-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-content h3 {
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.location {
    color: #a0a0a0;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.price {
    font-size: 20px;
    color: #bfa15f;
    font-weight: bold;
    margin: auto 0 15px 0;
}

.property-details {
    border-top: 1px solid #2a2a2a;
    padding-top: 15px;
    font-size: 13px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. Individual Estate Detail Pages */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #bfa15f;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #bfa15f;
    font-weight: bold;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #d4b46e;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #bfa15f;
    object-fit: cover;
    height: 380px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    object-fit: cover;
    height: 180px;
}

.info-panel h1 {
    color: #bfa15f;
    margin-top: 0;
    font-size: 38px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: #bfa15f;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.pricing-table th {
    text-align: left;
    color: #bfa15f;
    font-size: 12px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.pricing-table td {
    padding: 12px 0;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

.pricing-table .type {
    font-weight: 600;
    color: #ffffff;
}

.pricing-table .sqm {
    color: #888888;
    text-align: center;
}

.pricing-table .cost {
    color: #bfa15f;
    font-weight: bold;
    text-align: right;
}

.facilities-list {
    padding-left: 20px;
    line-height: 1.8;
    color: #dddddd;
    margin-top: 15px;
}

.facilities-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* 7. Leadership Page Section */
.hero-section {
    background-color: #181818;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

.hero-title {
    font-size: 42px;
    color: #bfa15f;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

.leadership-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.exec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.exec-card {
    background-color: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.exec-card:hover {
    transform: translateY(-8px);
    border-color: #bfa15f;
    box-shadow: 0 15px 35px rgba(191, 161, 95, 0.2);
}

.exec-img-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

.exec-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    image-rendering: auto;
}

.exec-card:hover .exec-img-container img {
    transform: scale(1.05);
}

.exec-info {
    padding: 20px 15px;
    border-top: 2px solid #bfa15f;
    background-color: #1a1a1a;
    flex-grow: 1;
}

.exec-name {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.exec-role {
    font-size: 11px;
    color: #bfa15f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.exec-bio {
    color: #bbbbbb;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* 8. Contact Modal Styling */
.contact-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    border: 1px solid #bfa15f;
    border-radius: 12px;
    padding: 35px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #a0a0a0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #bfa15f;
}

.modal-content h2 {
    color: #bfa15f;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-subtitle {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #bfa15f;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #bfa15f;
    color: #121212;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #d4b46e;
}

.direct-contact {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
    font-size: 13px;
    color: #888888;
}

.direct-contact p {
    margin: 4px 0;
}

/* 9. Footer */
footer {
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 30px 20px;
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-top: 60px;
}

/* 10. Responsive Design Breakpoints */
@media (max-width: 1024px) {
    .exec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        border-bottom: 1px solid #bfa15f;
        padding: 20px 8%;
        gap: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    nav ul.active {
        display: flex;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 5%;
    }

    .brand-logo {
        height: 60px; /* Adjust slightly smaller for mobile screens if needed */
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-title {
        font-size: 30px;
    }

    .typing-container {
        font-size: 16px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .exec-grid {
        grid-template-columns: 1fr;
    }
}

/* WELCOME POPUP MODAL STYLES */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.welcome-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.welcome-modal-content {
    background: #181818;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.welcome-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.welcome-close:hover {
    color: #d4af37;
}

.welcome-badge {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.welcome-modal-content h2 {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-modal-content p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.welcome-estates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.welcome-estate-card {
    background: #121212;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.welcome-estate-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.welcome-estate-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.welcome-estate-info {
    padding: 12px;
}

.welcome-estate-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 3px;
}

.welcome-estate-info p {
    font-size: 0.8rem;
    color: #999999;
    margin-bottom: 8px !important;
}

.view-btn {
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skip-popup-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #666;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.skip-popup-btn:hover {
    background: #d4af37;
    color: #121212;
    border-color: #d4af37;
}

@media (max-width: 600px) {
    .welcome-estates-grid {
        grid-template-columns: 1fr;
    }
}

