/* ===== Base ===== */

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

a {
  text-decoration: none; 
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Helvetica, Arial, sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI";
  background-color: #27272d; /* page background */
  color: #f5f5f5;
  line-height: 1.6;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

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

/* ===== Layout Helpers ===== */

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

/* ===== Header / Nav (shared) ===== */

.site-header {
  padding: 32px 0 40px;
  position: sticky;
  top: 0px;
  z-index: 1000;
  background-color: rgba(36, 36, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); 
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* Profile pill */

.profile-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background-color: #202531;
  border-radius: 999px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.profile-role {
  margin: 0;
  font-size: 0.85rem;
  color: #cccccc;
}

.profile-email {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #d9d47c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-email:hover {
  text-decoration: underline;
}

.profile-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-link {
  width: 22px;
  height: 22px;
  /* border-radius: 999px;
  border: 1px solid #d9d47c; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #d9d47c;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-email:hover,
.social-link:hover {
  color: #619c8a;
  /* border-color: #619c8a; */
  /* text-decoration: none; */
}

/* Nav */

.main-nav,
.footer-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-link:hover {
  text-decoration: underline;
}
/* white underline on hover */
.nav-link:hover {
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

/* ===== Card Links ===== */

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-decoration: none;
}

/* ===== Hero & Intro ===== */

.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text-group {
  margin-top: 40px;
}

.hero-kicker {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 400;
  color: #dddddd;
}

/* Intro card */

.intro-card {
  max-width: 1000px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.intro-card p {
  margin-bottom: 12px;
}

.intro-question {
  font-weight: 600;
}

.intro-actions {
  margin-top: 20px;
}

/* Button */

.btn {
  border-radius: 999px;
  border: 1px solid #aaaaaa;
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: transparent;
  color: #f5f5f5;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  color: #d9d47c;
  background-color: #233e4e;
  border-color: #233e4e;
}

.btn:active {
  color: #7c7c7c;
  background-color: #464646;
  border-color: #464646;
}

/* ===== Favorites ===== */

.favorites {
  padding: 40px 0 24px;
}

.section-title-small {
  font-size: 1rem;
  margin-bottom: 16px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}

.favorite-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.favorite-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(217, 212, 124, 0.55);
}

.favorite-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.favorite-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-overlay {
  position: relative;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.1)
  );
}

.favorite-tag {
  margin: 0 0 4px;
  font-size: 0.7rem;
  /* letter-spacing: 0.1em; */
  text-transform: uppercase;
  color: #e0e0e0;
}

.favorite-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Projects ===== */

.projects {
  padding: 64px 0 72px;
}

.section-title {
  font-size: 2.1rem;
  margin: 0 0 32px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 32px;          /* space between project rows */
  align-items: stretch;
}

/* Two-column behavior:
   First column: project cards & placeholder stack.
   Second column: text-based project items.
*/

.project-item {
  display: flex;
  gap: 20px;
  position: relative;
}

.project-image-wrap {
  flex: 0 0 600px;
  max-width: 600px;
  height: 400px;
  background-color: #262a35;
  overflow: hidden;
  border-top: none;
  border-left: none;
  border-bottom: none;
  border-right: none; /* Default state */
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-empty {
  background-color: #262a35;
}

.project-content {
  flex: 1;
}

.project-title {
  margin: 0 0 6px;
  font-size: 2rem;
}

.project-meta {
  margin: 0 0 2px;
  font-size: 1.1rem;
  color: #c0c0c0;
}

.project-item:hover .project-image-wrap {
  border-right: 2px solid #D9D47C;
}

.no-hover:hover .project-image-wrap {
  border-right: none !important;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid #3b404f;
  background-color: #24242a;
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-copy {
  margin: 0;
  color: #c4c4c4;
}


/* ===== Shared Software Buttons ===== */

.software-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}

.software-button {
  border-radius: 999px;
  border: 1px solid #aaaaaa;
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: transparent;
  color: #f5f5f5;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* hover */
.software-button:hover {
  color: #d9d47c;
  background-color: #233e4e;
  border-color: #233e4e;
}

/* active */
.software-button:active {
  color: #7c7c7c;
  background-color: #464646;
  border-color: #464646;
}

/* ===== PROJECT 1 – Creating Accessories for VR Avatars ===== */

/* Project 1 gallery hero */

.project-gallery {
  padding-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 500px;
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* hover: scale + underglow */
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(217, 212, 124, 0.55);
}

.gallery-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.05)
  );
}

.gallery-tag {
  margin: 0;
  font-size: 0.7rem;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  color: #e2e2e2;
}

.gallery-title {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Project 1 content */

.project-content {
  padding: 40px 0 72px;
}

.project-label {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #e0e0e0;
}

.project-heading {
  margin: 0 0 32px;
  font-size: 2.4rem;
  font-weight: 600;
}

.project-section {
  margin-bottom: 28px;
}

.project-subheading {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.project-section p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: #e2e2e2;
}

/* ===== Project 1 Gallery Lightbox Overlay ===== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.gallery-lightbox.is-visible {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(90vw, 1100px);
  padding: 24px 24px 40px;
  border-radius: 18px;
  background: #111118;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 6px #2d3036;
}

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

/* Arrows */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  color: #111111;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-arrow:hover {
  /* transform: translateY(-50%) scale(1.05); */
  box-shadow: 0 0 0 6px rgba(217, 212, 124, 0.7);
}

