/*==========================
        Global
==========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Cairo',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#fff;
    color:#222;
    overflow-x:hidden;
    line-height:1.8;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/*==========================
        Colors
==========================*/

:root{

    --main:#00A651;
    --dark:#007A3D;
    --light:#f5fff8;
    --gray:#666;

}

/*==========================
        Header
==========================*/

header{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    z-index:999;
    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.navbar{

    height:90px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    height:65px;

}

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    color:#222;
    font-size:18px;
    font-weight:700;
    transition:.3s;

}

.nav-links a:hover{

    color:var(--main);

}

.call-btn{

    background:var(--main);
    color:#fff;
    padding:15px 28px;
    border-radius:50px;
    font-weight:700;
    transition:.3s;

}

.call-btn:hover{

    background:var(--dark);

}

/*==========================
            Hero
==========================*/

.hero{

    position:relative;

    height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

    background:url(images/hero.jpg) center center/cover no-repeat;

}

.overlay{

    position:absolute;
    inset:0;
    background:rgba(0,0,0,.60);

}

.shape{

    position:absolute;
    right:-120px;
    top:0;
    width:850px;
    height:100%;
    background:linear-gradient(135deg,#00A651,#00994d);
    clip-path:polygon(25% 0,100% 0,100% 100%,0 100%);
    opacity:.92;

}

.hero-flex{

    position:relative;
    z-index:2;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:70px;

}

.hero-image{

    flex:1;
    display:flex;
    justify-content:center;

}

.hero-image img{

    width:420px;
    filter:drop-shadow(0 20px 40px rgba(0,0,0,.35));

}

.hero-content{

    flex:1;
    color:#fff;

}

.hero-badge{

    display:inline-flex;
    align-items:center;
    gap:10px;

    background:var(--main);

    padding:14px 28px;

    border-radius:50px;

    font-weight:700;

    margin-bottom:30px;

}

.hero-content h1{

    font-size:72px;
    line-height:1.2;
    font-weight:900;
    margin-bottom:25px;

}

.hero-content h1 span{

    display:block;
    color:#7dffb3;

}

.hero-content p{

    font-size:21px;
    line-height:2;
    margin-bottom:40px;
    max-width:650px;

}

.hero-buttons{

    display:flex;
    gap:20px;

}

.btn-red{

    background:var(--main);
    color:#fff;
    padding:18px 40px;
    border-radius:50px;
    font-size:18px;
    font-weight:bold;
    transition:.3s;

}

.btn-red:hover{

    background:var(--dark);

}

.btn-white{

    border:2px solid #fff;
    color:#fff;
    padding:18px 40px;
    border-radius:50px;
    transition:.3s;

}

.btn-white:hover{

    background:#fff;
    color:var(--main);

}
/*==============================
        Devices
==============================*/

.devices{
    padding:100px 0;
    background:#f7faf8;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:45px;
    color:var(--main);
    margin-bottom:15px;
    font-weight:800;
}

.section-title p{
    color:#666;
    font-size:18px;
}

.devices-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.device-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.35s;
    text-align:center;
}

.device-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 45px rgba(0,166,81,.18);
}

.device-card img{
    width:100%;
    height:260px;
    object-fit:contain;
    background:#fff;
    padding:25px;
}

.device-card h3{
    color:var(--main);
    font-size:30px;
    margin:20px 0 10px;
}

.device-card p{
    color:#666;
    line-height:1.9;
    padding:0 22px;
    min-height:80px;
}

.device-card a{
    display:inline-block;
    margin:25px 0 30px;
    background:var(--main);
    color:#fff;
    padding:15px 35px;
    border-radius:50px;
    font-weight:700;
    transition:.3s;
}

.device-card a:hover{
    background:var(--dark);
}

/*==============================
        Why Us
==============================*/

.why-us{
    padding:100px 0;
    background:#fff;
}

.why-us .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.why-image img{
    width:100%;
    max-width:520px;
    margin:auto;
}

.why-content h5{
    color:var(--main);
    font-size:18px;
    margin-bottom:10px;
}

.why-content h2{
    font-size:42px;
    color:#111;
    margin-bottom:25px;
}

.why-content p{
    color:#666;
    line-height:2;
    margin-bottom:35px;
}

.features{
    display:grid;
    gap:20px;
}

