/* ===== Variables ===== */
:root{
  --bg:#05070d;
  --bg-alt:#080b14;
  --surface:rgba(255,255,255,.035);
  --surface-strong:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.09);
  --text:#eef1f8;
  --muted:#8b93a7;
  --blue:#29abe2;
  --green:#7ac143;
  --grad: linear-gradient(90deg, var(--blue), var(--green));
  --shadow: 0 10px 40px -10px rgba(41,171,226,.25);
  --radius: 18px;
  --header-h: 76px;
}

:root[data-theme="light"]{
  --bg:#f5f7fb;
  --bg-alt:#eef1f8;
  --surface:rgba(10,20,40,.035);
  --surface-strong:rgba(10,20,40,.05);
  --border:rgba(10,20,40,.08);
  --text:#101624;
  --muted:#5b6478;
  --shadow: 0 10px 40px -12px rgba(41,171,226,.2);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Cairo', 'Segoe UI', Tahoma, sans-serif;
  line-height:1.7;
  overflow-x:hidden;
  transition:background .4s ease, color .4s ease;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}
.ltr-text{direction:ltr; unicode-bidi:embed; display:inline-block;}

/* ===== Background FX ===== */
.bg-fx{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
.stars{
  position:absolute; inset:0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 200px 150px, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 300px 60px, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 400px 200px, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 500px 100px, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 600px 250px, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 700px 40px, rgba(255,255,255,.2), transparent);
  background-repeat:repeat;
  background-size:700px 300px;
  opacity:.6;
}
:root[data-theme="light"] .stars{opacity:0;}
.glow{position:absolute; border-radius:50%; filter:blur(90px); opacity:.35;}
.glow-1{width:500px; height:500px; background:var(--blue); top:-150px; right:-100px;}
.glow-2{width:450px; height:450px; background:var(--green); top:500px; left:-150px; opacity:.2;}

/* ===== Header ===== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--header-h);
  background:rgba(5,7,13,.6);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:background .4s ease;
}
:root[data-theme="light"] .site-header{background:rgba(245,247,251,.75);}
.header-inner{
  height:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand-logo{height:34px; width:auto;}
.brand-name{font-weight:800; font-size:1.05rem; letter-spacing:.2px;}

.main-nav{display:flex; align-items:center; gap:28px;}
.main-nav a{
  font-size:.95rem; font-weight:600; color:var(--muted);
  transition:color .25s ease; position:relative;
}
.main-nav a:hover{color:var(--text);}
.main-nav a::after{
  content:''; position:absolute; bottom:-6px; right:0; left:0; height:2px;
  background:var(--grad); transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
.main-nav a:hover::after{transform:scaleX(1);}
.nav-cta-mobile{display:none;}

.header-actions{display:flex; align-items:center; gap:14px;}
.theme-toggle{
  width:38px; height:38px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border);
  color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, transform .25s ease;
}
.theme-toggle:hover{transform:translateY(-2px); background:var(--surface-strong);}
.icon-moon{display:none;}
:root[data-theme="light"] .icon-sun{display:none;}
:root[data-theme="light"] .icon-moon{display:block;}

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:none; cursor:pointer;
}
.menu-toggle span{width:100%; height:2px; background:var(--text); border-radius:2px;}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:999px;
  font-weight:700; font-size:.95rem; cursor:pointer; border:none;
  transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  white-space:nowrap;
}
.btn-sm{padding:9px 18px; font-size:.85rem;}
.btn-primary{
  background:var(--grad); color:#061018;
  box-shadow:var(--shadow);
}
.btn-primary:hover{transform:translateY(-3px); box-shadow:0 14px 46px -10px rgba(41,171,226,.4);}
.btn-ghost{
  background:var(--surface); color:var(--text); border:1px solid var(--border);
}
.btn-ghost:hover{background:var(--surface-strong); transform:translateY(-3px);}

/* ===== Hero ===== */
.hero{
  position:relative; z-index:1;
  min-height:100vh;
  display:flex; align-items:center;
  padding-top:var(--header-h);
}
.hero-inner{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding-top:40px; padding-bottom:60px;
}

.orb-wrap{position:relative; width:170px; height:170px; margin-bottom:34px;}
.orb{
  position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), var(--blue) 35%, var(--green) 85%);
  box-shadow:0 0 60px 10px rgba(41,171,226,.45), 0 0 100px 30px rgba(122,193,67,.25);
  animation:float 4.5s ease-in-out infinite;
}
.orb-core{position:absolute; inset:0; border-radius:50%; mix-blend-mode:overlay; background:radial-gradient(circle at 60% 70%, rgba(255,255,255,.4), transparent 60%);}
.orb-face{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:16px;
  top:8px;
}
.eye{width:10px; height:16px; background:#06101c; border-radius:50%; animation:blink 5s infinite;}
.orb-ring{
  position:absolute; inset:-22px; border-radius:50%;
  border:1px solid rgba(41,171,226,.35);
  animation:spin 14s linear infinite;
}
.orb-ring::before, .orb-ring::after{
  content:''; position:absolute; width:6px; height:6px; border-radius:50%;
  background:var(--green); top:-3px; left:50%;
  box-shadow:0 0 12px 3px rgba(122,193,67,.7);
}
.orb-ring::after{top:auto; bottom:-3px; left:auto; right:50%; background:var(--blue); box-shadow:0 0 12px 3px rgba(41,171,226,.7);}

@keyframes float{0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);}}
@keyframes blink{0%,90%,100%{transform:scaleY(1);} 95%{transform:scaleY(.1);}}
@keyframes spin{from{transform:rotate(0deg);} to{transform:rotate(360deg);}}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 18px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border);
  font-size:.85rem; color:var(--muted); margin-bottom:22px;
}
.chip .dot{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px 2px rgba(122,193,67,.6);}

