/* 1. LUXURY COLOR PALETTE */
:root {
    --gold: #C5A059;
    --dark: #1A1A1A;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* 2. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 3. THE HEADER */

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

/* nav link styles defined in .nav-links a below */

/* 4. THE HERO SECTION */
/* REVOLVING BACKGROUND HERO */
/* UPDATED REVOLVING BACKGROUND */
.hero-section {
    position: relative;
    height: 100vh;
    /* Make it full screen */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    margin-top: 0;
    /* Ensure no gap at the top */
}

/* The Slideshow Layer */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* 20 seconds total (5s per photo) */
    animation: backgroundSlideshow 20s infinite ease-in-out;
}

/* Dark Overlay to make text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Updated 4-Photo Animation Loop */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Responsive sizing */
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 900px;
}

.btn-gold {
    padding: 15px 40px;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s ease;
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

/* 5. PROJECT CARDS (full rules defined below) */

/* LOGO ALIGNMENT */
.logo {
    display: flex;
    align-items: center;
    margin-right: 60px;
    /* Pushes the HOME/PROJECTS links next to logo */
}

.header-logo-img {
    height: 80px;
    /* Increased size for prestige */
    width: auto;
    transition: all 0.4s ease;
    /* Makes the size change smooth when scrolling */
}

header.header-solid .header-logo-img {
    height: 60px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* THE FAR RIGHT INQUIRY BUTTON */
.nav-action {
    margin-left: auto;
    /* Pushes the button to the absolute right edge */
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    /* White links look best on the dark photo overlay */
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
}

.btn-primary {
    padding: 12px 25px;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
}

/* BASE TRANSPARENT STATE */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    /* More breathing room at the top */
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Professional "Slow-Fast-Slow" transition */
    z-index: 1000;
}

/* THE ENHANCED SCROLLED STATE */
#main-header.header-scrolled {
    padding: 15px 50px;
    /* Header gets thinner as you scroll */
    background: rgba(26, 26, 26, 0.75);
    /* Deep charcoal with 75% transparency */
    backdrop-filter: blur(15px);
    /* The Frosted Glass Effect */
    -webkit-backdrop-filter: blur(15px);
    /* Safari support */
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    /* Subtle gold divider */
}

/* TRANSPARENT STATE (at top of page) */
#main-header.header-transparent {
    background: transparent;
    border-bottom: none;
    padding: 30px 50px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-scrolled .header-logo-img {
    height: 60px;
    /* Slightly smaller when scrolling to save space */
}

.nav-links a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 5. LUXURY PROJECT CARDS */
.project-grid-section {
    padding: 100px 8%;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
}

/* --- 6. LEGACY VISUAL - SCREENSHOT STYLE --- */
.legacy-section {
    padding: 100px 8%;
    background-color: #f9f9f9;
}

.legacy-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.legacy-content {
    flex: 1;
}

.legacy-content .gold-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #1A1A1A;
    display: inline-block;
    margin-bottom: 20px;
    background: var(--gold);
    padding: 6px 18px;
    border-radius: 30px;
    border: 2px solid #1A1A1A;
}

.legacy-content h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.header-line-left {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 30px;
}

.legacy-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 50px;
    max-width: 480px;
}

.legacy-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: 8px;
}

/* RIGHT SIDE: Frame + overlapping badge */
.legacy-visual {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.frame-wrapper {
    position: relative;
    display: inline-block;
}

/* THE GOLDEN BORDER FRAME */
.frame-accent {
    border: 2px solid var(--dark);
    /* Dark border on top/left (screenshot look) */
    outline: 2px solid var(--gold);
    /* Gold offset outline */
    outline-offset: 10px;
    max-width: 750px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
}

/* Extra gold bottom-right accent line like in screenshot */
.frame-accent::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: -18px;
    right: -18px;
    height: 2px;
    background: var(--gold);
}

.expanded-sketch {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* THE OVERLAPPING BLACK BADGE */
.trust-badge-large {
    position: absolute;
    bottom: -50px;
    left: 50px;
    background: #1A1A1A;
    width: 100px;
    padding: 18px 14px;
    text-align: center;
    z-index: 10;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.25);
}

.trust-badge-large .years {
    display: block;
    font-size: 2.8rem;
    font-family: 'Raleway', sans-serif;
    color: var(--gold);
    line-height: 1;
    font-weight: 700;
}

.trust-badge-large .text {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(197, 160, 89, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .legacy-container {
        flex-direction: column;
    }

    .legacy-text {
        max-width: 100%;
    }

    .frame-wrapper {
        margin-top: 50px;
    }
}


/* 7. REFINED INQUIRY SECTION */
.contact-section {
    padding: 120px 8%;
    background-color: var(--dark);
    color: var(--white);
}

.contact-container {
    display: flex;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-label {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* Form Container Styling */
.contact-form-wrapper {
    flex: 1.2;
    background: var(--white);
    padding: 50px;
    border-radius: 2px;
}

.luxury-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

.luxury-form label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.luxury-form input,
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

/* btn-submit full rule defined below */

/* Mobile Fix */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}


/* VIHAV-STYLE SPLIT CURTAIN */
#visual-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    /* Allows background to be seen through blur */
}

.curtain-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.left-panel {
    left: 0;
}

.right-panel {
    right: 0;
}

.curtain-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-logo {
    height: 320px;
    width: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


#visual-curtain.reveal .left-panel {
    transform: translateX(-100%);
}

#visual-curtain.reveal .right-panel {
    transform: translateX(100%);
}

