/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= UTILS ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #222;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Right Side: Info */
.hero-info {
    flex: 1;
    min-width: 300px;
    text-align: right;
    padding-left: 20px;
    margin-bottom: 40px;
}

.hero-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.hero-info h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 600;
}

.cta-btn {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

/* Left Side: Glass Form */
.hero-form {
    flex: 0 0 350px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-form h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.hero-form input,
.hero-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: right;
}

/* Optional: remove default arrow in some browsers if needed, or style it */
.hero-form select {
    appearance: none;
    /* Takes away default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: left 10px center;
    /* Position arrow on left since text is RTL */
    cursor: pointer;
}

.hero-form .submit-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    /* Or distinct color */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-form .submit-btn:hover {
    background: #333;
}


/* ===== Project Gallery Slider ===== */

.gallery-slider {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* Space between buttons and image */
}

.slider-container {
    flex: 1;
    max-width: 800px;
    /* Or whatever max-width fits the design */
    min-width: 0;
    overflow: hidden;
    direction: ltr;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    /* Don't grow, don't shrink, stay at 100% */
    /* Optional: Center image if it has aspect ratio diff */
    display: flex;
    justify-content: center;
    background: #000;
    /* Dark frame for better contrast */
}

.slide img {
    width: 100%;
    height: 500px;
    /* Fixed height to ensure frame consistency */
    object-fit: contain;
    /* Ensures the image fills the frame without distortion */
    display: block;
}


/* Buttons */
.slider-btn {
    position: static;
    /* Reset absolute positioning */
    transform: none;
    background: #3498db;
    /* Match theme or Keep distinct */
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #2980b9;
}


/* ================= FEATURES SECTION ================= */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    /* Aligns items to top so expanding one doesn't stretch others strangely */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    padding: 15px 30px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    /* Limit width so text wraps */
    max-width: 250px;
}

.feature-item:hover,
.feature-item.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.feature-info {
    display: none;
    /* Hidden by default */
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    font-weight: 400;
}

/* Show info when active */
.feature-item.active .feature-info {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= LOCATION SECTION ================= */
.location-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}


/* ================= CHATBOT FAB ================= */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: background 0.3s;
}

.chatbot-fab:hover {
    background: #333;
}


/* ================= FOOTER ================= */
.footer {
    padding: 30px 0;
    text-align: center;
    background: #111;
    color: #aaa;
    font-size: 13px;
    margin-top: 50px;
}


/* ================= RESPONSIVE ================= */

.hero-form,
.hero-form * {
    pointer-events: auto !important;
    z-index: 9999;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-info {
        text-align: center;
        padding-left: 0;
        margin-bottom: 40px;
    }

    .hero-form {
        width: 100%;
    }

    .gallery-thumbs img {
        width: calc(33% - 10px);
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Fix Video Zoom */
    .hero-bg {
        background: #000;
    }

    .hero-video {
        width: 100%;
        height: 80vh;
        /* Increased to reach the form */
        object-fit: cover;
        object-position: center;
    }

    /* Fix Gallery Image Height */
    .slide img {
        height: 250px;
        /* Reduce from 500px to fit mobile screen better */
        object-fit: cover;
        /* Ensure it covers the area cleanly */
    }
}