.hero-title{
  font-size:clamp(2rem, 5vw, 3.4rem); font-weight:900; line-height:1.3;
  margin-bottom:20px; max-width:16ch;
}
.grad-text{
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{
  color:var(--muted); font-size:1.1rem; max-width:620px; margin-bottom:34px;
}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:60px;}

.scroll-hint{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:var(--muted); font-size:.8rem;
  animation:bounce 2s infinite;
}
@keyframes bounce{0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);}}

/* ===== Sections ===== */
.section{position:relative; z-index:1; padding:110px 0;}
.section-alt{background:var(--bg-alt);}
.section-tag{
  display:inline-block; color:var(--blue); font-weight:800; font-size:.9rem;
  letter-spacing:.5px; margin-bottom:14px;
}
.section-tag.center{display:block; text-align:center;}
.section-title{font-size:clamp(1.6rem, 3.4vw, 2.3rem); font-weight:900; margin-bottom:16px;}
.section-desc{color:var(--muted); max-width:620px; margin-bottom:50px; font-size:1.05rem;}

/* ===== About ===== */
.about-grid{display:grid; grid-template-columns:1.1fr 1fr; gap:60px; align-items:start;}
.about-text p{color:var(--muted); margin-bottom:18px; font-size:1.03rem;}
.stats-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-top:36px;}
.stat-num{font-size:2.1rem; font-weight:900; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;}
.stat-label{color:var(--muted); font-size:.9rem; margin-top:4px;}

.about-cards{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
.feature-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px 22px; transition:transform .3s ease, background .3s ease, border-color .3s ease;
}
.feature-card:hover{transform:translateY(-6px); background:var(--surface-strong); border-color:rgba(41,171,226,.35);}
.feature-icon{
  width:46px; height:46px; border-radius:14px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(41,171,226,.18), rgba(122,193,67,.18));
  color:var(--blue);
}
.feature-card h3{font-size:1.05rem; margin-bottom:8px;}
.feature-card p{color:var(--muted); font-size:.92rem;}

/* ===== Services ===== */
.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.service-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; transition:transform .3s ease, border-color .3s ease, background .3s ease;
  position:relative; overflow:hidden;
}
.service-card:hover{transform:translateY(-8px); border-color:rgba(41,171,226,.4); background:var(--surface-strong);}
.service-icon{
  width:52px; height:52px; border-radius:16px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(41,171,226,.2), rgba(122,193,67,.2));
  color:var(--blue);
}
.service-card h3{font-size:1.12rem; margin-bottom:10px;}
.service-card p{color:var(--muted); font-size:.93rem; margin-bottom:18px;}
.tags{display:flex; flex-wrap:wrap; gap:8px;}
.tags span{
  font-size:.75rem; padding:5px 12px; border-radius:999px;
  background:var(--surface-strong); border:1px solid var(--border); color:var(--muted);
}

/* ===== Portfolio ===== */
.work-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.work-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; transition:transform .3s ease, border-color .3s ease;
}
.work-card:hover{transform:translateY(-6px); border-color:rgba(41,171,226,.35);}
.work-browser{
  border-radius:12px; overflow:hidden; border:1px solid var(--border);
  background:var(--bg-alt); margin-bottom:18px;
}
.browser-dots{display:flex; gap:6px; padding:10px 12px; background:rgba(255,255,255,.03);}
.browser-dots span{width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.15);}
.work-mock{height:150px; background-size:cover; background-position:center;}
.work-mock-1{background:linear-gradient(135deg, rgba(41,171,226,.35), rgba(122,193,67,.15));}
.work-mock-2{background:linear-gradient(135deg, rgba(122,193,67,.3), rgba(41,171,226,.2));}
.work-mock-3{background:linear-gradient(135deg, rgba(41,171,226,.25), rgba(255,255,255,.08));}
.work-mock-4{background:linear-gradient(135deg, rgba(122,193,67,.25), rgba(41,171,226,.3));}
.work-mock-5{background:linear-gradient(135deg, rgba(41,171,226,.3), rgba(122,193,67,.25));}
.work-mock-6{background:linear-gradient(135deg, rgba(122,193,67,.2), rgba(41,171,226,.15));}
.work-type{
  display:inline-block; font-size:.75rem; font-weight:700; color:var(--blue);
  background:rgba(41,171,226,.1); padding:4px 12px; border-radius:999px; margin-bottom:12px;
}
.work-card h3{font-size:1.05rem; margin-bottom:8px;}
.work-card p{color:var(--muted); font-size:.9rem;}

