@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgb(0 0 0 /45%);
    position: absolute;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
}

.header-top.sticky {
    position: fixed;
    background: rgb(29 33 35);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
}

.logo-icon {
    margin-right: 12px;
    font-size: 2.2rem;
}

.logo-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-left: 15px;
    opacity: 0.8;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-text {
    flex: 1;
    padding-right: 3rem;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease;
}

.hero-tech-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateY(-10deg);
    transition: var(--transition);
    border: 2px solid #d4b587;
}

.hero-tech-image:hover {
    transform: perspective(800px) rotateY(0);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(243, 140, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 140, 53, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
}

.about-text h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    background-color: black;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: rotate(45deg);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    position: relative;
}

.stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,70 C20,0 50,100 100,50 L100,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    position: relative;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    transform: translateX(-50%);
}

#services .section-title h2, #products .section-title h2 {
    color: var(--primary) !important;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #212121;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(42, 107, 124, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.product-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), transparent);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(to right, #1d1d1d, var(--primary));
    color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    text-align: center;
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
}

.testimonial-text:before {
    top: -20px;
    left: -20px;
}

.testimonial-text:after {
    bottom: -40px;
    right: -20px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */

.cta {
    padding: 5rem 0;
    background: linear-gradient(to right, #424242, var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C50,100 80,0 100,100 L100,0 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Footer */
footer {
    background-color: #1d2123;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-info h3 .logo-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.footer-info p {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stat-number {
        margin-bottom: -0.5rem !important;
    }
    .hero-image {
        margin: 20px 0px 0px 0px;
    }

    .product-grid {
        overflow: auto !important;
    }

    .services-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr)) !important;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-text {
        padding-right: 0;
        padding-top: 3rem;
    }

    .hero-tech-image {
        max-width: 400px;
        transform: perspective(800px) rotateY(0);
    }

    .about-content {
        flex-direction: column;
    }

    .stats-container {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .header-top {
        /*flex-direction: column;*/
        padding: 1rem;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-subtitle {
        margin: 10px 0 0 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 83px;
        width: 100%;
        background: #131313;
        left: 1px;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}


/* ====== Language Switcher + Mobile Menu Button ====== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    /* مسافة بين العناصر */
}

/* زر تغيير اللغة */
.language-switcher .btn-lang {
    padding: 8px 15px;
    /* background: #2186eb; */
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.language-switcher .btn-lang:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* زر القائمة في الموبايل */
.mobile-menu-btn {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

/* تأثير hover */
.mobile-menu-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* إخفاء زر القائمة إذا كانت الشاشة كبيرة */
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

