/* Import Custom Font */
@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('assets/fonts/NeueHaasGroteskDisplayPro-45Light.woff2') format('woff2'),
       url('assets/fonts/NeueHaasGroteskDisplayPro-45Light.woff') format('woff'),
       url('assets/fonts/NeueHaasGroteskDisplayPro-45Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

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

body {
  background-color: #4a4a4a;
  color: #e4ff1a;
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Override body styles for project pages */
body.project-page {
  display: block;
  height: auto;
  align-items: initial;
  overflow-y: auto;
  background: ##4a4a4a;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2; /* Ensure content is above stars */
}

/* Stars container (background particles) */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0; /* Stars should stay behind everything else */
  pointer-events: none; /* Allow interactions to pass through */
}


.star {
  position: absolute;
  will-change: transform;
}

/* Typography for Logo, Nav, and Menu */
.logo,
nav a,
.menu a {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 5rem;
}

/* Header and Navigation */
.logo {
  position: fixed;
  top: 30px;
  left: 30px;
}

nav a {
  color: #e4ff1a;
  text-decoration: none;
  position: fixed;
}

nav .projects {
  top: 30px;
  right: 30px;
}

nav .info {
  bottom: 30px;
  left: 30px;
}

nav .contact {
  bottom: 30px;
  right: 30px;
}

/* Hover Container for Images */
.hover-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 90vw;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -200px;
  z-index: 3;
}

/* Images */
.head-top,
.head-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.head-top {
  z-index: 2;
  margin-top: -240px;
}

.head-bottom {
  z-index: 1;
}

/* Head-top hover: Stop-motion float after initial lift */
.hover-container:hover .head-top {
  animation: headFloatStopMotion 2.5s steps(6) infinite;
  transform: translateY(-70px);
}

@keyframes headFloatStopMotion {
  0%   { transform: translateY(-70px); }
  20%  { transform: translateY(-75px); }
  40%  { transform: translateY(-68px); }
  60%  { transform: translateY(-73px); }
  80%  { transform: translateY(-70px); }
  100% { transform: translateY(-72px); }
}

/* Menu styling */
.menu {
  position: absolute;
  top: calc(50% + 80px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 4;
}

/* Base link styling */
.menu a {
  color: white;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  font-size: 1.8rem;
  font-weight: 300;
}

/* Hover triggers staggered menu reveal */
.hover-container:hover .menu {
  opacity: 1;
}

.hover-container:hover .menu a {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal timing */
.hover-container:hover .menu a:nth-child(1) { transition-delay: 0.2s; }
.hover-container:hover .menu a:nth-child(2) { transition-delay: 0.4s; }
.hover-container:hover .menu a:nth-child(3) { transition-delay: 0.6s; }
.hover-container:hover .menu a:nth-child(4) { transition-delay: 0.8s; }

/* Animations for menu links */
@keyframes floatStopMotion1 {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  25% { transform: rotate(-9deg) translateY(-6px); }
  50% { transform: rotate(-6deg) translateY(0); }
  75% { transform: rotate(-8deg) translateY(6px); }
}

@keyframes floatStopMotion2 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  25% { transform: rotate(-4deg) translateY(-8px); }
  50% { transform: rotate(-2deg) translateY(0); }
  75% { transform: rotate(-5deg) translateY(8px); }
}

/* Games */
.menu a:nth-child(3) { transform: rotate(-3deg) translateY(-12px); }
@keyframes floatStopMotion3 {
  0%, 100% { transform: rotate(-3deg) translateY(-12px); }
  25% { transform: rotate(-5deg) translateY(-16px); }
  50% { transform: rotate(-2deg) translateY(-12px); }
  75% { transform: rotate(-4deg) translateY(-8px); }
}

/* More */
.menu a:nth-child(4) { transform: rotate(-6deg) translateY(-20px); }
@keyframes floatStopMotion4 {
  0%, 100% { transform: rotate(0deg) translateY(-20px); }
  25% { transform: rotate(-12deg) translateY(-28px); }
  50% { transform: rotate(-6deg) translateY(-20px); }
  75% { transform: rotate(-7deg) translateY(-16px); }
}

/* Apply animations */
.hover-container:hover .menu a:nth-child(1) { animation: floatStopMotion1 2.5s steps(4) infinite; }
.hover-container:hover .menu a:nth-child(2) { animation: floatStopMotion2 3s steps(4) infinite; }
.hover-container:hover .menu a:nth-child(3) { animation: floatStopMotion3 2.8s steps(4) infinite; }
.hover-container:hover .menu a:nth-child(4) { animation: floatStopMotion4 3.2s steps(4) infinite; }

/* Bounce Animation for Nav Hover */
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.logo:hover,
nav a:hover,
.menu a:hover {
  animation: bounce 0.4s ease;
}

/* Slide animation for original Projects link */
.projects-slide {
  animation: slideToTopLeft 2s forwards ease-in-out;
}

@keyframes slideToTopLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100vw + 60px + 100%));
  }
}

