/***************/
/* MEYER RESET */
/***************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/**************/
/* BASE RULES */
/**************/
* {
  box-sizing: border-box;
}

@media screen and (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: #111113;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #d4d4d8;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 20px;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fafafa;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: #2dd4bf;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #5eead4;
}

strong {
  color: #fafafa;
  font-weight: 600;
}

img {
  max-width: 100%;
}

/*************/
/* NAVIGATION */
/*************/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #27272a;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
@media screen and (max-width: 640px) {
  .nav-links {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}
.nav-links a {
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
}
@media screen and (max-width: 640px) {
  .nav-links a {
    font-size: 11px;
  }
}
.nav-links a:hover {
  color: #fafafa;
}

/********/
/* HERO */
/********/
.hero {
  padding: 100px 0 40px;
}
@media screen and (max-width: 640px) {
  .hero {
    padding: 80px 0 24px;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 64px;
}
@media screen and (max-width: 640px) {
  .hero-content {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: #fafafa;
  line-height: 1.3;
}
@media screen and (max-width: 640px) {
  .hero-name {
    font-size: 22px;
  }
}

.hero-highlight {
  color: #2dd4bf;
}

.hero-title {
  font-size: 20px;
  font-weight: 400;
  color: #a1a1aa;
  margin: 0 0 24px;
}
@media screen and (max-width: 640px) {
  .hero-title {
    font-size: 18px;
  }
}

.hero-summary {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.75;
  margin: 0 0 12px;
  max-width: 520px;
}
.hero-summary:last-of-type {
  margin-bottom: 24px;
}
@media screen and (max-width: 640px) {
  .hero-summary {
    max-width: 100%;
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.6;
  }
  .hero-summary:last-of-type {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 640px) {
  .career-location {
    display: none;
  }
}

.career-brief {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.career-brief li {
  font-size: 15px;
  color: #a1a1aa;
  padding: 3px 0;
  line-height: 1.5;
}
@media screen and (max-width: 640px) {
  .career-brief li {
    font-size: 14px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
}
@media screen and (max-width: 640px) {
  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

@media screen and (max-width: 640px) {
  .hero-actions .btn.btn-hide-mobile {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  .hero-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

.hero-avatar {
  flex-shrink: 0;
}
.hero-avatar img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid #27272a;
}
@media screen and (max-width: 640px) {
  .hero-avatar img {
    width: 150px;
    height: 150px;
  }
}

/*********/
/* BUTTONS */
/*********/
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: #2dd4bf;
  color: #111113;
}
.btn-primary:hover {
  background: #5eead4;
  color: #111113;
}

.btn-outline {
  border: 1px solid #27272a;
  color: #d4d4d8;
  background: transparent;
}
.btn-outline:hover {
  border-color: #3f3f46;
  color: #fafafa;
}

/************/
/* SECTIONS */
/************/
.section {
  padding: 32px 0;
}
@media screen and (max-width: 640px) {
  .section {
    padding: 20px 0;
  }
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}
.section-heading::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: #2dd4bf;
  margin-top: 12px;
}
@media screen and (max-width: 640px) {
  .section-heading {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

/**********/
/* SKILLS */
/**********/
.skills-section {
  padding: 48px 0;
}
@media screen and (max-width: 640px) {
  .skills-section {
    padding: 32px 0;
  }
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills-list li {
  font-size: 15px;
  color: #a1a1aa;
  padding: 8px 0;
  border-bottom: 1px solid #27272a;
  line-height: 1.6;
}
.skills-list li:first-child {
  padding-top: 0;
}
.skills-list li:last-child {
  border-bottom: none;
}

/************/
/* TIMELINE */
/************/
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #27272a;
}
@media screen and (max-width: 640px) {
  .timeline {
    padding-left: 20px;
  }
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
}
@media screen and (max-width: 640px) {
  .timeline-marker {
    left: -24px;
  }
}

.timeline-content {
  background: #1c1c20;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 24px;
}
@media screen and (max-width: 640px) {
  .timeline-content {
    padding: 16px;
  }
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
@media screen and (max-width: 640px) {
  .timeline-header {
    flex-direction: column;
    gap: 2px;
  }
}
.timeline-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.company {
  font-size: 14px;
  color: #2dd4bf;
  margin: 2px 0 0;
  font-weight: 500;
}

.company-location {
  color: #a1a1aa;
  font-weight: 400;
}
@media screen and (max-width: 640px) {
  .company-location {
    display: none;
  }
}

.timeline-date {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.timeline-collapse summary {
  display: none;
}
@media screen and (max-width: 640px) {
  .timeline-collapse summary {
    display: block;
    font-size: 13px;
    color: #2dd4bf;
    cursor: pointer;
    padding: 8px 0 0;
    list-style: none;
  }
  .timeline-collapse summary::-webkit-details-marker {
    display: none;
  }
  .timeline-collapse summary::after {
    content: " +";
  }
}
.timeline-collapse[open] summary::after {
  content: " \2212";
}
@media screen and (min-width: 641px) {
  .timeline-collapse:not([open]) > .timeline-details {
    display: block;
  }
  .timeline-collapse > .timeline-details {
    display: block !important;
  }
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.65;
}
.timeline-details li:last-child {
  margin-bottom: 0;
}
.timeline-details li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: #3f3f46;
  font-weight: 400;
}

/************/
/* PROJECTS */
/************/
.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  background: #1c1c20;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.15s ease;
}
.project-card:hover {
  border-color: #3f3f46;
}
.project-card--wip {
  border-style: dashed;
  opacity: 0.8;
}
@media screen and (max-width: 640px) {
  .project-card {
    padding: 16px;
  }
}

.project-wip-badge {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
@media screen and (max-width: 640px) {
  .project-card-header {
    flex-direction: column;
    gap: 2px;
  }
}
.project-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.project-description {
  font-size: 14px;
  color: #a1a1aa;
  margin: 6px 0 0;
  line-height: 1.6;
}

.project-stars {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.project-role {
  font-size: 14px;
  font-weight: 400;
  color: #a1a1aa;
}

.project-gallery {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.project-gallery::-webkit-scrollbar {
  height: 4px;
}
.project-gallery::-webkit-scrollbar-track {
  background: transparent;
}
.project-gallery::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 2px;
}
@media screen and (max-width: 640px) {
  .project-gallery {
    gap: 8px;
    margin: 12px 0;
  }
}

.gallery-thumb {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #27272a;
  cursor: pointer;
  background: #111113;
  padding: 0;
  transition: border-color 0.15s ease;
}
.gallery-thumb:hover {
  border-color: #2dd4bf;
}
.gallery-thumb:hover video {
  opacity: 1;
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb video {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
@media screen and (max-width: 640px) {
  .gallery-thumb {
    flex: 0 0 75vw;
    height: 140px;
  }
}

.gallery-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #fafafa;
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
  padding-left: 2px;
}
.gallery-thumb:hover .gallery-play-badge {
  background: rgba(45, 212, 191, 0.7);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  font-size: 11px;
  color: #fafafa;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
  text-align: left;
}

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

.project-tag {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  display: block;
}

.lightbox-caption {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #a1a1aa;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 201;
  background: none;
  border: none;
  color: #fafafa;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fafafa;
  font-size: 28px;
  cursor: pointer;
  padding: 12px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  z-index: 201;
}
.lightbox-nav:hover {
  opacity: 1;
}
.lightbox-nav.lightbox-prev {
  left: 12px;
}
.lightbox-nav.lightbox-next {
  right: 12px;
}

/*************/
/* EDUCATION */
/*************/
.education-card {
  background: #1c1c20;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 24px;
}
@media screen and (max-width: 640px) {
  .education-card {
    padding: 16px;
  }
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
@media screen and (max-width: 640px) {
  .education-header {
    flex-direction: column;
    gap: 2px;
  }
}
.education-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.education-location {
  font-size: 14px;
  color: #a1a1aa;
  margin: 2px 0 0;
  font-weight: 400;
}

.education-date {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.education-detail {
  font-size: 14px;
  color: #a1a1aa;
  margin: 12px 0 0;
}

/***********/
/* CONTACT */
/***********/
.contact-content {
  max-width: 100%;
}
.contact-content > p {
  font-size: 15px;
  color: #a1a1aa;
  margin: 0 0 24px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
@media screen and (max-width: 640px) {
  .contact-links {
    flex-direction: column;
  }
}

.copy-btn {
  background: none;
  border: none;
  color: #2dd4bf;
  font-size: 14px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  margin: 0;
  line-height: inherit;
  flex-shrink: 0;
}
.copy-btn:hover {
  color: #fafafa;
}
.copy-btn.copied {
  color: #2dd4bf;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 14px;
  background: #1c1c20;
  border: 1px solid #27272a;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}
.contact-item:hover {
  border-color: #3f3f46;
}
.contact-item a {
  color: #d4d4d8;
}
.contact-item a:hover {
  color: #d4d4d8;
}
@media screen and (max-width: 640px) {
  .contact-item {
    padding: 12px 14px;
  }
  .contact-item a {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .contact-item .contact-label {
    width: 100%;
  }
  .contact-item .contact-value {
    font-size: 13px;
  }
}

.contact-label {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  color: #2dd4bf;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.contact-value {
  font-size: 14px;
  color: #a1a1aa;
  white-space: nowrap;
}

/**********/
/* FOOTER */
/**********/
.site-footer {
  border-top: 1px solid #27272a;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
.footer-inner p {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: #a1a1aa;
}
.footer-links a:hover {
  color: #fafafa;
}
