/* ======== Global Styles & Variables ======== */
:root {
    --primary-color: #111;
    --secondary-color: #555;
    --dark-color: #111;
    --light-color: #fff;
    --grey-color: #f4f4f4;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Inter', sans-serif;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-family), Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--light-color); /* White background */
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.92rem;
    padding-bottom: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3 {
    font-weight: 600;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}
img {
    max-width: 100%;
    display: block;
}
.section-subtitle {
    font-size: 1.05rem; /* Smaller */
    color: var(--secondary-color);
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto 2rem;
}

/* ======== Loading Spinner ======== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--grey-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
    grid-column: 1 / -1;
}
.loading-container p {
    font-weight: 500;
}

/* ======== Animations ======== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ======== Navbar ======== */
.navbar {
    background: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo img { height: 40px; width: auto; }
.navbar .cta-whatsapp {
    background-color: var(--success-color);
    color: var(--light-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}
.navbar .cta-whatsapp:hover { transform: scale(1.05); }
.navbar .cta-whatsapp .fab { font-size: 1.2rem; }

/* ======== Hero Section ======== */
.hero {
    position: relative;
    height: auto;
    min-height: 85vh;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    color: var(--light-color);
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text { animation: slideInLeft 1s ease-out forwards; }
.hero-form { animation: slideInRight 1s ease-out forwards; }
.hero-text h1 {
    font-size: 2.6rem; /* Smaller */
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-text p {
    font-size: 1.05rem; /* Smaller */
    max-width: 500px;
}
.hero-form {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
}
.hero-form h3 {
    font-size: 1.5rem; /* Smaller */
    text-align: center;
    margin-bottom: 0.5rem;
}
.hero-form p {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.form-group.country-code { display: flex; }
.form-group.country-code select {
    width: 120px;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.form-group.country-code input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-submit:hover { background: var(--secondary-color); }
.form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

/* ======== Why Dwarka Section ======== */
.why-dwarka {
    padding: 4rem 0;
    background: var(--grey-color);
}
.why-dwarka h2, .projects h2, .details-section-header h2, .logo-carousel-section h2 {
    font-size: 2.1rem; /* Smaller */
    text-align: center;
    margin-bottom: 2rem;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.why-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.why-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.why-item h3 {
    font-size: 1.2rem; /* Smaller */
    margin-bottom: 0.5rem;
} perfect 

/* ======== Projects Section (Grid) ======== */
.projects {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card-content {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card-details { padding: 1.5rem; }
.card-details h3 {
    font-size: 1.25rem; /* Smaller */
    margin-bottom: 0.5rem;
}
.card-info {
    font-size: 0.9rem; 
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-info i { color: var(--primary-color); }
.card-price {
    font-size: 1.1rem; /* Smaller */
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}
.card-buttons { display: flex; gap: 10px; }
.card-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-details {
    background: var(--primary-color);
    color: var(--light-color);
}
.btn-details:hover { background: var(--secondary-color); }
.btn-quote {
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-quote:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* ======== Pagination Controls ======== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
.btn-paginate {
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-paginate:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--light-color);
}
.btn-paginate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#page-info { font-weight: 600; }

/* ======== Logo Carousel Section ======== */
@keyframes infiniteScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-carousel-section {
    padding: 3rem 0;
    background: var(--light-color);
    border-top: 1px solid var(--grey-color);
    border-bottom: 1px solid var(--grey-color);
}
.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.logo-slide {
    display: flex;
    width: max-content;
    animation: infiniteScroll 20s linear infinite;
}
.logo-slide img {
    height: 100px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.logo-carousel-container:hover .logo-slide {
    animation-play-state: paused;
}
.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ======== Disclaimer ======== */
.disclaimer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    background: var(--light-color);
    border-top: 1px solid #eee;
}
.disclaimer-links a { color: #777; margin: 0 10px; }

/* ======== Footer ======== */
.footer {
    background: var(--dark-color);
    color: #ccc;
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 3rem;
}
.footer-col .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 350px;
}
.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 1rem;
}
.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}
.footer-col p i {
    width: 20px;
    margin-right: 8px;
}
.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 1.5rem 0;
}
.footer-bottom p {
    font-size: 0.9rem;
}

/* ======== Modal (Popup) Styles ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideInRight 0.4s ease-out;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}
.modal-close:hover {
    color: var(--dark-color);
}


/* ======== Mobile Tab Bar ======== */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--light-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none; /* Hidden by default */
}
.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}
.tab-button i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.tab-button.tab-whatsapp {
    color: var(--success-color);
}
.tab-button:hover {
    color: var(--primary-color);
}


/* ======== Responsive Design ======== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { margin-bottom: 2rem; }
    .hero-text p { max-width: 100%; }
    .hero-form { margin: 0 auto; }
    .why-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text { animation: fadeIn 1s ease-out forwards; }
    .hero-form { animation: fadeIn 1s ease-out forwards 0.3s; }
}

@media (max-width: 768px) {
    html {
        font-size: 94%;
    }
    body {
        padding-bottom: 60px;
    }
    .navbar .container {
        flex-direction: row; 
        gap: 1rem;
    }
    .navbar .cta-whatsapp span {
        display: none;
    }
    .navbar .cta-whatsapp {
        padding: 0.6rem 0.7rem; /* Make it more circular */
    }
    .hero-text h1 { font-size: 25px; }
    .project-grid { grid-template-columns: 1fr; }
    .pagination-controls { gap: 0.5rem; }
    .btn-paginate { padding: 0.5rem 0.8rem; }
    .mobile-tab-bar {
        display: flex;
    }
}

/*  perfect  */





/* =====================================================
   DESKTOP LUXURY REFINEMENT (NO MOBILE CHANGE)
   ===================================================== */
   @media (min-width: 1024px) {

    /* HERO OVERLAY – CINEMATIC NOT DARK */
    .hero-background::after {
        background: linear-gradient(
            90deg,
            rgba(0,0,0,0.65) 0%,
            rgba(0,0,0,0.45) 45%,
            rgba(0,0,0,0.25) 70%,
            rgba(0,0,0,0.15) 100%
        );
    }

    /* LAYOUT REFINEMENT */
    .hero-content {
        grid-template-columns: 1.4fr 0.8fr;
        gap: 80px;
        align-items: center;
    }

    /* LEFT TEXT — QUIET LUXURY */
    .hero-text h1 {
        font-size: 3.2rem;
        font-weight: 500;
        letter-spacing: -0.4px;
        line-height: 1.15;
        margin-bottom: 1.2rem;
    }

    .hero-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        opacity: 0.85;
        max-width: 520px;
    }

    /* RIGHT FORM — PREMIUM CONCIERGE */
    .hero-form {
        background: rgba(255,255,255,0.96);
        border-radius: 14px;
        padding: 2.4rem 2.2rem;
        box-shadow:
            0 30px 60px rgba(0,0,0,0.25);
        max-width: 420px;
    }

    /* FORM HEADING — NOT SALESY */
    .hero-form h3 {
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
        color: #111;
    }

    .hero-form p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1.6rem;
    }

    /* INPUTS — SOFT & CLEAN */
    .form-group input,
    .form-group textarea {
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
        background: #fafafa;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #999;
        box-shadow: none;
    }

    /* BUTTON — SUBTLE LUXURY */
    .btn-submit {
        background: #111;
        color: #fff;
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        padding: 0.85rem;
    }

    .btn-submit:hover {
        background: #000;
    }
}


/*  perfect  */

/* =====================================================
   HERO — EDGE TO EDGE LUXURY (DESKTOP ONLY)
   ===================================================== */
   @media (min-width: 1024px) {

    .hero {
        padding: 0;
        min-height: 95vh;
    }

    /* Allow full width stretch */
    .hero .container {
        max-width: 100%;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    /* EDGE TO EDGE GRID */
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: center;
    }

    /* LEFT TEXT — STUCK TO EDGE */
    .hero-text {
        padding-right: 13vw;
    }

    .hero-text h1 {
        font-size: 3.6rem;
        line-height: 1.1;
        font-weight: 500;
        max-width: 520px;
    }

    .hero-text p {
        font-size: 1.05rem;
        line-height: 1.8;
        max-width: 520px;
        opacity: 0.85;
    }

    /* RIGHT FORM — STUCK TO EDGE */
    .hero-form {
        justify-self: end;
        margin-right: 0;
        max-width: 420px;
    
        /* Reduced radius (more premium) */
        border-radius: 9px;
    
        padding: 2.8rem 2.4rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
    
        /* Elegant soft border */
        border: 1px solid rgba(0, 0, 0, 0.10);
    
        /* Controlled luxury shadow (not too heavy) */
        box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.22),
            0 45px 90px rgba(0, 0, 0, 0.18);
    }
    

    /* Cinematic overlay */
    .hero-background::after {
        background: linear-gradient(
            90deg,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.45) 40%,
            rgba(0,0,0,0.2) 75%,
            rgba(0,0,0,0.12) 100%
        );
    }
}


/*  popup new  */



/* Existing styles... */

/* =====================================================
   ADDITION: AUTO-POPUP LUXURY REFINEMENT
   ===================================================== */
   .autopopup-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    /* Soft zoom-in animation */
    animation: popupScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.autopopup-content h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 5px;
}

.autopopup-content p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Mobile-specific fix for popups */
@media (max-width: 768px) {
    .autopopup-content {
        padding: 2rem 1.5rem;
        margin-top: 10px;
    }
    .autopopup-content h3 {
        font-size: 1.5rem;
    }
}


/* new  */



/* =====================================================
   ADDITION: SEARCH FILTER BAR STYLING
   ===================================================== */
   .filter-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.filter-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: #f9f9f9;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-filter-search {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter-clear {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter-search:hover { background: #333; }
.btn-filter-clear:hover { background: #f0f0f0; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-item { min-width: 100%; }
    .filter-actions { width: 100%; }
    .btn-filter-search, .btn-filter-clear { flex: 1; }
}