html{
scroll-behavior:smooth;
}

:root{
--primary-blue:#1A365D;
--secondary-red:#C53030;
--neutral-dark:#2D3748;
--neutral-light:#F7FAFC;
--border-color:#E2E8F0;
--white:#FFFFFF;
}

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

body{
font-family:'Tajawal',sans-serif;
background:var(--white);
color:var(--neutral-dark);
line-height:1.6;
}

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

.site-header{
background:white;
border-bottom:1px solid var(--border-color);
padding:15px 0;
position:sticky;
top:0;
z-index:1000;
}

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

.logo-area{
display:flex;
align-items:center;
gap:12px;
}

.logo-img{
height:70px;
}

.brand-name{
font-size:1.3rem;
font-weight:800;
color:var(--primary-blue);
}

.main-nav{
display:flex;
align-items:center;
}

.main-nav a{
text-decoration:none;
color:var(--neutral-dark);
font-weight:700;
margin-right:25px;
font-size:.95rem;
}

.main-nav a:hover{
color:var(--secondary-red);
}

.menu-toggle{
display:none;
font-size:22px;
cursor:pointer;
}

.hero-flat{
background:url(hero-1.jpg);
background-size:cover;
background-position:center;
padding:110px 0 160px;
color:white;
position:relative;
}

.hero-flat::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.45);
}

/* خلفية SVG هندسية للهيرو */
.hero-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    stroke: rgba(255,255,255,0.15);
    stroke-width: 0.5;
    opacity: 0;
    stroke-dasharray: 1440;
    stroke-dashoffset: 1440;
    animation: heroGridIn 3s ease forwards;
}
.hg-1 { animation-delay: 0s; }
.hg-2 { animation-delay: 0.15s; }
.hg-3 { animation-delay: 0.3s; }
.hg-4 { animation-delay: 0.45s; }
.hg-5 { animation-delay: 0.6s; }
.hg-6 { animation-delay: 0.1s; }
.hg-7 { animation-delay: 0.25s; }
.hg-8 { animation-delay: 0.4s; }
.hg-9 { animation-delay: 0.55s; }
.hg-10 { animation-delay: 0.7s; }
.hg-11 { animation-delay: 0.85s; }

@keyframes heroGridIn {
    0% { opacity: 0; stroke-dashoffset: 1440; }
    100% { opacity: 1; stroke-dashoffset: 0; }
}

.hero-shape {
    fill: none;
    stroke: rgba(255,255,255,0.25);
    stroke-width: 1;
    opacity: 0;
    animation: heroShapeDraw 3s ease forwards;
}
.hs-1 { animation-delay: 0.5s; stroke-dasharray: 720; stroke-dashoffset: 720; }
.hs-2, .hs-3, .hs-4, .hs-5 { animation-delay: 1s; stroke-dasharray: 120; stroke-dashoffset: 120; }
.hs-6 { animation-delay: 0.8s; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hs-7 { animation-delay: 0.6s; stroke-dasharray: 600; stroke-dashoffset: 600; }
.hs-8 { animation-delay: 0.9s; stroke-dasharray: 120; stroke-dashoffset: 120; }
.hs-9 { animation-delay: 1.2s; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hs-10, .hs-11 { animation-delay: 1.4s; stroke-dasharray: 60; stroke-dashoffset: 60; }
.hs-12 { animation-delay: 0.7s; stroke-dasharray: 220; stroke-dashoffset: 220; }
.hs-13 { animation-delay: 1.1s; stroke-dasharray: 200; stroke-dashoffset: 200; }
.hs-14 { animation-delay: 1.3s; stroke-dasharray: 160; stroke-dashoffset: 160; }

@keyframes heroShapeDraw {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 1; stroke-dashoffset: 0; }
}

.hero-pipe {
    stroke: rgba(255,255,255,0.2);
    stroke-width: 1;
    opacity: 0;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: heroPipeDraw 4s ease forwards;
}
.hp-1 { animation-delay: 0.8s; }
.hp-2 { animation-delay: 1.2s; }

@keyframes heroPipeDraw {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 1; stroke-dashoffset: 0; }
}

