*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #181818;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(255,255,255,0.15);
  --text: #f0ede8;
  --muted: #888880;
  --accent: #c8f060;
  --accent2: #60c8f0;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CANVAS ── */
#canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ── LANG TOGGLE ── */
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn .lang-active { color: var(--accent); font-weight: 700; }

/* ── MARQUEE ── */
.marquee-wrap {
  position: fixed;
  top: 62px; left: 0; right: 0;
  z-index: 99;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 0;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-inner span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  padding: 0 3rem;
}

.marquee-inner span b {
  color: var(--accent);
  font-weight: 700;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION BASE ── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 4rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
}

.hero-photo-wrap {
  width: 200px;
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  border: 1px solid rgba(200,240,96,0.2);
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.hero-photo:hover { filter: grayscale(0%); }

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-name .line2 {
  color: var(--accent);
}

.hero-title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-title strong {
  color: var(--accent2);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 180px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── DIVIDER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.section-title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── ABOUT ── */
#about {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--text);
  font-weight: 400;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.skill-item:hover {
  border-color: var(--accent);
  background: rgba(200, 240, 96, 0.04);
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── EXPERIENCE ── */
#experience {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200,240,96,0.4);
}

.tl-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tl-role {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tl-company {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tl-bullets li {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* ── PROJECTS ── */
#projects {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.project-card:hover {
  border-color: var(--border-accent);
  background: var(--surface2);
  transform: translateY(-2px);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.project-name {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(200,240,96,0.25);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.project-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

.project-card.featured {
  grid-column: span 2;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  border-color: rgba(200,240,96,0.15);
}

.project-card.featured .project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card.featured .project-preview {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 16/10;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-screen {
  width: 100%;
  height: 100%;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 6px;
}

.preview-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.preview-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

.preview-row {
  height: 6px;
  border-radius: 1px;
  background: rgba(255,255,255,0.06);
}

.preview-row.accent { background: rgba(200,240,96,0.2); width: 60%; }
.preview-row.mid { width: 80%; }
.preview-row.short { width: 40%; }

/* ── CONTACT ── */
#contact {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,240,96,0.03);
}

.contact-link-icon {
  width: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  min-height: 1.2em;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-made {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-made span { color: var(--accent); }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,240,96,0.08);
  border: 1px solid rgba(200,240,96,0.2);
  border-radius: 2px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .hero-photo-wrap { width: 100%; max-width: 260px; margin: 0 auto; }
  .hero-photo { width: 100%; height: 300px; object-fit: cover; object-position: center top; }
  .hero-stats { flex-direction: row; min-width: unset; }
  .stat-card { flex: 1; }
  .container { padding: 0 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; flex-direction: column; }
  .project-card.featured .project-preview { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}