/* ===================== */
/* Projects Panel Styles */
/* ===================== */
.projects-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateX(-100%); /* Start off-screen to the left */
  transition: transform 2s ease, opacity 2s ease; /* Smooth transition for sliding in */
  z-index: 5; /* Keep it above other content but below stars */
  padding: 50px;
}

.projects-panel.active {
  opacity: 1;
  transform: translateX(0); /* Slide into view */
}

/* Projects Left (List of items) */
.projects-left {
  flex: 1;
  color: #e4ff1a;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Align vertically */
  padding-right: 60px;
}

.projects-left ul {
  list-style: none;
  font-size: 2rem; /* Increased font size for project titles */
  padding: 0;
  padding-top: 80px; /* More gap below big heading */
}

/* Reset LI spacing and style left nav */
.projects-left ul li {
  margin: 0; /* Remove extra space */
  padding: 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInList 0.6s forwards;
  cursor: pointer;
  transition: color 0.3s ease;
}

.projects-panel.active .projects-left ul li {
  animation-delay: calc(var(--delay, 0) * 0.1s);
}

/* Style clickable links */
.projects-left ul li a {
  display: block; /* Make the whole text clickable */
  padding:  0; /* Control spacing here */
  color: #e4ff1a;
  text-decoration: none;
  font-size: inherit;
  transition: color 0.3s ease;
}

/* Hover effect */
.projects-left ul li a:hover {
  color: white;
}


/* Line Separator */
.projects-separator {
  position: absolute;
  top: 20%!important; /* Adjust the top position to control the start of the line */
  left: 40% !important; /* Center the line horizontally */
  width: 2px; /* Thickness of the line */
  height: 70%!important; /* Reduce the height of the line to make it shorter */
  background: #e4ff1a; /* Color of the line */
  transform: translateX(-50%); /* Center the line correctly */
  opacity: 1;
}

/* Circle at the intersection of the line */
.projects-separator::before {
  content: ''; /* Empty content for the circle */
  position: absolute;
  top: 50%; /* Position the circle at the center of the line */
  left: 50%;
  width: 15px; /* Size of the circle */
  height: 15px;
  background-color: #e4ff1a; /* Circle color */
  border-radius: 50%; /* Make it circular */
  transform: translate(-50%, -50%); /* Center the circle at the intersection */
  z-index: 11; /* Ensure it's above the line */
}

