@import url("styles.css");

/* Minimal version — no case studies section, no header nav, no scroll:
   header + hero + footer fit within a single viewport. */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.hero {
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  padding-top: 100px;
  padding-bottom: 24px;
}

.site-footer {
  flex: 0 0 auto;
}

.footer-clients {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-clients-label {
  font-size: 16px;
  white-space: nowrap;
}

.footer-client-logos {
  gap: 24px;
  justify-content: flex-start;
  width: auto;
}

.footer-client-logos img {
  height: 24px;
}

.site-footer .contact-email {
  font-size: 18px;
  margin-bottom: 0;
}

.site-footer * {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.site-footer .contact-email::after {
  display: none;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  row-gap: 32px;
}

.hero-left {
  flex: 1 1 420px;
}

.hero-right {
  flex: 0 0 auto;
}

.hero-right a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-right a span {
  transition: transform 0.2s ease;
}

.hero-right a:hover span {
  transform: translateX(4px);
}

/* About me overlay */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--blue);
  color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 140px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.about-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.about-overlay .about-content {
  display: flex;
  gap: 96px;
  align-items: flex-start;
  max-width: var(--max-width);
}

.about-overlay .about-photo {
  flex: 0 0 260px;
  width: 260px;
  height: 320px;
}

.about-overlay .about-text h2 {
  font-size: clamp(32px, 6vw, 68px);
  margin-bottom: 32px;
}

.about-overlay .about-text p {
  font-size: 22px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: rgba(235, 235, 235, 0.92);
}

.about-overlay .about-text p:last-child {
  margin-bottom: 0;
}

.about-close {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 2001;
  width: 48px;
  height: 48px;
  border: 2px solid var(--bg-light);
  border-radius: 50%;
  background: transparent;
  color: var(--bg-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.about-close:hover {
  background: var(--bg-light);
  color: var(--blue);
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .about-overlay {
    padding: 80px 28px 40px;
  }

  .about-overlay .about-content {
    flex-direction: column;
    gap: 32px;
  }

  .about-overlay .about-photo {
    flex: 0 0 auto;
    width: 180px;
    height: 220px;
  }

  .about-close {
    top: 20px;
    right: 20px;
  }
}

/* Resume overlay */
.resume-overlay {
  align-items: flex-start;
  overflow-y: auto;
  padding: 100px 140px 80px;
}

.resume-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.resume-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 64px;
}

.resume-head h2 {
  font-size: clamp(28px, 5vw, 48px);
}

.resume-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 16px;
  color: rgba(235, 235, 235, 0.85);
}

.resume-head-meta a {
  position: relative;
}

.resume-head-meta a:hover {
  text-decoration: underline;
}

.resume-section {
  margin-bottom: 32px;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-light);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(235, 235, 235, 0.3);
}

.resume-entry {
  margin-bottom: 18px;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.resume-entry-row h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  color: var(--bg-light);
}

.resume-entry-row span {
  font-size: 15px;
  color: rgba(235, 235, 235, 0.75);
  white-space: nowrap;
}

.resume-entry-sub {
  font-size: 16px;
  font-style: italic;
  color: rgba(235, 235, 235, 0.75);
  margin: 4px 0 8px 0;
}

.resume-entry p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(235, 235, 235, 0.88);
  margin: 6px 0 0 0;
}

@media (max-width: 900px) {
  .resume-overlay {
    padding: 90px 28px 60px;
  }

  .resume-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .resume-head-meta {
    align-items: flex-start;
  }

  .resume-entry-row {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 900px) {
  html, body {
    height: auto;
  }

  body {
    overflow: visible;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-clients {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-client-logos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .footer-clients-label {
    font-size: 15px;
  }

  .footer-client-logos img {
    height: 20px;
  }

  .site-footer .contact-email {
    font-size: 16px;
  }
}
