/* =========================================================================
   HLD STUDIEO - REDESIGN 2024 (Luxury Interior Design Aesthetic)
   ========================================================================= */

:root {
    --luxury-gold: #D4AF37;
    --luxury-gold-dark: #B8941F;
    --luxury-black: #0F0F0F;
    --luxury-charcoal: #1A1A1A;
    --luxury-offwhite: #F8F9FA;
    --luxury-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(15px);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. GLOBAL ENHANCEMENTS */
body {
    background-color: var(--luxury-white);
    color: var(--luxury-charcoal);
    overflow-x: hidden;
    padding-top: 0 !important; /* Fixed the gap issue */
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* 2. NAVIGATION REDESIGN (Curved Luxury Pill Theme) */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 4px 25px !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 94%;
    max-width: 1200px;
    margin: 15px auto 0;
    border-radius: 100px !important; /* The "Curved" Design */
    left: 50% !important;
    transform: translateX(-50%);
    position: fixed !important;
    top: 0;
    z-index: 1050;
}

.navbar .container {
    padding: 0 15px !important;
}

.navbar.scrolled {
    width: 98%;
    max-width: 1400px;
    padding: 4px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-radius: 60px !important;
}

.navbar-brand img {
    height: 65px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: brightness(1.1) contrast(1.05);
    background: transparent !important;
    padding: 0 !important;
}

.navbar-nav .nav-link {
    font-weight: 600 !important;
    color: rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 1px;
    padding: 10px 0 !important;
    margin: 0 18px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
}

.navbar-nav .nav-link::after {
    height: 1px !important;
    background: var(--luxury-gold) !important;
    bottom: -2px !important;
    opacity: 0.5;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--luxury-gold) !important;
    opacity: 1;
}

.btn-cta {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%) !important;
    color: #000 !important;
    padding: 10px 25px !important;
    border-radius: 50px !important; /* Curved CTA */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.75rem !important;
    transition: var(--transition-slow) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.btn-cta:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2) !important;
}




/* 3. HERO SECTION (Immersive Architectural Luxury - Champagne Theme) */
.hero-immersive {
    min-height: 100vh;
    background: #FAF9F6 !important; /* Premium Off-White/Champagne */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 140px; /* Increased gap from navbar */
}

/* Moving Architectural Grid */
.hero-immersive::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(184, 148, 31, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 148, 31, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
}

.hero-main-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-content-shahi {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--luxury-gold);
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}

.hero-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 1px;
    background: var(--luxury-gold);
}

.hero-title-shahi {
    font-family: 'Lora', serif !important;
    font-size: clamp(3.5rem, 8vw, 7.5rem) !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 0.9 !important;
    letter-spacing: -3px !important;
    margin-bottom: 35px;
}

.hero-title-shahi span {
    display: block;
    color: var(--luxury-gold);
    font-style: italic;
    font-weight: 300;
}

.hero-desc-shahi-wrapper {
    max-width: 480px;
    padding-left: 5px;
}

.hero-desc-shahi {
    font-size: 1.15rem;
    color: rgba(0,0,0,0.65);
    line-height: 1.8;
    margin-bottom: 0;
}

.btn-luxury-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #B8941F 100%);
    background-size: 200% auto;
    color: #fff !important;
    padding: 18px 45px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.5s ease;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(184, 148, 31, 0.3);
}

.btn-luxury-main::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.btn-luxury-main:hover {
    background-position: right center;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(184, 148, 31, 0.5);
    color: #fff !important;
}

.btn-luxury-main:hover::before {
    left: 100%;
}

/* Floating Interactive Gallery */
.hero-visual-center {
    position: relative;
    height: 600px;
}

.main-visual-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.6s ease;
}

