*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --bg-deepest: #050510;
    --bg-dark: #0b0b16;
    --bg-card: #0f0f1e;
    --purple: #601cfc;
    --purple-light: #7a3dff;
    --grad: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    --text-body: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-soft: rgba(96, 28, 252, 0.2);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
body{
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1b0230;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, .logo-text, .section-title, .package-price, .process-number{
    font-family: 'El Messiri', 'Cairo', serif;
}
html{
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   Scroll reveal system
=========================== */
.reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.reveal-scale{
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.is-visible{
    opacity: 1;
    transform: scale(1);
}

/* ===========================
   Site loader / page fade-in
=========================== */
body.page-enter{
    animation: pageFadeIn 0.6s var(--ease) both;
}
@keyframes pageFadeIn{
    from{ opacity: 0; transform: translateY(10px); }
    to{ opacity: 1; transform: translateY(0); }
}

/* ===========================
   Ink/brush section divider (signature element)
=========================== */
.ink-divider{
    display: flex;
    justify-content: center;
    padding: 0 0 0.5rem 0;
    background: inherit;
}
.ink-divider svg{
    width: min(360px, 70%);
    height: 28px;
    overflow: visible;
}
.ink-divider path{
    fill: none;
    stroke: url(#inkGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 1.4s var(--ease);
}
.ink-divider.is-visible path{
    stroke-dashoffset: 0;
}

/* ===========================
   Nav scroll state + active link
=========================== */
.nav{
    transition: padding 0.35s var(--ease), background-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled{
    padding: 0.15rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.nav-links a{
    position: relative;
}
.nav-links a::after{
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after{
    width: 100%;
}
.nav-links a.active{
    color: #fff;
}

.nav-logo{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: -10000px;
    text-decoration: none;
    padding-right: 10px;
}
.container{
    width: 100%;
    max-width: 1200px;
    margin:  auto;
    padding: 0 16px;
}
.logo-img{
    width: 75px;
    height: auto;
}
.logo-text{
    font-size: 1.1rem;
    font: optional;
    font-weight:700;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav{
    position: sticky;
    top: 0;
    background-color: rgba(5,5,16,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(96, 28, 252, 0.2);
    z-index: 9999;
    padding: 0.50rem 0;
}
.nav-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-links{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;

}
.nav-links a{
    color: aliceblue;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover{
     color: #420673;
     
}
.lamsa-brand{
     background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}
.hero{
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    overflow: hidden;
}

.hero-background-image{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.3) contrast(1.2);
}
.hero::before{
    content: "";
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 22, 0.7) 0%, rgba(26, 10, 46, 0.7) 50%, rgba(11, 11, 22, 0.7) 100%);
}
.hero-content{
    z-index: 2;
    text-align: center;
    max-width: 900px;
}
.hero-title{
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
}
.hero-subtitle{
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 30px;
}
.hero-buttons{
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn{
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 220px;
    text-decoration: none;
    border-radius: 8px;
    transform:all 0.3s ease;
}
.btn-primiary{
    background-color:#601cfc;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(96, 28, 252, 0.4);
    
}
.btn-primiary:hover{
    background-color:#7a3dff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(96, 28, 252, 0.6);
}
.btn-secondary{
    background-color:transparent;
    color:#601cfc;
    box-shadow:0 10px 40px  rgba(96, 28, 252, 0.4);
    border:2px solid #601cfc;
}
.btn-secondary:hover{
    background-color:rgba(96, 28, 252, 0.1);
    transform: translateY(-2px);
    
}
.hero-icons{
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;   
    opacity: 0.6; 
}
.hero-blob{
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
}
.hero-blob.b1{
    width: 320px; height: 320px;
    top: -60px; right: 8%;
    background: radial-gradient(circle, #9e33f6, transparent 70%);
}
.hero-blob.b2{
    width: 280px; height: 280px;
    bottom: -40px; left: 6%;
    background: radial-gradient(circle, #2e77e8, transparent 70%);
}
.hero-eyebrow{
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(96, 28, 252, 0.18);
    border: 1px solid rgba(96, 28, 252, 0.4);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* ===========================
   Interior page hero
=========================== */
.page-hero{
    position: relative;
    padding: 8.5rem 0 4rem 0;
    text-align: center;
    background: var(--bg-deepest);
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.page-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(96,28,252,0.25), transparent 55%),
                radial-gradient(circle at 75% 60%, rgba(255,61,95,0.15), transparent 50%);
    z-index: 0;
}
.page-hero-content{
    position: relative;
    z-index: 1;
}
.page-hero-title{
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}
.page-hero-subtitle{
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.breadcrumb{
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.breadcrumb a{
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover{
    color: #fff;
}

/* ===========================
   Stats counters
=========================== */
.stats-section{
    background: var(--bg-dark);
}
.stats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.stat-number{
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label{
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================
   Services strip (home)
=========================== */
.services-section{
    background: var(--bg-deepest);
}
.services-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.service-card{
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover{
    transform: translateY(-8px);
    border-color: rgba(96,28,252,0.55);
    box-shadow: 0 15px 35px rgba(96,28,252,0.25);
}
.service-icon{
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(96,28,252,0.15);
    font-size: 1.4rem;
    background-image: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--border-soft);
}
.service-title{
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.service-desc{
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===========================
   CTA banner
=========================== */
.cta-banner{
    background: linear-gradient(120deg, rgba(96,28,252,0.18), rgba(46,119,232,0.12));
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
    padding: 4.5rem 0;
}
.cta-banner h2{
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 1rem;
    color: #fff;
}
.cta-banner p{
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===========================
   Featured work "see all" link
=========================== */
.section-link-wrap{
    text-align: center;
    margin-top: 2.5rem;
}
.section-link{
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    background-image: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}
.section-link i{
    color: #9e33f6;
    -webkit-text-fill-color: initial;
}
.section-link:hover{
    gap: 0.9rem;
}

/* ===========================
   Works page filter tabs
=========================== */
.filter-tabs{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}
.filter-tab{
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}
.filter-tab:hover{
    color: #fff;
    border-color: rgba(96,28,252,0.5);
}
.filter-tab.active{
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    box-shadow: 0 6px 20px rgba(96,28,252,0.4);
}
.project-card.filtered-out{
    display: none !important;
}

/* Filtered works should appear immediately when their category is selected. */
body:has(.page-hero-title) .project-grid .project-card.is-visible{
    opacity: 1;
    visibility: visible;
}

/* ===========================
   Timeline (about page process)
=========================== */
.timeline{
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.timeline::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 34px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(96,28,252,0.6), rgba(96,28,252,0.05));
}
.timeline-item{
    position: relative;
    padding-right: 90px;
    margin-bottom: 3rem;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-marker{
    position: absolute;
    right: 12px;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}
.timeline-item h3{
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.timeline-item p{
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===========================
   Back to top
=========================== */
.back-to-top{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(96,28,252,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.35s var(--ease);
}
.back-to-top.show{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover{
    background: var(--purple);
    border-color: var(--purple);
}
.section{
    padding: 6rem 0;
}

.section-title{
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight:700;
    text-align:center;
    margin-bottom: 1rem;
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle{
    font-size:1.1rem;
    
    text-align:center;
    margin-bottom: 4rem;
    color: #b0b0b0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.project-header{
    background-color: #050510;
}
.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card{
    background-color: #0f0f1e;
    border-radius: 12px;
    overflow: hidden;
    border:1px solid rgba(96, 28, 252, 0.2) ;
    transition:transform 0.3s ease, box-shadow 0.3s ease ;
}
.project-card:hover{
    transform:translateY(-8px);
    box-shadow: 0 12px 40px rgba(96, 28, 252,0.4);
    border-color: rgba(96,28,252, 0.5);
}
.project-thumbnail{
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a2e;
}
.project-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:transfrom 4s ease;

}
.project-card:hover .project-thumbnail img{
    transform: scale(1.08);
}

.project-content{
    padding: 18px;
}
.project-label{
    font-size: 18px;
    font-weight:700 ;
    margin-bottom: 0.75rem;
}
.project-description{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    color: #b0b0b0;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.about-section{
    background-color: #0b0b16;
}
.about-grid{
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap:30px;
    align-items: stretch;
    max-width: 1100px;
    margin:0 auto;
}
.about-image-wrapper{
    border-radius: 12px;
    max-width: 320px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(96, 28, 252, 0.3);
    height: 100%;
}
.about-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text{
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 2rem;
    text-align: center;
}
.skills-section{
    background-color: #0f0f1e;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 28, 252, 0.2);
}
.skills-title{
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: right;
}
.skills-list{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220, 1fr));
    gap:1rem
}
.skills-list li{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d0d0d0;
}
.skills-list i{
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
    min-width: 20px;
}
.process-section{
    background-color: #050510;
}
.process-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.process-step{
    text-align: center;
    padding: 2rem;
    background-color: #0f0f1e;
    border: 1px solid rgba(96, 28, 252, 0.2);
    transition: border-color 0.3 ease;
}
.process-step:hover{
    border-color: rgba(96,28,252, 0.5);
}
.process-number{
    font-size: 3rem;
    font-weight: 800;
    color: #601cfc;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.process-step-title{
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(to left, #ff8f00, #ff3d5f, #9e33f6, #2e77e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.process-step-discription{
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.testimonials-section{
    background-color: #0b0b16;
}
.testimonials-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap:2rem;
    max-width: 1100px;
    margin:0 auto;
}
.testimonial-card{
    background-color: #0f0f1e;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 28, 252, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover{
    border-color: rgba(96, 28, 252, 0.5);
    transform: translateY(-11px);
}
.testimonial-quote{
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d0d0d0;
    font-style: italic;
}
.testimonial-auther{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.testimonial-auther strong{
    color: #ffffff;
    font-size: 1.05rem;
}
.testimonial-auther span{
    color: #b0b0b0;
    font-size: 0.9rem;
}
.faq-section{
    background-color: #050510;
}
.faq-list{
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item{
    background-color: 0f0f1e;
    border: 1px solid rgba(96, 28, 252, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover{
    border-color:rgba(96, 28, 252, 0.5) ;
}
.faq-item[open]{
    border-color:#601cfc ;
}
.faq-question{
    padding: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-items: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.faq-question:hover{
    background-color: rgba(96, 28, 252, 0.5);
}
.faq-question::after{
    content: "+";
    font-size: 1.5rem;
    color: #601cfc;
    transform: transform 0.3s ease;
}
.faq-item[open] .faq-question::after{
    content:"-";
    transform: rotate(180deg);
}
.faq-answer{
    padding: 0 1.5rem 1.5rem 1.5rem;
}
.faq-answer p{
    color:#b0b0b0;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
  background-color: #0b0b16;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  background-color: #0f0f1e;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 28, 252, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  background-color: #1a1a2e;
  border: 1px solid rgba(96, 28, 252, 0.3);
  border-radius: 6px;
  color: #e0e0e0;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #601cfc;
  box-shadow: 0 0 0 3px rgba(96, 28, 252, 0.2);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #d0d0d0;
  font-size: 0.95rem;
}

.checkbox-label input,
.radio-label input {
  width: auto;
  cursor: pointer;
  accent-color: #601cfc;
}

.checkbox-label:hover,
.radio-label:hover {
  color: #ffffff;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1.125rem;
  
}


.contact-direct {
  text-align: center;
  font-size: 1.05rem;
  color: #b0b0b0;
}

.contact-direct a {
  color: #601cfc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-direct a:hover {
  color: #7a3dff;
  text-decoration: underline;
}


/* Footer */
.footer {
  background-color: #050510;
  padding: 3rem 0;
  border-top: 1px solid rgba(96, 28, 252, 0.2);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  color: #b0b0b0;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #601cfc;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #7a3dff;
  transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-text {
    text-align: center;
  }
  .skills-title {
    text-align: center;
  }
}



@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .checkbox-group,
  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
.menu-toggle{
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transform: color 0.3s ease;

}


@media (max-width:768px){

.menu-toggle{
    display:block;
    background:none;
    border:none;
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

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

.nav-links{
    position:fixed;
    top:70px;
    right:-100%;
    width:260px;
    height:calc(100vh - 70px);
    background:#0f0f1e;
    display:flex;
    flex-direction:column;
    gap:20px;
    padding:30px 20px;
    transition:.3s;
    z-index:9999;
}

.nav-links.active{
    right:0;
}

.nav-links li{
    width:100%;
}

.nav-links a{
    display:block;
    width:100%;
    font-size:18px;
    padding:12px 0;
}
}

.packages-section{
    background:#0b0b16;
}

.packages-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
    margin-top:40px;
}

.package-card{
    background:#0f0f1e;
    border:1px solid rgba(96,28,252,.25);
    border-radius:18px;
    padding:35px 25px;
    text-align:center;
    transition:.35s;
    position:relative;
}

.package-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(96,28,252,.35);
    border-color:#601cfc;
}

.package-card h3{
    font-size:1.7rem;
    color:#fff;
    margin-bottom:15px;
}

.package-price{
    display:block;
    font-size:2rem;
    font-weight:bold;
    color:#ff8f00;
    margin-bottom:25px;
}

.package-card ul{
    list-style:none;
    text-align:right;
    margin-bottom:30px;
}

.package-card ul li{
    margin:12px 0;
    color:#d0d0d0;
}

.featured{
    transform:scale(1.05);
    border:2px solid #601cfc;
}

.badge{
    position:absolute;
    top:-14px;
    left:50%;
    transform:translateX(-50%);
    background:#601cfc;
    color:#fff;
    padding:7px 18px;
    border-radius:50px;
    font-size:.9rem;
    font-weight:bold;
}

.package-btn{
    width:100%;
}
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    z-index:99999;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.modal.active{
    display:flex;
}

.modal-content{
    background:#0f0f1e;
    border-radius:20px;
    max-width:900px;
    width:100%;
    overflow:hidden;
}

.modal-content img{
    width:100%;
    max-height:70vh;
    object-fit:contain;
}

.modal-info{
    padding:20px;
}

.close-modal{
    position:absolute;
    top:20px;
    left:25px;
    color:white;
    font-size:40px;
    cursor:pointer;
}
.projects-header{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin-bottom:30px;
}

#toggleProjects{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#601cfc;
    color:#fff;
    cursor:pointer;
    font-size:20px;
}

#toggleProjects:hover{
    background:#7a3dff;
}

.hide-projects{
    display:none;
}

/* ===========================
   نافذة عرض التصميم
=========================== */

.modal{
    animation:fadeIn .3s ease;
}

.modal-content{
    width:95%;
    max-width:500px;
    animation:zoomIn .35s ease;
}

.modal-content img{
    width:100%;
    max-height:65vh;
    object-fit:contain;
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

@keyframes zoomIn{
    from{
        transform:scale(.8);
    }
    to{
        transform:scale(1);
    }
}

/* ===========================
   زر واتساب ثابت
=========================== */

.floating-whatsapp{
    position:fixed;
    bottom:20px;
    left:20px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    text-decoration:none;
    z-index:99999;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
    transition:.3s;
}

.floating-whatsapp:hover{
    transform:scale(1.1);
}
html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
}

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 16px;
}

*{
    box-sizing:border-box;
}
/* =========================================================
   LAMSA DESIGN — SAFE MOTION LAYER
   Built on the original design; no existing component removed.
========================================================= */
:root{
  --motion-purple:#8b5cf6;
  --motion-pink:#f43f5e;
  --motion-orange:#ff9f1c;
  --motion-blue:#38bdf8;
  --motion-line:rgba(255,255,255,.12);
  --motion-glass:rgba(255,255,255,.045);
}
body{position:relative;isolation:isolate}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.35;background:radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,20%),rgba(139,92,246,.14),transparent 28%),radial-gradient(circle at 15% 85%,rgba(244,63,94,.08),transparent 23rem),radial-gradient(circle at 85% 25%,rgba(56,189,248,.06),transparent 20rem)}

/* Ambient moving grid */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-2;opacity:.12;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:70px 70px;mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 80%,transparent)}

/* Navigation depth */
.nav{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:transform .4s ease,box-shadow .4s ease,background .4s ease}
.nav.scrolled{box-shadow:0 18px 50px rgba(0,0,0,.28)}
.nav-logo{transition:transform .45s cubic-bezier(.22,1,.36,1)}
.nav-logo:hover{transform:translateY(-3px) rotate(-1deg)}
.nav-links a{position:relative}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;transform:scaleX(0);transform-origin:right;background:linear-gradient(90deg,var(--motion-orange),var(--motion-pink),var(--motion-purple));transition:transform .35s ease}
.nav-links a:hover::after,.nav-links a.active::after{transform:scaleX(1);transform-origin:left}

/* Hero motion without changing structure */
.hero{overflow:hidden;isolation:isolate}
.hero::before{content:"";position:absolute;inset:-30%;z-index:0;pointer-events:none;background:conic-gradient(from 0deg,transparent 0 72%,rgba(139,92,246,.10),transparent 86%);animation:heroSpin 18s linear infinite}
@keyframes heroSpin{to{transform:rotate(360deg)}}
.hero-background-image{transition:transform 1.2s cubic-bezier(.22,1,.36,1),filter 1.2s ease}
.hero:hover .hero-background-image{transform:scale(1.035);filter:saturate(1.08) contrast(1.04)}
.hero-content{position:relative}
.hero-title{animation:titleFloat 6s ease-in-out infinite alternate}
@keyframes titleFloat{to{transform:translate3d(0,-7px,0)}}
.hero-buttons .btn{position:relative;overflow:hidden;transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease}
.hero-buttons .btn::before,.btn::before{content:"";position:absolute;width:130px;height:130px;border-radius:50%;left:var(--mx-btn,-130px);top:var(--my-btn,-130px);transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(255,255,255,.22),transparent 68%);pointer-events:none;transition:left .15s ease,top .15s ease}
.hero-buttons .btn:hover{transform:translateY(-5px) scale(1.025);box-shadow:0 18px 45px rgba(96,28,252,.27)}

/* Moving ribbon */
.lamsa-motion-ribbon{display:flex;overflow:hidden;border-block:1px solid var(--motion-line);background:rgba(255,255,255,.025);transform:rotate(-.7deg) scale(1.015);margin:20px 0 8px;white-space:nowrap;pointer-events:none}
.lamsa-motion-ribbon span{display:inline-block;padding:10px 28px;font-family:'El Messiri','Cairo',sans-serif;font-weight:700;letter-spacing:.08em;color:rgba(255,255,255,.58);animation:lamsaMarquee 20s linear infinite}
.lamsa-motion-ribbon b{color:#fff;margin:0 14px}
@keyframes lamsaMarquee{to{transform:translateX(-100%)}}

/* Section titles */
.section-title{position:relative;width:max-content;max-width:100%}
.section-title::after{content:"";display:block;width:52%;height:3px;margin-top:12px;border-radius:20px;background:linear-gradient(90deg,var(--motion-orange),var(--motion-pink),var(--motion-purple));transform-origin:right;animation:titleLine 3s ease-in-out infinite alternate}
@keyframes titleLine{to{width:90%;filter:brightness(1.25)}}

/* Statistics: more alive, same markup */
.stats-grid>div{position:relative;padding:22px 14px;border:1px solid transparent;border-radius:24px;transition:transform .45s ease,border-color .45s ease,background .45s ease,box-shadow .45s ease}
.stats-grid>div:hover{transform:translateY(-10px);border-color:rgba(139,92,246,.28);background:var(--motion-glass);box-shadow:0 24px 55px rgba(0,0,0,.22)}
.stat-number{text-shadow:0 0 30px rgba(139,92,246,.18)}

/* Services: depth + glow */
.service-card{position:relative;overflow:hidden;transform:translateZ(0);transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .4s ease,box-shadow .5s ease}
.service-card::before{content:"";position:absolute;inset:-55%;background:conic-gradient(from 0deg,transparent 0 30%,rgba(139,92,246,.25),transparent 47%);opacity:0;transition:opacity .4s ease;animation:serviceSpin 8s linear infinite;pointer-events:none}
@keyframes serviceSpin{to{transform:rotate(360deg)}}
.service-card::after{content:"";position:absolute;inset:1px;border-radius:inherit;background:rgba(10,9,20,.78);z-index:-1;pointer-events:none}
.service-card>*{position:relative;z-index:2}
.service-card:hover{transform:perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-10px);box-shadow:0 28px 70px rgba(0,0,0,.3)}
.service-card:hover::before{opacity:1}
.service-icon{transition:transform .55s cubic-bezier(.22,1,.36,1)}
.service-card:hover .service-icon{transform:translateY(-5px) rotate(-8deg) scale(1.08)}

/* HOME featured projects remain cards, but get motion */
.project-card{transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease,border-color .45s ease;overflow:hidden}
.project-card:hover{transform:translateY(-10px) rotateX(1deg);box-shadow:0 30px 70px rgba(0,0,0,.32)}
.project-thumbnail img{transition:transform .8s cubic-bezier(.22,1,.36,1),filter .6s ease}
.project-card:hover .project-thumbnail img{transform:scale(1.055);filter:saturate(1.08)}

/* =========================================================
   WORKS: editorial / magnetic list instead of classic cards
========================================================= */
.works-editorial-intro{display:grid;grid-template-columns:1.4fr .6fr;gap:30px;align-items:end;margin:10px 0 45px}
.works-editorial-intro .kicker{color:rgba(255,255,255,.45);font-size:.8rem;letter-spacing:.18em;text-transform:uppercase}
.works-editorial-intro .big-copy{font:700 clamp(1.7rem,3.4vw,3.5rem)/1.2 'El Messiri','Cairo',sans-serif;margin-top:8px}
.works-editorial-intro .side-note{color:var(--text-muted);border-right:2px solid rgba(139,92,246,.55);padding-right:18px}

/* This styling targets only the grid on works.html, not the homepage grid. */
body:has(.page-hero-title) .project-grid{display:block;margin-top:55px}
body:has(.page-hero-title) .project-grid .project-card{display:grid;grid-template-columns:86px minmax(0,1fr) 210px;align-items:center;gap:25px;position:relative;min-height:205px;padding:28px 0;border:0;border-top:1px solid var(--motion-line);border-radius:0;background:transparent;box-shadow:none;transform:none;isolation:isolate}
body:has(.page-hero-title) .project-grid .project-card:last-child{border-bottom:1px solid var(--motion-line)}
body:has(.page-hero-title) .project-grid .project-card::before{content:attr(data-index);font:600 .9rem 'Cairo';color:rgba(255,255,255,.32);align-self:start;padding-top:8px}
body:has(.page-hero-title) .project-grid .project-card::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,159,28,.04),rgba(139,92,246,.08),transparent 70%);transform:scaleX(0);transform-origin:right;transition:transform .7s cubic-bezier(.22,1,.36,1);z-index:-1}
body:has(.page-hero-title) .project-grid .project-card:hover{padding-inline:28px;background:transparent;box-shadow:none}
body:has(.page-hero-title) .project-grid .project-card:hover::after{transform:scaleX(1)}
body:has(.page-hero-title) .project-grid .project-thumbnail{grid-column:3;grid-row:1;justify-self:end;width:190px;height:145px;border-radius:22px;overflow:hidden;order:3;box-shadow:0 22px 50px rgba(0,0,0,.25);transform:rotate(2deg) scale(.94);opacity:.78;transition:transform .6s cubic-bezier(.22,1,.36,1),opacity .45s ease}
body:has(.page-hero-title) .project-grid .project-card:hover .project-thumbnail{transform:rotate(-2deg) scale(1);opacity:1}
body:has(.page-hero-title) .project-grid .project-thumbnail img{width:100%;height:100%;object-fit:cover}
body:has(.page-hero-title) .project-grid .project-content{grid-column:2;grid-row:1;align-self:center;order:2}
body:has(.page-hero-title) .project-grid .project-label{font-size:clamp(1.35rem,2.5vw,2.25rem);margin-bottom:10px;transition:transform .45s ease,color .4s ease}
body:has(.page-hero-title) .project-grid .project-card:hover .project-label{transform:translateX(-8px)}
body:has(.page-hero-title) .project-grid .project-description{max-width:720px;color:var(--text-muted);margin:0}
body:has(.page-hero-title) .project-grid .project-content::after{content:"↙";display:block;margin-top:14px;font-size:1.2rem;color:rgba(255,255,255,.42);transition:transform .4s ease,color .4s ease}
body:has(.page-hero-title) .project-grid .project-card:hover .project-content::after{transform:translateX(-10px) rotate(-35deg);color:var(--motion-orange)}

/* Contact form: animated focus + progress */
.contact-form{position:relative;overflow:hidden}
.contact-form::before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-85px;top:-85px;background:radial-gradient(circle,rgba(139,92,246,.20),transparent 70%);animation:formOrb 7s ease-in-out infinite alternate;pointer-events:none}
@keyframes formOrb{to{transform:translate(-30px,55px) scale(1.25)}}
.contact-form .form-group{position:relative}
.contact-form input,.contact-form textarea,.contact-form select{transition:border-color .35s ease,box-shadow .35s ease,transform .35s ease;background-color:rgba(255,255,255,.025)}
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{transform:translateY(-2px);box-shadow:0 12px 35px rgba(96,28,252,.13),0 0 0 1px rgba(139,92,246,.35);outline:none}
.contact-form input:focus + label,.contact-form textarea:focus + label{color:#fff}
.contact-form .checkbox-label{transition:transform .3s ease,border-color .3s ease,background .3s ease}
.contact-form .checkbox-label:hover{transform:translateX(-4px);border-color:rgba(139,92,246,.45)}
.contact-form .checkbox-label:has(input:checked){background:rgba(139,92,246,.10);border-color:rgba(139,92,246,.55);transform:translateX(-5px)}
.contact-form .form-progress{height:4px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-bottom:22px}
.contact-form .form-progress span{display:block;width:8%;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--motion-orange),var(--motion-pink),var(--motion-purple),var(--motion-blue));transition:width .45s cubic-bezier(.22,1,.36,1)}

/* Buttons / links */
.btn{position:relative;overflow:hidden}
.section-link{transition:transform .35s ease,color .35s ease}
.section-link:hover{transform:translateX(-7px)}

@media(max-width:850px){
  .works-editorial-intro{grid-template-columns:1fr}
  body:has(.page-hero-title) .project-grid .project-card{grid-template-columns:45px minmax(0,1fr);min-height:0;padding:25px 0}
  body:has(.page-hero-title) .project-grid .project-thumbnail{grid-column:2;grid-row:2;width:min(100%,320px);height:180px;justify-self:start;margin-top:5px}
  body:has(.page-hero-title) .project-grid .project-content{grid-column:2;grid-row:1}
}
@media(max-width:600px){
  .lamsa-motion-ribbon{margin-top:10px}
  .hero-title{animation:none}
  body:has(.page-hero-title) .project-grid .project-card{grid-template-columns:32px minmax(0,1fr);gap:12px}
  body:has(.page-hero-title) .project-grid .project-card:hover{padding-inline:8px}
  body:has(.page-hero-title) .project-grid .project-thumbnail{width:100%;height:210px}
}

/* ===========================
   Final fixes
=========================== */
html, body {
    cursor: auto;
    margin: 0;
    padding: 0;
}
button, a, input[type="submit"], input[type="button"], select, summary,
.checkbox-label, .radio-label {
    cursor: pointer;
}
input, textarea {
    cursor: text;
}
.footer {
    margin-bottom: 0 !important;
}
.footer + * {
    margin-top: 0 !important;
}
.form-success {
    max-width: 700px;
    margin: -1rem auto 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(37, 211, 102, .28);
    border-radius: 16px;
    background: rgba(37, 211, 102, .08);
    color: #dfffe9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
}
.form-success[hidden] {
    display: none;
}
.form-success.show {
    opacity: 1;
    transform: translateY(0);
}
.form-success i {
    color: #25D366;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.btn-submit:disabled {
    opacity: .65;
    cursor: wait;
}


/* ===========================
   Final works filter + modal fixes
=========================== */
body:has(.page-hero-title) .project-grid .project-card.filtered-out{
    display:none !important;
}

#projectModal{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100dvh !important;
    min-height:100vh !important;
    padding:24px !important;
    box-sizing:border-box !important;
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:auto !important;
}
#projectModal.active{
    display:flex !important;
}
#projectModal .modal-content{
    width:min(920px, 100%) !important;
    max-width:920px !important;
    max-height:calc(100dvh - 48px) !important;
    margin:auto !important;
    overflow:auto !important;
    box-sizing:border-box !important;
}
#projectModal .modal-content img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:55dvh !important;
    object-fit:contain !important;
}
#projectModal .modal-info{
    max-height:25dvh !important;
    overflow:auto !important;
}
#projectModal .close-modal{
    position:fixed !important;
    top:16px !important;
    left:20px !important;
    z-index:100001 !important;
}
@media(max-width:600px){
    #projectModal{padding:14px !important;}
    #projectModal .modal-content{max-height:calc(100dvh - 28px) !important;}
    #projectModal .modal-content img{max-height:52dvh !important;}
    #projectModal .modal-info{max-height:28dvh !important;}
    #projectModal .close-modal{top:10px !important;left:14px !important;}
}