/* ===== Partners marquee ===== */
.partners-section{padding-bottom:70px;}
.marquee{overflow:hidden; position:relative; mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);}
.marquee-track{display:flex; gap:16px; width:max-content; animation:scroll-x 30s linear infinite;}
@keyframes scroll-x{from{transform:translateX(0);} to{transform:translateX(-50%);}}
.partner-chip{
  flex:0 0 auto; padding:14px 28px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border);
  font-weight:700; color:var(--muted); font-size:.95rem;
}

/* ===== Testimonials ===== */
.testimonials-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.testi-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px; transition:transform .3s ease;
}
.testi-card:hover{transform:translateY(-6px);}
.testi-head{display:flex; align-items:center; gap:12px; margin-bottom:16px;}
.testi-avatar{
  width:44px; height:44px; border-radius:50%; background:var(--grad);
  display:flex; align-items:center; justify-content:center; font-weight:800; color:#061018;
}
.testi-head h4{font-size:.95rem;}
.stars-row{color:var(--green); font-size:.85rem; letter-spacing:2px;}
.testi-card p{color:var(--muted); font-size:.95rem;}

/* ===== CTA ===== */
.cta-section{padding-top:0;}
.cta-box{
  text-align:center; padding:60px 40px; border-radius:28px;
  background:linear-gradient(135deg, rgba(41,171,226,.12), rgba(122,193,67,.1));
  border:1px solid var(--border); position:relative; overflow:hidden;
}
.cta-icon{
  width:60px; height:60px; border-radius:18px; margin:0 auto 22px;
  display:flex; align-items:center; justify-content:center;
  background:var(--grad); color:#061018;
}
.cta-box h2{font-size:clamp(1.5rem,3vw,2rem); font-weight:900; margin-bottom:14px;}
.cta-box p{color:var(--muted); max-width:520px; margin:0 auto 30px;}
.cta-actions{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

/* ===== Footer ===== */
.site-footer{
  position:relative; z-index:1; background:var(--bg-alt);
  border-top:1px solid var(--border); padding-top:70px;
}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px;}
.footer-brand p{color:var(--muted); font-size:.92rem; margin:18px 0 22px;}
.social-row{display:flex; gap:10px;}
.social-row a{
  width:38px; height:38px; border-radius:50%; background:var(--surface);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, transform .25s ease, color .25s ease;
}
.social-row a:hover{background:var(--grad); color:#061018; transform:translateY(-3px);}
.footer-col h4{font-size:1rem; margin-bottom:18px;}
.footer-col a, .footer-col p{
  display:block; color:var(--muted); font-size:.9rem; margin-bottom:12px; transition:color .2s ease;
}
.footer-col a:hover{color:var(--blue);}
.address{line-height:1.6;}
.footer-bottom{border-top:1px solid var(--border); padding:22px 0; margin-top:10px;}
.footer-bottom-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
.footer-bottom-inner, .footer-bottom span{color:var(--muted); font-size:.85rem;}
.footer-bottom-links{display:flex; gap:20px;}
.footer-bottom-links a{color:var(--muted); font-size:.85rem;}
.footer-bottom-links a:hover{color:var(--blue);}

/* ===== Floating buttons ===== */
.float-whatsapp{
  position:fixed; bottom:26px; left:26px; z-index:90;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px -6px rgba(37,211,102,.6);
  animation:pulse-wa 2.4s infinite;
}
@keyframes pulse-wa{0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}}

.scroll-top{
  position:fixed; bottom:26px; right:26px; z-index:90;
  width:46px; height:46px; border-radius:50%;
  background:var(--surface-strong); border:1px solid var(--border); color:var(--text);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:all .3s ease;
}
.scroll-top.show{opacity:1; visibility:visible; transform:translateY(0);}

/* ===== Reveal animation ===== */
.reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ===== Responsive ===== */
@media (max-width:980px){
  .about-grid{grid-template-columns:1fr; gap:40px;}
  .services-grid{grid-template-columns:repeat(2,1fr);}
  .work-grid{grid-template-columns:repeat(2,1fr);}
  .testimonials-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:760px){
  .main-nav{
    position:fixed; top:var(--header-h); right:0; left:0; bottom:0;
    background:var(--bg); flex-direction:column; align-items:flex-start;
    padding:30px 24px; gap:22px; transform:translateX(100%);
    transition:transform .35s ease; border-top:1px solid var(--border);
  }
  .main-nav.open{transform:translateX(0);}
  .nav-cta-mobile{display:inline-flex; margin-top:10px;}
  .menu-toggle{display:flex;}
  .header-actions .btn-sm{display:none;}
  .about-cards{grid-template-columns:1fr;}
  .services-grid{grid-template-columns:1fr;}
  .work-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr; gap:34px;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .cta-box{padding:44px 22px;}
}
