/* ==========================================================================
   KHAN INTERIOR STUDIO - MAIN STYLESHEET
   ========================================================================== */

/* 01 Global & 02 Color Variables */
:root {
    /* Centralized Color Control System */
    --primary-color: #C5A059;       /* Elegant Warm Gold/Beige */
    --primary-hover: #A88647;       /* Darker Gold for hover states */
    --secondary-color: #1A1A1A;     /* Dark Charcoal / Black */
    --accent-color: #E8D8B0;        /* Subtle Light Beige */
    --dark-color: #0F0F0F;          /* Deep Black */
    --light-color: #F8F9FA;         /* Off-white */
    --text-color: #4A4A4A;          /* Standard text */
    --muted-color: #6C757D;         /* Secondary text */
    --white-color: #FFFFFF;
    --border-color: #EAEAEA;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* 03 Typography */
h1, h2, h3, h4, h5, h6, .font-playfair {
    font-family: 'Playfair Display', serif;
}
.tracking-wide { letter-spacing: 2px; }
.line-height-lg { line-height: 1.8; }
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.section-bg { background-color: #FAFAFA; }

/* 04 Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    font-size: 0.85rem;
}
.top-link {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
}
.top-link:hover { color: var(--primary-color); }

/* 05 Navbar */
.navbar {
    transition: var(--transition);
}
.header.scrolled .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.brand-logo { height: 40px; }
.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}
.navbar-brand:hover .brand-text { color: var(--primary-color); }
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* 06 Hero (Carousel Animations) */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: var(--dark-color);
}
.hero-section .carousel, .hero-section .carousel-inner, .hero-section .carousel-item {
    height: 100%;
}
.hero-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}
.carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 0;
    text-align: center;
}
/* Individual Slide Effects triggered when active */
.carousel-item.active .slide-zoom img { animation: zoomIn 12s forwards ease-in-out; }
.carousel-item.active .slide-pan-right img { animation: panRight 12s forwards ease-in-out; }
.carousel-item.active .slide-cinematic img { animation: cinematicZoom 12s forwards; }
.carousel-item.active .slide-pan-y img { animation: panY 12s forwards ease-in-out; }
.carousel-item.active .slide-scale-fade img { animation: scaleFade 12s forwards; }

@keyframes zoomIn { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
@keyframes panRight { 0% { object-position: center; transform: scale(1.1); } 100% { object-position: right; transform: scale(1.1); } }
@keyframes cinematicZoom { 0% { transform: scale(1.2); filter: brightness(0.8); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes panY { 0% { object-position: top; transform: scale(1.1); } 100% { object-position: bottom; transform: scale(1.1); } }
@keyframes scaleFade { 0% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

/* 07 About */
.image-wrapper { overflow: hidden; }
.image-wrapper img { transition: transform 0.5s ease; }
.image-wrapper:hover img { transform: scale(1.03); }
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.experience-badge h3 { font-family: 'Playfair Display', serif; margin: 0; font-size: 1.8rem; }
.experience-badge p { margin: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }

/* 08 Vision Mission */
.premium-card {
    background: var(--white-color);
    transition: var(--transition);
}
.border-top-primary { border-top: 4px solid var(--primary-color); }
.premium-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow) !important; }
.icon-box { width: 70px; height: 70px; transition: var(--transition); }
.premium-card:hover .icon-box { background-color: var(--primary-color) !important; color: var(--white-color); }
.premium-card:hover .icon-box i { color: var(--white-color) !important; }

/* 09 Why Choose Us */
.feature-card { transition: var(--transition); border-bottom: 3px solid transparent; }
.feature-card:hover { border-bottom: 3px solid var(--primary-color); transform: translateY(-5px); }

/* 10 Services */
.service-card {
    background: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.service-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}
.service-img-wrapper { border-radius: 5px; }
.service-img-wrapper img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrapper img { transform: scale(1.1); }

/* 11 Process Timeline */
.process-timeline-wrapper { position: relative; }
.custom-scrollbar::-webkit-scrollbar { height: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }
.timeline-step {
    position: relative;
    padding-top: 40px;
    text-align: center;
}
.timeline-step::before {
    content: '';
    position: absolute;
    top: 19px; left: 0; width: 100%; height: 2px;
    background: var(--border-color);
    z-index: 0;
}
.timeline-step:first-child::before { width: 50%; left: 50%; }
.timeline-step:last-child::before { width: 50%; right: 50%; }
.step-number {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary-color);
    z-index: 1; transition: var(--transition);
}
.timeline-step:hover .step-number { background: var(--primary-color); color: var(--white-color); }

/* 12 Projects */
.project-card img { height: 350px; object-fit: cover; transition: transform 0.6s ease; }
.project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0.8; transition: var(--transition);
}
.project-card:hover::after { opacity: 0.95; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

/* 13 Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(197, 160, 89, 0.8); /* Primary color w/ opacity */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* 14 Testimonials */
.review-card { border-top: 4px solid transparent; transition: var(--transition); }
.review-card:hover { border-top-color: var(--primary-color); transform: translateY(-5px); }

/* 15 FAQ */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: transparent; }

/* 17 Contact */
.icon-circle { transition: var(--transition); }
.contact-info-block:hover .icon-circle { background-color: var(--primary-color) !important; color: var(--white-color) !important; }

/* 18 Footer */
.footer a { transition: var(--transition); }
.footer a:hover { color: var(--primary-color) !important; }
.footer-links li a { color: #A0A0A0; text-decoration: none; }

/* 19 & 20 Buttons */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white-color);
    width: 45px; height: 45px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 99; text-decoration: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary-color); color: var(--white-color); transform: translateY(-3px); }

.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white-color); text-decoration: none;
    font-size: 1.2rem; transition: var(--transition);
}
.float-call { background-color: #25D366; } /* WhatsApp/Call Green */
.float-email { background-color: var(--primary-color); }
.float-btn:hover { transform: scale(1.1); color: var(--white-color); }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section { height: 60vh; min-height: 400px; }
    .hero-title { font-size: 2.5rem; }
    .experience-badge { position: relative; bottom: 0; right: 0; width: 100%; border-radius: 0 0 5px 5px; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .hero-buttons .btn { width: 100%; margin-bottom: 10px; margin-right: 0 !important; }
    .gallery-grid { grid-template-columns: 1fr; }
}