/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #060E08;
  --bg-alt:     #08130A;
  --bg-card:    rgba(0, 255, 136, 0.04);
  --green:      #00FF88;
  --green-2:    #00CC6A;
  --green-dim:  rgba(0, 255, 136, 0.15);
  --green-dark: #0A2416;
  --grad:       linear-gradient(135deg, #00FF88 0%, #00D4AA 100%);
  --text:       #DFF0E5;
  --text-muted: #5C8A68;
  --border:     rgba(0, 255, 136, 0.10);
  --border-h:   rgba(0, 255, 136, 0.30);
  --radius:     12px;
  --radius-sm:  8px;
  --glow:       0 0 40px rgba(0, 255, 136, 0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* ── LAYOUT ───────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #050E07;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 1px solid var(--border-h);
}
.btn-outline:hover { background: rgba(0, 255, 136, 0.08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── PILLS ────────────────────────────────────── */
.pill {
  display: inline-block; padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  background: var(--green-dark); color: var(--green);
  border: 1px solid var(--border);
}
.pill-sm { padding: 0.2rem 0.55rem; font-size: 0.72rem; }

/* ── NAVIGATION ───────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 14, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  font-size: 1rem; color: var(--green); margin-right: auto;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 4px 0; transition: all 0.3s; border-radius: 2px;
}

@media (max-width: 700px) {
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(6, 14, 8, 0.97); padding: 1rem 1.5rem 2rem;
    flex-direction: column; gap: 1rem;
    transform: translateY(-120%); opacity: 0;
    transition: all 0.3s; pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 64px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,255,136,0.10) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
  bottom: -50px; right: -50px;
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }
.hero-greeting {
  font-family: 'JetBrains Mono', monospace; font-size: 1rem;
  color: var(--green); margin-bottom: 0.5rem;
}
.hero-name {
  font-size: clamp(4rem, 12vw, 9rem); font-weight: 700;
  line-height: 1; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-wrap { display: flex; align-items: center; gap: 0.2rem; margin-bottom: 1.5rem; }
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500; color: var(--text-muted);
}
.hero-cursor {
  font-family: 'JetBrains Mono', monospace; font-size: 1.5rem;
  color: var(--green); animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 540px;
  line-height: 1.75; margin-bottom: 1.25rem;
}
.hero-location {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: var(--text-muted); margin-bottom: 2rem; opacity: 0.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-socials { display: flex; gap: 1.25rem; }
.hero-socials a {
  color: var(--text-muted); transition: color 0.2s, transform 0.2s;
}
.hero-socials a:hover { color: var(--green); transform: translateY(-2px); }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--text-muted); opacity: 0.4;
  animation: fadeInUp 2s ease 2s both;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── STORY ────────────────────────────────────── */
.story-body { max-width: 760px; margin: 0 auto; }

.story-chapter {
  display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem;
  margin-bottom: 4rem;
}
.story-chapter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem; font-weight: 500; color: var(--green);
  opacity: 0.3; line-height: 1; padding-top: 0.4rem;
  transition: opacity 0.3s;
}
.story-chapter:hover .story-chapter-num { opacity: 0.7; }
.story-chapter-content h3 {
  font-size: 1.4rem; margin-bottom: 1rem;
  color: var(--text);
}
.story-chapter-content p {
  color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; font-size: 1rem;
}
.story-chapter-content p:last-child { margin-bottom: 0; }
.story-chapter-content strong { color: var(--green); font-weight: 600; }
.story-chapter-content em { color: var(--text); font-style: italic; }

.story-chapter--final {
  border-top: 1px solid var(--border);
  padding-top: 3rem; margin-top: 1rem;
}
.story-chapter--final .story-chapter-num { opacity: 0.5; }
.story-closing {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--green);
  opacity: 0.6; margin-top: 2rem !important;
}

.story-photo-block { margin: 3rem 0; }
.story-photo-single img {
  width: 100%; max-height: 500px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow);
}
.story-photo-single img:hover { transform: scale(1.01); box-shadow: 0 0 60px rgba(0,255,136,0.18); }
.story-photo-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.story-photo-pair img {
  width: 100%; height: 280px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.story-photo-pair img:hover { transform: scale(1.02); box-shadow: var(--glow); }

@media (max-width: 600px) {
  .story-chapter { grid-template-columns: 1fr; gap: 0.5rem; }
  .story-chapter-num { font-size: 1.2rem; }
  .story-photo-pair { grid-template-columns: 1fr; }
}

/* ── PROJECTS ─────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.project-card--featured {
  border-color: rgba(0, 255, 136, 0.25);
  background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, var(--bg-card) 100%);
}
.project-card--wide { grid-column: 1 / -1; }
@media (min-width: 700px) { .project-card--wide { grid-column: span 2; } }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.project-icon { font-size: 2rem; line-height: 1; }
.project-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.project-status {
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.status-active { background: rgba(0,255,136,0.12); color: var(--green); }
.status-done   { background: rgba(100,180,120,0.12); color: #64b478; }
.status-wip    { background: rgba(255,190,50,0.12); color: #ffc832; }
.project-platform {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  color: var(--text-muted);
}
.project-title { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--text); }
.project-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.project-desc em { color: var(--text); font-style: italic; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.project-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }

/* ── GALLERY ──────────────────────────────────── */
.gallery-intro { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; max-width: 560px; }

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.filter-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--border-h); color: var(--green); }
.filter-btn.active {
  background: var(--green-dark); border-color: var(--green);
  color: var(--green);
}

.gallery-grid {
  columns: 4 220px; gap: 0.75rem;
}
.gallery-grid img {
  width: 100%; margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  break-inside: avoid;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  border-color: var(--border-h);
  box-shadow: var(--glow);
}

/* ── LIGHTBOX ─────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,255,136,0.15);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(0,255,136,0.1); border: 1px solid var(--border-h);
  color: var(--green); font-size: 1.2rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(0,255,136,0.2); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,255,136,0.08); border: 1px solid var(--border);
  color: var(--green); font-size: 2rem; width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; line-height: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,255,136,0.18); }

/* ── NOTES / BLOG ─────────────────────────────── */
.notes-intro { color: var(--text-muted); max-width: 580px; margin-bottom: 2.5rem; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.notes-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--text-muted);
}
.notes-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.notes-empty p { margin-bottom: 0.4rem; }
.notes-cta { display: flex; }

.note-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.note-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.note-date {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: var(--green); margin-bottom: 0.6rem; opacity: 0.7;
}
.note-title { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.note-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.note-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.note-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  color: var(--text-muted); background: var(--green-dark);
  padding: 0.15rem 0.5rem; border-radius: 100px;
}

/* ── CONTACT ──────────────────────────────────── */
.contact-intro { color: var(--text-muted); max-width: 580px; line-height: 1.75; margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.contact-link:hover { border-color: var(--border-h); transform: translateX(4px); box-shadow: var(--glow); }
.contact-link-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--green-dark); display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.contact-link-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-link-value { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group select option { background: #0A1A0C; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; text-align: center; padding: 0.75rem;
  color: var(--green); border: 1px solid var(--border-h);
  border-radius: var(--radius-sm); font-size: 0.9rem;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }

/* ── REVEAL ANIMATION ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,136,0.3); }

/* ── BLOG PAGE ────────────────────────────────── */
.blog-hero {
  padding: 8rem 0 4rem; border-bottom: 1px solid var(--border);
}
.blog-back {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--green); margin-bottom: 1.5rem; display: inline-block;
  transition: opacity 0.2s;
}
.blog-back:hover { opacity: 0.7; }
.blog-list { padding: 4rem 0; }
.blog-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