.hero-diag {
    stroke: rgba(197,48,48,0.3);
    stroke-width: 0.8;
    opacity: 0;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: heroDiagDraw 5s ease forwards;
}
.hd-1 { animation-delay: 0.3s; }
.hd-2 { animation-delay: 0.8s; }
.hd-3 { animation-delay: 1.3s; }

@keyframes heroDiagDraw {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 1; stroke-dashoffset: 0; }
}

.hero-sq {
    fill: rgba(197,48,48,0.45);
    opacity: 0;
    animation: heroSqPop 0.5s ease forwards, heroSqFloat 5s ease-in-out infinite;
}
.hsq-1 { animation-delay: 1s, 1.5s; }
.hsq-2 { animation-delay: 1.5s, 2s; }
.hsq-3 { animation-delay: 2s, 2.5s; }
.hsq-4 { animation-delay: 2.5s, 3s; }

@keyframes heroSqPop {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroSqFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-dot {
    fill: rgba(255,255,255,0.6);
    opacity: 0;
    animation: heroDotPulse 3s ease-in-out infinite;
}
.hdot-1 { animation-delay: 0s; }
.hdot-2 { animation-delay: 0.4s; }
.hdot-3 { animation-delay: 0.8s; }
.hdot-4 { animation-delay: 1.2s; }
.hdot-5 { animation-delay: 0.6s; }
.hdot-6 { animation-delay: 1s; }
.hdot-7 { animation-delay: 1.4s; }
.hdot-8 { animation-delay: 0.2s; }

@keyframes heroDotPulse {
    0%, 100% { opacity: 0.35; r: 4; }
    50% { opacity: 0.8; r: 6; }
}

.hero-content{
position:relative;
max-width:650px;
z-index: 2;
}

.hero-content h1{
font-size:3rem;
font-weight:800;
margin-bottom:20px;
}

.separator{
width:60px;
height:4px;
background:var(--secondary-red);
margin-bottom:25px;
}

.hero-content p{
font-size:1.1rem;
margin-bottom:35px;
color:#E2E8F0;
}

.hero-buttons{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.btn-main{
background:var(--secondary-red);
color:white;
border:none;
padding:12px 30px;
font-weight:700;
cursor:pointer;
font-family:'Tajawal';
text-decoration:none;
display:inline-block;
}

.btn-secondary{
background:transparent;
color:white;
border:1px solid white;
padding:12px 30px;
font-weight:700;
cursor:pointer;
font-family:'Tajawal';
text-decoration:none;
display:inline-block;
}

.services-section{
margin-top:-90px;
position:relative;
z-index:2;
}

.services-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:0;
}

.service-box{
background:white;
padding:50px 35px 45px;
text-align:right;
border:1px solid var(--border-color);
position:relative;
transition:transform 0.3s ease;
}

.service-box:first-child{
border-radius:0 8px 8px 0;
border-left:none;
}

.service-box:last-child{
border-radius:8px 0 0 8px;
border-right:none;
}

.service-box.featured{
background:var(--primary-blue);
color:white;
border-color:var(--primary-blue);
transform:translateY(-15px);
box-shadow:0 20px 40px rgba(26,54,93,0.2);
z-index:1;
padding:65px 35px 60px;
border-radius:8px;
}

.box-number{
font-size:3rem;
font-weight:800;
color:var(--border-color);
line-height:1;
margin-bottom:15px;
letter-spacing:-2px;
}

.featured .box-number{
color:rgba(255,255,255,0.15);
}

.box-line{
width:40px;
height:3px;
background:var(--secondary-red);
margin-bottom:25px;
}

.featured .box-line{
background:white;
}

.box-icon{
font-size:2rem;
color:var(--primary-blue);
margin-bottom:18px;
}

.featured .box-icon{
color:white;
}

.service-box h3{
font-size:1.15rem;
font-weight:800;
margin-bottom:12px;
color:var(--primary-blue);
}

.featured h3{
color:white;
}

.service-box p{
font-size:.9rem;
color:#718096;
line-height:1.7;
}

.featured p{
color:rgba(255,255,255,0.75);
}

.service-box:not(.featured):hover{
transform:translateY(-5px);
box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

@media(max-width:900px){

.main-nav{
position:absolute;
top:70px;
right:0;
background:white;
width:100%;
flex-direction:column;
display:none;
border-bottom:1px solid var(--border-color);
}

.main-nav a{
padding:15px;
margin:0;
border-top:1px solid var(--border-color);
}

.main-nav.active{
display:flex;
}

.menu-toggle{
display:block;
}

.services-grid{
grid-template-columns:1fr;
gap:15px;
}

.service-box:first-child,
.service-box:last-child{
border-radius:8px;
border:1px solid var(--border-color);
}

.service-box.featured{
transform:translateY(0);
padding:50px 35px 45px;
}

.service-box{
text-align:center;
}

.hero-content{
text-align:center;
margin:auto;
}

.separator{
margin:auto auto 25px;
}

.hero-buttons{
justify-content:center;
}

.hero-flat{
padding:80px 0 150px;
}

}

/* تنسيقات قسم من نحن */
.about-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* خلفية SVG هندسية متحركة */
.about-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.about-grid {
    position: relative;
    z-index: 1;
}

/* خطوط الشبكة */
.grid-line {
    stroke: #E2E8F0;
    stroke-width: 0.5;
    opacity: 0;
    animation: fadeInLine 2s ease forwards;
}
.gl-1 { animation-delay: 0s; }
.gl-2 { animation-delay: 0.2s; }
.gl-3 { animation-delay: 0.4s; }
.gl-4 { animation-delay: 0.6s; }
.gl-5 { animation-delay: 0.3s; }
.gl-6 { animation-delay: 0.5s; }
.gl-7 { animation-delay: 0.7s; }
.gl-8 { animation-delay: 0.9s; }

@keyframes fadeInLine {
    0% { opacity: 0; stroke-dasharray: 1440; stroke-dashoffset: 1440; }
    100% { opacity: 0.6; stroke-dasharray: 1440; stroke-dashoffset: 0; }
}

/* أشكال هندسية */
.geo-shape {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 1.5;
    opacity: 0;
    animation: drawShape 3s ease forwards;
}

.shape-1 { animation-delay: 0.5s; stroke-dasharray: 300; stroke-dashoffset: 300; }
.shape-2 { animation-delay: 1s; stroke-dasharray: 300; stroke-dashoffset: 300; }
.shape-3 { animation-delay: 1.5s; stroke-dasharray: 300; stroke-dashoffset: 300; }
.shape-4 { animation-delay: 0.8s; stroke-dasharray: 400; stroke-dashoffset: 400; }
.shape-5 { animation-delay: 1.3s; stroke-dasharray: 480; stroke-dashoffset: 480; }
.shape-6 { animation-delay: 1.7s; stroke-dasharray: 420; stroke-dashoffset: 420; }
.shape-7 { animation-delay: 0.6s; stroke-dasharray: 260; stroke-dashoffset: 260; }
.shape-8 { animation-delay: 1.1s; stroke-dasharray: 200; stroke-dashoffset: 200; }
.shape-9 { animation-delay: 1.6s; stroke-dasharray: 160; stroke-dashoffset: 160; }
.shape-10 { animation-delay: 1.2s; stroke-dasharray: 400; stroke-dashoffset: 400; }
.shape-11 { animation-delay: 1.8s; stroke-dasharray: 400; stroke-dashoffset: 400; }

@keyframes drawShape {
    0% { opacity: 0; }
    20% { opacity: 0.2; }
    100% { opacity: 0.2; stroke-dashoffset: 0; }
}

/* خطوط مائلة */
.diag-line {
    stroke: var(--secondary-red);
    stroke-width: 0.5;
    opacity: 0;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: drawDiag 4s ease forwards;
}
.dl-1 { animation-delay: 0.3s; }
.dl-2 { animation-delay: 0.8s; }
.dl-3 { animation-delay: 1.3s; }

@keyframes drawDiag {
    0% { opacity: 0; }
    20% { opacity: 0.15; }
    100% { opacity: 0.15; stroke-dashoffset: 0; }
}

/* مربعات صغيرة */
.small-sq {
    fill: var(--secondary-red);
    opacity: 0;
    animation: popIn 0.5s ease forwards, floatSq 6s ease-in-out infinite;
}
.sq-1 { animation-delay: 1s, 1.5s; }
.sq-2 { animation-delay: 1.4s, 1.9s; }
.sq-3 { animation-delay: 1.8s, 2.3s; }
.sq-4 { animation-delay: 2.2s, 2.7s; }
.sq-5 { animation-delay: 2.5s, 3s; }

@keyframes popIn {
    0% { opacity: 0; transform: scale(0) rotate(45deg); }
    100% { opacity: 0.35; transform: scale(1) rotate(45deg); }
}

@keyframes floatSq {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-8px) rotate(45deg); }
}

