html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

:root { 
    --primary: #c9a96e; 
    --dark: #000000; 
    --darker: #000000;
    --light: #f8f9fa; 
    --text: #333333;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b8955a; }

* { font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }

/* CRITICAL FIX: No padding-top on body */
body { 
    background: #fff; 
    color: var(--text); 
    overflow-x: hidden;
    padding-top: 0 !important;
}

h1, h2, h3, h4, h5, .brand-text { font-family: 'Playfair Display', serif; color: var(--dark); }

/* PRELOADER */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark); display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.5s; }
.preloader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(201,169,110,0.3); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* NAVBAR */
.navbar { 
    background: #ffffff !important; /* Changed from black to solid white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Added subtle shadow for clean separation */
    backdrop-filter: blur(10px); 
    transition: all 0.3s;
    margin-bottom: 0 !important;
}
.brand-text { font-size: 1.8rem; font-weight: 900; color: var(--primary) !important; }
.brand-sub { font-size: 0.7rem; letter-spacing: 3px; color: var(--dark); } /* Changed from #fff to var(--dark) */

.nav-link { 
    color: var(--dark) !important; /* Changed from #fff to dark text for contrast */
    font-weight: 500; 
    margin: 0 10px; 
    position: relative; 
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Fix dark hamburger menu button for mobile screens */
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* LOGO */
.navbar-logo {
    height: 60px; /* Increased from 45px to 60px */
    width: auto;
    max-width: 200px; /* Increased from 160px to 200px */
    object-fit: contain;
    transition: transform 0.3s ease;
}
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05); 
}
.navbar-brand .brand-text {
    font-size: 1.7rem; /* Increased slightly */
    line-height: 1;
    display: block;
}
.navbar-brand .brand-sub {
    font-size: 0.7rem; /* Increased slightly */
    letter-spacing: 2px;
    display: block;
    margin-top: 2px;
}
/* BUTTONS */
.btn-primary { background: var(--primary); border: none; color: #fff; padding: 12px 30px; border-radius: 0; font-weight: 600; transition: all 0.3s; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.btn-primary:hover { background: #b8955a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(201,169,110,0.3); color: #fff; }
.btn-outline-light { border-radius: 0; border-width: 2px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.btn-outline-light:hover { background: var(--primary); border-color: var(--primary); }

/* TYPOGRAPHY */
.subtitle { color: var(--primary); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 10px; }
.section-title { font-size: 2.8rem; font-weight: 700; margin: 15px 0 20px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); }
.section-subtitle { max-width: 600px; margin: 20px auto 0; color: #666; }

/* HERO CAROUSEL - GAP COMPLETELY REMOVED */
.hero-carousel {
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#heroCarousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 100px !important;
}

.hero-tag {
    display: inline-block;
    border: 1px solid var(--primary);
    padding: 5px 20px;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 20px 0 40px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 100px;
}

.carousel-indicators button {
    width: 40px !important;
    height: 3px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    margin: 0 5px !important;
}

.carousel-indicators button.active {
    background-color: var(--primary) !important;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: #fff;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--primary);
    margin: 0 auto;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ABOUT PREVIEW */
.about-preview { padding-top: 80px !important; }
.about-image { position: relative; }
.experience-badge { position: absolute; bottom: -30px; right: -30px; background: var(--primary); color: #fff; padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.experience-badge h3 { font-size: 3rem; margin: 0; color: #fff; }
.signature img { height: 40px; width: auto; }

/* STATS SECTION */
.stats-section { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.stat-item { padding: 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 3.5rem; font-weight: 900; color: var(--primary); margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.stat-label { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin: 0; color: #ccc; }

/* SERVICES */
.service-card { background: #fff; border: 1px solid #eee; transition: all 0.4s; height: 100%; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary); transform: scaleX(0); transition: transform 0.4s; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.service-icon { width: 80px; height: 80px; background: rgba(201,169,110,0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 20px; transition: all 0.4s; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: rotate(360deg); }
.service-link { color: var(--primary); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.service-link i { transition: transform 0.3s; }
.service-link:hover i { transform: translateX(5px); }

/* LUXURY TIMELINE */
.process-section {
    background: #fff !important;
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

.luxury-timeline {
    display: flex !important;
    justify-content: space-between !important;
    position: relative;
    margin-top: 60px !important;
    padding: 0 !important;
}

.luxury-timeline::before {
    content: '' !important;
    position: absolute !important;
    top: 45px !important;
    left: 15% !important;
    right: 15% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, var(--primary), transparent) !important;
    z-index: 1 !important;
}

.lt-step {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 0 10px !important;
    transition: transform 0.4s ease !important;
}

.lt-step:hover {
    transform: translateY(-10px) !important;
}

.lt-icon-wrap {
    width: 90px !important;
    height: 90px !important;
    background: #fff !important;
    border: 2px solid var(--primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 25px !important;
    font-size: 2rem !important;
    color: var(--primary) !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.1) !important;
}

.lt-step:hover .lt-icon-wrap {
    background: var(--primary) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(201, 169, 110, 0.3) !important;
}

.lt-number {
    font-family: 'Playfair Display', serif !important;
    font-size: 4rem !important;
    font-weight: 900 !important;
    color: rgba(201, 169, 110, 0.08) !important;
    position: absolute !important;
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.lt-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 15px !important;
    position: relative !important;
    display: inline-block !important;
}

.lt-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary) !important;
    transition: width 0.4s ease !important;
}

.lt-step:hover .lt-title::after {
    width: 50px !important;
}

.lt-desc {
    font-size: 0.9rem !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* PORTFOLIO */
.project-card { position: relative; overflow: hidden; border-radius: 5px; cursor: pointer; }
.project-card img { width: 100%; height: 350px; object-fit: cover; transition: transform 0.6s; }
.project-card:hover img { transform: scale(1.1); }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; transform: translateY(100%); transition: transform 0.4s; }
.project-card:hover .project-overlay { transform: translateY(0); }
.project-category { color: var(--primary); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.project-overlay h5 { color: #fff; margin: 10px 0 5px; }

/* TESTIMONIALS */
.testimonial-card { background: #fff; border: 1px solid #eee; border-radius: 5px; transition: all 0.3s; height: 100%; }
.testimonial-card:hover { border-color: var(--primary); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.testimonial-rating { color: var(--primary); margin-bottom: 15px; }
.testimonial-text { font-style: italic; font-size: 1.05rem; line-height: 1.6; margin-bottom: 20px; color: #555; }

/* JOURNAL */
.journal-card { background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s; height: 100%; }
.journal-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.journal-card img { width: 100%; height: 250px; object-fit: cover; }
.journal-content h5 { font-size: 1.2rem; margin-bottom: 15px; }
.journal-link { color: var(--primary); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.journal-link i { transition: transform 0.3s; }
.journal-link:hover i { transform: translateX(5px); }

/* CTA */
.cta-section { background: var(--dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { font-size: 3rem; color: #fff; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; }

/* FOOTER */
.footer { background: var(--darker); }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 20px; font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-links a { color: #aaa; text-decoration: none; margin-bottom: 12px; display: block; transition: all 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-contact li { color: #aaa; margin-bottom: 15px; font-size: 0.95rem; }
.newsletter-form .form-control { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 0; }
.newsletter-form .form-control::placeholder { color: #888; }
.newsletter-form .btn-primary { border-radius: 0; padding: 10px 20px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: #fff; border-radius: 50%; align-items: center; justify-content: center; margin-right: 10px; text-decoration: none; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

/* FLOATING ELEMENTS */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none; transition: all 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; box-shadow: 0 5px 15px rgba(201,169,110,0.4); }
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #b8955a; transform: translateY(-5px); }

/* ========================================= */
/* --- MOBILE RESPONSIVE FIXES --- */
/* ========================================= */

/* Tablet */
@media (max-width: 991px) {
    .navbar-logo { height: 40px; }
    .navbar-brand .brand-text { font-size: 1.3rem; }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2.2rem; }
    
    .luxury-timeline {
        flex-direction: column !important;
        margin-top: 40px !important;
        padding-left: 30px !important;
    }
    
    .luxury-timeline::before {
        top: 0 !important;
        left: 15px !important;
        right: auto !important;
        width: 2px !important;
        height: 100% !important;
        background: linear-gradient(180deg, transparent, var(--primary), transparent) !important;
    }
    
    .lt-step {
        text-align: left !important;
        margin-bottom: 40px !important;
        padding: 0 !important;
        padding-left: 40px !important;
    }
    
    .lt-icon-wrap {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 0 15px 0 !important;
        position: absolute !important;
        left: -15px !important;
        top: 0 !important;
    }
    
    .lt-number {
        font-size: 3rem !important;
        top: -10px !important;
        left: 70px !important;
        transform: none !important;
    }
    
    .lt-title {
        display: block !important;
        text-align: left !important;
    }
    
    .lt-title::after {
        left: 0 !important;
        transform: none !important;
    }
    
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
    .stat-item:last-child { border-bottom: none; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-logo { height: 35px; max-width: 130px; }
    .navbar-brand .brand-text { font-size: 1.2rem; }
    .navbar-brand .brand-sub { font-size: 0.55rem; letter-spacing: 1px; }
    .navbar { padding-top: 10px !important; padding-bottom: 10px !important; }
    
    /* Force logo and menu on same line */
    .navbar .container, 
    .navbar .container-fluid {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        max-width: 70% !important;
        margin-right: 0 !important;
    }
    
    .navbar-toggler {
        max-width: 25% !important;
        padding: 4px 8px !important;
        margin-left: auto !important;
    }
    
    /* Hero Carousel - NO GAP */
    .hero-carousel { 
        margin-top: 0 !important; 
        padding-top: 0 !important;
    }
    
    #heroCarousel, 
    .carousel-item, 
    .hero-slide { 
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding-top: 80px !important;
    }
    
    .hero-title { font-size: 2.5rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; margin: 15px 0 25px; }
    .hero-tag { font-size: 0.7rem; padding: 4px 15px; margin-bottom: 15px; }
    
    .btn-lg { padding: 10px 20px; font-size: 0.8rem; }
    
    .carousel-indicators { bottom: 80px; }
    .carousel-indicators button { width: 30px !important; }
    
    .experience-badge { right: 10px; bottom: -20px; padding: 20px; }
    .experience-badge h3 { font-size: 2rem; }
    
    .cta-section h2 { font-size: 2rem; }
    
    /* Timeline Mobile */
    .luxury-timeline { padding-left: 25px !important; }
    .lt-icon-wrap { 
        width: 50px !important; 
        height: 50px !important; 
        font-size: 1.2rem !important; 
        left: -10px !important; 
    }
    .lt-number { font-size: 2.5rem !important; left: 55px !important; }
}

/* Very Small Mobile */
@media (max-width: 576px) {
    .navbar-brand .ms-2 { display: none !important; }
    .navbar-brand { max-width: 85%; }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    
    .section-title { font-size: 1.8rem; }
    
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.85rem; }
}

/* Micro Devices */
@media (max-width: 400px) {
    .navbar-logo { height: 30px; max-width: 110px; }
    .hero-title { font-size: 1.8rem; }
}


/* ========================================= */
/* --- ENHANCED FOOTER --- */
/* ========================================= */

.footer { 
    background: var(--darker); 
    position: relative;
    overflow: hidden;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Footer About Text - Better Visibility */
.footer-about {
    color: #cccccc !important;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Footer Titles - Brighter and More Visible */
.footer-title { 
    color: #ffffff !important; 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    position: relative; 
    padding-bottom: 10px; 
}

.footer-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 40px; 
    height: 2px; 
    background: var(--primary); 
}

/* Footer Links - Much Better Visibility */
.footer-links a { 
    color: #dddddd !important; 
    text-decoration: none; 
    margin-bottom: 12px; 
    display: block; 
    transition: all 0.3s; 
    font-size: 0.95rem; 
    font-weight: 400;
}

.footer-links a:hover { 
    color: var(--primary) !important; 
    transform: translateX(5px); 
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Footer Contact - Better Visibility */
.footer-contact li { 
    color: #dddddd !important; 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
    display: flex;
    align-items: flex-start;
}

.footer-contact .contact-text {
    color: #dddddd !important;
}

.footer-contact i {
    color: var(--primary) !important;
    margin-top: 3px;
}

/* Social Icons - Enhanced */
.social-links {
    display: flex;
    gap: 10px;
}

.social-icon { 
    display: inline-flex; 
    width: 40px; 
    height: 40px; 
    background: rgba(255, 255, 255, 0.08); 
    color: #ffffff !important; 
    border-radius: 50%; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.3s; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
}

.social-icon:hover { 
    background: var(--primary); 
    border-color: var(--primary); 
    transform: translateY(-3px);
    color: #ffffff !important;
}

/* Newsletter Section */
.newsletter-desc {
    color: #bbbbbb !important;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form .form-control { 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #ffffff !important; 
    border-radius: 0; 
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder { 
    color: #999999 !important; 
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: none;
    color: #ffffff !important;
}

.newsletter-form .btn-primary { 
    border-radius: 0; 
    padding: 12px 20px; 
}

/* Copyright Text - Better Visibility */
.copyright-text {
    color: #bbbbbb !important;
    font-size: 0.9rem;
}

/* Footer Bottom Links */
.footer-bottom-link {
    color: #bbbbbb !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-link:hover {
    color: var(--primary) !important;
}

/* Footer Divider */
.footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 50px;
        max-width: 180px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .footer-about {
        font-size: 0.9rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0 10px 10px 0;
    }
}

/* ========================================= */
/* --- CENTER "GET IN TOUCH" SECTION --- */
/* ========================================= */

@media (max-width: 991px) {
    /* Center the entire Get In Touch column on tablet/mobile */
    .col-lg-3.col-md-6:last-child {
        text-align: center !important;
    }
    
    /* Center the title underline */
    .col-lg-3.col-md-6:last-child .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Center contact info items */
    .col-lg-3.col-md-6:last-child .footer-contact li {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Center newsletter description */
    .col-lg-3.col-md-6:last-child .newsletter-desc {
        text-align: center !important;
    }
    
    /* Center newsletter form */
    .col-lg-3.col-md-6:last-child .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* For very small mobile screens */
@media (max-width: 576px) {
    .col-lg-3.col-md-6:last-child .newsletter-form {
        max-width: 100%;
    }
}

/* Find inside @media (max-width: 991px) */
.navbar-logo { height: 50px; } /* Scaled up from 40px */

/* Find inside @media (max-width: 768px) */
.navbar-logo { height: 45px; max-width: 160px; } /* Scaled up from 35px */

/* BUTTONS */
.btn-primary { background: var(--primary); border: none; color: #fff; padding: 12px 30px; border-radius: 0; font-weight: 600; transition: all 0.3s; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.btn-primary:hover { background: #b8955a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(201,169,110,0.3); color: #fff; }

/* Changed from light to dark outline for visibility on white bg */
.btn-outline-light { 
    border-radius: 0; 
    border-width: 2px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    font-size: 0.9rem;
    color: var(--dark) !important;
    border-color: var(--dark) !important;
}
.btn-outline-light:hover { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ============================================
   PORTFOLIO MOSAIC — CINEMATIC EDITION (LIGHT)
   ============================================ */

.mi-portfolio {
    position: relative;
    padding: clamp(80px, 10vw, 160px) 0;
    background: #fafaf8; /* Clean off-white */
    color: #1a1a1a; /* Dark text */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.mi-portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(180, 140, 90, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(90, 120, 180, 0.04), transparent 50%);
    pointer-events: none;
}

/* ---------- Section Header ---------- */
.mi-portfolio .mi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.mi-portfolio .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b6f47; /* Darker gold for light bg */
    margin-bottom: 24px;
    font-weight: 500;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b6f47;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.mi-portfolio h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 14ch;
    color: #1a1a1a;
}

.mi-portfolio h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #8b6f47;
}

/* ---------- Button ---------- */
.mi-btn--primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #8b6f47;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.mi-btn--primary:hover {
    color: #fafaf8;
    border-color: #8b6f47;
}

.mi-btn--primary:hover::before {
    transform: translateY(0);
}

.mi-btn__arrow {
    display: inline-block;
    transition: transform 0.4s ease;
}

.mi-btn--primary:hover .mi-btn__arrow {
    transform: translateX(6px);
}

/* ---------- Ticker ---------- */
.mi-portfolio__ticker {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding: 16px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.6);
}

.ticker__count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: #8b6f47;
    letter-spacing: 0;
}

.ticker__divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.2), transparent);
}

/* ---------- Mosaic Grid ---------- */
.mi-portfolio__mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .mi-portfolio__mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
    }
}

@media (max-width: 640px) {
    .mi-portfolio__mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
}

/* Tile size variants */
.mi-portfolio__tile--large-left  { grid-column: span 2; grid-row: span 2; }
.mi-portfolio__tile--small-right { grid-column: span 2; grid-row: span 1; }
.mi-portfolio__tile--small-left  { grid-column: span 2; grid-row: span 1; }
.mi-portfolio__tile--large-right { grid-column: span 2; grid-row: span 2; }

@media (max-width: 640px) {
    .mi-portfolio__tile--large-left,
    .mi-portfolio__tile--small-right,
    .mi-portfolio__tile--small-left,
    .mi-portfolio__tile--large-right {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ---------- Tile ---------- */
.mi-portfolio__tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    cursor: none;
    background: #e8e8e6; /* Light gray tile background */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.mi-portfolio__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 4px;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 5;
}

.mi-portfolio__tile:hover::after {
    border-color: rgba(139, 111, 71, 0.5);
}

/* ---------- Media ---------- */
.mi-portfolio__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.mi-portfolio__video,
.mi-portfolio__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease;
    filter: grayscale(0.3) brightness(0.95) contrast(1.05);
    transform: scale(1.05);
}

.mi-portfolio__tile:hover .mi-portfolio__video,
.mi-portfolio__tile:hover .mi-portfolio__image {
    transform: scale(1.15);
    filter: grayscale(0) brightness(1) contrast(1.05);
}

/* Grain overlay */
.mi-portfolio__grain {
    position: absolute;
    inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.08; /* Lighter grain for white bg */
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: grainShift 8s steps(6) infinite;
    z-index: 2;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* Vignette */
.mi-portfolio__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.5s ease;
}

.mi-portfolio__tile:hover .mi-portfolio__vignette {
    opacity: 0.5;
}

/* ---------- Index Badge ---------- */
.mi-portfolio__index {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 6;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8); /* White for visibility on images */
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.index__current {
    color: #ffffff;
    font-weight: 500;
}

/* ---------- Play Indicator ---------- */
.mi-portfolio__play {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    color: #1a1a1a;
    z-index: 6;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-portfolio__play svg {
    width: 14px;
    height: 14px;
}

.mi-portfolio__tile:hover .mi-portfolio__play {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Overlay & Info ---------- */
.mi-portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 70%,
        rgba(255, 255, 255, 0.95) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 32px;
    z-index: 4;
    transition: background 0.5s ease;
}

.mi-portfolio__info {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-portfolio__tile:hover .mi-portfolio__info {
    transform: translateY(0);
}

.info__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8b6f47;
}

.info__icon {
    font-size: 14px;
}

.info__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    overflow: hidden;
}

.title-line {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.mi-portfolio__tile:hover .title-line {
    transform: translateY(0);
}

.info__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 26, 26, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.mi-portfolio__tile:hover .info__footer {
    opacity: 1;
    transform: translateY(0);
}

.info__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(26, 26, 26, 0.7);
    margin: 0;
}

.info__location svg {
    color: #8b6f47;
}

.info__view {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info__view span {
    display: inline-block;
    transition: transform 0.4s ease;
}

.mi-portfolio__tile:hover .info__view span {
    transform: translateX(4px);
}

/* ---------- Progress Bar ---------- */
.mi-portfolio__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(26, 26, 26, 0.1);
    z-index: 7;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    width: 0;
    background: #8b6f47;
    transition: width 0s linear;
}

.mi-portfolio__tile.is-playing .progress__bar {
    width: 100%;
}

/* ---------- Custom Cursor ---------- */
.mi-portfolio__cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #8b6f47;
    color: #fafaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(0.5);
    transition: opacity 0.3s ease;
    mix-blend-mode: multiply;
}

.mi-portfolio__cursor.is-active {
    opacity: 1;
}

/* ---------- Footer ---------- */
.mi-portfolio__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.mi-portfolio__footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    margin: 0;
    color: rgba(26, 26, 26, 0.7);
}

.mi-portfolio__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8b6f47;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid #8b6f47;
    transition: all 0.4s ease;
}

.mi-portfolio__footer-link:hover {
    gap: 16px;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* ---------- Reveal Animation ---------- */
.mi-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mi-reveal-delay-1 { transition-delay: 0.15s; }
.mi-reveal-delay-2 { transition-delay: 0.3s; }

/* ---------- Mobile Fallback ---------- */
@media (hover: none) and (pointer: coarse) {
    .mi-portfolio__video {
        display: none;
    }
    .mi-portfolio__image {
        display: block !important;
        filter: grayscale(0) brightness(1) !important;
    }
    .mi-portfolio__cursor {
        display: none !important;
    }
    .mi-portfolio__tile {
        cursor: pointer;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .mi-portfolio__grain,
    .eyebrow__dot { animation: none; }
    .mi-portfolio__video,
    .mi-portfolio__image { transition: none; }
}

/* ============================================
   TESTIMONIALS MARQUEE — PREMIUM EDITION
   ============================================ */

.mi-testimonials {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    background: #fafaf8;
    color: #1a1a1a;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.mi-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.3), transparent);
}

.mi-testimonials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.3), transparent);
}

/* ---------- Header ---------- */
.mi-testimonials__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.mi-testimonials__header-left {
    flex: 1;
    min-width: 300px;
}

.mi-testimonials .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b6f47;
    margin-bottom: 24px;
    font-weight: 500;
}

.mi-testimonials h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 16ch;
    color: #1a1a1a;
}

.mi-testimonials h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #8b6f47;
}

/* ---------- Controls ---------- */
.mi-testimonials__controls {
    display: flex;
    gap: 12px;
}

.mi-testimonials__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mi-testimonials__btn:hover {
    background: #8b6f47;
    border-color: #8b6f47;
    color: #fafaf8;
    transform: scale(1.05);
}

.mi-testimonials__btn.is-active {
    background: #8b6f47;
    border-color: #8b6f47;
    color: #fafaf8;
}

/* ---------- Stats Bar ---------- */
.mi-testimonials__stats {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat__number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: #8b6f47;
    line-height: 1;
}

.stat__label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.6);
}

.stat__divider {
    width: 1px;
    height: 60px;
    background: rgba(26, 26, 26, 0.1);
}

@media (max-width: 640px) {
    .stat__divider {
        display: none;
    }
    .mi-testimonials__stats {
        justify-content: space-around;
    }
}

/* ============================================
   MARQUEE ANIMATION
   ============================================ */

.mi-marquee {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.mi-marquee__track {
    display: flex;
    gap: 24px;
    width: fit-content;
    animation: marquee-scroll 60s linear infinite;
}

.mi-marquee__track--reverse {
    animation: marquee-scroll-reverse 70s linear infinite;
}

.mi-marquee:hover .mi-marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(calc(-50% - 12px));
    }
    100% {
        transform: translateX(0);
    }
}

/* Speed variations */
.mi-marquee.is-slow .mi-marquee__track {
    animation-duration: 120s;
}

.mi-marquee.is-fast .mi-marquee__track {
    animation-duration: 30s;
}

/* ============================================
   TESTIMONIAL CARD
   ============================================ */

.mi-testimonial-card {
    flex-shrink: 0;
    width: 400px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mi-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b6f47, #b48c5a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mi-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(139, 111, 71, 0.3);
}

.mi-testimonial-card:hover::before {
    transform: scaleX(1);
}

/* Card Header */
.mi-testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mi-testimonial-card__avatar {
    flex-shrink: 0;
}

.mi-testimonial-card__avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 111, 71, 0.2);
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b6f47, #b48c5a);
    color: #fafaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid rgba(139, 111, 71, 0.2);
}

.mi-testimonial-card__meta {
    flex: 1;
}

.mi-testimonial-card__meta h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #1a1a1a;
}

