/* Color System Variables */
[data-theme="dark"] {
    --bg-color: #070709;
    --section-alt-bg: #121217;
    --footer-bg: #0b0b0f;
    --header-bg: #070709;
    --accent-color: #ffffff;
    --muted-color: #92929e;
    --overlay-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --logo-color: linear-gradient(135deg, #e4af78, #ba8852);
}

[data-theme="light"] {
    --bg-color: #f3f4f6;
    --section-alt-bg: #ffffff;
    --footer-bg: #e6e7eb;
    --header-bg: #ffffff;
    --accent-color: #0e0e12;
    --muted-color: #63636f;
    --overlay-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.09);
    --logo-color: linear-gradient(135deg, #af7d4b, #7d5024);
}

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--accent-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Header & Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--header-bg);
    opacity: 0.98;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--logo-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.logo span {
    font-weight: 300;
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Highlighted Nav Underline Styles */
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
}

/* Mode Switch Button */
.theme-switch-btn {
    background: var(--overlay-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.theme-switch-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

.theme-switch-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Global Section Framework */
.hero-section {
    padding: 120px 0 60px 0;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
}

.about-section {
    background-color: var(--section-alt-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.services-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.contact-section {
    background-color: var(--section-alt-bg);
    transition: var(--transition-smooth);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-tag {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--muted-color);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Home slider rules */
.slider-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 540px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
    transition: transform 6s ease;
}

.slide.active img {
    transform: scale(1.03);
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    max-width: 650px;
    z-index: 2;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 34px;
    font-weight: 500;
    color: #ffffff;
}

/* Carousel Control Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    width: 24px;
    border-radius: 10px;
    background: #ffffff;
}

/* About Layout with moving Carousel */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: var(--muted-color);
    font-size: 16px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-img-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 420px;
    cursor: pointer;
}

.about-img-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.1s linear;
}

.about-img-track img {
    width: 20%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.carousel-overlay-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.about-img-box:hover .carousel-overlay-hint {
    opacity: 0;
}

/* Services Grid & Interactive Sub-Sliders */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--section-alt-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.service-card h4 {
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: var(--muted-color);
    min-height: 44px;
}

.service-slider {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.service-track {
    display: flex;
    width: 600%; /* 6 Images x 100% each */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-track img {
    width: calc(100% / 6);
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.service-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.srv-nav-btn {
    background: var(--overlay-bg);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.srv-nav-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Contact Details & Inputs */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted-color);
    margin-bottom: 6px;
}

.contact-item p, .contact-item a {
    font-size: 18px;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-item a:hover {
    opacity: 0.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 4px;
    color: var(--accent-color);
    font-family: var(--font-family);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    align-self: flex-start;
    background: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
    padding: 14px 36px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: transparent;
    color: var(--accent-color);
}

/* Footer Section */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.footer-logo span {
    font-weight: 300;
    color: var(--muted-color);
}

.copyright {
    font-size: 13px;
    color: var(--muted-color);
}

/* Advanced Mobile Layout Adaptations */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img-box {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 14px 20px;
    }
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 11px;
        letter-spacing: 1px;
        padding: 2px 0;
    }
    .hero-section {
        padding-top: 90px;
        padding-bottom: 40px;
    }
    .slider-container {
        height: 380px;
        width: 92vw;
    }
    .slide-title {
        font-size: 24px;
    }
    .slide-content {
        left: 24px;
        bottom: 30px;
        right: 24px;
    }
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    section .section-inner {
        padding: 40px 20px;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }
    .logo {
        font-size: 16px;
    }
    .about-img-box {
        height: 280px;
    }
    .service-card {
        padding: 20px;
    }
}



/* Responsive Mobile Header Fixes */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* Stacks the logo and links vertically */
        gap: 12px;
        padding: 12px 16px;
        align-items: center;
        text-align: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .nav-links {
        display: flex;
        gap: 14px; /* Balanced spacing so they don't overlap */
    }

    .nav-links a {
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap; /* Prevents text from breaking into two lines */
    }

    /* Adjust the Hero Section top padding so it doesn't get hidden behind the stacked header */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px; /* Slightly smaller logo for very small phones */
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 10px;
    }
}