/*
 * OMIPAN INTERIOR DESIGN - Premium Modern Luxury Stylesheet
 * Brand Colors: White, Gold, Navy, and Essential Gray
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-primary: #283849; /* SW 9178 In the Navy */
    --bg-secondary: #304256; /* Coordinating Lighter Slate Navy */
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #dad9d7; /* Essential Gray SW 6002 */
    --text-muted: #888888;
    
    /* Brand Gold: Sconce Gold SW 6398 */
    --gold-primary: #a0763f;
    --gold-dark: #805c30;
    --gold-light: #cfa875;
    --gold-gradient: linear-gradient(135deg, #cfa875 0%, #a0763f 50%, #805c30 100%);
    --dark-gradient: linear-gradient(180deg, #283849 0%, #304256 100%);
    --gold-glow: 0 0 15px rgba(160, 118, 63, 0.2);
    --gold-glow-hover: 0 0 25px rgba(160, 118, 63, 0.45);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="light"] {
    --bg-primary: #f4f3f1; /* Essential Gray variant */
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --border-color: #dcdbd9; /* Essential Gray border */
    --text-primary: #283849; /* SW 9178 In the Navy */
    --text-secondary: #304256; /* Coordinating Navy */
    --text-muted: #5e6f80; /* Muted Navy variant */
    --gold-glow: 0 5px 15px rgba(160, 118, 63, 0.1);
    --gold-glow-hover: 0 8px 25px rgba(160, 118, 63, 0.3);
    --dark-gradient: linear-gradient(180deg, #f4f3f1 0%, #ffffff 100%);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Gold Text Utility */
.text-gold {
    color: var(--gold-primary) !important;
}

/* Gradient Background */
.bg-dark-gradient {
    background: var(--dark-gradient);
}

/* Header & Navbar Styling */
.navbar-custom {
    background-color: rgba(40, 56, 73, 0.9); /* Navy SW 9178 with 90% opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0 !important;
    transition: var(--transition-smooth);
    z-index: 1000;
}

[data-theme="light"] .navbar-custom {
    background-color: rgba(248, 249, 250, 0.9);
}

.navbar-custom.navbar-scrolled {
    padding: 12px 0;
    background-color: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Premium Navbar height reduction for desktop */
@media (min-width: 992px) {
    .navbar.navbar-expand-lg.navbar-light.navbar-premium.sticky-top {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}


.navbar-brand img {
    height: 45px;
    transition: var(--transition-smooth);
}

.nav-link-custom {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 1.5px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: calc(100% - 32px);
}

.nav-link-custom:hover {
    color: var(--gold-primary) !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

/* Custom Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #151d26 !important; /* Very dark navy instead of black */
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 14px 30px;
    border-radius: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #283849; /* SW 9178 In the Navy */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-gold:hover {
    color: var(--gold-primary) !important;
    box-shadow: var(--gold-glow-hover);
}

.btn-gold:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 13px 29px;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #151d26 !important; /* Very dark navy instead of black */
    border-color: transparent;
    box-shadow: var(--gold-glow);
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(21, 29, 38, 0.65), rgba(21, 29, 38, 0.88)); /* Dark Navy Overlay */
}

[data-theme="light"] .hero-slide::after {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(21, 29, 38, 0.85));
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--gold-glow);
}

/* Custom Services Section Grid */
.service-icon-wrapper {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    text-shadow: var(--gold-glow);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-gradient);
    color: #151d26 !important;
    transform: translateY(-5px);
}

/* Animated Counters Section */
.counter-box {
    text-align: center;
    padding: 20px;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-body);
}

/* Testimonial slider layout */
.testimonial-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    object-fit: cover;
    margin: 0 auto 20px;
}

/* Project and Portfolio Gallery Cards */
.project-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-card-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 29, 38, 0.88); /* Dark Navy Overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
    border: 1px solid var(--gold-primary);
}

.project-card:hover .project-card-image {
    transform: scale(1.15);
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

/* Filter buttons */
.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    margin: 0 5px 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--gold-primary);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.filter-btn.active::after {
    width: 60%;
}

