:root {
  --text: #333;
  --muted: #666;
  --surface: #fff;
  --surface-alt: #f9fafb;
  --shadow: rgba(0, 0, 0, 0.1);
  --border: #ddd;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
}

/* Layout helpers */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Header (restored to original) */
.header {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 4px var(--shadow);
  z-index: 1000;
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.5rem; font-weight: bold; }
.nav a { margin-left: 1.5rem; text-decoration: none; color: var(--text); font-size: 0.95rem; }
.nav a:hover, .nav a:focus { color: var(--muted); outline: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  text-align: center;
  padding: 2rem; 
  scroll-margin-top: 80px;
  background: url('images/hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-text {
  position: relative;
  color: #fff;
  z-index: 1;
}
.hero h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero p { max-width: 600px; margin: 0 auto 1.5rem; }

/* Links */
.link { text-decoration: underline; color: #fff; font-weight: bold; }
.link:hover { color: #ddd; }

/* Sections */
.section { max-width: 1000px; margin: 0 auto; padding: 5rem 1.25rem; text-align: center; scroll-margin-top: 80px; }

/* Grids */
.services .grid, .projects .grid { display: grid; gap: 2rem; }
.services .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.projects .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards & Project boxes */
.card { background: var(--surface); padding: 2rem; border-radius: 12px; box-shadow: 0 2px 6px var(--shadow); }
.card h4 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.project-box {
  aspect-ratio: 1 / 1;
  background: #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  overflow: hidden;
}
.project-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Fade-in reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid var(--border);
}

/* Responsive tweaks */
@media (max-width: 480px) { .nav a { margin-left: 1rem; font-size: 0.9rem; } }