/* Project Preview Section */
.projects-right {
  position: relative;
  flex: 1;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 1.5s ease, opacity 1.5s ease;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.projects-panel.active .projects-right {
  opacity: 1;
  transform: translateX(0); /* Slide into place */
  transition-delay: 0.5s; /* Add a slight delay for better effect */
}

/* Additional images for each project - hide by default */
.projects-right .project-thumbnail {
  width: 2500px;
  max-width: 90%;
  height: auto;
  opacity: 0;
  visibility: hidden; /* Add this to completely hide the element */
  transform: translate(-50%, -50%) translateX(50px);
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none; /* Prevent interaction when hidden */
}

/* Make sure the default image is visible initially */
.projects-right .default-image {
  width: 2500px;
  max-width: 90%;
  height: auto;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
}

.projects-right .project-thumbnail.active {
  opacity: 1;
  visibility: visible; /* Show when active */
  transform: translate(-50%, -50%) translateX(0);
  pointer-events: auto; /* Allow interaction when visible */
}

.project-info {
  position: absolute;
  bottom: 15%; /* ✅ Moves it closer to the thumbnail */
  left: 50%;
  transform: translateX(-50%);
  color: #e4ff1a; /* ✅ Matches your theme yellow */
  font-size: 1.6rem; /* ✅ Larger text */
  font-weight: 400;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-info.active {
  opacity: 1;
}

@keyframes slideInList {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade-out utility for logo, nav, main */
.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Back-to-Main link (Oliver Asadi) starts off-screen bottom-right */
.back-to-main {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-family: 'Neue Haas Grotesk', sans-serif;
  font-weight: 300;
  font-size: 5rem;
  color: #e4ff1a;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  z-index: 6; /* above .projects-panel (z-index:5) */
  transform: translate(100%, 100%);
}

/* Animate it in from bottom-right after a short delay */
.back-to-main.active {
  pointer-events: auto;
  animation: appearFromBR 0.8s 1s forwards ease-out;
}
@keyframes appearFromBR {
  from {
    opacity: 0;
    transform: translate(50%, 50%);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Animate it out: slide left then up into top-left */
.back-to-main.exit {
  animation: bottomRightToTopLeft 2s forwards ease-in-out;
}
@keyframes bottomRightToTopLeft {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translateX(calc(-100vw + 60px + 100%));
  }
  100% {
    transform:
      translateX(calc(-100vw + 60px + 100%))
      translateY(calc(-100vh + 60px + 100%));
  }
}

/* Info Panel */
.info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none; /* No background */
  color: #fff;
  opacity: 0;
  transform: translateX(-100%); /* Start off-screen left */
  transition: transform 1.8s ease-in-out, opacity 1.8s ease-in-out;
  z-index: 10;
  overflow-y: auto; /* ✅ Enable scrolling */
  padding: 60px 40px; /* ✅ Padding for breathing space */
  scrollbar-width: none; /* For Firefox */
  pointer-events: none;
}

.info-panel::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, Edge */
}

.info-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: none;
}

.info-panel .info-content {
  position: relative;
  display: block;
  max-width: 1200px;
  z-index: 1;
  pointer-events: auto;
  width: auto; /* ✅ Prevent full-width overlay */
}

.info-details {
  margin-top: 80px; /* ✅ Adds space under the "Info" title */
  display: flex;
  flex-direction: column; /* ✅ Stack content vertically for scroll on mobile */
  gap: 50px; /* ✅ Space between text and image columns */
}

@media (min-width: 1024px) {
  .info-details {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .info-images {
    position: sticky;
    top: 80px;
  }
}


    .orbit-face-container {
        position: relative;
        width: 280px;
        height: 280px;
    }

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

    .orbit-track {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 240px;
        height: 240px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 2px solid rgba(228, 255, 26, 0.5);
    }

    .orbit-ball {
        width: 16px;
        height: 16px;
        background: #e4ff1a;
        border-radius: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
        /* FORCEFULLY DISABLE CSS TRANSITIONS TO PREVENT CONFLICTS */
        transition: none !important;
    }

    .eye {
        position: absolute;
        width: 12px;
        height: 12px;
        background: #e4ff1a;
        border-radius: 50%;
        z-index: 10;
        /* Animation is now handled by JavaScript */
        transition: none !important;
    }



.info-text {
  max-width: 800px;
  line-height: 2;
  font-size: 1.4rem;
  color: #e4ff1a; /* Body text yellow */
  opacity: 0;
  transform: translateX(-60px);
  transition: transform 1s ease, opacity 1s ease;
}

.info-text h3 {
  color: #ffffff; /* Headings white */
  font-size: 1.8rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.info-text h3::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 300px;
  height: 2px;
  background-color: #e4ff1a; /* Yellow divider */
  margin-top: 5px;
}

.info-text p {
  margin-bottom: 20px;
}

.info-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.info-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.info-images img {
  width: 240px;
  opacity: 0;
  transform: translateX(80px);
  transition: transform 1s ease, opacity 1s ease;
}

.info-images img.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger image animations */
.info-images img:nth-child(1) { transition-delay: 0.4s; }
.info-images img:nth-child(2) { transition-delay: 0.6s; }
.info-images img:nth-child(3) { transition-delay: 0.8s; }

nav .info.disable-hitbox::before {
  pointer-events: none;
}

.info-slide {
  animation: slideInfoToTopLeft 2s forwards ease-in-out;
}

@keyframes slideInfoToTopLeft {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100vh + 60px + 100%));
  }
}