/* Before / After Image Slider Component */
.twentytwenty-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 450px;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    user-select: none;
}

.before-after-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.before-after-slider .resize-img {
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.before-after-slider .slider-handle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold-primary);
    cursor: ew-resize;
    z-index: 3;
}

.before-after-slider .slider-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #283849; /* SW 9178 In the Navy */
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gold-glow);
}

/* Timeline Components */
.timeline {
    position: relative;
    border-left: 2px solid var(--gold-primary);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--gold-primary);
}

/* Footer layout styling */
.footer-custom {
    background-color: #151d26; /* Dark Navy Background */
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-custom .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .footer-custom {
    background-color: #f1f2f3;
}

.footer-custom a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-custom a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

/* Contact map container */
.map-container {
    height: 400px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox Modal */
.lightbox-modal .modal-content {
    background-color: rgba(21, 29, 38, 0.95); /* Dark Navy Background */
    border: 1px solid var(--gold-primary);
    border-radius: 0;
}

.lightbox-modal img {
    max-height: 80vh;
    object-fit: contain;
}

/* Admin Styles Custom Layout */
.admin-sidebar {
    background-color: #151d26; /* Dark Navy Sidebar */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: calc(100vh - 70px);
}

.admin-sidebar .nav-link {
    color: #a0a0a0;
    padding: 12px 20px;
    border-radius: 0;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
}

/* Ensure text visibility in light mode for elements that had text-white hardcoded */
[data-theme="light"] .glass-card h1,
[data-theme="light"] .glass-card h2,
[data-theme="light"] .glass-card h3,
[data-theme="light"] .glass-card h4,
[data-theme="light"] .glass-card h5,
[data-theme="light"] .glass-card h6,
[data-theme="light"] .glass-card .text-white,
[data-theme="light"] .timeline-item h4,
[data-theme="light"] .timeline-item .text-white,
[data-theme="light"] section h2.text-white,
[data-theme="light"] section h3.text-white {
    color: var(--text-primary) !important;
}

/* Bootstrap standard utility class overrides to align with Navy theme */
.bg-black {
    background-color: #161f29 !important; /* Midnight Navy instead of pure black */
}
.bg-dark {
    background-color: #212d3a !important; /* Dark Slate Navy instead of bg-dark */
}
.navbar-dark {
    --bs-navbar-color: rgba(255, 255, 255, 0.75);
    --bs-navbar-hover-color: var(--gold-primary);
    --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
}

/* Services Sections Light Theme Override (High Contrast - Essential Gray & Black Text) */

/* Custom rule to enforce black text for specific class combination */
.display-5.text-white.mt-2.mb-4.font-heading {
    color: #000000 !important;
}
#servicesOverview,
#servicesList {
    background-color: #dad9d7 !important; /* Essential Gray SW 6002 */
    color: #111111 !important;
}

#servicesOverview .text-white,
#servicesOverview h2,
#servicesOverview h3,
#servicesOverview h4,
#servicesList .text-white,
#servicesList h2,
#servicesList h3,
#servicesList h4 {
    color: #111111 !important;
}

#servicesOverview .text-secondary,
#servicesList .text-secondary {
    color: #33465a !important; /* Dark Slate Navy for readability */
}

#servicesOverview .glass-card,
#servicesList .glass-card {
    background: #ffffff !important;
    border-color: rgba(40, 56, 73, 0.15) !important;
    box-shadow: 0 10px 30px rgba(40, 56, 73, 0.05);
}

#servicesOverview .glass-card:hover,
#servicesList .glass-card:hover {
    border-color: var(--gold-primary) !important;
    box-shadow: var(--gold-glow-hover) !important;
}

#servicesList li {
    color: #283849 !important;
}

#servicesList li i.text-gold {
    color: var(--gold-primary) !important;
}

#servicesList .border-secondary {
    border-color: rgba(40, 56, 73, 0.15) !important;
}

