/* ============================================================
   VARIABLES & RESET
   ============================================================ */

:root {
  --accent: #7BC67A;
  --accent-dark: #5aaa59;
  --black: #111111;
  --gray-dark: #444444;
  --gray-mid: #666666;
  --gray-light: #999999;
  --border: #E8E8E8;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --font: 'DM Sans', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

.nav-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s;
  letter-spacing: 1px;
}

.lang-btn.active {
  color: #fff;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--black);
}

.accent {
  color: var(--accent-dark);
}

.hero-tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 16px;
  color: var(--gray-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-dark);
}

.contact-sep {
  color: var(--gray-light);
}

.copy-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.copy-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

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

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--black);
  transition: border-color 0.2s, color 0.2s;
}

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

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

.hero-photo img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  filter: grayscale(10%);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 80px 40px;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.skills-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 20px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--gray-dark);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.pill-core {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.card-body {
  padding: 24px;
}

.card-company {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.card-result {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 16px;
  margin-top: 4px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--gray-mid);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.card-cta {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.card-cta:hover {
  color: var(--accent-dark);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 48px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-light);
  font-family: var(--font);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--black);
}

.modal-company {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 36px;
}

.modal-block {
  margin-bottom: 28px;
}

.modal-block h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.modal-block p {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.75;
}

.modal-block--result {
  background: rgba(123, 198, 122, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.modal-block--result h3 {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-block--result p {
  color: var(--black);
}

.modal-img {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-imgs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-imgs img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.modal-img img,
.modal-imgs img {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

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

@media (max-width: 640px) {
  .lightbox {
    padding: 8px;
  }
}

/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-item {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:first-child {
  border-top: 1px solid var(--border);
}

.exp-left {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.exp-company {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.exp-period {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 4px;
}

.exp-location {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 4px;
}

.exp-right {
  flex: 1;
}

.exp-role {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.exp-desc {
  font-size: 14px;
  color: var(--gray-mid);
}

/* ============================================================
   TOOLS
   ============================================================ */

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-badge {
  display: inline-block;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--gray-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  text-align: center;
}

/* ============================================================
   SELECTED WORK
   ============================================================ */

.section-subtitle {
  font-size: 15px;
  color: var(--gray-mid);
  margin-top: -32px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.work-item:first-child {
  border-top: 1px solid var(--border);
}

.work-item:hover .work-title {
  color: var(--accent-dark);
}

.work-item:hover .work-arrow {
  color: var(--accent-dark);
  transform: translateX(4px);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  transition: color 0.2s;
}

.work-meta {
  font-size: 13px;
  color: var(--gray-light);
}

.work-arrow {
  font-size: 18px;
  color: var(--gray-light);
  transition: color 0.2s, transform 0.2s;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-inner {
  max-width: 640px;
  text-align: center;
}

.contact .section-title {
  margin-bottom: 16px;
}

.contact-text {
  font-size: 17px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-email {
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 3px solid var(--accent);
  transition: color 0.2s;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent-dark);
}

.contact-ctas {
  justify-content: center;
}

@media (max-width: 600px) {
  .contact-email { font-size: 20px; }
  .contact-sep { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
  color: #fff;
  padding: 48px 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
}

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

.footer-availability {
  font-size: 13px;
  color: #aaa;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-photo {
    width: 180px;
  }

  .hero-contact {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-headline {
    font-size: 34px;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 0 20px;
  }

  .section {
    padding: 56px 20px;
  }

  .hero {
    padding: 36px 20px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .headline-sub {
    display: block;
    margin-top: 8px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .section-subtitle {
    margin-top: -24px;
    margin-bottom: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .experience-item {
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .tool-badge {
    text-align: center;
  }

  .modal {
    padding: 32px 24px;
  }
}
