/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #4f46e5;
  --accent-light: #e0e7ff;
  --card-bg: #fff;
  --card-border: #e5e7eb;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Nav === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* === Hero === */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-links { display: flex; gap: 12px; justify-content: center; }

.hero-links a {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* === Sections === */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}

section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* === Projects === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.project-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  margin-right: 6px;
  margin-bottom: 4px;
}

/* === Photography === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.photo-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #999;
}

.photo-item::after {
  content: attr(data-label);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide placeholder text when image present */
.photo-item:has(img)::after { display: none; }

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.photo-category {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.photo-category:first-of-type { margin-top: 0; }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* === About === */
.about-content {
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.about-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.about-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: #aaa;
}

/* === Mobile === */
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
}
