:root {
    --primary-color: #2d71b6; /* Extracted Blue */
    --secondary-color: #f0b254; /* Extracted Gold */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-overlay: rgba(45, 113, 182, 0.8); /* Blue overlay */
    --transition: all 0.3s ease;
    --font-main: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #1a4f85;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white); /* Changed to white for better contrast on yellow */
}

.btn-secondary:hover {
    background-color: #d49b3f;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px; /* Adjust based on logo aspect ratio */
    width: auto;
}

.logo .site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

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

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

.header-contact .btn-contact {
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Actions - Language Button + Hamburger */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.lang-btn-mobile {
    display: none;
    background: var(--primary-color);
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* Placeholder bg */
    background-color: var(--primary-color); /* Fallback to Blue */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px; /* Offset for fixed header */
}

/* Inner Page Hero */
.page-hero {
    height: 50vh;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-color), #1a4f85);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: var(--secondary-color);
}

/* Landing Page Specifics */
.landing-header {
    justify-content: center !important;
}

.landing-header .navbar, 
.landing-header .header-contact {
    display: none; /* Hide nav on landing page to focus on CTA */
}

.landing-hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), #1a4f85);
    align-items: center;
}

.landing-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: right;
}

.landing-text {
    flex: 1;
    color: var(--white);
}

.landing-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.landing-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.landing-form-card {
    flex: 0 0 400px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.landing-form-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.landing-features {
    padding: 60px 0;
    background-color: var(--light-bg);
}

@media (max-width: 992px) {
    .landing-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .landing-form-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Add a gradient overlay if no image is available yet */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #1a4f85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay);
    z-index: 1;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-features {
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features i {
    color: var(--secondary-color);
}

.about-image {
    flex: 1;
    width: 100%;
    min-width: 280px;
}

.img-placeholder {
    width: 100%;
    min-width: 280px;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Why Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(45, 113, 182, 0.2);
}

/* Equipment Gallery Section */
.equipment-gallery {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.equipment-card {
    background: #e8eef4;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(45, 113, 182, 0.15);
}

.equipment-image {
    background: #e8eef4;
    padding: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.08);
}

.equipment-card h3 {
    background: var(--white);
    color: var(--primary-color);
    padding: 18px 15px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 3px solid var(--secondary-color);
}

@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-image {
        min-height: 180px;
        padding: 20px;
    }
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 113, 182, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.lightbox-prev {
    right: -70px;
}

.lightbox-next {
    left: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .lightbox-prev {
        right: 10px;
    }
    
    .lightbox-next {
        left: 10px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Partners Section */
.partners {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    background: var(--white);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #1e5a8c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: var(--transition);
}

.partner-logo i {
    font-size: 1.8rem;
    color: var(--white);
}

.partner-item:hover .partner-logo {
    background: linear-gradient(135deg, var(--secondary-color), #d9992f);
    transform: scale(1.1);
}

.partner-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .partner-item {
        padding: 20px 10px;
        min-height: 140px;
    }
    
    .partner-logo {
        width: 55px;
        height: 55px;
    }
    
    .partner-logo i {
        font-size: 1.4rem;
    }
    
    .partner-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .partner-item {
        padding: 15px 8px;
        min-height: 120px;
        border-radius: 10px;
    }
    
    .partner-logo {
        width: 45px;
        height: 45px;
    }
    
    .partner-logo i {
        font-size: 1.2rem;
    }
    
    .partner-name {
        font-size: 0.7rem;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color); /* Changed to Blue */
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .header .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }
    
    /* Show mobile actions container with language button */
    .mobile-actions {
        display: flex;
    }
    
    .lang-btn-mobile {
        display: block;
    }

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

    .about-content,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        min-width: 100%;
    }
    
    .img-placeholder {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    
    .header-contact {
        display: none;
    }
}
        font-size: 0.8rem;
    }
