:root {
    /* Dahir Modern Grayscale Palette */
    --primary-color: #333333;
    /* Dark Gray - Professional */
    --secondary-color: #666666;
    /* Medium Gray */
    --accent-color: #000000;
    /* Black - Contrast */
    --light-gray: #f4f4f4;
    /* Backgrounds */
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --border-color: #e0e0e0;

    /* Global Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: rgba(51, 51, 51, 0.95);
    /* Translucent Gray Default */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Always show shadow for readability */
}

#main-header.scrolled {
    padding: 15px 0;
    /* Background remains the same translucent gray */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: height 0.3s ease;
}

#main-header.scrolled .logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--white);
    /* Always white on gray header */
}

.main-nav a:hover {
    color: #cccccc;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('assets/images/hero_l2.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay to make text readable */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Sections */
.section-padding {
    padding: var(--section-padding);
}

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

.bg-dark {
    background-color: #222;
    color: var(--white);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.divider.white-divider {
    background-color: var(--white);
}

.divider.align-left {
    margin: 0 0 20px 0;
}

/* Project Section (Video + Text) */
.project-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.project-text {
    flex: 1;
    min-width: 300px;
}

.project-media {
    flex: 1;
    min-width: 300px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Specs/Investment Section */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 {
    width: 50%;
    padding: 0 15px;
}

.items-center {
    align-items: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.check-list i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 4px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 50px 0;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
}

.social-links a {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 18px;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Chatbot & Whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Chatbot Restyling */
.chatbot-trigger {
    position: fixed;
    bottom: 130px;
    /* Increased to avoid overlap with WhatsApp */
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: auto;
    /* Allow width to grow */
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    /* Pill shape */
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.chatbot-trigger:hover {
    transform: scale(1.05);
}

.trigger-text {
    font-size: 14px;
    font-weight: 600;
}

.chatbot-container {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-container.closed {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: #333;
    /* Darker header */
    padding: 15px 20px;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar {
    font-size: 24px;
    color: #ffd700;
    /* Gold/Premium accent */
}

.agent-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.agent-name {
    font-weight: 700;
    font-size: 14px;
}

.agent-status {
    font-size: 10px;
    color: #4cd137;
    /* Online Green */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.message.bot {
    background: #e0e0e0;
    color: #333;
    border-bottom-left-radius: 5px;
    margin-right: auto;
}

.message.user {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.chatbot-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#chat-send {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    /* Init hidden */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .project-split {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-6 {
        width: 100%;
        margin-bottom: 40px;
    }

    .main-nav {
        display: none;
        /* Mobile menu needed */
    }

    .mobile-menu-toggle {
        display: block;
        /* Show menu toggle */
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    #main-header.scrolled .mobile-menu-toggle {
        color: white;
        /* Keep white on gray header */
    }
}