.mi-testimonial-card__meta p {
    font-size: 13px;
    color: rgba(26, 26, 26, 0.6);
    margin: 0;
}

.mi-testimonial-card__rating {
    flex-shrink: 0;
}

.stars {
    color: #8b6f47;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Quote */
.mi-testimonial-card__quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-style: italic;
    position: relative;
}

/* Footer */
.mi-testimonial-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mi-testimonial-card__project {
    color: #8b6f47;
    font-weight: 500;
}

.mi-testimonial-card__year {
    color: rgba(26, 26, 26, 0.5);
}

/* ---------- Bottom CTA ---------- */
.mi-testimonials__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    flex-wrap: wrap;
    gap: 24px;
}

.mi-testimonials__cta p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-style: italic;
    margin: 0;
    color: rgba(26, 26, 26, 0.7);
}

.mi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #1a1a1a;
    color: #fafaf8;
    text-decoration: none;
    border-radius: 100px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mi-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #8b6f47;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.mi-cta-btn:hover::before {
    transform: translateX(0);
}

.mi-cta-btn span,
.mi-cta-btn svg {
    position: relative;
    z-index: 1;
}

.mi-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.3);
}

.mi-cta-btn svg {
    transition: transform 0.4s ease;
}

.mi-cta-btn:hover svg {
    transform: translateX(6px);
}