.main-visual-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.main-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Material Swatches (The Interior Feel) */
.swatch {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.swatch-1 { top: 10%; right: -20px; transform: rotate(10deg); }
.swatch-2 { bottom: 20%; left: -40px; transform: rotate(-15deg); }
.swatch-3 { bottom: 5%; right: 10%; transform: rotate(5deg); }

.swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.swatch-label {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--luxury-gold);
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.swatch:hover {
    transform: scale(1.2) rotate(0deg) !important;
    z-index: 15;
}

.swatch:hover .swatch-label {
    opacity: 1;
    transform: translateY(0);
}

/* Measurement Lines */
.measure-line {
    position: absolute;
    background: var(--luxury-gold);
    opacity: 0.3;
    z-index: 2;
}

.m-h { height: 1px; width: 100px; }
.m-v { width: 1px; height: 100px; }

.m-1 { top: 50px; left: 10%; }
.m-2 { bottom: 100px; right: 5%; }

.m-text {
    position: absolute;
    font-size: 0.6rem;
    color: var(--luxury-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .hero-immersive { padding-top: 120px; text-align: center; }
    .hero-desc-shahi { margin: 0 auto 40px; border-left: none; padding-left: 0; border-top: 2px solid var(--luxury-gold); padding-top: 20px; }
    .hero-visual-center { height: 400px; margin-top: 50px; }
    .main-visual-frame { transform: none !important; }
    .swatch { width: 80px; height: 80px; }
}

/* 4. SERVICE CARDS (Glassmorphism + Hover) */
.service-grid-redesign {
    padding: 100px 0;
    background: var(--luxury-black);
    color: #fff;
}

.service-card-luxury {
    position: relative;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
    transition: var(--transition-slow);
}

.service-card-luxury img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition-slow);
}

.service-card-luxury:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}

.service-card-luxury:hover .service-card-content {
    background: linear-gradient(to top, rgba(212, 175, 55, 0.9) 0%, transparent 100%);
}

.service-card-luxury h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.service-card-luxury p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
    color: #eee;
}

.service-card-luxury:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* 5. TYPOGRAPHY & BUTTONS */
.btn-luxury {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%);
    color: #000;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-luxury:hover {
    background: var(--luxury-charcoal);
    color: var(--luxury-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.btn-luxury:hover::before {
    left: 200%;
}

.btn-luxury-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-slow);
    text-decoration: none;
    display: inline-block;
}

.btn-luxury-outline:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.btn-luxury-outline:hover {
    background: var(--luxury-gold);
    color: #fff;
}

/* Page Header (About Us / Services / etc.) */
.page-header {
    background: #FAF9F6 !important;
    padding: 160px 0 80px !important;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(184, 148, 31, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 148, 31, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 5;
}

.page-title {
    font-family: 'Lora', serif !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 700 !important;
    color: var(--luxury-black) !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 15px !important;
}

.page-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important;
    color: rgba(0,0,0,0.55) !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* 6. SECTION TITLES */
.section-title-luxury {
    margin-bottom: 80px;
}

.section-title-luxury span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--luxury-gold);
    margin-bottom: 15px;
}

.section-title-luxury h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    color: #fff;
}

.section-title-luxury h2 b {
    font-weight: 800;
}

