:root{
  --bg:#f7f7fb; --card:#ffffff; --muted:#6b7280; --text:#0b1220; --accent:#6366f1;
  --glass: rgba(255,255,255,0.6);
}
[data-theme="dark"]{
  --bg:#060812; --card:#071021; --muted:#9ca3af; --text:#e6eef8; --accent:#7c9cff;
  --glass: rgba(8,13,23,0.6);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  background:linear-gradient(180deg,var(--bg), #ffffff); color:var(--text); -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.page{min-height:100vh; display:flex; flex-direction:column}
.topbar{
  position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px; backdrop-filter: blur(6px); background:var(--glass); border-bottom:1px solid rgba(0,0,0,0.05);
}
.brand{display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit}
.logo{width:44px; height:44px; background:linear-gradient(135deg,var(--accent), #06b6d4); color:white; display:flex; align-items:center; justify-content:center; border-radius:10px; font-weight:700}
.brand-text .title{font-weight:700}
.brand-text .tag{font-size:12px; color:var(--muted)}
.nav{display:flex; gap:12px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; font-size:14px}
.icon-btn{background:transparent; border:0; cursor:pointer; font-size:18px}
.mobile-menu{display:none; background:transparent; border:0; font-size:20px}
.mobile-drawer{display:none; flex-direction:column; gap:8px; padding:12px; background:var(--card); border-top:1px solid rgba(0,0,0,0.04)}

/* HERO */
.hero{display:grid; grid-template-columns:1fr 420px; gap:32px; padding:80px 20px; align-items:center}
.hero-left h1{font-size:36px; margin:0 0 16px}
.lead{color:var(--muted); max-width:55ch}
.cta{margin-top:18px}
.btn{display:inline-block; padding:10px 16px; border-radius:10px; text-decoration:none}
.btn.primary{background:var(--accent); color:white}
.btn.ghost{background:transparent; border:1px solid rgba(0,0,0,0.06); color:var(--text)}
.metrics{display:flex; gap:18px; margin-top:20px}
.metrics .num{font-weight:700}
.hero-right img{width:100%; height:260px; object-fit:cover; border-radius:14px}
.featured{display:flex; justify-content:space-between; padding:12px; background:var(--card); margin-top:10px; border-radius:10px; align-items:center}

/* Sections */
.section{padding:56px 20px}
.section.alt{background:linear-gradient(180deg, transparent, rgba(0,0,0,0.02))}
.container{max-width:1100px; margin:0 auto}
.grid{display:grid; grid-template-columns:1fr 420px; gap:24px; align-items:center}
.imgcard img{width:100%; height:280px; object-fit:cover; border-radius:12px}
.bullets{list-style:none; padding:0; color:var(--muted)}

/* Services */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px}
.card{background:var(--card); padding:18px; border-radius:12px; box-shadow:0 6px 18px rgba(2,6,23,0.04)}
.card h4{margin:0 0 8px}

/* Portfolio */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px}
.project img{width:100%; height:160px; object-fit:cover; border-radius:8px}
.project figcaption{display:flex; justify-content:space-between; padding-top:8px; font-size:14px; color:var(--muted)}

/* Contact */
.contact-info{color:var(--muted); margin-top:12px}
.formcard{background:var(--card); padding:16px; border-radius:12px; box-shadow:0 6px 16px rgba(2,6,23,0.04)}
.formcard input, .formcard textarea{width:100%; padding:10px; margin-top:8px; border-radius:8px; border:1px solid rgba(0,0,0,0.06); background:transparent; color:var(--text)}
.formcard .row{display:flex; gap:8px}
.form-actions{display:flex; align-items:center; gap:12px; margin-top:10px}
.status{font-size:13px; color:var(--muted)}

/* Footer */
.footer{border-top:1px solid rgba(0,0,0,0.04); margin-top:auto; padding:18px 20px; background:transparent}
.foot-inner{max-width:1100px; margin:0 auto; display:flex; justify-content:space-between; align-items:center}
.brand-mini{display:flex; gap:12px; align-items:center}
.credits{color:var(--muted)}

/* Responsive */
@media (max-width:980px){
  .hero{grid-template-columns:1fr; padding:40px 16px}
  .grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
}
@media (max-width:700px){
  .nav{display:none}
  .mobile-menu{display:block}
  .mobile-drawer{display:flex}
}
