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

:root {
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #1a1a24;
  --border:       #ffffff12;
  --border2:      #ffffff20;
  --text:         #f0f0f5;
  --muted:        #8888aa;
  --accent:       #d97706;
  --accent2:      #fbbf24;
  --accent-bg:    #d9770610;
  --accent-border:#d9770628;
  --green:        #3ec97b;
  --gold:         #f0b429;
  --gold-bg:      #f0b42912;
  --gold-border:  #f0b42930;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --container:    1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
svg { display: block; }

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: #ffffff40; }

/* ─── Navigation ───────────────────────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; padding: 8px 18px; font-size: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  border: 1px solid #3ec97b30;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent2); }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-social {
  display: flex;
  gap: 8px;
  margin-left: 4px;
}

.hero-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.hero-social a:hover { color: var(--text); border-color: #ffffff40; }
.hero-social svg { width: 14px; height: 14px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent2);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── About ────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-left h2 em { color: var(--accent2); font-style: normal; }

.about-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-body strong { color: var(--text); font-weight: 500; }

.about-quote {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0;
}
.about-quote p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  font-size: 12px;
  background: var(--accent-bg);
  color: var(--accent2);
  border: 1px solid var(--accent-border);
  padding: 5px 13px;
  border-radius: 100px;
}

.about-right { display: flex; flex-direction: column; gap: 12px; }

.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.about-card-icon { font-size: 18px; margin-bottom: 10px; }
.about-card-title { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.about-card-text { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ─── Skills ───────────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.skill-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  transition: border-color 0.2s;
}
.skill-chip:hover { border-color: var(--border2); }
.skill-chip .lang { font-weight: 500; margin-bottom: 8px; }
.skill-bar-bg { background: #ffffff0a; border-radius: 4px; height: 3px; }
.skill-bar { height: 3px; border-radius: 4px; background: var(--accent); }

/* ─── Timeline ─────────────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child { border-bottom: none; }

.tl-year { font-size: 12px; color: var(--muted); padding-top: 2px; line-height: 1.5; }
.tl-title { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.tl-company { font-size: 13px; color: var(--accent2); margin-bottom: 8px; }
.tl-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tag {
  font-size: 11px;
  background: var(--accent-bg);
  color: var(--accent2);
  border: 1px solid var(--accent-border);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

/* ─── Awards ───────────────────────────────────────────────────────────────── */
.award-card {
  background: var(--bg3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: start;
}

.award-medal {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.award-medal svg { width: 28px; height: 28px; }

.award-place { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.award-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.award-org { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.award-desc { font-size: 12px; color: var(--muted); line-height: 1.65; }

.award-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.award-tag {
  font-size: 11px;
  background: #f0b42910;
  color: var(--gold);
  border: 1px solid #f0b42928;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.award-year {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Photography ──────────────────────────────────────────────────────────── */
.photo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.photo-header-text h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.photo-header-text p { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 400px; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent2);
  text-decoration: none;
  border: 1px solid var(--accent-border);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.ig-link:hover { border-color: var(--accent); }
.ig-link--sm { font-size: 12px; padding: 6px 14px; }

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 8px;
  margin-bottom: 20px;
}

.photo-cell {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.photo-cell.big { grid-row: 1 / 3; }

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.photo-icon { font-size: 24px; opacity: 0.3; }
.photo-label { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.photo-cell.big .photo-placeholder     { background: linear-gradient(160deg,#1a1a30,#0f0f1a); }
.photo-cell:nth-child(2) .photo-placeholder { background: linear-gradient(160deg,#1a2030,#0f1220); }
.photo-cell:nth-child(3) .photo-placeholder { background: linear-gradient(160deg,#201520,#150f18); }
.photo-cell:nth-child(4) .photo-placeholder { background: linear-gradient(160deg,#0f1a20,#0a1015); }
.photo-cell:nth-child(5) .photo-placeholder { background: linear-gradient(160deg,#201a0f,#12100a); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.photo-cell:hover .photo-overlay { opacity: 1; }
.photo-overlay span { font-size: 11px; color: rgba(255,255,255,.85); letter-spacing: 0.04em; }

.photo-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.photo-cta-text { font-size: 13px; color: var(--muted); }
.photo-cta-text strong { color: var(--text); font-weight: 500; }

/* ─── Projects ─────────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--border2); }

.project-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}
.project-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.project-desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }

/* ─── Contact ──────────────────────────────────────────────────────────────── */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-copy h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-copy p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.contact-meta a { color: var(--accent2); text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-field { margin-bottom: 18px; }
.contact-field label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }
.contact-field textarea { height: 100px; resize: vertical; }

.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  position: relative;
}
.submit-btn:hover { opacity: 0.88; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn .btn-loading { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: inline; }

.form-alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.form-alert.success { background: #3ec97b18; border: 1px solid #3ec97b30; color: #3ec97b; display: block; }
.form-alert.error   { background: #ef444418; border: 1px solid #ef444430; color: #f87171; display: block; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer { padding: 48px 0 32px; }

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .logo { display: inline-block; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 240px; }

.footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-social-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.social-row { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.social-btn:hover { color: var(--text); border-color: #ffffff40; }
.social-btn svg { width: 14px; height: 14px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 12px; color: var(--muted); }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-row { grid-template-columns: 1fr; gap: 36px; }
  .award-card { grid-template-columns: 48px 1fr; }
  .award-year { grid-column: 1 / -1; }
  .tl-item { grid-template-columns: 120px 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 16px;
    z-index: 99;
  }

  .hero h1 { font-size: 32px; }
  .hero-social { display: none; }
  .hero-stats { gap: 24px; }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px 140px;
  }
  .photo-cell.big { grid-row: auto; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .tl-year { padding-top: 0; color: var(--accent); font-size: 11px; }
  .award-card { grid-template-columns: 1fr; }
  .award-medal { width: 48px; height: 48px; }

  .photo-cta-row { flex-direction: column; align-items: flex-start; }
  .photo-header { flex-direction: column; }
  .footer-social { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