/* نقاط التقاطع */
.dot {
    fill: var(--primary-blue);
    opacity: 0;
    animation: pulseDot 3s ease-in-out infinite;
}
.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.4s; }
.dot-3 { animation-delay: 0.8s; }
.dot-4 { animation-delay: 1.2s; }
.dot-5 { animation-delay: 1.6s; }
.dot-6 { animation-delay: 0.6s; }
.dot-7 { animation-delay: 1s; }
.dot-8 { animation-delay: 1.4s; }

@keyframes pulseDot {
    0%, 100% { opacity: 0.25; r: 4; }
    50% { opacity: 0.5; r: 6; }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.sub-title {
    color: var(--secondary-red);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.about-text p {
    margin-bottom: 30px;
    color: #4A5568;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.about-features li i {
    color: var(--secondary-red);
    font-size: 1.4rem;
    margin-top: 5px;
}

.about-features li strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-features li span {
    font-size: 0.95rem;
    color: #718096;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 20px 20px 0px var(--neutral-light);
}

/* التوافق مع الجوال */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-features li {
        text-align: right;
    }
    
    .about-image {
        order: -1; /* تجعل الصورة تظهر قبل النص في الجوال */
    }
    
    .about-image img {
        box-shadow: 10px 10px 0px var(--neutral-light);
    }
}

/* قسم القيم والرؤية */
.values-section {
    padding: 30px 0;
    background: #0A1A30;
    color: white;
    position: relative;
    overflow: hidden;
}

.values-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.v-grid {
    stroke: rgba(255,255,255,0.06);
    stroke-width: 0.5;
}

.v-shape {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.v-diag {
    stroke: rgba(197,48,48,0.12);
    stroke-width: 0.5;
}

.v-dot {
    fill: rgba(255,255,255,0.2);
}

.values-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.values-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-red);
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(197,48,48,0.4);
    padding: 5px 18px;
    border-radius: 2px;
}