#visual-curtain.reveal .curtain-content {
    opacity: 0;
    transition: 0.5s;
}

/* MODAL OVERLAY - BLURS THE BACKGROUND */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    z-index: 10000;
    box-sizing: border-box;
}

/* THE MODAL BOX */
.modal-window {
    background: #FFFFFF;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 50px;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.modal-logo {
    height: 70px;
    display: block;
    margin: 0 auto 15px;
}

.modal-header h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 8px;
    text-align: center;
}

.modal-header p {
    font-family: 'Raleway', sans-serif;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.luxury-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    /* Gold labels for a rich look */
    margin-bottom: 10px;
}

.luxury-form input,
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: #F9F9F9;
    /* Light grey background for the input area */
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    /* Rounded input fields */
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.luxury-form input:focus {
    outline: none;
    border-color: var(--gold);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* THE FIX: Premium Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 12px;
    /* Matching the input rounding */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-submit:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* 8. SINGLE CENTERED HONOR BADGE */

.will-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header .gold-text {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    display: block;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

.footer-section {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 8% 30px;
}

.footer-inner {
    display: flex;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto 60px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 60px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 220px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* FLOATING SOCIAL SIDEBAR */
.social-float {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 999;
}

.social-icon {
    width: 50px;
    height: 50px;
    color: var(--gold);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 25px;
    height: 25px;
}

.social-icon:hover {
    color: var(--gold);
    transform: translateX(-4px);
}

.social-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #999, transparent);
    margin-top: 5px;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* Pulse animation on WhatsApp button */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.4;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Hide social bar on mobile, keep whatsapp */
@media (max-width: 768px) {
    .social-float {
        display: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* WELCOME LEAD POPUP */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

.welcome-window {
    display: flex;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* LEFT SIDE */
.welcome-left {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
}

.welcome-ad-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.welcome-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.welcome-ad-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--gold);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 7px 16px;
    z-index: 3;
    border-radius: 2px;
}

.welcome-ad-content {
    position: relative;
    z-index: 2;
    color: white;
}

.welcome-ad-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.welcome-ad-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 10px;
    color: white;
}

.welcome-ad-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.welcome-ad-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    padding-top: 22px;
}

.ad-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 15px;
}

.ad-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.ad-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.ad-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* RIGHT SIDE */
.welcome-right {
    flex: 1;
    background: #FAFAFA;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.welcome-logo {
    height: 70px;
    width: 160px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 25px;
    display: block;
}

.welcome-right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.welcome-right>p {
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
}

/* Fix form fields to be stacked properly */
.welcome-form .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.welcome-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.welcome-form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.welcome-form input,
.welcome-form select {
    width: 100%;
    padding: 13px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.welcome-form input:focus,
.welcome-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.welcome-form .btn-submit {
    margin-top: 8px;
    border-radius: 10px;
    padding: 15px;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
}

.skip-popup {
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 14px;
    text-align: center;
    text-decoration: underline;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.skip-popup:hover {
    color: #999;
}

.close-welcome {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    color: white;
    z-index: 99999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.close-welcome:hover {
    background: rgba(0, 0, 0, 0.6);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .welcome-left {
        display: none;
    }

    .welcome-window {
        max-width: 420px;
    }

    .welcome-right {
        padding: 35px 25px;
    }
}

/* footer-section full rule defined below */

.footer-connect {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    /* margin-bottom removed as it is now the final element */
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-5px);
}

.footer-icon:hover svg {
    transform: scale(1.1);
}

.modal-window::-webkit-scrollbar {
    display: none;
}

.modal-window {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   MOBILE RESPONSIVE - index / homepage  (max-width: 600px)
   ============================================================ */


/* HAMBURGER BUTTON (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    z-index: 1100;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV DRAWER */
@media (max-width: 600px) {

    /* HEADER */
    #main-header {
        padding: 16px 20px;
    }

    #main-header.header-transparent,
    #main-header.header-scrolled {
        padding: 16px 20px;
    }

    .header-logo-img {
        height: 52px;
    }

    .header-scrolled .header-logo-img {
        height: 44px;
    }

    /* NAV CONTAINER */
    .nav-container {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        margin-right: 0;
        flex: 1;
    }

    /* Show hamburger, hide inquiry button on very small screens */
    .nav-hamburger {
        display: flex;
    }

    .nav-action {
        display: none;
    }

    /* Nav links become a full-width dropdown drawer */
    .nav-links {
        display: none;
        flex-basis: 100%;
        order: 3;
        background: rgba(26, 26, 26, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(197, 160, 89, 0.2);
        padding: 10px 0 20px;
    }

    .nav-links.mobile-open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-links ul li a {
        display: block;
        padding: 14px 24px;
        font-size: 0.85rem;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Show inquiry button inside mobile menu */
    .nav-links ul li.mobile-inquiry-item {
        display: block;
    }

    .nav-links ul li.mobile-inquiry-item a {
        margin: 16px 24px 0;
        background: var(--gold);
        color: white;
        text-align: center;
        border: none;
        border-bottom: none;
        padding: 13px 20px;
    }

    /* HERO */
    .hero-section {
        min-height: 100svh;
        padding: 0 5%;
    }

    .hero-content {
        padding: 0 5%;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.72rem;
        letter-spacing: 3px;
    }

    .btn-gold {
        padding: 13px 28px;
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    /* PROJECT GRID */
    .project-grid-section {
        padding: 60px 5%;
    }

    /* On mobile: info bar sits below image, not overlapping it */
    .project-info {
        position: static;
        /* take it out of absolute positioning */
        transform: none;
        padding: 18px 16px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    /* Keep overlay hidden on mobile because the card link handles tapping */
    .project-overlay {
        display: none;
    }

    /* Skeleton on mobile */
    .skeleton-card-img {
        height: 220px;
        position: static;
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    /* LEGACY SECTION */
    .legacy-section {
        padding: 60px 5%;
    }

    .legacy-container {
        flex-direction: column;
        gap: 40px;
    }

    .legacy-content h2 {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
    }

    .legacy-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .legacy-visual {
        width: 100%;
        padding: 20px 0 60px;
    }

    .frame-wrapper {
        width: 100%;
        margin-top: 20px;
    }

    .trust-badge-large {
        bottom: -40px;
        left: 20px;
    }

    /* CONTACT SECTION */
    .contact-section {
        padding: 60px 5%;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .luxury-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* FOOTER */
    .footer-section {
        padding: 50px 5% 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 36px;
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    /* WELCOME POPUP */
    .welcome-window {
        flex-direction: column;
        max-height: 92vh;
        border-radius: 16px;
    }

    .welcome-left {
        display: none;
    }

    .welcome-right {
        padding: 32px 22px;
        overflow-y: auto;
    }

    /* Prevent horizontal overflow globally */
    body {
        overflow-x: hidden;
    }

    /* MODAL */
    .modal-window {
        padding: 28px 20px;
        width: 95%;
        border-radius: 16px;
    }
}

/* HEADING ANTI-ALIASING */
h1,
h2,
h3,
h4,
h5,
h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}

/* SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f2f2f2 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Extra-small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .section-header h2 {
        font-size: 1.45rem;
    }

    .legacy-stats {
        gap: 16px;
    }
}


/* Final homepage project-card layout */
.project-grid-section {
    padding: 80px 2%;
    background: #f5f5f3;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 44px auto 0;
}

.pc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid #dedede;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.pc-card:hover {
    border-color: #cfcfcf;
    transform: translateY(-3px);
}

.pc-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9e9e6;
}

.pc-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pc-card:hover .pc-image img {
    transform: scale(1.035);
}

.pc-status {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(242, 247, 252, 0.9);
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 8px 13px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.pc-status.upcoming {
    background: rgba(197, 160, 89, 0.92);
    color: #fff;
}

.pc-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(91, 101, 108, 0.45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.pc-card:hover .pc-arrow {
    background: var(--gold);
    color: #fff;
}

.pc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 26px 26px;
}

.pc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.25;
    letter-spacing: 0;
}

.pc-type {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 16px;
    font-weight: 400;
}

.pc-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    background: #fffaf0;
    border: 1px solid #e7d4a8;
    border-radius: 8px;
    padding: 8px 13px;
    margin-bottom: 16px;
}

.pc-location {
    min-height: 34px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #d88700;
    margin-bottom: 34px;
    line-height: 1.45;
}

.pc-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.pc-price {
    display: none;
}

.pc-price-btn,
.pc-enquire {
    flex: 1 1 0;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    padding: 14px 12px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    border-radius: 4px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.pc-price-btn {
    background: #f1f1f1;
    color: #111;
    border: 1px solid #f1f1f1;
}

.pc-price-btn:hover {
    background: #e7e7e7;
    border-color: #e7e7e7;
}

.pc-enquire {
    background: #d6ad2f;
    color: #111;
    border: 1px solid #d6ad2f;
}

.pc-enquire:hover {
    background: #c69c23;
    border-color: #c69c23;
    color: #111;
}

@media (max-width: 1024px) {
    .project-grid-section {
        padding: 54px 5%;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 28px;
    }

    .pc-body {
        padding: 22px 18px 18px;
    }

    .pc-title {
        font-size: 1.32rem;
    }

    .pc-footer {
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .pc-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-price-btn,
    .pc-enquire {
        width: 100%;
    }
}