/* ---------- Reveal Animation ---------- */
/* ============================================
   MARQUEE ANIMATION — FIXED VERSION
   ============================================ */

.mi-marquee {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    width: 100%;
}

.mi-marquee__track {
    display: flex;
    gap: 24px;
    width: max-content; /* Changed from fit-content */
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.mi-marquee__track--reverse {
    animation: marquee-scroll-reverse 45s linear infinite;
}

/* Pause on hover */
.mi-marquee:hover .mi-marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Exactly 50% since content is doubled */
    }
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Speed variations */
.mi-marquee.is-slow .mi-marquee__track {
    animation-duration: 80s;
}

.mi-marquee.is-fast .mi-marquee__track {
    animation-duration: 20s;
}

/* Optional: Add fade edges back (but safer) */
.mi-marquee::before,
.mi-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.mi-marquee::before {
    left: 0;
    background: linear-gradient(to right, #fafaf8, transparent);
}

.mi-marquee::after {
    right: 0;
    background: linear-gradient(to left, #fafaf8, transparent);
}


/* ============================================
   3D INTERIOR TOUR — IMMERSIVE EDITION
   ============================================ */

.mi-tour {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    background: #fafaf8;
    color: #1a1a1a;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* ---------- Header ---------- */
.mi-tour__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.mi-tour .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b6f47;
    margin-bottom: 24px;
    font-weight: 500;
}

.mi-tour h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 16ch;
    color: #1a1a1a;
}

.mi-tour h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #8b6f47;
}

