/* Root Variables for Golden Theme */
:root {
    --gold: #d4af37;
    --gold-light: #f9e29b;
    --gold-dark: #aa8c2e;
    --dark: #121212;
    --darker: #0a0a0a;
    --gray-dark: #1e1e1e;
    --white: #ffffff;
    --text: #ffffff;
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-nav: rgba(10, 10, 10, 0.95);
}

:root.light-mode {
    --dark: #ffffff;
    --darker: #f0f0f0;
    --gray-dark: #ffffff;
    --white: #121212;
    --text: #333333;
    --bg-body: #fdfdfd;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --gold-dark: #8c7326;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-body);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, .brand-text {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: var(--gold);
}

.bg-dark-custom {
    background-color: var(--dark);
}

.bg-darker {
    background-color: var(--darker);
}

.bg-black {
    background-color: #000;
}

.bg-gray-dark {
    background-color: var(--gray-dark);
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Navbar Styling */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--gold-dark);
}

.light-mode .navbar-dark .navbar-nav .nav-link {
    color: var(--text) !important;
}

.light-mode.scrolled .navbar-dark .navbar-brand .brand-text {
    color: #121212 !important;
}

.light-mode .navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

#themeToggle {
    order: 3;
}

#themeToggle, #themeToggleMobile {
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    outline: none !important;
    padding: 0;
    line-height: 1;
    margin-right: 0 !important;
}

#themeToggle:hover, #themeToggleMobile:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

.hero-content p.text-white {
    color: var(--text) !important;
}

.hero-content p.text-light {
    color: var(--text) !important;
    opacity: 0.8;
}

.logo-nav {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-left: 15px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link.active,
.nav-link:hover {
    color: var(--gold) !important;
}

/* Hero Slanted Slider Layout */
.hero-split-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #0c0c0c;
}

.light-mode .hero-split-slider {
    background-color: #ffffff;
}

.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.hero-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.hero-content-side {
    position: relative;
    z-index: 3;
    color: white;
    padding-left: 20px;
}

.light-mode .hero-content-side {
    color: var(--text);
}

.hero-logo-large {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.hero-content-side h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-content-side h1 span {
    color: var(--gold);
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 25px 0;
}

/* Custom Indicators - Bottom Edge */
.carousel-indicators-custom {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    display: flex;
}

.carousel-indicators-custom span {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-mode .carousel-indicators-custom span {
    background: rgba(0,0,0,0.1);
}

.carousel-indicators-custom span.active {
    background: var(--gold);
    width: 60px;
}

/* Slider Controls Styling */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* No background to avoid bleed */
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 25%; /* To stay within the slanted part on large screens */
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: sepia(100%) saturate(500%) hue-rotate(10deg) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--gold);
}

@media (max-width: 991.98px) {
    .carousel-control-next {
        right: 20px;
    }
}

@media (max-width: 991.98px) {
    .hero-carousel-wrapper {
        width: 100%;
        clip-path: none;
        opacity: 0.5;
    }
    .hero-content-side {
        color: white !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
}

/* Hero Slider Styles */
.hero-slider-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#heroCarousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 2s ease, opacity 1s ease-in-out !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.light-mode .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.light-mode .hero-content {
    color: #333333;
}

.hero-main-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-line {
    width: 100px;
    height: 4px;
    background: var(--gold);
    margin: 25px 0;
}

/* Indicators Styling */
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: var(--gold);
    transform: scale(1.3);
}

.light-mode .carousel-indicators li {
    background-color: rgba(0,0,0,0.2);
}

.light-mode .carousel-indicators li.active {
    background-color: var(--gold);
}

/* Hero Split Layout */
.hero-split {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
}

.hero-left {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100%;
    background: var(--dark);
    transform: skewX(-5deg);
    z-index: 2;
}

.hero-right {
    width: 50%;
    height: 100%;
    background: var(--bg-body);
    padding-left: 50px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.divider {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18,18,18,0.2) 0%, rgba(18,18,18,0.8) 100%);
}

/* Buttons */
.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    border-radius: 10px;
    color: var(--text);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.light-mode .section-title h2 {
    color: var(--gold-dark);
}

.service-icon {
    font-size: 3rem;
    color: var(--gold);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* Why Us Section */
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.check-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.check-list i {
    color: var(--dark);
}

.why-us-img {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
    max-height: 300px;
}

/* Handyman Section */
.handyman-wrapper {
    background: var(--bg-card);
}

.handyman-img {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.services-list {
    list-style: none;
    padding-left: 0;
    color: var(--text);
}

.services-list li::before {
    content: "\f0ad";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--gold);
}

.handyman-phone-box {
    margin-top: 10px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.handyman-phone-link {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.handyman-phone-link:hover {
    color: var(--gold-light);
    transform: translateX(5px);
}

.light-mode .handyman-phone-box {
    background: rgba(212, 175, 55, 0.1);
}

@media (max-width: 576px) {
    .handyman-phone-link {
        font-size: 1.3rem;
    }
}

/* Contact Section */
.contact-box {
    background: rgba(var(--white-rgb, 255, 255, 255), 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.light-mode .contact-box {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-box:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.light-mode .services-list {
    color: #333333 !important;
}

.light-mode .services-list li {
    color: #333333 !important;
}

.light-mode .handyman-wrapper p {
    color: #444444 !important;
}

.light-mode .contact-box p, 
.light-mode .contact-box h5, 
.light-mode .contact-box a {
    color: #333333 !important;
}

.light-mode .contact-box:hover p, 
.light-mode .contact-box:hover h5, 
.light-mode .contact-box:hover a {
    color: #000000 !important;
}

.light-mode .bg-gray-dark {
    background-color: #ffffff !important;
}

.light-mode .handyman-wrapper {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar {
        background: rgba(10, 10, 10, 0.98) !important;
        padding: 10px 0;
    }
    
    .light-mode .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .navbar-toggler {
        border-color: var(--gold) !important;
        padding: 4px 8px;
        outline: none !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(212, 175, 55, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
    }

    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid rgba(212, 175, 55, 0.1);
    }

    .light-mode .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link {
        color: rgba(255,255,255,0.9) !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin-left: 0;
    }

    .light-mode .navbar-nav .nav-link {
        color: #333333 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-link::after {
        display: none !important;
    }

    .hero-content-side h1 {
        font-size: 2.2rem !important; /* Smaller for mobile */
        white-space: normal !important;
        text-align: center;
    }
    
    .hero-logo-large {
        height: 60px !important;
    }
    
    .hero-title-box {
        justify-content: center;
    }

    .hero-carousel-wrapper {
        width: 100%;
        clip-path: none;
        opacity: 0.4;
    }
    
    .hero-content-side {
        padding: 50px 15px;
        text-align: center;
        color: white !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    
    .hero-line {
        margin: 20px auto;
    }
}
