/* Theme: Dreamy Home Interiors
    Style: Premium, Minimalist, Gold/Beige
*/

:root {
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B4942D;
    --soft-beige: #F9F7F2;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a { text-decoration: none; }

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--soft-beige);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.sticky-top {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 20px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold) !important;
}

/* --- Buttons --- */
.btn-gold {
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--primary-gold);
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: var(--soft-beige); /* Fallback */
    height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.7); /* Light overlay for legibility */
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* --- Services & Cards --- */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* --- Projects --- */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.project-img {
    width: 100%;
    transition: var(--transition);
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay { opacity: 1; }
.project-item:hover .project-img { transform: scale(1.1); }

/* --- Footer --- */
footer {
    background-color: #222;
    color: #eee;
    padding-top: 60px;
}

footer h5 { color: var(--primary-gold); margin-bottom: 20px; }
footer a { color: #ccc; transition: var(--transition); }
footer a:hover { color: var(--primary-gold); }

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-icons a:hover { background: var(--primary-gold); }

/* --- Floating Elements --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
    transition: var(--transition);
}

.back-to-top:hover { background: var(--primary-gold-dark); transform: translateY(-3px); }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover { background-color: #1ebc57; transform: scale(1.1); }

/* --- Utilities --- */
.section-padding { padding: 80px 0; }
.bg-beige { background-color: var(--soft-beige); }
.text-gold { color: var(--primary-gold); }

/* =========================================
   MOBILE RESPONSIVE & LAYOUT FIXES
   Add/Replace this at the bottom of style.css
   ========================================= */

/* 1. FIX: Prevent Horizontal Scrolling (Right Side White Space) */
html, body {
    overflow-x: hidden; /* Cuts off any overflowing elements */
    width: 100%;
    position: relative;
}

/* 2. FIX: Page Content Hidden Behind Fixed Navbar */
body {
    padding-top: 85px; /* Pushes all page content down so Navbar doesn't cover it */
}

/* 3. FIX: Navbar Alignment & Logo Sizing on Mobile */
@media (max-width: 991px) {
    
    /* Force Navbar elements to stay in one line (No wrapping) */
    .navbar .container {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
    }

    /* Shrink Logo Text so it fits with the Hamburger button */
    .navbar-brand {
        font-size: 1.25rem !important; /* Smaller size for mobile */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Adds "..." if text is still too long */
        max-width: 75%; /* Leaves 25% space for the button */
        margin-right: 10px;
    }

    /* Fix Hamburger Button Position */
    .navbar-toggler {
        border-color: transparent; /* Removes boxy border if desired */
        padding: 5px;
        margin-top: 0;
        font-size: 1.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none; /* Removes blue outline on click */
    }

    /* Ensure Dropdown Menu doesn't cause overflow */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 1000;
    }
}