/* =========================
   ROOT VARIABLES
========================= */
:root{
    --primary:#7a0015;
    --primary-hover:#5d0010;
    --accent:#ff7a18;
    --accent-soft:rgba(255,122,24,.08);

    --bg:#f3f4f8;
    --card:#fcfcfd;
    --muted:#eef1f6;

    --text:#1c1c1c;
    --gray:#666;

    --radius:22px;

    --shadow:
    0 10px 30px rgba(17,17,26,.05),
    0 1px 2px rgba(17,17,26,.08);

    --shadow-hover:
    0 20px 40px rgba(17,17,26,.10);
}

/* =========================
   GENERAL RESET
========================= */
body{
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--muted);
    color: var(--text);
    line-height: 1.7;
}

section{
    padding: 80px 0;
    position: relative;
}

/* كل قسم يبقى Block مستقل */
section{
    position: relative;
    padding: 90px 0;
}

.services-section,
.portfolio-section,
.contact-section{
    background: linear-gradient(
        to bottom,
        #ffffff,
        #f7f8fb
    );
}

.technologies-section,
.packages-section,
.why-section{
    background: #eef1f6;
}

/* =========================
   CONTAINER
========================= */
.container{
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   SECTION TITLE
========================= */
.section-title{
    text-align: center;
    margin-bottom: 50px;
}

/* =========================
   BADGES
========================= */

/* badges الخاصة بالأقسام */

.section-badge{
    display:inline-flex;
    align-items:center;

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;
    font-weight:700;

    background:
    linear-gradient(
        135deg,
        rgba(255,122,24,.12),
        rgba(122,0,21,.08)
    );

    color:var(--primary);

    border:
    1px solid rgba(122,0,21,.08);

    box-shadow:
    0 8px 20px rgba(122,0,21,.08);

    margin-bottom:12px;
}

/* Hero badge فقط */

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    background:
    rgba(255,255,255,.12);

    border:
    1px solid rgba(255,255,255,.15);

    backdrop-filter: blur(12px);

    color:#fff;

    padding:10px 18px;
    border-radius:50px;

    font-size:14px;
    font-weight:600;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);
}

.section-title h2{
    font-size: 34px;
    margin-bottom: 10px;
}

.section-title p{
    color: var(--gray);
    max-width: 700px;
    margin: auto;
}

/* =========================
   HERO SECTION
========================= */
.hero-section{
    background:
    radial-gradient(
        circle at top right,
        rgba(255,122,24,.22),
        transparent 30%
    ),

    linear-gradient(
        135deg,
        #5d0010 0%,
        #7a0015 40%,
        #2d0009 100%
    );

    color:#fff;
    text-align:center;
    padding:130px 0;
    position:relative;
    overflow:hidden;
}

.hero-section h2{
    font-size: 42px;
    margin: 10px 0;
}

.hero-section p{
    max-width: 750px;
    margin: 20px auto;
    opacity: .9;
}

.hero-buttons{
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary,
.card a{
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s ease;
}

.btn-primary{
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,122,24,.3);
}

.btn-primary:hover{
    transform: translateY(-3px);
    background: #ff5f00;
}

