/* ==========================================================================
   Premium Interior Design - Custom CSS 
   ========================================================================== */

:root {
    --accent-secondary-color: #f0c261;
    --accent-color: #d19a22; /* Complementary gold shade for gradient depth */
    --primary-accent: #f0c261; /* Solid fallback & text color */
    --primary-gradient: linear-gradient(90deg, var(--accent-secondary-color) 0%, var(--accent-color) 100%);
    --dark-theme: #1a1a1a;
    --light-theme: #f8f9fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global & Typography */
body {
    font-family: var(--font-body);
    color: #4a4a4a;
    overflow-x: hidden;
    background-color: #ffffff;
}

.font-heading { font-family: var(--font-heading); }
.tracking-wide { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 4px; }
.fs-7 { font-size: 0.9rem; }
.fs-8 { font-size: 0.8rem; }
.transition-all { transition: var(--transition-smooth); }
.cursor-pointer { cursor: pointer; }

.text-primary-accent { color: var(--primary-accent) !important; }
.bg-primary-accent { background: var(--primary-gradient) !important; }
.bg-light-theme { background-color: var(--light-theme) !important; }
.hover-text-primary:hover { color: var(--primary-accent) !important; }

/* Utilities */
.section-padding { padding-top: 100px; padding-bottom: 100px; }
.pt-6 { padding-top: 120px; }
.max-w-700 { max-width: 700px; }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Buttons */
.btn-primary-accent {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
}
.btn-primary-accent:hover {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    color: #fff;
}

/* 1. Navbar */
.navbar-transparent {
    background-color: transparent;
}
.navbar-solid {
    background-color: var(--dark-theme) !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
.navbar-nav .nav-link {
    position: relative;
    opacity: 0.8;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: var(--primary-accent) !important;
}

/* 2. Hero Section */
.bg-image-parallax {
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
}
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.85); /* Increased opacity for a darker black tone */
}
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-form-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transition: var(--transition-smooth);
}
.hero-form-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
.hero-form-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
}
.hero-form-input option {
    color: var(--dark-theme);
    background-color: #ffffff;
}

/* 4. Services */
.service-card {
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.service-card:hover {
    border-color: rgba(240, 194, 97, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
}
.icon-box {
    width: 70px;
    height: 70px;
    transition: var(--transition-smooth);
}
.service-card:hover .icon-box {
    background: var(--primary-gradient) !important;
    color: #fff !important;
}
.read-more {
    position: relative;
    display: inline-block;
}
.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--dark-theme);
    transition: var(--transition-smooth);
}
.read-more:hover::after { width: 100%; }

/* 5. Why Choose Us */
.img-zoom-container img {
    transition: transform 0.8s ease;
}
.img-zoom-container:hover img {
    transform: scale(1.05);
}

/* 6. Timeline Process */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(240, 194, 97, 0.3);
    transform: translateX(-50%);
}
.timeline-icon {
    width: 60px;
    height: 60px;
    z-index: 2;
}
@media (max-width: 767.98px) {
    .timeline-line {
        left: 35px;
    }
    .timeline-item {
        padding-left: 85px;
        margin-left: 0;
        margin-right: 0;
        position: relative;
    }
    .timeline-icon-wrapper {
        position: absolute !important;
        left: 35px;
        top: 0;
        transform: translateX(-50%);
        width: auto;
        padding: 0;
    }
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    .timeline-icon .bi {
        font-size: 1.3rem !important;
    }
    .timeline-item::before {
        display: none !important;
    }
    .timeline-content-left, .timeline-content-right {
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 7 & 8. Projects & Gallery */
.project-card {
    border-radius: 15px;
}
.project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover .gallery-img {
    transform: scale(1.05);
}
.gallery-img {
    transition: transform 0.6s ease;
}
.filter-btn {
    border-color: #ddd;
    color: #666;
    transition: var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--dark-theme);
    color: #fff;
    border-color: var(--dark-theme);
}
.filter-btn {
    border: 1px solid #ddd;
}
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.hide-anim {
    opacity: 0;
    transform: scale(0.95);
}

/* Custom Project Multi-Item Slider Track */
.custom-slider-track {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    display: flex;
    gap: 1.5rem;
}
.custom-slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.slider-item {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: var(--transition-smooth);
    flex: 0 0 100%; /* 1 item on mobile */
}
@media (min-width: 768px) {
    .slider-item { flex: 0 0 calc(50% - 0.75rem); } /* 2 items on tablet */
}
@media (min-width: 992px) {
    .slider-item { flex: 0 0 calc(33.333% - 1rem); } /* 3 items on desktop */
}
.slider-image {
    height: 350px;
}
@media (min-width: 992px) {
    .slider-image { height: 380px; } /* Slightly reduced height for 3-items grid */
}

#lightboxImage {
    transition: opacity 0.2s ease-in-out;
}