.feature{
    display:flex;
    gap:18px;
    background:#fff;
    padding:22px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.feature:hover{
    transform:translateY(-6px);
}

.feature i{
    width:60px;
    height:60px;
    background:var(--main);
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    flex-shrink:0;
}

.feature h3{
    margin-bottom:8px;
    color:#111;
}

.feature p{
    margin:0;
    color:#666;
}

/*==============================
        Counter
==============================*/

.counter{
    background:linear-gradient(135deg,var(--main),var(--dark));
    padding:90px 0;
}

.counter .container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.counter-box{
    background:#fff;
    border-radius:20px;
    padding:35px;
    text-align:center;
    transition:.3s;
}

.counter-box:hover{
    transform:translateY(-8px);
}

.counter-box h2{
    color:var(--main);
    font-size:48px;
    font-weight:900;
    margin-bottom:12px;
}

.counter-box span{
    color:#444;
    font-size:20px;
    font-weight:700;
}
/*==============================
        Articles
==============================*/

.articles-section{
    padding:100px 0;
    background:#f8fbf9;
}

.articles-grid{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.article-card{
    background:#fff;
    border-right:6px solid var(--main);
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.35s;
}

.article-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 45px rgba(0,166,81,.18);
}

.article-card h3{
    color:var(--main);
    font-size:32px;
    margin-bottom:20px;
    display:flex;
    align-items:center;
    gap:12px;
}

.article-card h3 i{
    color:var(--main);
}

.article-card p{
    color:#555;
    font-size:18px;
    line-height:2.1;
    text-align:justify;
}

/*==============================
        Contact
==============================*/

.contact-section{
    padding:100px 0;
    background:#fff;
}

.contact-form{
    max-width:750px;
    margin:auto;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    width:100%;
    padding:18px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:12px;
    outline:none;
    font-size:17px;
    transition:.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    border-color:var(--main);
    box-shadow:0 0 0 4px rgba(0,166,81,.12);
}

.contact-form textarea{
    height:170px;
    resize:none;
}

.contact-form button{
    width:100%;
    background:var(--main);
    color:#fff;
    border:none;
    padding:18px;
    border-radius:12px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.contact-form button:hover{
    background:var(--dark);
}

/*==============================
        Footer
==============================*/

footer{
    background:#111827;
    color:#fff;
    padding:80px 0 25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:45px;
}

.footer-logo{
    width:180px;
    margin-bottom:20px;
}

footer h3{
    margin-bottom:22px;
    font-size:24px;
}

footer p{
    color:#cfd4dc;
    line-height:2;
}

footer a{
    display:block;
    color:#cfd4dc;
    margin-bottom:12px;
    transition:.3s;
}

footer a:hover{
    color:var(--main);
}

.copyright{
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    padding-top:20px;
    color:#9ca3af;
}

/*==============================
        Animation
==============================*/

.device-card,
.feature,
.article-card,
.counter-box{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

0%{
opacity:0;
transform:translateY(40px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

/*==============================
        Responsive
==============================*/

@media(max-width:992px){

.hero-flex,
.why-us .container{
display:grid;
grid-template-columns:1fr;
text-align:center;
}

.devices-grid{
grid-template-columns:repeat(2,1fr);
}

.counter .container{
grid-template-columns:repeat(2,1fr);
}

.footer-grid{
grid-template-columns:1fr;
text-align:center;
}

}

@media(max-width:768px){

.nav-links{
display:none;
}

.hero{
height:auto;
padding:140px 0 80px;
}

.hero-content h1{
font-size:42px;
}

.hero-content p{
font-size:18px;
}

.hero-buttons{
flex-direction:column;
}

.hero-image img{
width:260px;
margin-top:40px;
}

.devices-grid{
grid-template-columns:1fr;
}

.counter .container{
grid-template-columns:1fr;
}

.article-card{
padding:25px;
}

.article-card h3{
font-size:24px;
}

.footer-grid{
gap:30px;
}

}
/*======================
      RED THEME
======================*/

:root{
    --main:#d71920;
    --dark:#a40008;
    --light:#fff5f5;
}

/* العناوين */
.section-title h2,
.hero-content h1 span,
.article-card h3,
.device-card h3,
.why-content h5{
    color:var(--main) !important;
}

/* الأزرار */
.call-btn,
.btn-red,
.device-card a,
.contact-form button{
    background:var(--main) !important;
    color:#fff !important;
}

.call-btn:hover,
.btn-red:hover,
.device-card a:hover,
.contact-form button:hover{
    background:var(--dark) !important;
}

/* زر الخدمات */
.btn-white:hover{
    color:var(--main) !important;
}

/* البادج */
.hero-badge{
    background:var(--main) !important;
    color:#fff;
}

/* أيقونات لماذا تختارنا */
.feature i{
    background:var(--main) !important;
}

/* المقالات */
.article-card{
    border-right:6px solid var(--main) !important;
}

/* العدادات */
.counter{
    background:linear-gradient(135deg,var(--main),var(--dark)) !important;
}

.counter-box h2{
    color:var(--main) !important;
}

/* روابط الناف بار */
.nav-links a:hover{
    color:var(--main) !important;
}

/* الفوتر */
footer a:hover{
    color:var(--main) !important;
}

/* الحقول عند التحديد */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    border-color:var(--main);
    box-shadow:0 0 0 4px rgba(215,25,32,.15);
}
/* ==========================
      RED THEME OVERRIDE
========================== */

:root{
    --main:#d71920 !important;
    --dark:#a40008 !important;
    --light:#fff5f5 !important;
}

/* Hero */
.shape{
    background:linear-gradient(135deg,#d71920,#a40008)!important;
}

.hero-badge{
    background:#d71920!important;
}

.hero-content h1 span{
    color:#ff9a9a!important;
}

/* Buttons */
.call-btn,
.btn-red,
.device-card a,
.contact-form button{
    background:#d71920!important;
    color:#fff!important;
}

.call-btn:hover,
.btn-red:hover,
.device-card a:hover,
.contact-form button:hover{
    background:#a40008!important;
}

.btn-white:hover{
    color:#d71920!important;
}

/* Titles */
.section-title h2,
.device-card h3,
.article-card h3,
.why-content h5{
    color:#d71920!important;
}

/* Icons */
.feature i{
    background:#d71920!important;
}

/* Articles */
.article-card{
    border-right:6px solid #d71920!important;
}

/* Counter */
.counter{
    background:linear-gradient(135deg,#d71920,#a40008)!important;
}

.counter-box h2{
    color:#d71920!important;
}

/* Navbar */
.nav-links a:hover{
    color:#d71920!important;
}

/* Footer */
footer a:hover{
    color:#d71920!important;
}

/* Form */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    border-color:#d71920!important;
    box-shadow:0 0 0 4px rgba(215,25,32,.15)!important;
}
.hero-badge{
    margin-top:80px !important;
}