:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --secondary:#06b6d4;
  --accent:#8b5cf6;
  --bg:#f7f9fc;
  --surface:#ffffff;
  --surface-2:#eef3f9;
  --text:#172033;
  --muted:#667085;
  --border:#e4e9f0;
  --shadow:0 15px 45px rgba(18,38,63,.09);
  --radius:20px;
  --header:78px;
}
body.dark{
  --bg:#0b1120;
  --surface:#111a2e;
  --surface-2:#17233a;
  --text:#eef4ff;
  --muted:#a8b4c7;
  --border:#25334d;
  --shadow:0 15px 45px rgba(0,0,0,.25);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  transition:background .3s,color .3s;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,textarea{font:inherit}
.site-header{
  height:var(--header);position:sticky;top:0;z-index:1000;
  display:flex;align-items:center;gap:30px;padding:0 5%;
  background:color-mix(in srgb,var(--surface) 90%,transparent);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--border);
}
.logo{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;white-space:nowrap}
.logo img{width:42px;height:42px;object-fit:contain;border-radius:10px}
nav{margin-left:auto}
nav ul{display:flex;gap:25px;list-style:none}
nav a{font-size:.92rem;font-weight:500;color:var(--muted);transition:.25s}
nav a:hover{color:var(--primary)}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn,.language-btn{
  border:1px solid var(--border);background:var(--surface);color:var(--text);
  cursor:pointer;border-radius:12px;min-height:42px;padding:0 12px;
}
.icon-btn{width:42px}
.language-btn{display:flex;align-items:center;gap:7px}
.language-dropdown{position:relative}
.language-menu{
  position:absolute;right:0;top:50px;min-width:160px;padding:7px;
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  box-shadow:var(--shadow);display:none
}
.language-menu.open{display:block}
.lang-btn{display:block;width:100%;padding:9px;border:0;background:transparent;color:var(--text);text-align:left;border-radius:9px;cursor:pointer}
.lang-btn:hover{background:var(--surface-2)}
.mobile-menu-toggle{display:none;border:0;background:none;color:var(--text);font-size:1.4rem}
.section{padding:95px 6%}
.hero{
  min-height:calc(100vh - var(--header));padding:80px 7%;
  display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:50px;
  background:
  radial-gradient(circle at 10% 10%,rgba(37,99,235,.12),transparent 35%),
  radial-gradient(circle at 90% 20%,rgba(139,92,246,.12),transparent 30%);
}
.eyebrow{display:inline-block;color:var(--primary);font-weight:700;font-size:.78rem;letter-spacing:2px;margin-bottom:10px}
.hero h1{font-size:clamp(2.5rem,5vw,4.7rem);line-height:1.12;margin-bottom:25px;max-width:800px}
.hero h1::first-letter{}
.hero p{max-width:700px;color:var(--muted);font-size:1.08rem}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;border-radius:12px;font-weight:600;border:1px solid transparent;transition:.25s}
.btn-primary{background:var(--primary);color:white}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px)}
.btn-secondary{background:var(--surface);border-color:var(--border)}
.btn-secondary:hover{border-color:var(--primary);color:var(--primary)}
.hero-stats{display:flex;gap:15px;flex-wrap:wrap;margin-top:40px}
.hero-stats div{padding:12px 16px;border:1px solid var(--border);background:var(--surface);border-radius:14px;box-shadow:var(--shadow)}
.hero-stats strong,.hero-stats span{display:block}
.hero-stats strong{font-size:.9rem}
.hero-stats span{font-size:.72rem;color:var(--muted)}
.hero-image{min-height:400px;display:flex;align-items:center;justify-content:center;position:relative}
.hero-image img{max-height:500px;object-fit:contain;filter:drop-shadow(0 20px 35px rgba(37,99,235,.18))}
.hero-placeholder,.about-placeholder{
  width:min(100%,480px);min-height:350px;border-radius:30px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;
  box-shadow:0 25px 60px rgba(37,99,235,.22)
}
.hero-placeholder i,.about-placeholder i{font-size:5rem;margin-bottom:15px}
.hero-placeholder span,.about-placeholder strong{font-size:2rem;font-weight:700}
.hero-placeholder small,.about-placeholder span{opacity:.85}
.section-heading{text-align:center;max-width:800px;margin:0 auto 50px}
.section-heading h2{font-size:clamp(2rem,4vw,3rem);line-height:1.2;margin-bottom:10px}
.section-subtitle{color:var(--muted)}
.why-us{background:var(--surface)}
.why-grid,.services-grid,.portfolio-grid,.pricing-grid,.process-grid,.testimonial-grid{display:grid;gap:24px}
.why-grid{grid-template-columns:repeat(3,1fr);max-width:1100px;margin:auto}
.why-card,.service-card,.portfolio-card,.pricing-card,.process-card,.testimonial-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);transition:transform .3s,border-color .3s,box-shadow .3s
}
.why-card,.service-card,.process-card,.testimonial-card{padding:30px}
.why-card:hover,.service-card:hover,.portfolio-card:hover,.pricing-card:hover,.process-card:hover,.testimonial-card:hover{
  transform:translateY(-7px);border-color:rgba(37,99,235,.4)
}
.why-card{text-align:center}
.why-card i,.service-card>i,.pricing-card>i,.process-card>i{font-size:2.2rem;color:var(--primary);margin-bottom:18px}
.why-card p,.service-card p,.process-card p,.testimonial-card p{color:var(--muted)}
.services-grid{grid-template-columns:repeat(3,1fr)}
.service-card span{display:inline-block;margin-top:18px;color:var(--primary);font-size:.75rem;font-weight:600}
.portfolio{background:var(--surface-2)}
.portfolio-grid{grid-template-columns:repeat(3,1fr)}
.portfolio-card{overflow:hidden}
.project-image{height:220px;background:linear-gradient(135deg,#dbeafe,#ede9fe);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
body.dark .project-image{background:linear-gradient(135deg,#16294b,#252045)}
.project-image img{width:100%;height:100%;object-fit:cover}
.project-image>i{position:absolute;font-size:4rem;color:var(--primary);opacity:.8}
.project-body{padding:24px}
.tag{display:inline-block;background:rgba(37,99,235,.1);color:var(--primary);font-size:.7rem;padding:4px 9px;border-radius:50px;font-weight:600}
.project-body h3{margin:9px 0}
.project-body p{color:var(--muted);min-height:58px}
.btn-project{display:inline-block;margin-top:15px;color:var(--primary);font-weight:600}
.pricing-grid{grid-template-columns:repeat(3,1fr);max-width:1150px;margin:auto}
.pricing-card{padding:35px;position:relative;text-align:center}
.pricing-card.featured{border:2px solid var(--primary);transform:scale(1.03)}
.pricing-card.featured:hover{transform:scale(1.03) translateY(-7px)}
.popular{position:absolute;top:14px;right:14px;background:var(--primary);color:#fff;padding:4px 10px;border-radius:30px;font-size:.65rem;font-weight:700}
.price{font-size:1.35rem;color:var(--primary);font-weight:700;margin:12px 0 22px}
.pricing-card ul{list-style:none;text-align:left;color:var(--muted);line-height:2.2;margin-bottom:22px}
.pricing-btn{display:block;padding:12px;background:var(--surface-2);border-radius:10px;color:var(--primary);font-weight:600}
.featured .pricing-btn{background:var(--primary);color:#fff}
.pricing-note{text-align:center;color:var(--muted);font-size:.8rem;margin-top:30px}
.about{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:70px}
.about-image{display:flex;justify-content:center}
.about-image img{border-radius:25px;box-shadow:var(--shadow)}
.about-content h2{font-size:clamp(2rem,4vw,3rem);line-height:1.2;margin-bottom:20px}
.about-content p{color:var(--muted);margin-bottom:15px}
.about-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}
.about-list div{display:flex;align-items:center;gap:9px}
.about-list i{color:var(--primary)}
.process{background:var(--surface-2)}
.process-grid{grid-template-columns:repeat(4,1fr)}
.process-card{position:relative}
.process-card>b{position:absolute;right:18px;top:12px;color:var(--border);font-size:2.2rem}
.testimonials{background:var(--surface)}
.testimonial-grid{grid-template-columns:repeat(3,1fr)}
.testimonial-card{text-align:center}
.testimonial-card>i{font-size:1.8rem;color:var(--primary);margin-bottom:15px}
.testimonial-card h4{margin:15px 0 5px}
.testimonial-card span{font-size:.8rem;color:var(--muted)}
.contact{background:var(--surface-2)}
.contact-wrapper{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;max-width:1050px;margin:auto}
.contact-form{display:flex;flex-direction:column;gap:8px}
.contact-form label{font-size:.8rem;font-weight:600}
.contact-form input,.contact-form textarea{
  width:100%;padding:13px 15px;border:1px solid var(--border);border-radius:11px;
  background:var(--surface);color:var(--text);outline:none;resize:vertical
}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--primary)}
.whatsapp-submit{margin-top:10px;border:0;background:#25d366;color:#fff;cursor:pointer}
.whatsapp-submit:hover{background:#18b957;transform:translateY(-2px)}
.contact-info{display:flex;flex-direction:column;gap:15px}
.contact-box{display:flex;gap:16px;align-items:center;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:15px}
.contact-box>i{width:45px;height:45px;display:grid;place-items:center;background:rgba(37,99,235,.1);color:var(--primary);border-radius:12px}
.contact-box p{color:var(--muted)}
footer{padding:45px 6%;text-align:center;background:#0b1220;color:#dbe6f5}
.footer-logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:10px}
.footer-logo img{width:38px;height:38px;object-fit:contain}
.footer-social{display:flex;justify-content:center;gap:12px;margin:20px 0}
.footer-social a{width:42px;height:42px;border:1px solid #30405b;border-radius:50%;display:grid;place-items:center;transition:.25s}
.footer-social a:hover{background:var(--primary);border-color:var(--primary);transform:translateY(-3px)}
.copyright{color:#8493a9;font-size:.8rem}
.whatsapp-float{
  position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;background:#25d366;color:white;font-size:1.8rem;
  box-shadow:0 10px 30px rgba(37,211,102,.35);z-index:999;animation:pulse 2s infinite
}
.back-to-top{
  position:fixed;right:25px;bottom:90px;width:42px;height:42px;border:0;border-radius:50%;
  background:var(--primary);color:#fff;cursor:pointer;display:none;z-index:998
}
.back-to-top.show{display:block}
.reveal{opacity:0;transform:translateY(25px);transition:.7s ease}
.reveal.visible{opacity:1;transform:none}
@keyframes pulse{0%,100%{box-shadow:0 10px 30px rgba(37,211,102,.25)}50%{box-shadow:0 10px 40px rgba(37,211,102,.55)}}
@media(max-width:1000px){
  nav ul{gap:15px}
  .hero{padding:70px 5%}
  .services-grid,.portfolio-grid{grid-template-columns:repeat(2,1fr)}
  .pricing-grid{grid-template-columns:1fr;max-width:500px}
  .pricing-card.featured{transform:none}.pricing-card.featured:hover{transform:translateY(-7px)}
  .process-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:800px){
  .site-header{padding:0 5%;gap:12px}
  .mobile-menu-toggle{display:block;order:1}
  .logo{order:0;margin-right:auto}
  .header-actions{order:2}
  nav{
    position:absolute;left:0;right:0;top:var(--header);background:var(--surface);
    border-bottom:1px solid var(--border);display:none;padding:15px 5%
  }
  nav.open{display:block}
  nav ul{flex-direction:column;gap:4px}
  nav a{display:block;padding:10px}
  .hero{grid-template-columns:1fr;text-align:center}
  .hero p{margin:auto}.hero-buttons,.hero-stats{justify-content:center}
  .hero-image{min-height:280px}
  .why-grid,.testimonial-grid{grid-template-columns:1fr}
  .about{grid-template-columns:1fr;gap:40px}
  .contact-wrapper{grid-template-columns:1fr}
}
@media(max-width:560px){
  .section{padding:70px 5%}
  .hero{padding:55px 5%}
  .hero h1{font-size:2.35rem}
  .services-grid,.portfolio-grid,.process-grid{grid-template-columns:1fr}
  .about-list{grid-template-columns:1fr}
  .logo span{font-size:1rem}
  .language-btn span{display:none}
  .language-btn{padding:0 10px}
  .header-actions{gap:5px}
}

/* =========================================================
   NABIL APPS - HEADER DESKTOP FIX
   ========================================================= */

header {
    width: 100%;
    min-height: 78px;
    height: 78px;
    padding: 0 5%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--background, #ffffff);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    order: 1;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo span {
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap;
}

/* NAVIGATION */
header nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 25px;
    order: 2;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;
    padding: 0;
}

header nav ul li a {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    order: 3;
}

/* DARK MODE */
.theme-toggle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    cursor: pointer;
}

/* LANGUAGE */
.language-dropdown {
    position: relative;
}

.language-btn {
    height: 44px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 7px;

    border-radius: 12px;
    cursor: pointer;
}

/* MOBILE BUTTON - HIDDEN ON PC */
.mobile-menu-toggle {
    display: none;
}


/* =========================================================
   HERO DESKTOP
   ========================================================= */

.hero {
    width: 100%;
    min-height: calc(100vh - 78px);

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding: 70px 7%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    header {
        padding: 0 3%;
    }

    header nav ul {
        gap: 18px;
    }

    header nav {
        margin-right: 15px;
    }

    .hero {
        padding: 60px 5%;
        gap: 30px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    header {
        height: 72px;
        min-height: 72px;

        padding: 0 15px;

        justify-content: space-between;
    }

    /* LOGO */
    .logo {
        order: 1;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .logo span {
        font-size: 19px;
    }

    /* HEADER ACTIONS */
    .header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 8px;

        display: flex;
        align-items: center;
        gap: 6px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .language-btn {
        height: 40px;
        padding: 0 10px;
    }

    /* HAMBURGER */
    .mobile-menu-toggle {
        order: 3;

        display: flex;

        width: 42px;
        height: 42px;

        align-items: center;
        justify-content: center;

        border: none;
        background: transparent;

        font-size: 25px;
        cursor: pointer;
    }

    /* NAV */
    header nav {
        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        display: none;

        margin: 0;

        background: var(--background, #ffffff);

        box-shadow: 0 10px 25px rgba(0,0,0,0.10);

        order: 4;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 0;

        padding: 10px 0;
        margin: 0;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li a {
        display: block;

        width: 100%;
        box-sizing: border-box;

        padding: 15px 22px;
    }

    /* HERO */
    .hero {
        min-height: auto;

        display: flex;
        flex-direction: column;

        text-align: center;

        padding: 55px 20px 40px;

        gap: 30px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(40px, 10vw, 58px);
        line-height: 1.08;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.65;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 420px;

        margin: 0 auto;

        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        margin-top: 15px;
    }

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


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    header {
        padding: 0 10px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo span {
        font-size: 18px;
    }

    .header-actions {
        gap: 3px;
        margin-right: 4px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .language-btn {
        width: 44px;
        height: 38px;
        padding: 0;

        justify-content: center;
    }

    .language-btn span {
        display: none;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding: 45px 16px 30px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 17px;
    }
}