:root {
    --primary-gold: #D4AF37;
    --dark-gold: #AA8C2C;
    --primary-green: #004d40;
    --dark-green: #00251a;
    --text-color: #333;
    --light-text: #f9f9f9;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    direction: rtl;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* Make images and videos responsive by default */
img, video {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--primary-green);
    color: var(--primary-gold);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    text-decoration: none;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 37, 26, 0.7); /* Dark green overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 10px 30px;
    background-color: var(--primary-gold);
    color: var(--dark-green);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--primary-gold);
}

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

/* Section General */
section {
    padding: 4rem 5%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-green);
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 10px auto;
}

/* About Section */
.about {
    background-color: var(--bg-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

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

.about-text p {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    border: 5px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Vision & Mission with Parallax */
.parallax-bg {
    background-image: url('img/gallery1.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--text-color);
}

.overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.container-flex {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.vm-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-green);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.vm-card h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Services */
.services {
    background-color: var(--primary-green);
    color: var(--light-text);
    background-image: url('img/hero-bg.jpeg');
    background-blend-mode: overlay;
    background-attachment: fixed;
    background-size: cover;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.9);
    z-index: 1;
}

.container-relative {
    position: relative;
    z-index: 2;
}

.services .section-title {
    color: var(--primary-gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-gold);
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    background: var(--primary-gold);
    color: var(--dark-green);
}

.service-card h3 {
    font-size: 1.2rem;
}

/* Why Us with Video */
.why-us {
    background-color: var(--bg-white);
}

.why-us-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

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

.why-us-video-container {
    flex: 1;
    min-width: 300px;
}

.why-video {
    width: 100%;
    border-radius: 10px;
    border: 5px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.why-us ul {
    list-style: none;
    margin: 0;
}

.why-us li {
    background: var(--bg-light);
    margin-bottom: 1rem;
    padding: 1rem;
    border-right: 5px solid var(--primary-gold);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 77, 64, 0.85);
    color: var(--primary-gold);
    transition: bottom 0.3s ease;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* Team */
.team {
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-gold);
}

.team-info {
    padding: 1rem;
}

.team-info h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--dark-gold);
    font-weight: bold;
}

/* Contact */
.parallax-bg-2 {
    background-image: url('img/gallery2.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--light-text);
    text-align: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 37, 26, 0.9);
    z-index: 1;
}

.contact .section-title {
    color: var(--primary-gold);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-phone {
    background: #007bff;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-email {
    background: #D44638;
}

.btn-contact i {
    font-size: 1.3rem;
}

/* Footer */
footer {
    background-color: #000;
    color: var(--primary-gold);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
        overflow: hidden; /* Prevent section content overflow */
    }

    .section-title {
        font-size: 2rem; /* Smaller title on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: var(--primary-green);
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    /* Adjust min-widths for small screens to prevent overflow */
    .about-text, 
    .about-img,
    .vm-card,
    .why-us-text,
    .why-us-video-container {
        min-width: 100%;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr; /* Force single column on small screens */
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure no horizontal scroll */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}