/* ---------- Controls ---------- */
.mi-tour__controls {
    display: flex;
    gap: 12px;
}

.mi-tour__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mi-tour__btn:hover {
    background: #8b6f47;
    border-color: #8b6f47;
    color: #fafaf8;
    transform: scale(1.05);
}

/* ============================================
   3D VIEWPORT
   ============================================ */

.mi-tour__viewport {
    position: relative;
    width: 100%;
    height: 600px;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.mi-tour__scene {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Room ---------- */
.mi-tour__room {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.mi-tour__room--active {
    opacity: 1;
    pointer-events: all;
}

.mi-tour__room-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: translateZ(-400px);
}

/* ---------- Walls ---------- */
.mi-tour__wall {
    position: absolute;
    width: 800px;
    height: 600px;
    overflow: hidden;
}

.mi-tour__wall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mi-tour__wall--back {
    transform: translateZ(-400px);
}

.mi-tour__wall--left {
    width: 800px;
    height: 600px;
    transform: rotateY(90deg) translateZ(-400px) translateX(-400px);
    transform-origin: left center;
}

.mi-tour__wall--right {
    width: 800px;
    height: 600px;
    transform: rotateY(-90deg) translateZ(-400px) translateX(400px);
    transform-origin: right center;
}

/* ---------- Floor & Ceiling ---------- */
.mi-tour__floor,
.mi-tour__ceiling {
    position: absolute;
    width: 800px;
    height: 800px;
    overflow: hidden;
}

.mi-tour__floor img,
.mi-tour__ceiling img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mi-tour__floor {
    transform: rotateX(90deg) translateZ(-300px) translateY(400px);
    transform-origin: center bottom;
}

.mi-tour__ceiling {
    transform: rotateX(-90deg) translateZ(-300px) translateY(-400px);
    transform-origin: center top;
}

/* ---------- Hotspots ---------- */
.mi-tour__hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 111, 71, 0.9);
    border: 2px solid #fafaf8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
}