/* 7. CUSTOM CURSOR (Optional enhancement) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--luxury-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* 8. MOBILE RESPONSIVENESS */
@media (max-width: 991px) {
    .hero-redesign {
        padding: 100px 0 40px;
    }
    .hero-redesign::before {
        display: none;
    }
    .hero-redesign .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    .hero-redesign .hero-subtitle {
        text-align: center;
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-parallax {
        height: 400px;
        margin-top: 50px;
    }
    .service-card-luxury {
        height: 400px;
    }
    .service-card-luxury p {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Curved Navbar Mobile Fixes */
    .navbar {
        width: 94% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 15px auto !important;
        padding: 10px 20px !important;
        border-radius: 40px !important;
    }

    .navbar-brand {
        transform: none !important;
    }

    .navbar-brand img {
        height: 45px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 25px !important;
        margin-top: 10px !important;
        padding: 25px !important;
    }

    .navbar-nav .nav-link {
        margin: 5px 0 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #1a1a1a !important;
    }

    .navbar-toggler {
        border: none !important;
        padding: 0 !important;
        transform: none !important;
    }

    .navbar-toggler-icon {
        filter: none !important;
    }

    /* Architectural measure lines overlap fix */
    .measure-line {
        display: none !important;
    }

    /* Fixed navbar overlap fix: make hero layouts block elements on mobile */
    .hero-immersive, .portfolio-hero, .contact-hero-banner {
        display: block !important;
        padding-top: 140px !important; /* Push down to clear fixed navbar with generous space */
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    /* Floating WhatsApp widget reposition and resize */
    .whatsapp-btn {
        left: auto !important;
        right: 20px !important;
        bottom: 20px !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    /* Removed nested media query to support older browser parsers */

    /* Clean mobile typography & layout spacing */
    p, h1, h2, h3, h4, h5, h6, span {
        hyphens: none !important;
    }

    .hero-immersive {
        text-align: left !important;
    }

    .hero-content-shahi {
        text-align: left !important;
        display: block !important;
    }

    .hero-badge {
        display: inline-block !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        padding-left: 45px !important;
        letter-spacing: 2px !important;
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
        margin-bottom: 15px !important;
    }

    .hero-badge::before {
        width: 30px !important;
    }

    .hero-title-shahi {
        font-size: clamp(2.2rem, 8vw, 4.2rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -1px !important;
        margin-bottom: 25px !important;
        text-align: left !important;
    }

    .hero-title-shahi span {
        margin-left: 0 !important;
        display: block !important;
    }

    .hero-desc-shahi-wrapper {
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    .hero-desc-shahi {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        border-left: 2px solid var(--luxury-gold) !important;
        border-top: none !important;
        padding-left: 15px !important;
        padding-top: 0 !important;
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }

    .hero-actions-shahi {
        text-align: left !important;
        margin-top: 30px !important;
    }

    /* Adjust content wrappers & floating materials for narrow screens */
    .swatch-1 {
        right: 0px !important;
    }
    .swatch-2 {
        left: 0px !important;
    }

    .contact-form-wrapper {
        padding: 30px 20px !important;
    }

    /* Prevent email text truncation/overflow on mobile/tablet */
    .channel-card a {
        font-size: clamp(0.9rem, 4.5vw, 1.15rem) !important;
    }

    /* Premium Button Responsive Alignments & Styling Fixes */
    .btn-luxury {
        padding: 14px 28px !important;
        font-size: 0.85rem !important;
        letter-spacing: 1.5px !important;
        white-space: nowrap !important;
    }

    .btn-luxury-main {
        padding: 14px 30px !important;
        font-size: 0.85rem !important;
        letter-spacing: 1.5px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .btn-luxury-outline {
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
        letter-spacing: 1.5px !important;
        white-space: nowrap !important;
    }

    /* Override style.css width: auto !important forcing on mobile */
    .btn.w-100, 
    .btn-primary-custom.w-100,
    a.btn-primary-custom.w-100,
    button.btn-primary-custom.w-100,
    .btn-luxury.w-100,
    .btn-luxury-main.w-100 {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Align CTA header button in expanded mobile menu */
    .nav-cta {
        width: 100% !important;
        margin-top: 15px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .nav-cta .btn-cta {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 24px !important;
    }

    /* Fix text-center alignment on mobile for nested paragraphs and force centering */
    .text-center p,
    .text-center .text-muted,
    p.text-center {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Adjust page headers for tablet/mobile viewports to clear navbar */
    .page-header {
        padding: 130px 0 60px !important;
    }

    /* Create bottom safe zone inside cards to prevent text from being blocked by floating WhatsApp widget */
    .seo-card {
        padding-bottom: 75px !important;
    }
}

/* Flat media query for mobile devices (resolves parser issues) */
@media (max-width: 576px) {
    .whatsapp-btn span {
        display: none !important;
    }
    .whatsapp-btn i {
        margin-right: 0 !important;
        font-size: 1.5rem !important;
    }
    .whatsapp-btn {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
    
    /* Make channel icons more compact on mobile to free up horizontal text space */
    .channel-icon {
        width: 42px !important;
        height: 42px !important;
        margin-right: 12px !important;
    }

    /* Stacked buttons in responsive CTA rows on small screens */
    .d-flex.flex-column.flex-sm-row .btn,
    .d-flex.flex-column.flex-sm-row .btn-primary-custom,
    .d-flex.flex-column.flex-sm-row .btn-luxury,
    .d-flex.flex-column.flex-sm-row .btn-luxury-main,
    .d-flex.flex-column.flex-sm-row .btn-luxury-outline {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 9. ANIMATIONS */
[data-aos="luxury-fade"] {
    opacity: 0;
    transform: translateY(40px);
    transition-property: transform, opacity;
}

[data-aos="luxury-fade"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 10. BRANDS SECTION (Premium Material Board) */
.brand-section-luxury-old {
    background: #fff;
    padding: 100px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 10. BRANDS SECTION (Minimalist Luxury Marquee) */
.brand-section-luxury {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.brand-section-title {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    color: var(--luxury-gold) !important;
    opacity: 0.8;
}

.brand-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: #fff;
    position: relative;
    /* Cinematic Vignette */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-marquee-track {
    display: flex;
    width: max-content;
    gap: 150px;
    animation: premiereSlide 25s linear infinite !important;
    will-change: transform, filter;
}

@keyframes premiereSlide {
    0% { transform: translateX(0) skewX(-2deg); filter: blur(1px); }
    100% { transform: translateX(-50%) skewX(-2deg); filter: blur(1px); }
}

.brand-item {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(0,0,0,0.08) !important;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 2px;
}

.brand-marquee-track:hover {
    animation-play-state: paused !important;
}

.brand-item:hover {
    color: var(--luxury-gold) !important;
    transform: scale(1.2) skewX(0deg) !important;
    filter: blur(0px) !important;
    letter-spacing: 8px;
    opacity: 1;
}

/* =========================================================================
   11. MOBILE & TABLET UI/UX RESPONSIVE OVERHAUL (320px - 991px)
   ========================================================================= */

@media (max-width: 991px) {
    /* Navbar Capsule & Mobile Drawer Fixes */
    .navbar {
        width: 92% !important;
        margin: 10px auto 0 !important;
        padding: 8px 16px !important;
        border-radius: 30px !important;
        top: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 20px !important;
        margin-top: 12px !important;
        padding: 20px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
    }

    /* Clear Header Overlap for All Top Sections */
    .hero-immersive, 
    .page-header, 
    .service-hero, 
    .portfolio-hero, 
    .contact-hero-banner,
    section:first-of-type {
        padding-top: 130px !important;
    }

    /* Consultation Card & Glass Containers Mobile Fix */
    .consultation-card-luxury,
    .contact-form-wrapper,
    .glass-card,
    .seo-card {
        padding: 24px 18px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Responsive Buttons & CTAs - Prevent Horizontal Overflow */
    .btn-luxury-main,
    .btn-luxury,
    .btn-cta,
    .btn-gold,
    .btn-primary-custom {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 20px !important;
        font-size: clamp(0.78rem, 3.5vw, 0.88rem) !important;
        letter-spacing: 1px !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn-luxury-main i,
    .btn-cta i {
        flex-shrink: 0 !important;
    }

    /* Mobile Text & Headings Scaling */
    .display-4, .display-5, .display-6 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        width: 95% !important;
        padding: 6px 14px !important;
    }

    .navbar-brand img {
        height: 52px !important;
    }

    .consultation-card-luxury {
        padding: 20px 15px !important;
    }

    .consultation-card-luxury p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Fix Mobile Footer Top Gap */
    .premium-footer {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .footer-main-content {
        padding-top: 15px !important;
    }

    .footer-main-content .row {
        padding-top: 0 !important;
    }

    /* Hide Social Media Icons on Mobile Devices */
    .footer-socials {
        display: none !important;
    }
}

/* Footer Link Item Styling */
.footer-heading {
    white-space: nowrap !important;
}

.footer-link-item {
    color: #CBD5E1 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}

.footer-link-item i {
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
    color: #D4AF37 !important;
}

.footer-link-item span {
    display: inline-block;
}

.footer-link-item:hover {
    color: #D4AF37 !important;
    transform: translateX(3px);
}

.text-gold {
    color: #D4AF37 !important;
}

@media (max-width: 576px) {
    .footer-heading {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 12px !important;
        white-space: nowrap !important;
    }
    
    .footer-link-item {
        font-size: 0.8rem !important;
        gap: 5px;
    }
    
    .footer-link-item i {
        font-size: 0.65rem;
        margin-top: 3px;
    }

    .footer-logo-box {
        padding: 6px 14px !important;
        border-radius: 10px !important;
    }
}

/* Footer Logo Box Hover */
.footer-logo-box {
    transition: all 0.3s ease !important;
}

.footer-logo-box:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

/* =========================================================================
   12. MASTER MOBILE UI/UX RESPONSIVE ENGINE (Universal Device Optimization)
   ========================================================================= */

/* Prevent Horizontal Body Scroll */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 991px) {
    /* 1. Top Navbar Capsule & Mobile Drawer */
    .navbar {
        width: 92% !important;
        margin: 10px auto 0 !important;
        padding: 6px 16px !important;
        border-radius: 25px !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        z-index: 1050 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 20px !important;
        margin-top: 10px !important;
        padding: 18px 20px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        margin: 2px 0 !important;
        border-radius: 8px;
    }

    /* 2. Top Header Overlap Clearance for All Banners */
    .hero-immersive, 
    .page-header, 
    .service-hero, 
    .portfolio-hero, 
    .contact-hero-banner,
    .about-hero,
    main > section:first-of-type,
    body > section:first-of-type {
        padding-top: 125px !important;
    }

    /* 3. Decorative Architectural Elements on Mobile */
    .measure-line {
        display: none !important;
    }

    /* 4. Responsive Container & Cards */
    .consultation-card-luxury,
    .contact-form-wrapper,
    .glass-card,
    .glass-card-sm,
    .service-card-luxury,
    .seo-card,
    .project-card {
        padding: 22px 18px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* 5. Universal Button Elastic Scaling */
    .btn-luxury-main,
    .btn-luxury,
    .btn-cta,
    .btn-gold,
    .btn-primary-custom,
    .btn-outline-custom {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 13px 20px !important;
        font-size: clamp(0.78rem, 3.5vw, 0.88rem) !important;
        letter-spacing: 1px !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 6. Typography Scaling */
    h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
        font-size: clamp(1.75rem, 6vw, 2.4rem) !important;
        line-height: 1.22 !important;
    }

    p, .lead, .hero-desc-shahi {
        font-size: clamp(0.9rem, 3.8vw, 1.02rem) !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 576px) {
    /* Ultra-compact viewports (320px - 576px) */
    .navbar {
        width: 95% !important;
        padding: 5px 12px !important;
    }

    .navbar-brand img {
        height: 50px !important;
    }

    .consultation-card-luxury,
    .contact-form-wrapper,
    .glass-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    .footer-main-content {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    /* Contact Page Mobile Responsive Overrides */
    .contact-hero-banner {
        padding-top: 130px !important;
        padding-bottom: 40px !important;
    }

    .contact-hero-banner .hero-title-shahi {
        font-size: clamp(1.55rem, 6.8vw, 2.1rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
        hyphens: none !important;
        word-break: normal !important;
    }

    .contact-channels-grid .channel-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }

    .contact-channels-grid .channel-icon {
        width: 42px !important;
        height: 42px !important;
        margin-right: 10px !important;
        font-size: 1rem !important;
    }

    .contact-channels-grid a {
        font-size: clamp(0.85rem, 3.5vw, 1.05rem) !important;
        word-break: break-word !important;
    }
}

/* Modern High-Contrast Form Inputs */
.form-label-modern {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px !important;
}

.form-control-modern {
    background-color: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 12px !important;
    color: #0F172A !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.form-control-modern:focus {
    background-color: #FFFFFF !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
}

.form-control-modern::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    font-size: 0.88rem !important;
}

.form-select.form-control-modern {
    color: #0F172A !important;
}

/* Global Text Justify Format */
.local-seo-card p,
.seo-card p,
.text-justify,
.p-justify {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto;
}