.btn-secondary{
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover{
    background: #fff;
    color: var(--primary);
}

/* =========================
   GRID SYSTEM
========================= */
.grid{
    display: grid;
    gap: 25px;
}

.grid-3{
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =========================
   CARDS
========================= */
.card{
    background: var(--card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: .3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.card:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

/* أيقونات */
.service-icon,
.why-icon{
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--accent);
}

/* =========================
   PORTFOLIO
========================= */
.portfolio-item{
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}

.portfolio-item:hover{
    transform: translateY(-6px);
}

.portfolio-content{
    padding: 20px;
}

.portfolio-content a{
    color: var(--primary);
    font-weight: 600;
}

/* =========================
   PACKAGES scale(1.03)* translateY(-6px)
========================= */
.featured{
    border: 2px solid var(--accent);
    transform: scale(1.03);
}

.recommended{
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 50px;
    
}

/* =========================
   TECHNOLOGIES TAGS
========================= */
.technologies-section .card{
    text-align: center;
    font-weight: 600;
    background: linear-gradient(145deg, #fff, #f7f7f7);
}

/* =========================
   CONTACT
========================= */
.contact-section{
    background: linear-gradient(135deg, #fff, #f7f7f7);
}

.contact-wrapper{
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item{
    margin-bottom: 15px;
}

.contact-item a{
    color: var(--primary);
    font-weight: 600;
}

/* =========================
   HOVER EFFECT GLOBAL
========================= */
a{
    transition: .3s;
}

a:hover{
    opacity: .9;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */
@media (max-width: 992px){
    .hero-section h2{
        font-size: 32px;
    }

    .section-title h2{
        font-size: 28px;
    }

    section{
        padding: 60px 0;
    }
}

/* Mobile */
@media (max-width: 768px){
    .hero-section{
        padding: 90px 0;
    }

    .hero-section h2{
        font-size: 26px;
    }

    .hero-buttons{
        flex-direction: column;
        align-items: center;
    }

    .grid-3{
        grid-template-columns: 1fr;
    }

    .contact-wrapper{
        padding: 25px;
    }
}

/* Small phones */
@media (max-width: 480px){
    .section-title h2{
        font-size: 22px;
    }

    .btn-primary,
    .btn-secondary{
        width: 100%;
        text-align: center;
    }
}


/* =========================
   CONTACT PREMIUM
========================= */

.contact-section{
    padding: 100px 0;
}

.contact-wrapper{
    background:
    linear-gradient(
        135deg,
        var(--primary),
        #3d000c
    );

    color:#fff;
    border-radius:32px;
    padding:50px;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:35px;
    overflow:hidden;
    position:relative;
}

.contact-wrapper::before{
    content:'';
    position:absolute;
    width:300px;
    height:300px;
    background:rgba(255,122,24,.08);
    border-radius:50%;
    top:-100px;
    right:-100px;
}

.contact-content{
    background:transparent;
    box-shadow:none;
    padding:0;
}

.contact-content h2{
    color:#fff;
    font-size:42px;
}

.contact-content p{
    color:rgba(255,255,255,.8);
}

/* contact cards */

.contact-info{
    display:grid;
    gap:18px;
}

.contact-item{
    background:
    rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    border:1px solid
    rgba(255,255,255,.08);

    padding:20px;
    border-radius:20px;
    transition:.3s ease;
}

.contact-item:hover{
    transform:translateY(-6px);
    background:
    rgba(255,255,255,.12);
}

.contact-item strong{
    display:block;
    margin-bottom:8px;
    font-size:17px;
}

.contact-item a{
    color:#fff;
}

.contact-buttons{
    margin-top:30px;
}

/* mobile */

@media(max-width:768px){

 
    .contact-wrapper{
        grid-template-columns:1fr;
        padding:30px;
        border-radius:24px;
    }

    .contact-content h2{
        font-size:30px;
    }
}

/* ====================================
   PORTFOLIO SLIDER
==================================== */

.portfolio-slider{
    position:relative;
    overflow:hidden;
    background:#f5f5f5;
    border-radius:18px 18px 0 0;
    direction: ltr;
}

.portfolio-slider .slides{
    display:flex;
    transition:transform .7s ease;
    will-change:transform;
    direction: ltr;
}

.portfolio-slider .slides img{
    width:100%;
    height:420px;
    object-fit:contain;
    display:block;
    background:#f5f5f5;
}

/* Pause slider on hover 

.portfolio-slider:hover .slides{
    transition:transform .7s ease;
}
*/

/* ====================================
   LIGHTBOX
==================================== */

.portfolio-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
    padding:30px;
}

.portfolio-lightbox.active{
    opacity:1;
    visibility:visible;
}

.portfolio-lightbox img{
    max-width:95vw;
    max-height:92vh;
    object-fit:contain;
    border-radius:16px;
    box-shadow:0 15px 60px rgba(0,0,0,.45);
}

.lightbox-close{
    position:absolute;
    top:20px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:30px;
    cursor:pointer;
    transition:.25s ease;
}

.lightbox-close:hover{
    background:rgba(255,255,255,.2);
}

.portfolio-slider img{
    cursor:pointer;
}

.portfolio-slider .slide{
    flex:0 0 100%;
}

/* Mobile */

@media(max-width:768px){

    .portfolio-slider .slides img{
        height:240px;
    }

}

/* Contact badge fix */

.contact-section .section-badge{
    background:
    rgba(255,255,255,.12);

    border:
    1px solid rgba(255,255,255,.15);

    backdrop-filter: blur(12px);

    color:#fff;

    box-shadow:
    0 8px 25px rgba(0,0,0,.15);
}



/* =========================
   PAGE H1
========================= */

.page-header h1,
.item-page h1,
.blog-item h1{
    font-size: clamp(2rem, 4vw, 3.8rem);

    line-height:1.15;
    font-weight:800;

    color:var(--primary);

    margin-bottom:18px;

    letter-spacing:-1.5px;

    position:relative;

    max-width:900px;
}

/* underline accent */

.page-header h1::after,
.item-page h1::after,
.blog-item h1::after{
    content:'';

    display:block;

    width:90px;
    height:6px;

    margin-top:18px;

    border-radius:50px;

    background:
    linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );

    box-shadow:
    0 6px 18px rgba(255,122,24,.25);
}

.price-note {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 5px;
}

