/* Layout & Utilities */
.site-header { background:var(--header-bg); color:var(--header-text); position:sticky; top:0; z-index:50; border-bottom:1px solid var(--border); }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand a { font-weight:700; color:var(--header-text); text-decoration:none; font-size:18px }
.main-nav { margin-left:24px }
.main-nav a { color:var(--header-text); text-decoration:none; margin-right:18px; opacity:0.9 }
.header-actions .btn { margin-left:10px }

/* Hero (flat design) */
.hero { padding:72px 0; text-align:center; background:var(--bg-color); }
.hero h1 { font-size:36px; margin:0 0 12px; font-weight:700 }
.hero p { color:var(--muted); max-width:760px; margin:0 auto 20px }

/* Services grid (flat cards) */
.services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; margin-top:36px }
.service-card { background:var(--surface); padding:20px; border-radius:var(--radius); border:1px solid var(--border); }
.service-card h3{margin-top:0}

/* Footer */
.site-footer { padding:28px 0; background:var(--surface); color:var(--muted); margin-top:48px; border-top:1px solid var(--border) }

/* Buttons (flat) */
.btn { display:inline-block; padding:10px 16px; border-radius:8px; text-decoration:none; font-weight:600 }
.btn-primary { background:var(--primary); color:#fff }
.btn-outline { background:transparent; color:var(--text-color); border:1px solid var(--border); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero { padding:48px 0 }
  .hero h1 { font-size:26px }
  .header-inner { flex-direction:column; align-items:flex-start }
  .main-nav { margin:12px 0 }
}

/* --- Frontpage specific --- */
.site-main .hero-inner{display:flex;gap:32px;align-items:center;justify-content:space-between}
.site-main .hero-copy{flex:1 1 60%;text-align:left}
.site-main .hero-visual{flex:0 0 320px;display:flex;justify-content:center}
.profile-card{width:280px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;text-align:center}
.profile-card .avatar{width:120px;height:120px;border-radius:10px;display:block;margin:0 auto 12px}
.profile-card h3{margin:6px 0 4px;font-size:18px}
.profile-card .muted{color:var(--muted);font-size:14px}
.profile-card .socials a{color:var(--primary);text-decoration:none}

/* Typography helpers */
.lead{font-size:18px;color:var(--muted);max-width:700px}
h1,h2{line-height:1.15}

/* Skill bars */
.skill-bars{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
.skill{margin-bottom:8px}
.skill-label{font-weight:600;margin-bottom:6px}
.skill-bar{background:var(--border);height:12px;border-radius:8px;overflow:hidden}
.skill-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));width:0%;transition:width 1000ms cubic-bezier(.2,.9,.2,1)}

/* Services */
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.service-card{padding:20px;border-radius:10px;border:1px solid var(--border);background:var(--surface);transition:transform .18s ease,box-shadow .18s ease}
.service-card:hover{transform:translateY(-6px)}

/* Process timeline */
.process-steps{display:flex;flex-direction:column;gap:12px;padding-left:0}
.process-steps li{background:transparent;padding:12px;border-left:4px solid var(--primary);margin-left:0}
@media(min-width:900px){.process-steps{flex-direction:row}.process-steps li{flex:1;border-left:0;border-top:4px solid var(--primary);padding-top:14px}}

/* Portfolio */
.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:18px}
.portfolio-item{padding:18px;border-radius:10px;border:1px solid var(--border);background:var(--surface);min-height:120px;display:flex;align-items:center;justify-content:center;text-align:center}

/* Testimonials */
.testimonials{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:12px}
.testimonials blockquote{background:var(--surface);border-left:4px solid var(--primary);padding:16px;border-radius:8px;margin:0}

/* Contact form */
.contact-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.contact-form label{display:block}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:8px;background:transparent}

/* Reveal animation */
.reveal{opacity:1;transform:none}
.section, .service-card, .portfolio-item{opacity:0;transform:translateY(12px);transition:opacity .6s ease,transform .6s ease}

/* Small screens adjustments */
@media(max-width:900px){
  .site-main .hero-inner{flex-direction:column}
  .site-main .hero-copy{text-align:center}
  .site-main .hero-visual{order:-1}
  .profile-card{width:180px}
}