.mi-tour__hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #8b6f47;
}

.hotspot__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #8b6f47;
    animation: hotspotPulse 2s ease-out infinite;
}

@keyframes hotspotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ---------- Tooltip ---------- */
.mi-tour__tooltip {
    position: absolute;
    padding: 12px 20px;
    background: rgba(26, 26, 26, 0.95);
    color: #fafaf8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.mi-tour__tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0);
}

.mi-tour__tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(26, 26, 26, 0.95);
}

/* ---------- Navigation Arrows ---------- */
.mi-tour__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.mi-tour__nav:hover {
    background: #8b6f47;
    color: #fafaf8;
    transform: translateY(-50%) scale(1.1);
}

.mi-tour__nav--prev {
    left: 24px;
}

.mi-tour__nav--next {
    right: 24px;
}

/* ---------- Loading ---------- */
.mi-tour__loading {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 100;
    transition: opacity 0.6s ease;
}

.mi-tour__loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.loading__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 111, 71, 0.2);
    border-top-color: #8b6f47;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mi-tour__loading p {
    color: #fafaf8;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Room Selector ---------- */
.mi-tour__selector {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mi-tour__room-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #1a1a1a;
}

.mi-tour__room-btn:hover {
    border-color: #8b6f47;
    transform: translateY(-2px);
}

