/* ========================================================
   Variables
======================================================== */
:root{
  /* Alvienzzo brand — ink, paper, champagne, stone (spec v1.0) */
  --bg: #0b0b0c;
  --bg-soft: #0b0b0c;
  --surface: #141414;
  --surface-2: #1c1c1a;
  --border: #242422;
  --border-strong: #33332f;
  --text: #f4f2ef;
  --text-dim: #8f8d88;
  --text-dim-2: #63615d;
  --accent: #c9a87c;
  --accent-soft: #e0c9a6;
  --shadow: 0 10px 40px -10px rgba(201,168,124,.18);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:90px; }

body{
  background: var(--bg);
  color: var(--text);
  font-family:'Cairo', sans-serif;
  overflow-x:hidden;
  line-height:1.7;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input, textarea, select{ font-family:inherit; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:120px 0; position:relative; }

.text-gradient{
  color: var(--accent);
  font-style: italic;
}

.section-tag{
  display:inline-block;
  padding:6px 16px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:50px;
  font-size:13px;
  color:var(--accent);
  font-weight:600;
  margin-bottom:16px;
}

.section-head{ text-align:center; max-width:640px; margin:0 auto 60px; }
.section-head h2{ font-size:clamp(28px,4vw,42px); font-weight:800; margin:8px 0 14px; line-height:1.3; }
.section-head p{ color:var(--text-dim); font-size:16px; }

/* ========================================================
   Loader
======================================================== */
.loader{
  position:fixed; inset:0; background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  z-index:9999; transition:opacity .5s ease, visibility .5s ease;
}
.loader.hide{ opacity:0; visibility:hidden; }
.loader-ring{
  width:52px; height:52px; border-radius:50%;
  border:3px solid var(--border);
  border-top-color:var(--accent);
  animation:spin 0.8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ========================================================
   Buttons
======================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 28px; border-radius:50px; font-weight:700; font-size:15px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--text); color:var(--bg); box-shadow:var(--shadow);
}
.btn-primary:hover{ transform:translateY(-3px); background:var(--accent-soft); }
.btn-outline{ border:1px solid var(--border); color:var(--text); background:var(--surface); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-3px); }
.btn-light{ background:var(--accent); color:var(--bg); }
.btn-light:hover{ transform:translateY(-3px); background:var(--accent-soft); }
.full-width{ width:100%; }

/* ========================================================
   Header
======================================================== */
.header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:18px 0; transition:all .3s ease;
  background:transparent;
}
.header.scrolled{
  background:rgba(11,11,12,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  padding:12px 0;
}
.navbar{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ display:flex; align-items:center; }
.logo-img{ height:26px; width:auto; display:block; }
.footer .logo-img{ height:24px; }
.nav-links{ display:flex; gap:30px; align-items:center; }
.nav-links a{
  font-size:15px; font-weight:600; color:var(--text-dim);
  position:relative; padding:4px 0; transition:color .2s;
}
.nav-links a::after{
  content:''; position:absolute; bottom:-4px; right:0; width:0; height:2px;
  background:var(--accent); transition:width .25s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-cta{ padding:11px 24px; font-size:14px; }
.nav-right{ display:flex; align-items:center; gap:14px; }
.lang-toggle{
  padding:8px 16px; border-radius:50px; border:1px solid var(--border); background:var(--surface);
  color:var(--text); font-weight:700; font-size:13px; transition:all .2s ease; flex-shrink:0;
}
.lang-toggle:hover{ border-color:var(--accent); color:var(--accent); }

/* Mirror directional arrow icons when the page is LTR (English) */
[dir="ltr"] .fa-arrow-left{ transform:scaleX(-1); }

.burger{ display:none; flex-direction:column; gap:5px; z-index:1100; }
.burger span{ width:26px; height:2px; background:var(--text); transition:all .3s; border-radius:2px; }
.burger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity:0; }
.burger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ========================================================
   Hero
======================================================== */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding:150px 0 80px; overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.grid-overlay{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black, transparent);
}
.blob{ display:none; }

