@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');
@import url('https://fonts.cdnfonts.com/css/plush-trial');

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

.hero {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  background: #ffffff;
  
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bg-slide.active {
  opacity: 1;
}

.bg-slide:first-child {
  opacity: 1;
}

.bg-slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.4s;
}

.overlay.visible {
  opacity: 1;
}

.content {
  position: relative;
  z-index: 2;
  padding: 44px 52px;
}

.name {
  font-size: 32px;
  font-weight: 900;
  color: #222;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.bio {
  font-size: 16px;
  color: #999;
  max-width: 48%;
  line-height: 1.65;
  margin-bottom: 44px;
  transition: color 0.3s;
  text-wrap: pretty;
  font-family: 'Plush-Trial', serif;
}

.section-label {
  font-size: 20px;
  color: #999;
  letter-spacing: 0.06em;
  margin-bottom: 0px;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 500;
}

.featured-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}

.project-card img {
  width: 100%;
  height: 320px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}

.project-card p {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

/* when image is showing — everything turns white */
.lit .name { color: #fff; }
.lit .bio { color: rgba(255, 255, 255, 0.7); }
.lit .nav-link { color: rgba(255, 255, 255, 0.7); }

#topbar {
  position: fixed;
  top: 44px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

#topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: all;
}

.nav-link {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #222;
}

/* contact overlay */
#contact-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#contact-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#contact-inner {
  width: 100%;
  max-width: 400px;
  padding: 48px 24px;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.contact-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.contact-email {
  font-size: 22px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: block;
  margin-bottom: 48px;
  transition: opacity 0.2s;
  font-family: 'Plush-Trial', serif;
}

.contact-email:hover {
  opacity: 0.5;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 0.5px solid #eee;
}

.social-item:last-child {
  border-bottom: none;
}

.social-name {
  font-size: 13px;
  color: #999;
}

.social-link {
  font-size: 13px;
  color: #222;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.5;
}

#close-contact {
  position: fixed;
  top: px;
  right: 24px;
  font-size: 14px;
  color: #222;
  background: none;
  border: 0.5px solid #ddd;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

#close-contact:hover {
  background: #f5f5f5;
}

.expertise-heading {
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 500;
  color: #222;
  width: 500px;
  max-width: 90%;
  margin: 160px auto 64px;
  line-height: 1.3;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  text-align: left;
}

.expertise-label {
  color: #bbb;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 500px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.category-card:hover {
  background: #fdfde8;
}

.category-img {
  width: 160px;
  flex-shrink: 0;
}

.category-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.category-text h3 {
  font-size: 22px;
  font-weight: 400;
  color: #222;
  margin-bottom: 6px;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.category-text p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  max-width: 480px;
}

.connect-section {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 80px 52px;
  margin-top: 80px;
  max width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.connect-heading {
  font-size: 40px;
  font-weight: 900;
  color: #222;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  line-height: 1.2;
}

.connect-btn {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  background: #fff;
  border: 0.5px solid #ddd;
  border-radius: 999px;
  padding: 10px 24px;
  text-decoration: none;
  transition: background 0.2s;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.connect-btn:hover {
  background: #eeeeee;
}

.copyright {
  font-size: 14px;
  color: #bbb;
  text-align: right;
  margin-top: 80px;
  padding-bottom: 20px;
}

@media (max-width: 1440px) {
  .bio {
    font-size: 16px;
    max-width: 100%;
    margin-bottom: 32px;
  }  
  .expertise-heading {
    font-size: 32px;
    max-width: 100%;
  }
    

  .category-list {
    max-width: 100%;
  }
}
}