.particle-canvas {
  position: fixed;
  pointer-events: none;
  z-index: 9000;
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}

.fade-in {
  opacity: 1 !important;
  transition: opacity 0.5s ease !important;
}

/* ============================= */
/* Contact Panel                 */
/* ============================= */
.contact-panel {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: none;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 5%;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 1.8s ease-in-out, opacity 1.8s ease-in-out;
  z-index: 10;
  pointer-events: none;
}

.contact-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.contact-slide {
  animation: slideContactToTopLeft 2s forwards ease-in-out;
}

@keyframes slideContactToTopLeft {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-100vh + 60px + 100%)); }
}

.contact-form {
  width: 80%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-family: 'Neue Haas Grotesk', sans-serif;
}

.contact-form h2 {
  font-size: 8rem;
  font-weight: 300;
  color: #e4ff1a;
  text-align: left;
  margin-bottom: 2rem;
}

.contact-form label,
.topic-group legend {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #e4ff1a;
}

.contact-form input {
  background: transparent;
  border: none;
  width: 100%;
  font-size: 3rem;
  font-family: 'Neue Haas Grotesk', sans-serif;
  color: #e4ff1a;
  font-weight: 300;
  outline: none;
  padding: 0.5rem 0;
}

.contact-form textarea {
  background: transparent;
  border: none;
  width: 100%;
  font-size: 3rem;
  font-family: 'Neue Haas Grotesk', sans-serif;
  color: #e4ff1a;
  font-weight: 300;
  outline: none;
  padding: 0.5rem 0;
  min-height: 250px;
  resize: none;
  overflow: hidden;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-size: 3rem;
  font-weight: 300;
  color: #e4ff1a;
}

