/* --- Root Variables --- */
:root {
    --primary-color: #5b971c; 
    --hover-color: #446124;
    --dark-bg: #111111;
    --text-white: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.85); /* Slightly darker for better visibility */
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Background Image with Overlay */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url("pix/all+\ \(1\).png") no-repeat center center fixed;
    background-size: cover;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* --- Navbar Styling --- */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 0; 
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);  
    border-bottom: 1px solid var(--glass-border);
    height: 90px; 
    display: flex;
    align-items: center;
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 95%; 
    margin: 0 auto;
    padding: 0 20px;
}

/* تعديل اللوجو */
.logo {
    display: flex;
    align-items: center;
    margin-left: -10px; 
}

.logo img {
    height: 65px; 
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-white);
    padding: 10px 15px; 
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links li {
    margin-left: 10px;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
}


.nav-links li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 15px; 
    transition: 0.3s;
}

.nav-links li a:hover::after {
    width: calc(100% - 30px);  
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;  
}


.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2; 
    transform: translate(-50%, -50%);
    object-fit: cover; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: -1; 
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
} 
.main-logo {
    max-width: 280px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

#typed {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 10px;
    opacity: 0.9;
}

.btn-main {
    background: var(--primary-color);
    color: white;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(91, 151, 28, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 14px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px;
    display: inline-block;
    transition: var(--transition);
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(91, 151, 28, 0.5);
}

.btn-outline:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
}


.about-section {
    padding: 50px 0;
    direction: rtl; 
    font-family: Arial, sans-serif;
}

.container {
    width: 80%;
    margin: auto;
}

.about-content {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}

.about-image {
    flex: 1; 
}

.about-image img {
    width: 100%;
    height: auto;
    border: none;      
    border-radius: 0;   
    box-shadow: none;   
}

.about-text {
    flex: 1; 
    text-align: left;
}

.about-text h2 {
    font-size: 32px;
    color:#70A143;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column; 
        text-align: center;
    }
}


/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: rgba(0,0,0,0.6);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.f-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    transition: var(--transition);
}

.f-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.f-box i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}


.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    /*background: #fdfdfd;*/
}

.box-track {
    display: flex;
    width: calc(250px * 20); 
    animation: scrollSlider 40s linear infinite; 
}


.slider-container:hover .box-track {
    animation-play-state: paused;
}

.gallery-slider-section {
    padding: 50px 0;  
  
}


.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;  
    position: relative;
}


.box-track {
    display: flex;
    width: calc(250px * 20); 
    animation: scrollSlider 40s linear infinite; 
}

.slider-container:hover .box-track {
    animation-play-state: paused;
}


@media (max-width: 768px) {
    .gallery-slider-section {
        padding: 60px 0;
    }
}
@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); }
}


.flip-box {
    background-color: transparent;
    width: 230px;
    height: 300px;
    perspective: 1000px;  
    margin: 0 15px;
    flex-shrink: 0;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}


.flip-box:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}


.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.flip-back {
    background-color: #4CAF50; 
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-back h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.view-btn {
    padding: 8px 15px;
    background: white;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.view-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
/* --- Stats Bar  --- */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 0; 
    background: #558039; 
    color: white;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.9rem; 
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.iso-clean-blueprint {
    padding: 60px 0;
    background-color: #ffffff;
    background-image: radial-gradient(#d1d1d1 0.8px, transparent 0.8px);
    background-size: 30px 30px;
    overflow: hidden;
}

.iso-flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.iso-vertical-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #4CAF50;
    opacity: 0.8;
    border-left: 1px solid #ddd;
    padding-left: 10px;
    height: 150px;
}

.iso-text-content {
    flex: 1.5;
}

.iso-header-group {
    margin-bottom: 30px;
}

.iso-bg-number {
    font-size: 2.5rem; 
    font-weight: 900;
    color: #f5f5f5; 
    display: block;
    line-height: 1;
    margin-bottom: 10px; 
}

.iso-main-title {
    font-size: 1.6rem; 
    color: #222;
    font-weight: 700;
    margin-top: 0; 
    position: relative;
    z-index: 1;
}


.iso-features-list {
    list-style: none;
    padding: 0;
}

.iso-features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.iso-features-list li .num {
    color: #4CAF50;
    font-weight: 700;
    font-family: monospace;
}


.iso-visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cert-border-frame {
    position: relative;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    padding: 15px;
}

.cert-border-frame img {
    max-width: 280px; 
    height: auto;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.08);
}

.stamp-box {
    position: absolute;
    bottom: -5px;
    right: -5px;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    background: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    transform: rotate(-10deg);
    border-radius: 3px;
}


@keyframes certificateWiggle {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px) rotate(-5deg); } 
    75% { transform: translateX(8px) rotate(5deg); }  
    100% { transform: translateX(0); }
}


.cert-border-frame img:hover {
    animation: certificateWiggle 1.5s ease-in-out infinite; 
    cursor: pointer;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.15); 
    transition: box-shadow 0.3s ease;
}
 
.cert-border-frame img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform; 
}

@media (max-width: 768px) {
    .iso-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .iso-vertical-label {
        display: none; 
    }
    .iso-features-list li {
        justify-content: center;
    }
    .cert-border-frame img {
        max-width: 100%;
    }
}

.main-footer {
    background: #111;
    color: #eee;
    padding: 60px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 0.8fr; 
    gap: 30px;
}

.footer-logo img {
    max-width: 140px;
    margin-bottom: 15px;
}

.footer-quote {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 20px;
    font-style: italic;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4CAF50;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    color: #4CAF50;
    margin-top: 5px;
}

.details a, .details p {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 5px;
    transition: 0.3s;
}

.details a:hover {
    color: #4CAF50;
}

.factory-label {
    display: block;
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.factory-block p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 15px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    color: #fff;
    background: #222;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.socials a:hover {
    background: #4CAF50;
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #4CAF50;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}



@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Responsive Styling --- */
/* Mobile Navbar بدون hamburger - الروابط أفقي بس أصغر */
@media (max-width: 992px) {
    .navbar { 
        height: 70px; 
        padding: 0 10px;
    }
    
    .navbar .container {
        padding: 0 10px !important;
    }
    
    .logo {
        margin-left: 0 !important;
    }
    
    .logo img { 
        height: 50px; 
    }
    
    .nav-links {
        display: flex !important;
        gap: 5px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links li {
        margin-left: 0 !important;
    }
    
    .nav-links li a {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        white-space: nowrap;
    }
    
    .hero h1 { 
        font-size: 3rem; 
    }
}

@media (max-width: 600px) {
    .nav-links {
        justify-content: center;
        gap: 3px;
    }
    
    .nav-links li a {
        font-size: 0.8rem !important;
        padding: 6px 8px !important;
    }
    
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero p { 
        font-size: 1.1rem; 
    }
}