/* 9. Testimonials */
.gradient-overlay-bottom {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
}
.play-btn {
    transition: var(--transition-smooth);
}
.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 10. FAQ Accordion */
.custom-accordion .accordion-button {
    box-shadow: none !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--primary-accent);
}
.custom-accordion .accordion-button::after {
    transition: transform 0.3s ease;
}

/* FAQ Sidebar & Offsets */
.sticky-top-120 {
    position: sticky;
    top: 120px;
    z-index: 10;
}
.scroll-mt-120 {
    scroll-margin-top: 120px;
}

/* 11. Contact & Forms */
.icon-box-sm {
    width: 45px;
    height: 45px;
}
.custom-input:focus {
    box-shadow: none;
    border-bottom: 2px solid var(--primary-accent) !important;
    background-color: #f0f0f0 !important;
}

/* Premium Form Inputs (Contact Page) */
.premium-input {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0.5rem !important;
    background-color: #fcfcfc !important;
    transition: all 0.3s ease;
}
.premium-input:focus {
    background-color: #ffffff !important;
    border-color: var(--accent-secondary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(240, 194, 97, 0.15) !important;
}
.form-floating > label {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Modal Fixes */
#enquiryModal .modal-content {
    border-radius: 1.2rem;
}
#enquiryModal .btn-close-white {
    filter: brightness(0) invert(1);
}

/* 13. Floating Action Buttons */
.floating-btn-container .btn {
    opacity: 0.9;
    transition: var(--transition-smooth);
}
.floating-btn-container .btn:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
}

/* 14. Toast Notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notification-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}
.notification-toast.success { border-left-color: #10b981; }
.notification-toast.error { border-left-color: #ef4444; }
.notification-toast.success .notification-icon { color: #10b981; }
.notification-toast.error .notification-icon { color: #ef4444; }
.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    padding: 0;
}

/* Base Fixes & Overrides */
.float-btn {
    width: 55px;
    height: 55px;
}
.modal-banner-img {
    height: 200px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-theme);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    .display-2 { font-size: 3.5rem; }
    .display-4 { font-size: 3rem; }
    .display-5 { font-size: 2.5rem; }
    .display-6 { font-size: 2rem; }
    .section-padding { padding-top: 70px; padding-bottom: 70px; }
    .pt-6 { padding-top: 80px; }
    .bg-image-parallax { background-attachment: scroll; } /* Fix iOS scrolling zoom bug */

    /* Prevent iOS double-tap issue by making hover states visible on mobile */
    .project-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 575.98px) {
    .display-2 { font-size: 2.5rem; }
    .display-4 { font-size: 2.2rem; }
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.75rem; }
    .section-padding { padding-top: 50px; padding-bottom: 50px; }
    .pt-6 { padding-top: 60px; }
    .timeline::after { display: none; }
    .floating-btn-container { padding: 1rem !important; gap: 0.5rem !important; }
    .float-btn { width: 45px !important; height: 45px !important; }
    .float-btn .bi { font-size: 1.2rem !important; }
    .modal-banner-img { height: 150px !important; }
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 768px) {
    .notification-toast {
        left: 12px;
        right: 12px;
    }
}