.hero-grid{
  position:relative; z-index:2; display:grid;
  grid-template-columns:1.1fr 1fr; gap:60px; align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 18px; border-radius:50px; border:1px solid var(--border);
  background:var(--surface); font-size:13px; font-weight:600; color:var(--text-dim);
  margin-bottom:24px;
}
.hero-badge .dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(201,168,124,.6); animation:pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(201,168,124,.6);} 70%{ box-shadow:0 0 0 8px rgba(201,168,124,0);} 100%{ box-shadow:0 0 0 0 rgba(201,168,124,0);} }

.hero-text h1{ font-size:clamp(34px,5vw,56px); font-weight:800; line-height:1.3; margin-bottom:22px; }
.hero-sub{ color:var(--text-dim); font-size:17px; max-width:560px; margin-bottom:34px; }
.hero-actions{ display:flex; gap:16px; margin-bottom:50px; flex-wrap:wrap; }

.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-size:30px; font-weight:800; color:var(--accent); }
.stat-label{ font-size:13px; color:var(--text-dim-2); font-weight:600; }

/* code window */
.hero-visual{ position:relative; }
.code-window{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5); overflow:hidden;
  transform:perspective(800px) rotateY(-4deg) rotateX(2deg);
}
.code-window-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; background:var(--surface-2); border-bottom:1px solid var(--border); }
.wdot{ width:10px; height:10px; border-radius:50%; }
.wdot.red{ background:#ff5f56; } .wdot.yellow{ background:#ffbd2e; } .wdot.green{ background:#27c93f; }
.code-window-title{ margin-right:auto; font-size:12px; color:var(--text-dim-2); font-family:monospace; }
.code-body{ padding:22px; font-family:'Fira Code', monospace; font-size:13px; direction:ltr; text-align:left; overflow-x:auto; color:#d7dde8; }
.code-body .c-key{ color:#c792ea; } .code-body .c-fn{ color:#82aaff; } .code-body .c-class{ color:#ffcb6b; }
.code-body .c-str{ color:#c3e88d; } .code-body .c-num{ color:#f78c6c; } .code-body .c-comment{ color:#676e95; }

.float-card{
  position:absolute; display:flex; align-items:center; gap:10px;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:12px 16px; font-size:13px; font-weight:700; box-shadow:0 20px 40px -15px rgba(0,0,0,.5);
  animation:floaty 5s ease-in-out infinite;
}
.float-card i{ font-size:18px; color:var(--accent); }
.card-1{ top:-6%; right:-8%; animation-delay:.2s; }
.card-2{ bottom:10%; right:-10%; animation-delay:1s; }
.card-3{ bottom:-6%; left:5%; animation-delay:1.8s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }

.scroll-down{
  position:absolute; bottom:30px; left:50%; transform:translateX(-50%);
  width:40px; height:40px; border:1px solid var(--border); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--text-dim);
  animation:bounce 2s infinite;
}
@keyframes bounce{ 0%,100%{ transform:translate(-50%,0); } 50%{ transform:translate(-50%,8px); } }

/* ========================================================
   Marquee
======================================================== */
.marquee-section{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-soft); padding:22px 0; overflow:hidden; }
.marquee-track{ display:flex; gap:40px; white-space:nowrap; animation:scroll-rtl 28s linear infinite; width:max-content; }
.marquee-track span{ font-weight:700; color:var(--text-dim-2); font-size:15px; display:flex; align-items:center; gap:40px; }
.marquee-track span::after{ content:'•'; color:var(--accent); margin-right:40px; }
@keyframes scroll-rtl{ 0%{ transform:translateX(0); } 100%{ transform:translateX(50%); } }

/* ========================================================
   About
======================================================== */
.about-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; align-items:center; }
.about-frame{ position:relative; width:320px; height:320px; margin:0 auto; }
.about-avatar{
  width:100%; height:100%; border-radius:32px; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:110px; color:var(--text-dim-2);
  position:relative; overflow:hidden;
}
.about-avatar::before{ content:''; position:absolute; inset:0; background:var(--accent); opacity:.1; }
.orbit-icon{
  position:absolute; width:52px; height:52px; border-radius:50%;
  background:var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  box-shadow:0 10px 25px -8px rgba(0,0,0,.5);
  animation:floaty 6s ease-in-out infinite;
}
.orbit-1{ top:-16px; right:-16px; color:#f7df1e; }
.orbit-2{ bottom:30%; right:-30px; color:#8993be; animation-delay:.6s; }
.orbit-3{ bottom:-16px; left:20%; color:var(--accent); animation-delay:1.2s; }
.orbit-4{ top:20%; left:-30px; color:#61dafb; animation-delay:1.8s; }

.about-content h2{ font-size:clamp(28px,4vw,40px); font-weight:800; margin:10px 0 18px; line-height:1.35; }
.about-content p{ color:var(--text-dim); margin-bottom:16px; }
.about-list{ margin:22px 0 30px; display:flex; flex-direction:column; gap:12px; }
.about-list li{ display:flex; align-items:flex-start; gap:10px; color:var(--text-dim); font-size:15px; }
.about-list i{ color:var(--accent); margin-top:3px; }

/* ========================================================
   Services
======================================================== */
.services{ background:var(--bg-soft); }
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.service-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:34px 28px; transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover{ transform:translateY(-8px); border-color:var(--accent); background:var(--surface-2); }
.service-icon{
  width:56px; height:56px; border-radius:16px; background:var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:22px; color:var(--accent); margin-bottom:20px;
}
.service-card h3{ font-size:19px; font-weight:800; margin-bottom:10px; }
.service-card p{ color:var(--text-dim); font-size:14.5px; }

/* ========================================================
   Projects
======================================================== */
.projects-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; max-width:900px; margin:0 auto; }
.project-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .35s ease, box-shadow .35s ease; display:flex; flex-direction:column;
}
.project-card:hover{ transform:translateY(-8px); box-shadow:0 25px 50px -20px rgba(0,0,0,.6); }
.project-thumb{
  height:190px; display:flex; align-items:center; justify-content:center; font-size:56px; color:#fff; position:relative; overflow:hidden;
}
.thumb-shot{ position:relative; background:#000; }
.thumb-shot::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.6), transparent 45%);
}
.thumb-shot-img{
  width:100%; height:100%; object-fit:cover; object-position:top center;
  display:block; transition:transform .5s ease;
}
.project-card:hover .thumb-shot-img{ transform:scale(1.05); }
.thumb-badge{
  position:absolute; bottom:14px; right:14px; z-index:2; width:42px; height:42px;
  border-radius:11px; background:#141414; padding:5px; object-fit:contain;
  box-shadow:0 10px 22px -8px rgba(0,0,0,.7);
}
.js-lightbox{ cursor:zoom-in; }
.js-lightbox:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.thumb-expand{
  position:absolute; top:14px; left:14px; z-index:2; width:34px; height:34px;
  border-radius:50%; background:rgba(11,11,12,.65); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px;
  opacity:0; transform:translateY(-4px); transition:opacity .25s ease, transform .25s ease;
}
.project-card:hover .thumb-expand{ opacity:1; transform:translateY(0); }
.project-card.featured{ border-color:rgba(201,168,124,.35); }

