* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* الخلفية */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('img/logo.png') no-repeat center center;
    background-size: contain;
    z-index: -2;
    opacity: 0.3;
}

/* طبقة التعتيم */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    /*background: rgba(0,0,0,0.35);*/
    z-index: -1;
}

/* layout */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

/* HERO */
.hero-1 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-1 h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-1 p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* CTA BUTTON */
.cta-button {
    background: #d07a15;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: #d48800;
}

.cta-button:active {
    transform: scale(0.95);
}

/* CONTACT */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* CONTACT CARD */
.contact-card {
    /*background: linear-gradient(135deg, #1a2e25 0%, #244738 100%);*/
    padding: 15px;
    border-radius: 12px;

    border: 1px solid #d07a15; /* الإطار البرتقالي */

    backdrop-filter: blur(10px);
    transition: 0.3s;

    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* الروابط داخل contact-info */
.contact-info a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

/* hover */
.contact-info a:hover {
    color: #ffbb33;
}

/* روابط الفوتر */
.footer-text a {
    color: black;
    text-decoration: none;
}

.footer-text a:hover {
    color: #ffbb33;
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    margin: 5px 0;
}

/* Responsive */
@media(max-width:768px){
    .hero-1 h1 {
        font-size: 32px;
    }

    .hero-1 p {
        font-size: 16px;
    }
}

/* SLIDER */
.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.slides img.active {
    opacity: 1;
}

/* SLIDER SECTION */
.slider-section {
    padding: 80px 20px;
}

.slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* LEFT SLIDER */
.slider-box {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.slider-box .slides img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.slider-box .slides img.active {
    opacity: 1;
}

/* RIGHT CONTENT */
.slider-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.slider-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
}

/* Responsive */
@media(max-width:768px){
    .slider-container {
        grid-template-columns: 1fr;
    }

    .slider-box {
        height: 250px;
    }
}

.products {
    padding: 80px 20px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #d07a15;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    padding-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* يعرض الصورة كاملة */
    background: #fff; /* خلفية بيضاء للصورة */
    /*padding: 10px;*/
    /*border-radius: 10px;*/
}

.product-card h3 {
    padding: 15px;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* PRODUCTS SECTION */
.products-section {
    padding: 80px 20px;
}

.products-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* TEXT SIDE */
.products-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.feature {
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 8px;
    color: #d07a15;
}

.feature p {
    line-height: 1.8;
}

/* SECTION */
.products-section {
    padding: 80px 20px;
}

/* ROW تقسيم 1/4 + 3/4 */
.products-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    align-items: center;
}

/* TEXT */
.products-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.feature {
    margin-bottom: 20px;
}

.feature h3 {
    color: #d07a15;
    margin-bottom: 5px;
}

.feature p {
    line-height: 1.8;
}

/* PRODUCTS AREA */
.products-wrapper {
    overflow: hidden;
    padding-top: 20px; /* 🔥 يعطي مساحة للحركة */
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* كل كرت = 1/3 من مساحة المنتجات */
.product-card {
    min-width: calc(33.333% - 50px);
    border: 1px solid #d07a15;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    background: rgba(255,255,255,0.05);
}

/* صورة بدون قص */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
    /*padding: 10px;*/
    /*border-radius: 10px;*/
}

.product-card h3 {
    padding: 10px;
}

.product-card:hover {
    transform: translateY(-8px); /* بدل -10 */
}

/* Responsive */
@media(max-width:768px){
    .products-row {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-width: 80%;
    }
}

/* SLIDER SIDE */
.products-slider {
    overflow: hidden;
    position: relative;
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* PRODUCT CARD */
.product-card {
    min-width: calc(33.333% - 50px); /* 3 منتجات */
    border: 1px solid #d07a15;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    text-align: center;
}


.product-card h3 {
    padding: 10px;
}

/* Responsive */
@media(max-width:768px){
    .products-container {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-width: 80%;
    }
}


.countries {
    padding: 80px 20px;
    text-align: center;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.country {
    /*border: 1px solid #d07a15;
    border-radius: 12px;*/
    padding: 15px;
    transition: 0.3s;

    display: flex;              /* 🔥 */
    flex-direction: column;     /* 🔥 يخلي العناصر فوق بعض */
    align-items: center;        /* 🔥 توسيط */
    justify-content: center;
}
.country span {
    margin-top: 10px;
    font-weight: bold;
}

.country img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.country:hover {
    transform: scale(1.05);
}
/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/*.product-card {
    padding: 10px;
}*/

.product-card img {
    width: 100%;
    height: auto; /* مهم جداً */
    max-height: 220px;
    object-fit: contain;
    background: #fff;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
    /*border-radius: 10px;*/
}

.product-card:hover img {
    transform: scale(1.05);
}

.slider-section,
.products-section,
.contact {
    padding: 80px 40px; /* كان 20 → خليناه أوسع */
}

/* SECTION */
.values-section {
    padding: 80px 40px;
}

/* LAYOUT */
.values-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: center;
}

/* RIGHT SIDE */
.values-hero {
    text-align: center;
}

/* صورة بشكل حر (غير كلاسيك) */
.hero-image img {
    width: 100%;
    /*max-width: 280px;*/

    /* شكل حر + ناعم */
    /*border-radius: 50% 20% 50% 20% / 30% 60% 30% 60%;*/

    object-fit: cover;
    /*box-shadow: 0 10px 25px rgba(0,0,0,0.2);*/
    padding: 5px;
    /*background: #fff;*/
}

/* نص تحت الصورة */
.hero-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
}

/* GRID LEFT */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* CARD */
.value-card {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #d07a15;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.03);
}

/* ICON */
.icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* TEXT */
.value-card h3 {
    margin-bottom: 5px;
}

.value-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* RESPONSIVE */
@media(max-width:768px){
    .values-container {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* GRID = ROW SINGLE LINE */
.values-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

/* CARD */
.value-card {
    flex: 1;
    min-width: 140px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #d07a15;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s;
}

/* ICON IMAGE */
.icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* HOVER */
.value-card:hover {
    transform: translateY(-10px);
}

/* TEXT */
.value-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.value-card p {
    font-size: 12px;
    opacity: 0.8;
}

/* RESPONSIVE */
@media(max-width: 768px){
    .values-grid {
        flex-wrap: wrap; /* 🔥 يتحول لصفوف */
    }

    .value-card {
        flex: 1 1 45%;
    }
}

/* MAIN LAYOUT */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 40px;
    align-items: start;
}

/* CONTACT BOX */
.contact-box h2,
.cert-box h2 {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

/* CERTIFICATES */
.cert-slider {
    overflow: hidden;
    width: 100%;
}

.cert-track {
    display: flex;
    gap: 15px;
    /*animation: scrollCert 15s linear infinite;*/
}

.cert-track img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    /*border: 1px solid #d07a15;*/
}

/* حركة الشهادات */
/*@keyframes scrollCert {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}*/

/* RESPONSIVE */
@media(max-width: 768px){
    .contact-container {
        grid-template-columns: 1fr;
    }

    .cert-track img {
        width: 100px;
        height: 100px;
    }
}

.cert-box {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* 🔥 توسيط عمودي */
    align-items: center;       /* 🔥 توسيط أفقي */
    height: 100%;              /* مهم عشان التوسيط يشتغل */
    text-align: center;
}

.cert-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cert-track {
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 🔥 1/3 + 2/3 */
    gap: 40px;
    padding: 80px 40px;
    align-items: stretch;
}

/* LEFT: CONTACT */
.contact-box {
    display: flex;
    flex-direction: column;
    justify-content: center; /* توسيط عمودي */
}

/* CONTACT ITEMS */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* RIGHT: CERTIFICATES */
.cert-box {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 🔥 توسيط عمودي */
    align-items: center;      /* 🔥 توسيط أفقي */
    text-align: center;
    width: 100%;
}

/* SLIDER WRAPPER */
.cert-slider {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* TRACK */
.cert-track {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    animation: scrollCert 18s linear infinite;
}


/* 🔥 FIX GLOBAL OVERFLOW */
html, body {
    overflow-x: hidden;
}

/* 🔥 FIX VALUES GRID (كان nowrap) */
.values-grid {
    display: flex;
    flex-wrap: wrap; /* تم التعديل */
    gap: 20px;
    justify-content: space-between;
}

/* 🔥 FIX PRODUCTS SLIDER */
.products-wrapper {
    overflow: hidden;
    width: 100%;
}

.products-track {
    display: flex;
    gap: 20px;
    max-width: 100%;
}

/* 🔥 FIX GENERAL SECTIONS PADDING على الموبايل */
@media(max-width:768px){
    
    .slider-section,
    .products-section,
    .contact,
    .values-section {
        padding: 60px 20px; /* بدل 40px */
    }

    /* تأكيد أن الكروت ما تكسر العرض */
    .product-card {
        min-width: 80%;
    }

    /* تأكيد إضافي */
    .values-grid {
        flex-wrap: wrap;
    }
}

/* CERT IMAGE */
.cert-track img {
    width: 140px;
    height: 140px;
    object-fit: contain;  /* 🔥 يمنع القص */
    /*background: #fff;*/
    padding: 10px;
    border-radius: 12px;
    /*border: 1px solid #d07a15;*/
}

/* ANIMATION */
/*@keyframes scrollCert {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}*/

/* RESPONSIVE */
@media(max-width: 768px){
    .contact-container {
        grid-template-columns: 1fr;
    }

    .cert-track img {
        width: 110px;
        height: 110px;
    }
}

.hero-content {
    text-align: center;
}

/* LOGO */
.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;

    margin-bottom: 15px;

    /* شكل احترافي */
    border-radius: 50%;
    background: #fff;
    padding: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    /* حركة خفيفة */
    transition: 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}
.hero-logo {
    width: 130px;
    height: 130px;

    object-fit: contain;

    border-radius: 50%;
    background: #fff;
    padding: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    /* 🔥 الحل هنا */
    object-position: center top;  /* يرفع التركيز للأعلى */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 20px;
    color: #152815;
    width: 25px;
    text-align: center;
}

.products-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
}

.products-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f4a300;
    display: block;
    margin: 10px auto 0;
}