.arrow-left {
  left: -84px;
}

.arrow-right {
  right: -84px;
}

/* Close button (top right) */

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  color: #ffa3a3;
  font-size: 2rem;
  cursor: pointer;
}

/* Dots */

.lightbox-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  cursor: pointer;
}

.lightbox-dot.is-active {
  background-color: #d9d47c;
}

/* Responsive arrows on smaller screens */

@media (max-width: 900px) {
  .lightbox-inner {
    width: 95vw;
    padding: 16px 16px 40px;
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .arrow-left {
    left: -60px;
  }

  .arrow-right {
    right: -60px;
  }
}


/* ===== PROJECT 2 – UM-GPT Case Study ===== */

/* Hero banner */

.case-hero {
  margin-bottom: 40px;
}

.case-hero-image {
  width: 100%;
  height: 360px;
  background-color: #112848;
  background-size: cover;
  background-position: center;
}

/* Centered CTAs */

.center-cta {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
  gap: 24px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border-radius: 999px;
  border: 1px solid #f5f5f5;
  font-size: 0.92rem;
  color: #f5f5f5;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.primary-cta:hover,
.secondary-cta:hover {
  background-color: #f5f5f5;
  color: #27272d;
}

/* Old Design block */

.case-old {
  padding: 32px 0 40px;
}

.old-design-card {
  margin-top: 20px;
  background-color: #212329;
  border-radius: 8px;
  border: 1px solid #3b404f;
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.old-design-card img {
  width: 100%;
  height: auto;
}

/* Thinking lists */

.thinking-intro {
  margin-bottom: 16px;
}

.thinking-block {
  margin-bottom: 10px;
}

.thinking-label {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 0.94rem;
}

.thinking-list {
  margin: 0 0 8px 18px;
  padding: 0;
  list-style: disc;
}

.thinking-list li {
  font-size: 0.94rem;
  color: #e2e2e2;
}

/* Final slideshow */

.case-final {
  padding: 16px 0 64px;
}

.final-card {
  position: relative;
  /* background-color: #ffffff; */
  border-radius: 6px;
  overflow: hidden;
  padding: 24px 24px 56px;
}

.final-slide {
  width: 100%;
  display: none;
}

.active-slide {
  display: block;
}

.final-card-progress {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.progress-bar {
  width: 60px;
  height: 4px;
  background-color: #e2e2e2;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.active-bar {
  background-color: #d9d47c;
}

.carousel-arrow {
  position: absolute;
  bottom: 0px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d9d47c;
  background-color: transparent;
  color: #d9d47c;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}

.carousel-arrow:hover {
  background-color: #d9d47c;
  color: #27272d;
}

.carousel-arrow-left {
  left: 72px;
}

.carousel-arrow-right {
  right: 72px;
}

/* ===== PROJECT 3 – XR Interfaces (some rules may be extended later) ===== */

.xr-hero-images {
  padding-bottom: 40px;
}

.xr-hero-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.xr-hero-card {
  flex: 0 0 48%;
  max-width: 480px;
  /* background-color: #202531; */
  border-radius: 4px;
  overflow: hidden;
}

.xr-hero-card video{
  width: 100%;
  height: auto;
}

/* Tag buttons under Background */

.xr-button-row {
  display: flex;
  gap: 12px;
  margin: 8px 0 24px;
}

.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tag-button:hover {
  background-color: #ffffff;
  color: #27272d;
}

/* Mid-page XR images */

.xr-secondary-images {
  padding: 0 0 40px;
}

.xr-secondary-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.xr-secondary-card {
  height: 280px;   /* same height for both cards */
  overflow: hidden;
}

.xr-secondary-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* image fills the frame, may crop a bit */
}

/* XR considerations can reuse generic project-section styles */

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-pill {
    width: 100%;
  }

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

  .projects-list {
    gap: 24px;
  }

  .project-item {
    flex-direction: column;
  }

  .project-image-wrap {
    width: 100%;
    max-width: none;
    height: 260px;
  }

  .xr-hero-row,
  .xr-secondary-row {
    flex-direction: column;
    align-items: center;
  }

  .xr-hero-card,
  .xr-secondary-card {
    width: 100%;
    max-width: 540px;
  }

  .xr-button-row {
    justify-content: center;
  }

  .case-hero-image {
    height: 300px;
  }
}

@media (max-width: 800px) {
  .hero-heading {
    font-size: 2.6rem;
  }

  .project-heading {
    font-size: 2rem;
  }

  .favorites-section {
    padding-bottom: 40px;
  }

  .xr-hero-images {
    padding-bottom: 32px;
  }

  .xr-secondary-images {
    padding-bottom: 32px;
  }

  .old-design-card {
    padding: 24px;
  }

  .final-card {
    padding: 16px 16px 56px;
  }

  .carousel-arrow-left {
    left: 40px;
  }

  .carousel-arrow-right {
    right: 40px;
  }

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