/* ========================================================
   Lightbox
======================================================== */
.lightbox{
  position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center;
  background:rgba(5,6,10,.9); backdrop-filter:blur(6px);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; padding:40px;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{
  max-width:min(1100px,92vw); max-height:88vh; border-radius:14px;
  box-shadow:0 40px 100px -20px rgba(0,0,0,.8);
  transform:scale(.96); transition:transform .25s ease;
}
.lightbox.open img{ transform:scale(1); }
.lightbox-close{
  position:absolute; top:24px; left:24px; width:44px; height:44px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border); color:var(--text);
  display:flex; align-items:center; justify-content:center; font-size:18px; transition:background .2s ease;
}
.lightbox-close:hover{ background:var(--surface-2); }
.project-body{ padding:26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.project-body h3{ font-size:18px; font-weight:800; }
.project-body p{ color:var(--text-dim); font-size:14px; flex:1; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.tags span{ padding:5px 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:50px; font-size:12px; color:var(--text-dim); }

/* ========================================================
   Skills
======================================================== */
.skills{ background:var(--bg-soft); }
.skills-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:20px; margin-bottom:60px; }
.skill-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:26px 10px; display:flex; flex-direction:column; align-items:center; gap:12px;
  transition:transform .3s ease, border-color .3s ease;
}
.skill-card:hover{ transform:translateY(-6px); border-color:var(--accent); }
.skill-card i{ font-size:30px; color:var(--accent); }
.skill-card span{ font-size:13px; font-weight:700; color:var(--text-dim); text-align:center; }

