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

body {
  background: #f9f6ef;
  font-family: "Montserrat", sans-serif;
  padding-top: 90px;
}


/* ============================================================
   HEADER
   ============================================================ */
header {
  background-color: #1F5C47;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 3rem;
}

.logo {
  position: relative;
  height: 100px;
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo .logo-black {
  position: absolute;
  top: 0;
  left: 0;
  height: 100px;
  width: auto;
  opacity: 0;
}

.logo:hover .logo-default {
  opacity: 0;
}

.logo:hover .logo-black {
  opacity: 1;
}

a.logo {
  padding: 0;
  font-size: 0;
  border-radius: 0;
  background: none;
}

a.logo:hover {
  background: none;
  transform: none;
  color: inherit;
}

.menu-container {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #f9f6ef;
  font-size: 2rem;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: #BFC0F6;
  transform: scale(1.05);
  color: #282828;
}


/* ============================================================
   INTRO (home page)
   ============================================================ */
.intro {
  padding: 6rem 75px;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section {
  margin-bottom: 2rem;
}

.typing-container {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 700;
  color: #1F5C47;
  min-height: 3lh;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #1F5C47;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.intro-text {
  font-size: clamp(1rem, 1.6vw, 1.6rem);
  max-width: 60%;
  margin-top: 0.75rem;
  font-weight: 400;
  color: #282828;
}


/* ============================================================
   ABOUT INTRO
   ============================================================ */
.about-intro {
  padding: 6rem 75px;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.about-intro .intro-content {
  flex: 1;
  max-width: 50%;
}

.about-intro .intro-text {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  max-width: 100%;
  margin-top: 0.75rem;
  font-weight: 400;
}

.about-intro .project-image {
  flex: 1;
  max-width: 45%;
  align-self: flex-start;
}

.about-intro .project-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   PROJECT GRID
   ============================================================ */
.projects {
  margin-top: 5rem;
}

.projects-title {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  color: #1F5C47;
  text-align: center;
  margin-bottom: 3rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 85vh;
  width: 100%;
}

/* Gallery CTA below project grid */
.projects-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 75px 0;
}

.projects-cta-text {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 400;
  color: #282828;
  text-align: center;
}


/* ============================================================
   PANELS
   ============================================================ */
.panel {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.panel-1 .panel-bg { background-image: url("uem.png"); }
.panel-2 .panel-bg { background-image: url("gssm.png"); }
.panel-3 .panel-bg { background-image: url("bwbb.png"); }
.panel-4 .panel-bg { background-image: url("ggappt.png"); }

.panel:hover .panel-bg {
  transform: scale(1.5);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.panel:hover::after {
  background: rgba(0, 0, 0, 0.4);
}

.panel-info {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #f9f6ef;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
  max-width: 80%;
}

.panel:hover .panel-info {
  opacity: 1;
  transform: translateY(0);
}

.panel-title {
  font-size: clamp(1.1rem, 2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.panel-description {
  font-size: clamp(0.85rem, 1.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.4;
}

/* Large decorative number — anchored to bottom-right corner */
.number {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-size: 22rem;
  font-weight: 700;
  color: #f9f6ef;
  opacity: 0.8;
  z-index: 2;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}


/* ============================================================
   HERO CONTAINER
   ============================================================ */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  margin-top: 5rem;
  padding: 2rem 2rem 60px;
}

.hero-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  color: #f9f6ef;
}

.hero-content p {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #1F5C47;
  color: #f9f6ef;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 700;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background-color: #BFC0F6;
  transform: scale(1.05);
  color: #282828;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: #1F5C47;
  color: #f9f6ef;
  padding: 3rem 3rem 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  gap: 2rem;
}

.footer-links a {
  color: #f9f6ef;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: font-size 0.3s ease;
}

.footer-links a:hover {
  font-size: 1.25rem;
}

.footer-contact {
  color: #f9f6ef;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.footer-contact h4 {
  font-weight: 300;
  text-align: center;
}

.footer-logo {
  text-align: center;
  margin: 2rem auto;
}

.footer-logo img {
  height: 100px;
}

.footer-bottom {
  border-top: 1px solid rgba(249, 246, 239, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  font-weight: 300;
  color: #f9f6ef;
}


/* ============================================================
   PROJECT PAGE — HERO
   ============================================================ */
.project-hero {
  display: flex;
  gap: 4rem;
  padding: 4rem 75px;
  align-items: center;
  min-height: calc(100vh - 90px);
}

.project-info {
  flex: 1;
  max-width: 50%;
}

.project-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: #1F5C47;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.project-description {
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  font-weight: 400;
  color: #282828;
  line-height: 1.6;
}

.project-image {
  flex: 1;
  max-width: 50%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   PROJECT PAGE — PROCESS / GALLERY
   ============================================================ */
.process-section {
  padding: 6rem 75px;
  background: #f9f6ef;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: #1F5C47;
  text-align: center;
  margin-bottom: 4rem;
}

/* Pinterest-style masonry grid */
.gallery-grid {
  column-count: 3;
  column-gap: 2rem;
  background: #f9f6ef;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 2rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  display: inline-block;
  width: 100%;
}

.gallery-bg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-bg {
  transform: scale(1.5);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  background: #282828;
  opacity: 0.75;
}

.gallery-info {
  position: absolute;
  top: 24px;
  left: 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
  max-width: 80%;
  pointer-events: none;
}

.gallery-item:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f9f6ef;
}

.gallery-text {
  font-size: clamp(0.85rem, 1.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.4;
  color: #f9f6ef;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  text-align: center;
  color: #f9f6ef;
  margin-top: 2rem;
  max-width: 800px;
}

#lightbox-title {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  color: #f9f6ef;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 2rem;
  color: #f9f6ef;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 2001;
  transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: #BFC0F6;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #f9f6ef;
  background: rgba(25, 52, 151, 0.7);
  border: none;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2001;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #1F5C47;
  transform: translateY(-50%) scale(1.1);
}


/* ============================================================
   ABOUT ME TEASER SECTION
   ============================================================ */
.about-teaser {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 6rem 75px;
  background: #f9f6ef;
}

.teaser-left {
  flex: 0 0 38%;
  max-width: 38%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.teaser-body {
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  font-weight: 400;
  color: #282828;
  line-height: 1.7;
}

.teaser-right {
  flex: 1;
}

.teaser-img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: block;
  transition: transform 0.5s ease;
}

.teaser-img:hover img {
  transform: scale(1.06);
}


/* ============================================================
   RESUME
   ============================================================ */
.resume-section {
  padding: 6rem 5%;
  background: #f9f6ef;
}

.resume-container {
  max-width: 100%;
  margin: 0 auto;
}

.resume-block {
  margin-bottom: 4rem;
}

.resume-heading {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  color: #1F5C47;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #1F5C47;
}

.resume-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 0.5rem;
  align-items: start;
}

.resume-left,
.resume-middle {
  display: flex;
  flex-direction: column;
}

.resume-right {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.company,
.role,
.dates {
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  font-weight: 400;
  color: #282828;
  line-height: 1.4;
  margin: 0;
}

.location {
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 300;
  color: #282828;
  margin: 0;
}

.description {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  font-weight: 300;
  color: #282828;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.resume-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  font-weight: 300;
  color: #282828;
  line-height: 1.8;
  margin: 0.5rem 0;
}


/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
  body {
    padding-top: 80px;
  }

  .logo {
    height: 55px;
  }

  .logo img,
  .logo .logo-black {
    height: 55px;
  }

  nav {
    padding: 0.75rem 2rem;
  }

  nav a {
    font-size: 1rem;
  }

  .menu-container {
    gap: 1rem;
  }

  .intro {
    min-height: calc(100vh - 80px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .about-intro {
    flex-direction: column;
    min-height: calc(100vh - 80px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .about-intro .intro-content,
  .about-intro .project-image {
    max-width: 100%;
  }

  .about-intro .project-image {
    margin-top: 3rem;
  }

  .projects {
    margin-top: 4rem;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    height: 75vh;
  }

  .panel {
    height: 50vh;
  }

  .hero-container {
    height: 100vh;
    margin-top: 4rem;
    padding: 2rem 2rem 50px;
  }

  .project-hero {
    padding: 3rem 40px;
    min-height: calc(100vh - 80px);
  }

  .process-section {
    padding: 4rem 40px;
  }

  .gallery-grid {
    column-count: 2;
  }

  .about-teaser {
    gap: 3rem;
    padding: 5rem 40px;
  }

  .teaser-left {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .resume-section {
    padding: 4rem 5%;
  }
}


/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .logo {
    height: 45px;
  }

  .logo img,
  .logo .logo-black {
    height: 45px;
  }

  nav {
    padding: 0.75rem 1.5rem;
  }

  nav a {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .menu-container {
    gap: 0.5rem;
  }

  .intro {
    min-height: calc(100vh - 70px);
    padding: 3rem 30px;
  }

  .about-intro {
    min-height: calc(100vh - 70px);
    padding: 3rem 30px;
  }

  .intro-text {
    max-width: 90%;
  }

  .projects {
    margin-top: 3rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .panel {
    height: 50vh;
  }

  .hero-container {
    height: 70vh;
    margin-top: 3rem;
    padding: 3rem 1.5rem 40px;
  }

  .hero-content {
    max-width: 95%;
  }

  .footer-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-logo img {
    height: 70px;
  }

  .footer-bottom {
    margin-top: 0.5rem;
  }

  .project-hero {
    flex-direction: column;
    padding: 2rem 30px;
    gap: 2rem;
  }

  .project-info,
  .project-image {
    max-width: 100%;
  }

  .process-section {
    padding: 3rem 30px;
  }

  .gallery-grid {
    column-count: 1;
  }

  #lightbox-img {
    max-height: 55vh;
  }

  .lightbox-caption {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 1.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.6rem 0.9rem;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }

  .about-teaser {
    flex-direction: column;
    padding: 4rem 30px;
    gap: 2.5rem;
  }

  .teaser-left {
    flex: unset;
    max-width: 100%;
    gap: 2rem;
  }

  .teaser-right {
    width: 100%;
  }

  .resume-section {
    padding: 3rem 30px;
  }

  .resume-block {
    margin-bottom: 3rem;
  }

  .resume-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .resume-right {
    text-align: left;
  }

  .resume-bottom-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-contact h4 {
    text-align: center;
  }
}
