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

:root {
  --bg: #0b0b12;
  --bg-soft: #12121d;
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --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;
  overflow-x: hidden;
}

/* === Animated background === */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.blob-1 {
  width: 480px; height: 480px;
  background: #7c3aed;
  top: -120px; left: -80px;
  animation: drift1 18s ease-in-out infinite;
}

.blob-2 {
  width: 420px; height: 420px;
  background: #0891b2;
  top: 20%; right: -120px;
  animation: drift2 22s ease-in-out infinite;
}

.blob-3 {
  width: 380px; height: 380px;
  background: #db2777;
  bottom: -120px; left: 30%;
  animation: drift3 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* === 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, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(11, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

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

.nav-logo .dot { color: var(--accent); }

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

.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: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 70px;
}

.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(110deg, #a855f7, #22d3ee, #f472b6, #a855f7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 300% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grad { animation: none; }
}

.hero p {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 560px;
}

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

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(110deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(168, 85, 247, 0.5);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

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

section h2 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.h2-emoji { -webkit-text-fill-color: initial; }

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 600px;
}

.section-subtitle a { color: var(--accent-2); text-decoration: none; }
.section-subtitle a:hover { text-decoration: underline; }

/* === Projects === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.project-card {
  --glow: #a855f7;
  --rx: 0deg;
  --ry: 0deg;
  display: block;
  position: relative;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at top right, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent);
  background: rgba(255,255,255,0.06);
}

.project-card:hover::before { opacity: 1; }

.project-icon {
  font-size: 34px;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--glow) 50%, transparent));
}

.project-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

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

.tags { display: flex; flex-wrap: wrap; gap: 7px; }

.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--glow) 14%, transparent);
  color: color-mix(in srgb, var(--glow) 75%, white);
  border: 1px solid color-mix(in srgb, var(--glow) 30%, transparent);
}

/* === 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;
  border: 1px solid var(--card-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.photo-item:hover img { transform: scale(1.06); }

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

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

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

/* === Footer === */
footer {
  text-align: center;
  padding: 50px 24px 60px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 16px;
}

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

.footer-links a:hover { color: var(--accent); }

/* === 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: 110px 20px 60px; min-height: 82vh; }
}