/* HEADER */
.main-header {
    position: fixed; /* 🔥 يثبت في أعلى الصفحة */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    background: rgba(0,0,0,0.1); /* شفاف */
    backdrop-filter: blur(10px);

    padding: 10px 40px;
}

/* CONTAINER */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* BUTTON */
.header-btn {
    background: #f4a300;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.header-btn:hover {
    background: #d48800;
}

body {
    padding-top: 80px; /* نفس ارتفاع الهيدر */
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);

    padding: 10px 20px;
}

/* CONTAINER */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* BUTTON */
.header-btn {
    background: #f4a300;
    padding: 8px 16px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap; /* 🔥 مهم */
    font-size: 14px;
}

/* 📱 MOBILE FIX */
@media(max-width: 768px){

    .header-container {
        flex-direction: row; /* نحافظ صف واحد */
        gap: 10px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

}

body {
    overflow-x: hidden;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;   /* 🔥 هذا أهم شيء */
    display: block;
    /*border-radius: 12px;*/
}

/* 🔥 ضمان عدم خروج أي عنصر */
.cert-box {
    width: 100%;
    overflow: hidden;
}

/* 🔥 سلايدر الشهادات */
.cert-slider {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* 🔥 المسار */
.cert-track {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* 🔥 الصور */
.cert-track img {
    width: 120px;
    height: 120px;
    object-fit: contain; /* مهم عشان ما تنقص الصورة */
    flex-shrink: 0;
}

/* 📱 موبايل */
@media(max-width:768px){

    .contact-container {
        grid-template-columns: 1fr; /* 🔥 يخليهم تحت بعض */
        padding: 40px 20px;
    }

    .cert-track img {
        width: 90px;
        height: 90px;
    }

    .cert-box {
        align-items: center;
        text-align: center;
    }

}

.cert-slider {
    width: 100%;
}

.cert-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 💻 لابتوب */
    gap: 20px;
    align-items: center;
}

.cert-track img {
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: contain;
    margin: auto;
}

@media(max-width:768px){

    .cert-track {
        grid-template-columns: repeat(2, 1fr); /* 🔥 صورتين في كل صف */
        gap: 15px;
    }

    .cert-track img {
        width: 100%;
        max-width: 120px;
        height: 120px;
        object-fit: contain;
        margin: auto;
    }
}

/* LANGUAGE SWITCHER */
.lang-switcher{
    display:flex;
    gap:8px;
    align-items:center;
}

.lang-btn{
    padding:6px 14px;
    border-radius:20px;
    text-decoration:none;

    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-color:#f4a300;
    color:#000000; /* باهت */

    font-size:13px;
    font-weight:600;

    transition:0.3s ease;
}

/* الزر المفعل */
/*.lang-btn.active{
    background:#f4a300;
    color:#fff;
    border-color:#f4a300;

    box-shadow:0 4px 12px rgba(244,163,0,0.35);
}*/

/* hover */
.lang-btn:hover{
    transform:translateY(-2px);
}

/* WRAPPER */
.products-wrapper{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;

    -webkit-overflow-scrolling: touch;

    scroll-behavior:smooth;
    padding-bottom:10px;
}

/* اخفاء السكرول */
.products-wrapper::-webkit-scrollbar{
    display:none;
}

/* TRACK */
.products-track{
    display:flex;
    gap:20px;

    width:max-content;
    padding:10px 5px;
}

/* CARD */
.product-card{
    min-width:220px;
    flex-shrink:0;

    background:#fff;
    border-radius:20px;
    overflow:hidden;

    box-shadow:0 4px 15px rgba(0,0,0,0.08);

    text-align:center;
}

/* IMAGE */
.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

/* TITLE */
.product-card h3{
    padding:15px;
    font-size:18px;
}

.products-wrapper{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;

    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
}

.products-wrapper::-webkit-scrollbar{
    display:none;
}

.products-track{
    display:flex;
    gap:20px;

    width:max-content;
}

.product-card{
    min-width:220px;
    flex-shrink:0;
}