.values-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.values-separator {
    width: 50px;
    height: 3px;
    background: var(--secondary-red);
    margin: 0 auto 25px;
}

.values-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 25px 22px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.value-card:hover {
    background: rgba(255,255,255,0.08);
}

.value-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 4px;
}

.value-icon i {
    font-size: 1.3rem;
    color: var(--secondary-red);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.value-line {
    width: 30px;
    height: 2px;
    background: var(--secondary-red);
    margin-bottom: 18px;
}

.value-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-header {
        margin-bottom: 15px;
    }
}


/* تنسيقات قسم التواصل */
@keyframes geoMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 15px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes geoMove2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 25px) rotate(-120deg); }
    66% { transform: translate(20px, -10px) rotate(-240deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

.contact-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(26, 54, 93, 0.07);
    border-radius: 50%;
    animation: geoMove 20s linear infinite;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(197, 48, 48, 0.06);
    animation: geoMove2 25s linear infinite;
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.1);
    border-color: var(--primary-blue);
}

.info-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.info-card p {
    font-size: 0.95rem;
    color: #4A5568;
}

.card-icon {
    font-size: 1.4rem;
    color: var(--secondary-red);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 48, 48, 0.08);
    border-radius: 50%;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.info-card:hover .card-icon {
    background: var(--secondary-red);
    color: #fff;
    transform: scale(1.1);
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

.map-wrapper iframe {
    display: block;
}

/* تنسيق النموذج */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Tajawal', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-blue);
}

/* التذييل */
.site-footer {
    background: var(--primary-blue);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* الجوال */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}


.b-logo 
{
    font-size: 4mm;
    color: #d1272c;
}