:root {
    --primary-color: #0a192f; /* Deep Navy Blue */
    --secondary-color: #172a45; /* Lighter Navy */
    --accent-color: #d4af37; /* Gold */
    --accent-hover: #b39025; /* Darker Gold */
    --text-color: #333;
    --text-light: #8892b0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.2);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

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

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

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.7) 0%, rgba(23, 42, 69, 0.4) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 900px;
    border-radius: 20px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #e6f1ff;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn:hover::before {
    width: 100%;
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Intro */
.intro {
    background-color: var(--white);
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
}

.intro p {
    max-width: 900px;
    margin: 0 auto;
}

/* About Cards */
.about {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3::before {
    content: '';
    display: block;
    width: 5px;
    height: 25px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Vision & Mission */
.vision-mission {
    background-color: var(--primary-color);
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23172a45' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.vm-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.vm-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.vm-item h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vm-item i {
    opacity: 0.5;
    font-size: 2.5rem;
}

/* Products */
.products {
    background-color: var(--white);
}

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

.product-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    border-radius: var(--border-radius);
}

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

.product-card:hover::before {
    transform: scaleY(1);
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: var(--transition);
    margin: 0;
}

.product-card:hover h3 {
    color: var(--accent-color);
}

.product-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover i {
    color: var(--white);
    transform: rotateY(180deg);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    height: 300px;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

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

.gallery-overlay i {
    color: var(--accent-color);
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* Features */
.features {
    background-color: var(--white);
}

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

.feature-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(360deg);
}

/* Quality */
.quality {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quality::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
}

.quality .section-title {
    color: var(--accent-color);
}

.quality p {
    font-size: 1.3rem;
    line-height: 2;
    opacity: 0.9;
}

/* Clients */
.clients {
    background-color: var(--light-bg);
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.client-item {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: var(--transition);
}

.client-item:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #020c1b;
    color: #8892b0;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 3px solid var(--accent-color);
}

footer h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

footer p.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    animation-name: zoom;
    animation-duration: 0.6s;
    border: 2px solid var(--accent-color);
}

@keyframes zoom {
    from {transform:scale(0); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--accent-color);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--white);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
        border-top: 2px solid var(--accent-color);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

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

    .about-grid, .vm-grid, .products-grid, .features-list, .gallery-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 20px;
    }

    .about-card, .vm-item, .product-card, .feature-item {
        padding: 25px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

