/* ==============
   GLOBAL STYLES
   ============== */

/* CSS Variables */
:root {
    --black: #080808;
    --charcoal: #121212;
    --gold: #c5a059; /* Classic Indian Gold */
    --white: #ffffff;
    --gray: #a0a0a0;
}

/* Reset & Base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: var(--black); 
    color: var(--white); 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==============
   GLOBAL UI
   ============== */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.8s ease;
}

.loader-logo .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    letter-spacing: 10px;
    color: var(--gold);
    text-align: center;
}

.loader-logo .logo span {
    color: var(--white);
}

#loaderBar {
    width: 0%;
    height: 2px;
    background: var(--gold);
    margin-top: 10px;
    transition: 1.5s;
}

/* Popup Overlay (Lead & Property Modal) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

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

.popup-content {
    background: var(--charcoal);
    padding: 50px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--gold);
    position: relative;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.8rem;
}

/* Popup Form */
.popup-form input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: #080808;
    font-weight: 600;
}

.btn-gold:hover {
    background: #d4b57a;
    letter-spacing: 3px;
}

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

/* Eyebrow & Section Titles */
.eyebrow {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* ==============
   NAVBAR
   ============== */
   .navbar {
    padding: 30px 5%; /* Increased vertical padding from 20px */
    height: 100px;    /* Defined a clear height for consistency */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: 700;
}

.logo span {
    color: var(--gold);
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-cta {
    border: 1px solid var(--gold);
    padding: 10px 20px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* GOLD HOVER EFFECT */
.nav-cta:hover {
    background: var(--gold);
    color: var(--black);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ==============
   WHATSAPP FLOAT
   ============== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==============
   BACK TO TOP
   ============== */

#backToTop {
    position: fixed;
    bottom: 100px;
    right: 35px;
    background: var(--black);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#backToTop:hover {
    transform: translateY(-8px);
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

#backToTop svg {
    transition: transform 0.3s ease;
}

#backToTop:hover svg {
    transform: scale(1.1);
}

/* ==============
   SCROLL MARGIN (for fixed navbar)
   ============== */

section {
    scroll-margin-top: 80px;
}

/* ==============
   MOBILE RESPONSIVENESS
   ============== */

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        border-bottom: 1px solid var(--gold);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1rem;
        margin-left: 0;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }
}





/* Luxury Entrance Animation */
@keyframes revealBranding {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal-item {
    opacity: 0; /* Hidden initially for animation */
    animation: revealBranding 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


.logo img {
    height: 40px; /* Standard height for the navbar */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}



.branding-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

.company-tagline {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}


.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 90px; /* Significant increase for better visibility */
    width: auto;
    object-fit: contain;
}

/* Ensure the menu toggle stays aligned on mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
        height: 80px;
    }
    
    .navbar .logo img {
        height: 55px; /* Slightly smaller for mobile screens */
    }
}

section {
    scroll-margin-top: 100px;
}

/* Update Preloader Logo Size */
.loader-logo .logo img {
    height: 80px; /* Increased from standard size */
    width: auto;
    margin-bottom: 20px;
}

/* Ensure the loader bar width matches the new logo presence */
#loaderBar {
    width: 0%;
    height: 3px; /* Slightly thicker for better visibility */
    background: var(--gold);
    margin: 0 auto; /* Center it under the logo */
    max-width: 250px; /* Limits the bar width so it doesn't look too long */
    transition: 1.5s;
}





/* Add to GLOBAL UI section in global.css */

/* 1. Prevent background scrolling when an article modal is open */
body.modal-open {
    overflow: hidden;
}

/* 2. Adjust section padding for the new Reviews -> Journal flow */
section {
    padding: 100px 5%;
    scroll-margin-top: 100px; /* Aligns perfectly with your 100px navbar */
}

/* 3. High-end scrollbar for the long-form blog articles */
#blogModalContent::-webkit-scrollbar {
    width: 4px;
}
#blogModalContent::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}