.topic-group {
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.topic-group legend {
  width: 100%;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.topic-group label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 300;
}

.topic-group input[type="radio"] {
  appearance: none;
  width: 3rem;
  height: 3rem;
  border: 2px solid #e4ff1a;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.topic-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1.4rem;
  height: 1.4rem;
  background: #e4ff1a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.send-btn {
  width: 100%;
  background: none;
  border: none;
  font-size: clamp(15rem, 20vw, 35rem);
  font-weight: 300;
  font-family: 'Neue Haas Grotesk', sans-serif;
  line-height: 1;
  color: #e4ff1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
  margin-top: 2rem;
  transition: color 0.3s ease;
}

.send-btn .circle {
  width: clamp(12rem, 20vw, 25rem);
  height: clamp(12rem, 20vw, 25rem);
  border: 4px solid #e4ff1a;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 2rem;
  transition: background 0.3s ease;
}

.send-btn:hover {
  color: #ffffff;
}

.send-btn:hover .circle {
  background: #e4ff1a;
}

/* ================================== */
/* Project Page Specific Styles       */
/* ================================== */
.project-page {
  background: #4a4a4a;
  color: #e4ff1a;
  font-family: 'Neue Haas Grotesk', sans-serif;
  padding: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  overflow-y: auto;
}
.project-page::-webkit-scrollbar {
  display: none;
}
.project-page.active {
  opacity: 1;
  transform: translateX(0);
}

.project-title {
  position: fixed;
  top: 30px;
  left: 30px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  z-index: 10;
  margin: 0;
}

.projects-link {
  position: fixed;
  top: 30px;
  right: 30px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  text-decoration: none;
  color: #e4ff1a;
  z-index: 10;
}

/* Main Content - CORRECTED */
.project-content {
  width: 100%;
  max-width: 2400px;
  margin: 0 auto;
  padding-top: calc(30px + 5rem + 2rem); /* Header height (30px) + largest possible font size + extra spacing */
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 40px;
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.project-media img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.project-meta,
.project-description,
.project-details,
.project-awards {
  font-size: 4rem;
  line-height: 5rem;
  padding: 0 40px;
  font-weight: normal;
}

.project-details strong {
  font-weight: normal !important;
}

.divider {
  height: 2px;
  background: #e4ff1a;
  width: 100%;
  margin: 20px 0;
}

.project-thumbnail.mobile-thumb,
.default-image.mobile-thumb {
  display: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  background-color: #000;
 /* margin-top: 700px;  ✅ Add this to match image spacing */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Global fallback for broken thumbnails */
.project-thumbnail[style*="display: none"],
.default-image[style*="display: none"] {
  display: none !important;
}

.project-content-fixed {
    padding-top: 8rem !important;
}

/* Project page layout */
.project-content {
  max-width: 1900px;
  margin: 0 auto;
  padding-top: 80px;
}

.project-media {
  margin-bottom: 2rem;
  width: 100%;
  margin-top: 4rem;
}

.project-media img,
.project-media video {
  width: 100%;
  height: auto;
  display: block;
}

/* Make links in your project-description match the site yellow */
.project-description a,
.project-description a:visited {
  color: #ffffff;
  text-decoration: none;
}

/* Optional hover/focus state */
.project-description a:hover,
.project-description a:focus {
  text-decoration: underline;
}

/* Side-by-side project media */
.project-media.side-by-side {
  display: flex;
  gap: 20px; /* space between GIFs */
}

.project-media.side-by-side img {
  width: 50%;
  height: auto;
}

.projects-filters {
  position: sticky;
  top: 100px; /* stick to the top of the .projects-left container */
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 10px 0;
    margin-left: 450px; /* push right */

}

.projects-filters button {
  background: none;
  border: 1px solid #e4ff1a;
  color: #e4ff1a;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Neue Haas Grotesk', sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.projects-filters button:hover,
.projects-filters button.active {
  background: #e4ff1a;
  color: #4a4a4a;
}

/* ============================= */
/* RESPONSIVE DESIGN             */
/* ============================= */
@media (max-width: 1024px) {
  .contact-form h2 { font-size: 6rem; }
  .contact-form input,
  .contact-form textarea { font-size: 2.4rem; }
  .topic-group label { font-size: 2.4rem; }
  .send-btn { font-size: 15rem; }
  .send-btn .circle { width: 10rem; height: 10rem; }
   .orbit-face-fixed {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .project-page .project-content {
    padding-top: 4rem;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 40px;
    gap: 0.75rem;
  }

  /* Typography & Layout */
  .logo,
  nav a,
  .menu a {
    font-size: 1.5rem;
  }

  .logo {
    position: static;
    padding: 10px 15px;
  }

  .hover-container {
    width: 90vw;
  }

  .menu {
    top: calc(50% + 40px);
    gap: 15px;
  }

  .menu a {
    font-size: 1.2rem;
  }

  /* >>> CHANGE IS HERE <<< */
  /* Hide the orbiting head animation on mobile */
  .orbit-face-fixed {
    display: none !important;
  }
  /* >>> END OF CHANGE <<< */

  /* Contact Form */
  .contact-form {
    width: 95%;
    gap: 1.5rem;
  }

  .contact-form h2 {
    font-size: 4rem;
  }

  .contact-form input,
  .contact-form textarea,
  .topic-group label {
    font-size: 1.8rem;
  }

  .send-btn {
    font-size: 8rem;
  }

  .send-btn .circle {
    width: 6rem;
    height: 6rem;
  }

  /* Header */
  .project-title,
  .projects-link {
    font-size: 2rem;
    top: 15px;
  }

  .project-title {
    left: 15px;
  }

  .projects-link {
    right: 15px;
  }

  /* Project Page Layout */
  .project-content {
    padding: 4rem 15px 30px; /* MODIFIED to ensure top padding is consistent */
    gap: 10px;
  }

  .project-media {
    margin-bottom: 3px;
  }

  .project-media img {
    width: 100%;
    height: auto;
    display: block;
  }

  .project-meta,
  .project-description,
  .project-details,
  .project-awards {
    font-size: 1rem;
    line-height: 1.4rem;
    padding: 0;
    margin-bottom: 4px;
  }

  .divider {
    margin: 4px 0;
    height: 1px;
  }

  /* === Projects Panel Layout === */
  .projects-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 0 27px !important;
    margin: 0 auto;
    gap: 3vw;
    height: 100vh;
    box-sizing: border-box;
  }

  .projects-left {
    width: 35% !important;
    height: 65vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important; /* MODIFIED: Aligned list to the top to fix scrolling */
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 0 !important;
  }

  .projects-right {
    width: 55%;
    height: 65vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .projects-left ul {
    padding: 0 !important;
    margin: 0;
    font-size: 1.3rem;
    list-style: none;
    width: 100%;
    text-align: left;
  }

  .projects-left ul li {
    padding: 0;
    margin: 1px 0 !important; /* Kept your tighter margin */
    font-size: 1.3rem;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .projects-left ul li a {
    text-decoration: none;
    color: #e4ff1a;
  }

  /* Divider */
  .projects-separator {
    display: flex;
    align-items: center;
    left: 50% !important;
    justify-content: center;
    height: 65vh !important;
    width: 4px;
    position: relative;
    background: transparent;
  }

  .projects-separator::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #e4ff1a;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
  }

  .scroll-circle {
    width: 10px;
    height: 10px;
    background-color: #e4ff1a;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    transition: top 0.1s ease;
  }
  
  .projects-right img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .projects-right .project-thumbnail,
  .projects-right .default-image {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .project-thumbnail.desktop-thumb,
  .default-image.desktop-thumb {
    display: none !important;
  }

  .project-thumbnail.mobile-thumb:not([style*="display: none"]),
  .default-image.mobile-thumb:not([style*="display: none"]) {
    display: block !important;
  }

  .project-info {
    position: static;
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
    opacity: 1;
  }

  .back-to-main {
    font-size: 1.6rem !important;
    bottom: 10px !important;
    right: 10px !important;
  }

  .project-thumbnail.mobile-thumb.active,
  .default-image.mobile-thumb.active {
    display: block !important;
  }


/* Contact Form – Smaller and two-per-row radio buttons */
.contact-form {
  width: 90%;
  gap: 1rem;
}

.contact-form h2 {
  font-size: 3rem;
}

.contact-form input,
.contact-form textarea,
.topic-group label {
  font-size: 1.4rem;
}

.topic-group legend {
  font-size: 1.6rem;
}

/* Arrange radios two per line */
.topic-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* smaller gap so they fit */
}

.topic-group label {
  width: 47%; /* slightly less than half so they fit with the gap */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0; /* remove any default spacing */
}

.topic-group input[type="radio"] {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0; /* prevents squishing */
}

.topic-group input[type="radio"]:checked::after {
  width: 1rem;
  height: 1rem;
}

.contact-form textarea {
  margin-bottom: 0.3rem; /* keeps small gap before Send button */
  min-height: 120px; /* smaller height so Send button is closer */
}

.send-btn {
  font-size: 6rem;
  margin-top: 0; /* completely removes extra space */
}

.send-btn .circle {
  width: 4rem;
  height: 4rem;
}


}