.mi-tour__room-btn.is-active {
    background: #8b6f47;
    border-color: #8b6f47;
    color: #fafaf8;
}

.room-btn__icon {
    font-size: 20px;
}

.room-btn__name {
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ---------- Info Panel ---------- */
.mi-tour__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 12px;
}

.mi-tour__info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info__label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.6);
}

.info__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: #8b6f47;
}

/* ---------- Reveal Animation ---------- */
.mi-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mi-reveal-delay-1 { transition-delay: 0.15s; }
.mi-reveal-delay-2 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .mi-tour__viewport {
        height: 400px;
    }
    
    .mi-tour__nav {
        width: 44px;
        height: 44px;
    }
    
    .mi-tour__nav--prev {
        left: 12px;
    }
    
    .mi-tour__nav--next {
        right: 12px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hotspot__pulse,
    .loading__spinner {
        animation: none;
    }
    
    .mi-tour__scene,
    .mi-tour__room {
        transition: none;
    }
}



/* ============================================================
   UPDATE THIS MEDIA QUERY IN YOUR <style> BLOCK
   ============================================================ */
@media (max-width: 960px) {
    .mi-hero__grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    /* 🎯 THIS MOVES THE IMAGE ABOVE THE TEXT ON MOBILE */
    .mi-hero__visual {
        order: -1; 
    }
    
    .mi-hero { 
        padding-top: 80px; 
        padding-bottom: 60px;
        min-height: auto; 
    }
    
    /* Optional: Better spacing for metrics on small screens */
    .mi-hero__metrics {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    /* Optional: Stack buttons neatly on mobile */
    .mi-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ============================================================
   HERO SECTION: COMPACT & ELEGANT MOBILE TYPOGRAPHY
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Tighter Section Spacing */
    .mi-hero {
        padding: 80px 0 50px;
        min-height: auto;
    }

    .mi-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* 2. Move Image to Top */
    .mi-hero__visual {
        order: -1; 
    }

    /* 3. Premium Portrait Image Ratio */
    .mi-hero__viewport {
        aspect-ratio: 4/5;
        border-radius: var(--radius-lg);
    }

    /* 4. 🎯 REDUCED TYPOGRAPHY FOR MOBILE */
    .mi-hero .eyebrow {
        font-size: 0.65rem; /* Smaller, subtle eyebrow */
        margin-bottom: 12px;
    }

    .mi-hero h1 {
        /* Reduced to a clean, readable 1.8rem - 2.2rem range */
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        line-height: 1.15; /* More breathable line height */
        letter-spacing: -0.01em;
        margin-bottom: 24px;
    }

    /* 5. Metrics: Smaller, cleaner grid */
    .mi-hero__metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
        text-align: center;
    }

    .mi-hero__metric strong {
        font-size: 1.25rem; /* Reduced from 1.75rem */
        margin-bottom: 4px;
        color: var(--accent);
        line-height: 1;
    }

    .mi-hero__metric span {
        font-size: 0.65rem; /* Reduced from 0.7rem */
        line-height: 1.3;
        color: var(--tx-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* 6. Actions: Compact & Thumb-Friendly */
    .mi-hero__actions {
        margin-top: 28px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .mi-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px; /* Reduced padding */
        font-size: 0.85rem; /* Reduced font size */
    }

    .mi-link {
        justify-content: center;
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    /* Smaller hero controls */
    .mi-hero__controls {
        top: 12px;
        right: 12px;
    }
    .mi-hero__nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .mi-hero__dot {
        width: 24px;
        height: 2px;
    }
    .mi-hero__dot.is-active {
        width: 36px;
    }
}

/* Extra Small Devices (iPhone SE, etc.) */
@media (max-width: 380px) {
    .mi-hero h1 {
        font-size: 1.6rem; /* Absolute minimum for tiny screens */
    }
    
    .mi-hero__metric strong {
        font-size: 1.1rem;
    }
    
    .mi-hero__metric span {
        font-size: 0.6rem;
    }
    
    .mi-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   HERO HEADING MOBILE TEXT REDUCTION
   ============================================================ */
@media (max-width: 768px) {
    /* Target the h1 specifically inside the .mi-engine hero container */
    .mi-engine .mi-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em;
    }
}

@media (max-width: 480px) {
    /* Extra reduction for ultra-narrow mobile screens (e.g. iPhone SE) */
    .mi-engine .mi-hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
    }
}
@media (max-width: 768px) {
    /* ... your existing mobile styles ... */

    /* Target the metrics wrapper inside the hero container */
    .mi-engine .mi-hero__metrics {
        gap: 8px !important; /* Tighten the gap to fit 3 columns elegantly */
        margin-top: 24px !important;
        padding-top: 16px !important;
    }

    /* Reduce the size of the large numbers (500+, 15, 40) */
    .mi-engine .mi-hero__metric strong {
        font-size: clamp(3rem, 5vw, 1.6rem) !important; /* Scales down between 20px and 25px */
        margin-bottom: 2px !important;
    }

    /* Reduce the size of the text labels below the numbers */
    .mi-engine .mi-hero__metric span {
        font-size: 0.65rem !important; /* Slightly smaller to preserve hierarchy */
        letter-spacing: 0.02em !important;
        display: block;
        line-height: 1.2 !important;
    }
}

/* Extra safety for micro-screens (e.g. iPhone SE) */
@media (max-width: 380px) {
    .mi-engine .mi-hero__metric strong {
        font-size: 1.5rem !important;
    }
    .mi-engine .mi-hero__metric span {
        font-size: 0.6rem !important;
    }
}


