:root {
    --primary-color: #D4AF37; 
    --black: #0a0a0a;         
    --dark-gray: #222222;     
    --light-gray: #f8f9fa;    
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth; 
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation & Logo styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 10px 50px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 100px; /* Increased from 60px */
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 70px; /* Shrinks slightly when user scrolls down */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

/* Continuous Scroll Sections */
.scroll-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary-color);
    display: block;
    width: max-content;
    margin: 0 auto 50px;
    padding-bottom: 10px;
}

/* Hero Section (Static Background) */
.hero {
    position: relative;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height handles mobile UI bars better */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -120px; 
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero h1 { font-size: 4rem; color: var(--primary-color); margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 3px;
}
.btn-primary { background-color: var(--primary-color); color: var(--black); box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.btn-primary:hover { background-color: var(--white); color: var(--black); }

/* Grids */
.about-grid, .services-grid { display: grid; gap: 40px; }
.about-grid { grid-template-columns: 1fr 1fr; align-items: center;}
.about-text p { margin-bottom: 15px; font-size: 1.1rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card, .service-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card i, .service-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }

/* Portfolio Carousel */
.portfolio-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--black);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 30px;
}
.tab-btn.active-tab, .tab-btn:hover { background: var(--primary-color); color: var(--white); }

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    background: var(--dark-gray);
}

.carousel-track-wrapper {
    position: relative;
    overflow: hidden; 
    width: 100%;
    height: 550px;
}

.carousel-track {
    display: none;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-track.active-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.carousel-slide {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.carousel-slide img:hover { transform: scale(1.02); }

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: var(--primary-color);
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 3px;
    border-left: 3px solid var(--primary-color);
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--primary-color);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: 0.3s;
}
.carousel-btn:hover { background: var(--primary-color); color: var(--white); }
.carousel-btn.prev { left: 0; border-radius: 0 3px 3px 0; }
.carousel-btn.next { right: 0; border-radius: 3px 0 0 3px; }

/* Lightbox Modal */
.lightbox {
    display: none; position: fixed; z-index: 2000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95);
}
.lightbox-content {
    margin: auto; display: block; width: 90%; max-width: 1200px; max-height: 80vh;
    object-fit: contain; animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }

#lightbox-caption { margin: auto; display: block; width: 80%; text-align: center; color: var(--primary-color); padding: 15px 0; font-size: 1.2rem; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: var(--white); font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--primary-color); }
.lightbox-nav { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 20px; margin-top: -50px; color: var(--primary-color); font-weight: bold; font-size: 40px; background: transparent; border: none; transition: 0.3s; }
.lightbox-nav:hover { background-color: rgba(0,0,0,0.8); color: var(--white); }
.lightbox-nav.next { right: 0; border-radius: 3px 0 0 3px; }
.lightbox-nav.prev { left: 0; border-radius: 0 3px 3px 0; }

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; background: var(--light-gray); border-radius: 3px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border: 1px solid var(--primary-color); }

/* Footer & Social Icons */
footer { background: var(--black); color: var(--white); text-align: center; padding: 40px 20px 20px; }
.social-icons { margin-bottom: 20px; }
.social-icons a { display: inline-block; margin: 0 10px; color: var(--white); background: var(--dark-gray); width: 40px; height: 40px; line-height: 40px; border-radius: 50%; transition: 0.3s; }
.social-icons a:hover { background: var(--primary-color); color: var(--black); transform: translateY(-3px); }

/* Chat Bot */
.chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 1500; }
.chat-toggle { background: var(--primary-color); color: var(--black); border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.chat-toggle:hover { transform: scale(1.1); }
.chat-window { display: none; position: absolute; bottom: 80px; right: 0; width: 300px; background: var(--white); border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid #eee; }
.chat-header { background: var(--black); color: var(--primary-color); padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.close-chat { cursor: pointer; font-size: 20px; color: var(--white); }
.chat-body { height: 250px; overflow-y: auto; padding: 15px; background: var(--light-gray); display: flex; flex-direction: column; gap: 10px; }
.message { padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; max-width: 80%; line-height: 1.4; }
.message.bot { background: #e9ecef; color: var(--black); align-self: flex-start; border-bottom-left-radius: 2px; }
.message.user { background: var(--primary-color); color: var(--black); align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-footer { display: flex; padding: 10px; background: var(--white); border-top: 1px solid #eee; }
.chat-footer input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.chat-footer button { background: none; border: none; color: var(--primary-color); font-size: 20px; padding: 0 10px; cursor: pointer; }

/* Responsive adjustments for Mobile screens */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .menu-toggle { display: block; }
    
    .nav-logo { height: 80px; } /* Slightly smaller on mobile but still readable */
    .navbar.scrolled .nav-logo { height: 60px; }

    .nav-links {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0;
        width: 100%; background: var(--white); padding: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.show-mobile-menu { max-height: 300px; padding: 10px 0; }
    .nav-links li { text-align: center; padding: 15px 0; border-bottom: 1px solid #eee; }
    
    .hero { 
        height: 85vh; /* Better for mobile to avoid UI overlap */
        background-position: 50% 50% !important; /* Centers image nicely */
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }

    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .carousel-track-wrapper { height: 350px; }
    
    .chatbot-container { bottom: 20px; right: 20px; }
    .chat-window { right: -10px; width: 280px; }
}