/* =========================================
   GLOBAL VARIABLES & PREMIUM THEME
========================================= */
:root {
    --primary-color: #d4af37; /* Premium Gold Accent */
    --dark-bg: #070707;       /* Deep Black */
    --light-bg: #121212;      /* Elegant Dark Grey */
    --card-bg: #1c1c1c;       /* Slightly lighter grey for cards */
    --text-dark: #aaaaaa;     /* Soft grey for easy reading */
    --text-light: #ffffff;    /* Pure white for headings */
    --border-color: #2a2a2a;  /* Subtle dark borders */
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

/* =========================================
   TYPOGRAPHY & HEADINGS
========================================= */
h1, h2, h3, h4, h5, h6, .section-title {
    color: var(--text-light) !important;
}

h2.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* =========================================
   NAVBAR & HERO SECTIONS
========================================= */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Home Page Hero */
.coverpage {
    position: relative;
    height: 80vh;
    background: var(--dark-bg);
    padding: 0;
}

.coverpage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed);
}

.coverpage:hover img {
    opacity: 0.9;
}

/* About Us Hero */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://www.gangarealty.com/blog/wp-content/uploads/2025/12/Global-City-Gurgaon.png') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0;
}

.our-story h2 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.our-story h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* =========================================
   GRID LAYOUTS & BOX CARDS
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container, .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Unified Card Styles */
.box-card, .property-card, .form-wrapper {
    background: var(--card-bg) !important;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    text-align: center;
    text-decoration: none;
    display: block;
}

.form-wrapper {
    text-align: left; /* Overrides center for forms */
}

.box-card p, .card-subtitle {
    color: var(--text-dark) !important;
    line-height: 1.5;
}

.box-card:hover, .property-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Specific Card Elements */
.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: bold;
    font-size: 1.5rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.property-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =========================================
   SECTION BACKGROUND ASSIGNMENTS
========================================= */
.services, .properties, .inquiry-section, .property-types-section, .values-section { 
    background-color: var(--light-bg) !important; 
}

.locations, .why-us, .our-story { 
    background-color: var(--dark-bg) !important; 
}

/* =========================================
   ANIMATIONS
========================================= */
.fade-in-up, .hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.show, .property-card:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.services .box-card:nth-child(1), .property-card:nth-child(1) { transition-delay: 0.1s; }
.services .box-card:nth-child(2), .property-card:nth-child(2) { transition-delay: 0.2s; }
.services .box-card:nth-child(3), .property-card:nth-child(3) { transition-delay: 0.3s; }

.property-card:hover { transition-delay: 0s; }

/* =========================================
   CAROUSEL SLIDESHOW
========================================= */
.carousel-item { height: 70vh; }
.carousel-item img { height: 100%; width: 100%; object-fit: cover; }
.carousel-caption h2 {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    display: inline-block;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* =========================================
   PREMIUM BUTTONS & CTA SECTION
========================================= */
.cta {
    background: linear-gradient(135deg, #121212, #000000) !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    text-align: center;
}

.cta-btn {
    background: var(--primary-color) !important;
    color: #000000 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    font-weight: 700 !important;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
}

.cta-btn:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-3px) scale(1.02);
}

/* =========================================
   PRIME LOCATIONS SLIDER
========================================= */
.pop-in-section {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.pop-in-section.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.location-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.loc-card {
    flex: 0 0 calc(33.333% - 14px);
    opacity: 0.3;
    transform: scale(0.85);
    transition: all 0.5s ease-in-out;
}

.loc-card.highlighted {
    opacity: 1;
    transform: scale(1);
}

.loc-card-inner {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.loc-card-inner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.loc-content {
    padding: 25px 20px;
    text-align: center;
}

.loc-content h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.loc-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   FORMS & INPUTS
========================================= */
.form-control, .form-select {
    background-color: #111 !important;
    color: var(--text-light) !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus, .form-select:focus {
    background-color: #1a1a1a !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

.form-label {
    color: var(--text-light) !important;
    font-size: 0.95rem;
}

::placeholder { 
    color: #666 !important; 
} 

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 70px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 8px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul, .footer-col a {
    color: var(--text-dark);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.8;
}

.footer-col ul { padding: 0; list-style: none; }
.footer-col a:hover { color: var(--primary-color); }
.social-links { display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 992px) {
    .loc-card { flex: 0 0 calc(50% - 10px); } 
}

@media (max-width: 768px) {
    .loc-card { flex: 0 0 100%; }
    .about-hero h1 { font-size: 2.2rem; }
    .carousel-caption h2 { font-size: 1.5rem; }
}
/* =========================================
   CUSTOM PREMIUM MODAL
========================================= */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px); /* High-end blurred background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9999;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-color); /* Gold border */
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.custom-modal-overlay.active .custom-modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Validation Styles */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}
/* --- Theme Variables (Change these to match your website) --- */
:root {
    --theme-primary: #d4af37; /* Example: A luxury gold color */
    --theme-primary-hover: #b5952f;
    --theme-text-light: #ffffff;
    --hero-height-desktop: 80vh;
    --hero-height-mobile: 60vh;
}

/* --- Hero Section & Images --- */
.hero-slideshow {
    position: relative;
    overflow: hidden;
}

.hero-img {
    height: var(--hero-height-desktop);
    object-fit: cover; /* Ensures images don't stretch */
    object-position: center;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* --- Captions & Typography --- */
.custom-caption {
    z-index: 2;
    bottom: 15%; /* Positions text better than default */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--theme-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--theme-text-light);
    font-weight: 300;
    opacity: 0.9;
    animation: slideUp 1s ease-out forwards;
}

/* --- Indicators (Bottom Dashes) --- */
.custom-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

.custom-indicators button {
    width: 30px !important;
    height: 4px !important;
    background-color: var(--theme-text-light) !important;
    opacity: 0.5;
    border: none !important;
    transition: all 0.3s ease;
}

.custom-indicators button.active {
    width: 40px !important;
    background-color: var(--theme-primary) !important;
    opacity: 1;
}

/* --- Prev/Next Controls --- */
.custom-control {
    z-index: 3;
    width: 5%; /* Thinner hit area for a modern look */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slideshow:hover .custom-control {
    opacity: 0.8;
}

.custom-control:hover {
    opacity: 1 !important;
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-img {
        height: var(--hero-height-mobile);
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .custom-control {
        opacity: 0.8; /* Keep controls visible on mobile where hover doesn't exist */
    }
}
.custom-modal-overlay {
    display: none; /* or opacity: 0; pointer-events: none; */
}

.custom-modal-overlay.active {
    display: flex; /* or opacity: 1; pointer-events: auto; */
    /* Add any transition/centering styles here */
}