.progress-list{ max-width:700px; margin:0 auto; display:flex; flex-direction:column; gap:22px; }
.progress-top{ display:flex; justify-content:space-between; font-size:14px; font-weight:700; margin-bottom:8px; }
.progress-bar{ height:8px; border-radius:50px; background:var(--surface-2); overflow:hidden; }
.progress-fill{
  height:100%; width:0; border-radius:50px; background:var(--accent);
  transition:width 1.4s cubic-bezier(.22,1,.36,1);
}
.progress-fill.animate{ width:var(--w); }

/* ========================================================
   Process
======================================================== */
.process-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px; }
.process-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px 20px; position:relative; transition:transform .3s ease, border-color .3s ease;
}
.process-card:hover{ transform:translateY(-8px); border-color:var(--accent); }
.process-num{
  font-size:32px; font-weight:900; color:var(--accent); display:block; margin-bottom:12px;
}
.process-card h3{ font-size:16px; font-weight:800; margin-bottom:8px; }
.process-card p{ color:var(--text-dim); font-size:13.5px; }

/* ========================================================
   CTA
======================================================== */
.cta-banner{
  position:relative; overflow:hidden; background:var(--bg);
  padding:70px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.cta-grid{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-grid h2{ font-size:clamp(24px,3.4vw,34px); font-weight:800; color:var(--text); margin-bottom:8px; }
.cta-grid p{ color:var(--text-dim); }

/* ========================================================
   Contact
======================================================== */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; }
.contact-info h2{ font-size:clamp(26px,3.6vw,38px); font-weight:800; margin:10px 0 16px; }
.contact-info p{ color:var(--text-dim); margin-bottom:30px; }
.info-list{ display:flex; flex-direction:column; gap:16px; margin-bottom:30px; }
.info-item{
  display:flex; align-items:center; gap:16px; padding:16px; background:var(--surface);
  border:1px solid var(--border); border-radius:14px; transition:border-color .25s ease, transform .25s ease;
}
.info-item:hover{ border-color:var(--accent); transform:translateX(-4px); }
.info-item i{ width:44px; height:44px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:16px; flex-shrink:0; }
.info-item span{ display:block; font-size:12.5px; color:var(--text-dim-2); }
.info-item strong{ font-size:15px; }
.socials{ display:flex; gap:12px; }
.socials a{
  width:44px; height:44px; border-radius:50%; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; transition:all .25s ease;
}
.socials a:hover{ background:var(--accent); color:var(--bg); border-color:transparent; transform:translateY(-4px); }

.contact-form{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:36px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:18px; display:flex; flex-direction:column; gap:8px; }
.form-group label{ font-size:13.5px; font-weight:700; color:var(--text-dim); }
.form-group input, .form-group textarea, .form-group select{
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px;
  padding:13px 16px; color:var(--text); font-size:14.5px; transition:border-color .2s ease;
  resize:vertical;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ outline:none; border-color:var(--accent); }
.form-note{ margin-top:14px; font-size:14px; color:var(--accent); text-align:center; min-height:20px; }

/* ========================================================
   Footer
======================================================== */
.footer{ background:var(--bg-soft); border-top:1px solid var(--border); padding:70px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:50px; }
.footer-grid p{ color:var(--text-dim); font-size:14px; margin-top:14px; max-width:320px; }
.footer-grid h4{ font-size:15px; margin-bottom:16px; }
.footer-grid ul{ display:flex; flex-direction:column; gap:10px; }
.footer-grid ul li, .footer-grid ul li a{ color:var(--text-dim); font-size:14px; transition:color .2s; }
.footer-grid ul li a:hover{ color:var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; padding:22px 0; border-top:1px solid var(--border); color:var(--text-dim-2); font-size:13px; }

/* ========================================================
   Scroll-driven reveal
   Opacity/transform are set continuously by JS as the user
   scrolls (tied to scroll position), not a one-time trigger.
======================================================== */
[data-aos]{ opacity:0; transform:translateY(24px); will-change:transform, opacity; }

@media (prefers-reduced-motion: reduce){
  [data-aos]{ opacity:1 !important; transform:none !important; }
}

/* ========================================================
   Hero parallax
======================================================== */
.hero-bg{ will-change:transform; }
.hero-visual{ will-change:transform; }

/* ========================================================
   Responsive
======================================================== */
@media (max-width:1024px){
  .hero-grid, .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .hero-visual{ max-width:460px; margin:40px auto 0; }
  .services-grid, .projects-grid{ grid-template-columns:repeat(2,1fr); }
  .process-grid{ grid-template-columns:repeat(3,1fr); }
  .skills-grid{ grid-template-columns:repeat(4,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:280px;
    background:var(--bg-soft); border-left:1px solid var(--border);
    flex-direction:column; justify-content:center; align-items:flex-start;
    padding:40px; gap:24px; transform:translateX(100%); transition:transform .35s ease; z-index:1050;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-cta{ display:none; }
  .burger{ display:flex; }
}
@media (max-width:720px){
  .section{ padding:60px 0; }
  .hero{ min-height:unset; padding:110px 0 36px; }
  .hero-grid{ gap:32px; }
  .hero-badge{ padding:6px 14px; font-size:12px; margin-bottom:16px; }
  .hero-text h1{ font-size:clamp(26px,7vw,34px); margin-bottom:14px; }
  .hero-sub{ font-size:14.5px; margin-bottom:22px; }
  .hero-actions{ gap:10px; margin-bottom:28px; }
  .hero-actions .btn{ padding:11px 20px; font-size:14px; }
  .hero-stats{ gap:18px; }
  .stat-num{ font-size:22px; }
  .stat-label{ font-size:11px; }
  .hero-visual{ margin:28px auto 0; max-width:360px; }
  .code-window-bar{ padding:9px 12px; }
  .code-body{ padding:14px; font-size:11px; }
  .process-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .service-card{ padding:16px 14px; }
  .service-icon{ width:40px; height:40px; border-radius:11px; font-size:16px; margin-bottom:12px; }
  .service-card h3{ font-size:13.5px; margin-bottom:6px; }
  .service-card p{ display:none; }
  .projects-grid{ grid-template-columns:repeat(2,1fr); gap:12px; max-width:none; }
  .project-thumb{ height:90px; }
  .thumb-badge{ width:28px; height:28px; bottom:8px; right:8px; border-radius:8px; }
  .thumb-expand{ width:24px; height:24px; top:8px; left:8px; }
  .project-body{ padding:12px; gap:5px; }
  .project-body h3{ font-size:12.5px; line-height:1.35; }
  .project-body p{ display:none; }
  .tags{ gap:4px; margin-top:2px; }
  .tags span{ padding:3px 7px; font-size:9.5px; }
  .skills-grid{ grid-template-columns:repeat(3,1fr); }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .cta-grid{ text-align:center; justify-content:center; }
  .float-card{ display:none; }
  .code-window{ transform:none; }
}
@media (max-width:480px){
  .skills-grid{ grid-template-columns:repeat(3,1fr); gap:10px; }
  .skill-card{ padding:16px 6px; gap:8px; }
  .skill-card i{ font-size:22px; }
  .skill-card span{ font-size:11px; }
  .hero{ padding-top:100px; }
  .hero-visual{ max-width:300px; }
}

/* ========================================================
   Navigation — full-screen menu overlay (all screen sizes)
======================================================== */
.burger{ display:flex; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:var(--surface); gap:4px; }
.burger span{ width:18px; height:1.5px; }
.burger.active span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.burger.active span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }
.nav-links{
  position:fixed; inset:0; width:auto; height:auto; z-index:900;
  background:var(--bg); border:0; padding:110px 24px 40px;
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px;
  opacity:0; visibility:hidden; transform:none; transition:opacity .3s ease, visibility .3s ease;
  counter-reset:nav;
}
.nav-links.open{ opacity:1; visibility:visible; transform:none; }
.nav-links li{ counter-increment:nav; transform:translateY(16px); opacity:0; transition:transform .45s ease, opacity .45s ease; }
.nav-links.open li{ transform:none; opacity:1; }
.nav-links.open li:nth-child(2){ transition-delay:.04s; } .nav-links.open li:nth-child(3){ transition-delay:.08s; }
.nav-links.open li:nth-child(4){ transition-delay:.12s; } .nav-links.open li:nth-child(5){ transition-delay:.16s; }
.nav-links.open li:nth-child(6){ transition-delay:.2s; } .nav-links.open li:nth-child(7){ transition-delay:.24s; }
.nav-links a{ display:flex; align-items:baseline; gap:16px; font-size:clamp(28px,6vw,52px); font-weight:300; color:var(--text-dim); padding:6px 0; }
.nav-links a::before{ content:'0' counter(nav); font-size:13px; color:var(--text-dim-2); font-weight:500; letter-spacing:.1em; }
.nav-links a::after{ display:none; }
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::before{ color:var(--accent); }
.nav-links a.active{ font-style:italic; color:var(--accent); }
.nav-cta{ display:inline-flex; }
@media (max-width:860px){ .nav-cta{ display:none; } }

/* ========================================================
   V2 restyle — editorial, light, hairlines (brand: Ubuntu Light, one champagne accent)
======================================================== */
:root{ --radius:10px; --radius-sm:8px; --maxw:1240px; --font:'Ubuntu','Cairo',system-ui,sans-serif; --mono:'Ubuntu Mono','Cairo',monospace; }
body{ font-family:var(--font); font-weight:400; line-height:1.75; -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-weight:300 !important; letter-spacing:-.022em; }
.container{ padding:0 28px; }
.section{ padding:110px 0; border-top:1px solid var(--border); }
.projects.section{ border-top:0; }

/* labels */
.section-tag{ border:0; background:none; padding:0; border-radius:0; color:var(--text-dim-2); font-family:var(--mono); font-size:12px; font-weight:400; letter-spacing:.18em; text-transform:uppercase; display:inline-flex; align-items:center; gap:14px; margin-bottom:22px; }
.section-tag::before{ content:''; width:32px; height:1px; background:var(--border-strong); }
.section-head{ text-align:start; max-width:none; margin:0 0 56px; }
.section-head h2, .about-content h2, .contact-info h2{ font-size:clamp(30px,4.6vw,56px); line-height:1.15; margin:0 0 18px; }
.section-head p{ max-width:560px; color:var(--text-dim); }
.text-gradient{ font-weight:300; }

/* header */
.header{ padding:20px 0; }
.header.scrolled{ background:rgba(11,11,12,.82); padding:12px 0; }
.logo-img{ height:24px; }
.lang-toggle{ font-family:var(--mono); font-size:12px; letter-spacing:.08em; padding:8px 14px; background:none; }
.btn{ font-weight:500; font-size:14px; padding:13px 26px; }
.btn-primary{ box-shadow:none; }
.btn-outline{ background:none; }
.burger{ background:none; }
.nav-links a{ font-weight:300; }

/* hero */
.hero{ min-height:92vh; padding:150px 0 90px; }
.hero-text h1{ font-size:clamp(40px,6.2vw,84px); font-weight:300; line-height:1.12; margin-bottom:28px; }
.hero-sub{ font-size:17px; line-height:1.8; max-width:520px; margin-bottom:38px; }
.hero-sub strong{ font-weight:500; color:var(--text); }
.hero-badge{ background:none; font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:400; }
.hero-stats{ gap:48px; padding-top:34px; border-top:1px solid var(--border); }
.stat-num{ font-weight:300; font-size:38px; color:var(--text); }
.stat-label{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:400; }
.code-window{ border-radius:var(--radius); box-shadow:none; transform:none; }
.float-card{ box-shadow:none; background:var(--bg); }

/* marquee */
.marquee-section{ background:none; padding:18px 0; }
.marquee-track span{ font-family:var(--mono); font-weight:400; font-size:12px; letter-spacing:.16em; text-transform:uppercase; }

/* projects */
.projects-grid{ max-width:none; gap:36px; }
.project-card{ background:none; border:0; border-radius:0; overflow:visible; }
.project-card.featured{ border:0; }
.project-card:hover{ transform:none; box-shadow:none; }
.project-thumb{ height:300px; border-radius:var(--radius); border:1px solid var(--border); }
.project-body{ padding:22px 2px 0; gap:12px; }
.project-body h3{ font-size:24px; font-weight:300; }
.project-body p{ font-size:15px; line-height:1.8; }
.tags span{ background:none; font-family:var(--mono); font-size:11px; letter-spacing:.08em; border-radius:4px; }

/* about */
.about-avatar{ border-radius:var(--radius); }
.about-list li{ border-bottom:1px solid var(--border); padding:12px 0; }
.about-list{ gap:0; }

/* services: editorial rows on desktop */
@media (min-width:721px){
  .services-grid{ grid-template-columns:1fr; gap:0; border-top:1px solid var(--border); }
  .service-card{ display:grid; grid-template-columns:64px minmax(200px,1fr) 1.4fr; align-items:center; gap:28px; padding:30px 8px; background:none; border:0; border-bottom:1px solid var(--border); border-radius:0; transition:background .35s ease, padding .35s ease; }
  .service-card:hover{ transform:none; background:var(--surface); padding-inline:22px; border-color:var(--border); }
  .service-icon{ margin:0; width:48px; height:48px; background:none; }
  .service-card h3{ font-size:26px; margin:0; }
  .service-card p{ margin:0; font-size:15px; }
}

/* skills */
.skill-card{ background:none; border-radius:var(--radius-sm); }
.skill-card:hover{ transform:none; }
.progress-bar{ height:2px; }
.progress-top{ font-weight:400; font-size:14px; }

/* process: connected hairline grid */
.process-grid{ gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.process-card{ border:0; border-radius:0; background:var(--bg); }
.process-card:hover{ transform:none; background:var(--surface); }
.process-num{ font-family:var(--mono); font-weight:400; font-size:13px; letter-spacing:.14em; margin-bottom:34px; }
.process-card h3{ font-size:20px; }

/* cta + contact */
.cta-banner{ padding:96px 0; }
.cta-grid h2{ font-size:clamp(30px,4.6vw,56px); font-weight:300; }
.info-item{ border-radius:var(--radius-sm); background:none; }
.info-item:hover{ transform:none; }
.contact-form{ border-radius:var(--radius); background:var(--surface); }
.form-group label{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:400; }
.form-group input, .form-group textarea, .form-group select{ background:var(--bg); border-radius:8px; }

/* footer */
.footer-grid h4{ font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; font-weight:400; color:var(--text-dim-2); }

@media (max-width:720px){
  .section{ padding:64px 0; }
  .container{ padding:0 18px; }
  .hero{ min-height:unset; padding:104px 0 40px; }
  .hero-text h1{ font-size:clamp(30px,9vw,40px); }
  .stat-num{ font-size:26px; }
  .hero-stats{ gap:22px; padding-top:22px; }
  .project-thumb{ height:96px; }
  .process-card{ padding:20px 16px; }
  .process-num{ margin-bottom:16px; }
  .section-head{ margin-bottom:34px; }
}

/* ========================================================
   Process — timeline stepper
======================================================== */
.process-grid{ position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:28px; background:none; border:0; border-radius:0; overflow:visible; }
.process-grid::before{ content:''; position:absolute; top:23px; inset-inline:23px; height:1px; background:linear-gradient(90deg,var(--accent),var(--border-strong)); opacity:.7; }
.process-card{ background:none !important; border:0; padding:0; position:relative; }
.process-card:hover{ background:none; }
.process-num{ display:flex; align-items:center; justify-content:center; width:46px; height:46px; margin:0 0 26px; border-radius:50%; border:1px solid var(--accent); background:var(--bg); color:var(--accent); font-family:var(--mono); font-size:14px; letter-spacing:.04em; position:relative; z-index:1; transition:background .3s ease, color .3s ease; }
.process-card:hover .process-num{ background:var(--accent); color:var(--bg); }
.process-card h3{ font-size:20px; margin-bottom:10px; }
.process-card p{ font-size:14.5px; line-height:1.75; }

@media (max-width:1024px){
  .process-grid{ grid-template-columns:1fr; gap:0; }
  .process-grid::before{ top:23px; bottom:23px; height:auto; width:1px; inset-inline:auto; inset-inline-start:23px; background:var(--border-strong); }
  .process-card{ display:grid; grid-template-columns:46px 1fr; column-gap:20px; padding-bottom:34px; }
  .process-card:last-child{ padding-bottom:0; }
  .process-num{ grid-row:1 / span 2; margin:0; }
  .process-card h3{ align-self:end; margin:0 0 6px; padding-top:4px; }
  .process-card p{ margin:0; }
}
