/* Contact Form Styles */
.contact-form {
  max-width: 800px;
  margin: 3rem 0;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.4;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(80, 0, 255, 0.1);
}

.form-group select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23000" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 3rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group textarea::placeholder {
  color: #999;
  font-style: italic;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  margin-top: 2rem;
}

.contact-submit-btn:hover {
  transform: scale(1.02);
}

.contact-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(80, 0, 255, 0.3);
}

/* Mobile Contact Form */
@media (max-width: 768px) {
  .contact-form {
    margin: 2rem 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.9rem;
    font-size: 1rem;
  }
  
  .contact-submit-btn {
    width: 100%;
    padding: 1rem;
  }
}

/* At the very top of your styles.css */
html {
  box-sizing: border-box;
}

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

/* ScrollSmoother Setup */
#smooth-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#smooth-content {
  overflow: visible;
  width: 100%;
  position: relative;
}

/* Ensure all content is contained within smooth-content */
#smooth-content > div {
  position: relative;
}

/* Fallback for no JavaScript */
html.no-js .fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

html.no-js .floating-menu-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* CSS-only animation fallback for .line */
.line-wrapper {
  opacity: 1 !important;
  /* Ensure the wrapper is visible */
}

.line {
  animation: slideIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes quickFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Font Loading Optimization */
.fonts-loading {
  visibility: hidden;
}

.fonts-loaded {
  visibility: visible;
}

/* Critical text should always be visible */
h1, .page-title, .project-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  visibility: visible !important; /* Always show headlines */
}

/* Font Face Declarations */
@font-face {
  font-family: 'Helvetica Neue';
  font-weight: 200;
  font-style: normal;
  src: url('./public/fonts/helveticaneuethin-webfont.woff2') format('woff2'),
    url('./public/fonts/helveticaneuethin-webfont.woff') format('woff'),
    url('./public/fonts/HelveticaNeueThin.ttf') format('truetype'),
    url('./public/fonts/HelveticaNeueThin.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  font-weight: 300;
  font-style: normal;
  src: url('./public/fonts/helveticaneuelight-webfont.woff2') format('woff2'),
    url('./public/fonts/helveticaneuelight-webfont.woff') format('woff'),
    url('./public/fonts/HelveticaNeueLight.ttf') format('truetype'),
    url('./public/fonts/HelveticaNeueLight.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  font-weight: 400;
  font-style: normal;
  src: url('./public/fonts/helveticaneueroman-webfont.woff2') format('woff2'),
    url('./public/fonts/helveticaneueroman-webfont.woff') format('woff'),
    url('./public/fonts/HelveticaNeueRoman.ttf') format('truetype'),
    url('./public/fonts/HelveticaNeueRoman.otf') format('opentype');
  font-display: swap;
}

:root {
  --primary: #5000ff;
  --bg: #000000;
  --text: #000000;
  --text-light: #ffffff;
  --gutter: 1rem;
  --pad: 4rem 8vw;
  --pad-sm: 2rem 5vw;
  --fs-base: 1.0rem;
  --fs-lg: 2rem;
  --fs-xl: 3.5rem;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: var(--fs-base);
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  line-height: 2.3;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Native Scrolling Setup */
.main-container {
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin-bottom: var(--gutter);
}

main,
section {
  margin: 0;
  padding: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20%);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: var(--fs-xl);
  font-weight: 200;
  letter-spacing: -0.02rem;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 3;
}

/* Headline Animation Styles */
h1 .line-wrapper,
.footer-title .line-wrapper {
  display: block;
  overflow: visible;
  vertical-align: top;
  line-height: 1.1;
  z-index: 3;
  margin-bottom: 0;
}

h1 .line,
.footer-title .line {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s ease-out;
  line-height: 1.1;
  margin: 0;
}

h1.animate-in .line,
.footer-title.animate-in .line {
  transform: translateY(0);
  opacity: 1;
}

p {
  font-size: 1.15rem;  /* Updated to 1.15rem */
  max-width: 100%;
}

/* Page Loader - White fade-in effect */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.5s ease-out;
}

.page-loader.fade-out {
  opacity: 0;
}

/* Navigation area needs higher z-index to show above loader */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 0.8rem 6vw;
  display: flex;
  justify-content: flex-end;
  z-index: 1001;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Simple Hero for interior pages */
.hero-simple {
  position: relative;
  width: 100vw;
  min-height: 19.2vh; /* Reduced from 48vh by 60% (48 * 0.4 = 19.2) */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.page-title-wrapper {
  text-align: center;
  z-index: 2;
  position: relative;
}

.page-title {
  font-size: 5.76rem; /* 20% larger than 4.8rem (4.8 * 1.2) */
  font-weight: 200;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02rem;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Portrait Image Styles */
.portrait-wrapper {
  position: absolute;
  top: calc(68% + 94px);  /* Moved up from 75% to 68% */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.portrait-image {
  width: 188px;  /* 25% larger than 150px (150 * 1.25) */
  height: 188px; /* 25% larger than 150px (150 * 1.25) */
  border-radius: 50%;
  object-fit: cover;
}

.portrait-image:hover {
  /* No hover effects */
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.corner-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 100vw;
  max-height: 30vh;
  object-fit: none;
  object-position: top right;
  z-index: 2;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  bottom: 6rem;
  left: 0vw;
  width: 98vw;
  max-width: 98vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-logo-desktop {
  display: block;
}

.hero-logo-mobile {
  display: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.scroll-indicator.fade-out {
  opacity: 0;
}

.down-arrow {
  width: 24px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1); /* Make it white */
  /* Remove any animations or transitions that could cause bouncing */
  animation: none;
  transition: none;
}

/* Navigation */

/* Remove individual dots from nav items */
.nav-item::after {
  display: none;
}

/* Create a single magnetic dot */
.nav-magnetic-dot {
  position: absolute;
  bottom: 0.3rem;
  left: 0;
  width: 10px;
  height: 10px;
  background: url('./public/icons/purple-menu-dot.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  transform-origin: center center;
}

.nav-magnetic-dot.show {
  opacity: 1;
}

.nav-list {
  position: relative;
  list-style: none;
  display: flex;
  gap: 2rem;
  font-weight: 400;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  display: inline-block;
  transition: none !important;
  will-change: transform;
}

/* CSS-based magnetic effect for nav links */
.nav-list a:hover {
  animation: navMagneticHover 0.3s ease-out forwards;
}

@keyframes navMagneticHover {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Add magnetic cursor tracking via CSS transforms */
.nav-item {
  position: relative;
  padding-bottom: 0.8rem;
}

/* Override any conflicting styles */
.nav-item a {
  transform-origin: center center !important;
  backface-visibility: hidden;
  perspective: 1000px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

/* Page Content */
.page-content {
  background-color: #ffffff;
  padding: 1.6rem 8vw 4rem 8vw; /* Reduced top padding from 4rem to 1.6rem (60% reduction) */
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.placeholder-content {
  padding: 4rem 0;
  text-align: left;
}

.placeholder-content h2 {
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 2rem;
  color: var(--text);
}

.placeholder-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 3rem;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.15rem;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.7;
}

.page-text {
  width: 40vw;
  max-width: 40vw;
  padding-left: 0;
}

.portfolio-peek {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  transform-origin: center center;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  margin-bottom: 13%;
}

.portfolio-peek-wrapper {
  position: relative;
  width: 40vw;
  max-width: 40vw;
  height: 40vw;
  align-self: flex-start;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purple-circle-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 35%;
  z-index: 3;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.purple-circle-link:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.purple-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40.25%; /* 15% larger than purple circle (35% * 1.15) */
  height: 40.25%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Footer */
.footer {
  background: var(--bg);
  color: var(--text-light);
  padding: var(--pad);
  padding-bottom: 6rem;
  /* Extra bottom padding */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.footer-title {
  font-size: var(--fs-xl);
  font-weight: 200;
  letter-spacing: -0.02rem;
  max-width: 50vw;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  align-items: center;
}

.btn {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.2;
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

.btn-outline {
  padding: 0.7rem 2.2rem;
  border: none; /* Remove border */
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.20); /* 20% white for 80% black appearance */
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 50px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.30); /* Slightly lighter on hover */
}

.btn-primary {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Magnetic Button Effects */
.magnetic-btn {
  position: relative;
  transition: all 0.3s ease;
  will-change: transform;
}

/* Add magnetic class to slide nav items only */
.slide-nav-item a {
  position: relative;
  transition: all 0.3s ease;
  will-change: transform;
}

.magnetic-btn:hover,
.slide-nav-item a:hover {
  transform: scale(1.05);
}

.magnetic-btn.is-magnetic,
.slide-nav-item a.is-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary.magnetic-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(80, 0, 255, 0.3);
}

.btn-outline.magnetic-btn:hover {
  transform: scale(1.02);
}

.floating-menu-btn.magnetic-btn:hover {
  transform: scale(1.1);
}






/* Rotation Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}



/* Mobile-specific styles (removed button visibility fix that was interfering with animations) */
@media (max-width: 768px) {
  /* Footer styles preserved but animation interference removed */
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .hero {
    min-height: 100vh;
    overflow: visible;
  }

  .hero-simple {
    min-height: 20vh; /* Reduced from 50vh by 60% (50 * 0.4 = 20) */
    padding: 4rem 0;
  }

  .page-title {
    font-size: 3.6rem; /* 20% larger than 3rem (3 * 1.2) */
  }

  /* Mobile portrait styles */
  .portrait-wrapper {
    top: calc(80% + 62px);  /* 80% + 50% of mobile photo width (125px * 0.5) */
  }

  .portrait-image {
    width: 125px;  /* 25% larger than 100px (100 * 1.25) */
    height: 125px; /* 25% larger than 100px (100 * 1.25) */
  }

  .placeholder-content {
    padding: 2rem 0;
  }

  .placeholder-content h2 {
    font-size: 2rem;
  }

  .content-wrapper {
    padding: 0;
  }

  .background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    min-width: 100vw;
    min-height: 100vh;
    transform: scale(1.05);
  }

  .hero-logo-mobile {
    width: 90vw;
    left: 4vw;
    padding-bottom: 3rem;
  }

  .nav-toggle {
    display: block;
    margin-top: 0.5rem;
    /* Add space above Menu */
  }

  .nav-item.active::after {
    display: none;
  }

  .hero-logo-desktop {
    display: none;
  }

  .hero-logo-mobile {
    display: block;
  }

  .page-content {
    flex-direction: column;
    padding: 0.8rem 5vw 2rem 5vw; /* Reduced top padding from 2rem to 0.8rem (60% reduction) */
  }

  .page-text,
  .portfolio-peek {
    width: 100%;
    max-width: 100%;
  }

  .portfolio-peek-wrapper {
    width: 90vw;
    max-width: 90vw;
    height: 90vw;
    margin: 0rem 4rem 2rem 0rem;
    align-self: flex-start;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .portfolio-peek {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  .purple-circle-link {
    width: 35%;
    height: 35%;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .purple-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
  }

  .video-circle {
    width: 40.25%; /* 15% larger than purple circle */
    height: 40.25%;
    top: 56%;
  }

  .footer {
    height: auto;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-bottom: 10rem;
    gap: 0.5rem;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-contact .btn {
    display: inline-flex !important;
    /* Ensure they display */
  }

  .footer-title {
    max-width: 100%;
  }

  .corner-fade {
    display: none;
  }

  .slide-menu {
    width: 100vw;
  }

  .slide-nav-item a {
    font-size: 2.5rem;
  }

  .menu-content {
    padding: 6rem 2rem 2rem 2rem;
  }

  /* Mobile scroll indicator */
  .scroll-indicator {
    bottom: 2rem;
  }

  .down-arrow {
    width: 20px;
  }
}

/* Floating Menu Button */
.floating-menu-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--bg);
  border: 1px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  /* Higher than slide menu */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-menu-btn.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.hamburger-line {
  width: 20px;
  height: 1px;
  background: var(--text-light);
  transition: all 0.3s ease;
}

.floating-menu-btn:hover {
  transform: scale(1.05);
}

.floating-menu-btn.show:hover {
  transform: scale(1.05);
}

/* Slide-in Menu */
.slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background: var(--bg);
  z-index: 1001;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden; /* Enable wipe effect */
  z-index: 1003; /* Above slide menu */
}

.close-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--text-light);
  z-index: 15; /* Above the wipe overlay */
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-content {
  padding: 8rem 4rem 4rem 4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-separator {
  width: 100%;
  height: 1px;
  background: var(--text-light);
  margin-bottom: 3rem;
}

.slide-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Slide menu magnetic dot */
.slide-nav-magnetic-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  background: url('./public/icons/purple-menu-dot.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  transform-origin: center center;
}

.slide-nav-magnetic-dot.show {
  opacity: 1;
}

.slide-nav-item {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
}

.slide-nav-item a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 3rem;
  font-weight: 200;
  font-family: var(--font-sans);
  line-height: 1.2;
  transition: opacity 0.3s ease;
  display: block;
}

.slide-nav-item a:hover {
  opacity: 0.7;
}

/* Responsive (Desktop) */
@media (min-width: 769px) {
  .page-content {
    display: flex;
    flex-wrap: nowrap;
    padding: var(--pad);
    gap: 2rem;
  }

  .page-text,
  .portfolio-peek {
    flex: 1 1 0;
    max-width: 48vw;
  }

  .footer-contact {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4vw;
  }

  .slide-menu {
    width: 45vw;
  }
}

/* Work Page Styles */
.work-page {
  display: block;
}

.work-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.work-intro h2 {
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1.3;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
}

/* Filter Pills */
.filter-pills-container {
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
}

.filter-pills {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  padding: 0.5rem 0;
}

.filter-pill {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.filter-pill:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #333;
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-pill.active:hover {
  background: #4000cc;
  border-color: #4000cc;
}

/* Project Item Transitions */
.project-item {
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  transform: scale(1); /* Ensure always at 100% scale */
}

.project-item:hover {
  text-decoration: none;
  color: inherit;
}

.project-item.hidden {
  opacity: 0;
  transform: scale(1); /* Keep at 100% even when hidden */
  pointer-events: none;
}

.public-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Back to 2 columns as requested */
  grid-auto-flow: row dense; /* Automatically fill gaps */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto; /* Reduced from 4rem to 2rem */
}

.public-portfolio-grid .project-item {
  opacity: 0;
  animation: quickFadeIn 0.4s ease-out forwards;
}

.public-portfolio-grid .project-item:nth-child(1) {
  animation-delay: 0.1s;
}

.public-portfolio-grid .project-item:nth-child(2) {
  animation-delay: 0.2s;
}

.public-portfolio-grid .project-item:nth-child(3) {
  animation-delay: 0.3s;
}

.portfolio-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr); /* Fixed 2 columns as requested */
  grid-auto-flow: row dense; /* Helps fill gaps more intelligently */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem; /* Add consistent bottom padding */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-grid.authenticated {
  display: grid;
  opacity: 1;
}

.portfolio-grid .project-item {
  opacity: 0;
  animation: quickFadeIn 0.4s ease-out forwards;
}

.portfolio-grid .project-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid .project-item:nth-child(2) { animation-delay: 0.15s; }
.portfolio-grid .project-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-grid .project-item:nth-child(4) { animation-delay: 0.25s; }
.portfolio-grid .project-item:nth-child(5) { animation-delay: 0.3s; }
.portfolio-grid .project-item:nth-child(6) { animation-delay: 0.35s; }
.portfolio-grid .project-item:nth-child(7) { animation-delay: 0.4s; }
.portfolio-grid .project-item:nth-child(8) { animation-delay: 0.45s; }
.portfolio-grid .project-item:nth-child(9) { animation-delay: 0.5s; }
.portfolio-grid .project-item:nth-child(10) { animation-delay: 0.55s; }
.portfolio-grid .project-item:nth-child(11) { animation-delay: 0.6s; }
.portfolio-grid .project-item:nth-child(12) { animation-delay: 0.65s; }
.portfolio-grid .project-item:nth-child(13) { animation-delay: 0.7s; }
.portfolio-grid .project-item:nth-child(14) { animation-delay: 0.75s; }
.portfolio-grid .project-item:nth-child(15) { animation-delay: 0.8s; }
.portfolio-grid .project-item:nth-child(16) { animation-delay: 0.85s; }
.portfolio-grid .project-item:nth-child(17) { animation-delay: 0.9s; }
.portfolio-grid .project-item:nth-child(18) { animation-delay: 0.95s; }
.portfolio-grid .project-item:nth-child(19) { animation-delay: 1.0s; }
.portfolio-grid .project-item:nth-child(20) { animation-delay: 1.05s; }

.project-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Fallback for placeholder divs */
.project-image:not(img) {
  background: #d0d0d0;
}

.project-item:hover .project-thumbnail {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-item:hover .project-image {
  transform: scale(1.05);
}

.project-name {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.project-type {
  font-size: 1.0rem;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Sort Dropdown */
.sort-container {
  margin-bottom: 12rem; /* Tripled from 4rem to 12rem */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.password-explanation {
  text-align: center;
  margin-bottom: 1.5rem;
}

.password-explanation p {
  font-size: 1.15rem;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
}

.sort-label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1;
}

.sort-dropdown,
#password-field {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 50px;
  padding: 1rem 3rem 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  line-height: 1;
  min-width: 300px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23000" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  will-change: transform;
  letter-spacing: 0.02em;
}

#password-field {
  background-image: none;
  cursor: text;
}

#password-field::placeholder {
  color: #999;
  font-style: italic;
}

.sort-dropdown:hover {
  border-color: #333333;
  background-color: #f9f9f9;
  transform: scale(1.02);
}

.sort-dropdown:focus {
  outline: none;
  transform: scale(1.02);
}

/* Mobile Responsive for Work Page */
@media (max-width: 768px) {
  .hero-simple {
    min-height: 30vh; /* Reduced from 48vh to 30vh for tighter spacing */
  }
  
  .work-intro {
    margin-bottom: 2rem; /* Reduced from 4rem to cut spacing in half */
  }
  
  .work-intro h2 {
    font-size: 2rem;
    padding: 0 1rem;
  }
  
  .sort-container {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 9rem; /* Tripled from 3rem to 9rem */
    padding-bottom: 2rem; /* Add padding between sort container and thumbnails on mobile */
  }
  
  .password-explanation p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .sort-dropdown {
    min-width: 300px;
    font-size: 1rem;
    font-weight: 400;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    grid-auto-flow: row; /* Reset to normal flow on mobile */
    gap: 2.5rem;
    padding: 0 1rem;
    padding-bottom: 1.5rem; /* Add consistent bottom padding for mobile */
  }
  
  /* Mobile: Faster animation delays for protected grid single column */
  .portfolio-grid .project-item:nth-child(n) { animation-delay: 0.02s; }
  .portfolio-grid .project-item:nth-child(2n) { animation-delay: 0.04s; }
  .portfolio-grid .project-item:nth-child(3n) { animation-delay: 0.06s; }
  .portfolio-grid .project-item:nth-child(4n) { animation-delay: 0.08s; }
  .portfolio-grid .project-item:nth-child(5n) { animation-delay: 0.1s; }
  
  .public-portfolio-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  /* Mobile: Faster animation delays for single column */
  .public-portfolio-grid .project-item:nth-child(1) { animation-delay: 0.05s; }
  .public-portfolio-grid .project-item:nth-child(2) { animation-delay: 0.1s; }
  .public-portfolio-grid .project-item:nth-child(3) { animation-delay: 0.15s; }
  
  .project-thumbnail {
    margin-bottom: 1rem;
  }
  
  .project-name {
    font-size: 1.1rem;
  }
  
  .project-type {
    font-size: 0.9rem;
  }
}

/* Skills Section Header */
.skills-section {
  text-align: left;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.skills-section h2 {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--text);
  margin: 0;
}

/* Skills Grid Styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;  /* Reduced from 4rem since we have headline above */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.skill-category h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-left: 1rem;
  position: relative;
}

.skill-category li:before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.skill-category li:last-child {
  margin-bottom: 0;
}

/* Mobile Skills Grid */
@media (max-width: 768px) {
  .skills-section {
    margin-top: 2rem;
  }
  
  .skills-section h2 {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
  
  .skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .skill-category li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}

/* Resume Download Section */
.resume-section {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0 6rem 0;  /* Increased bottom padding from 3rem to 6rem */
}

.resume-section p {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;  /* Changed from 300 to 400 (Light) */
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  position: relative;
  will-change: transform;
}

.resume-download-btn:hover {
  background: #4000cc;
  transform: scale(1.02);
}

.resume-download-btn.is-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.download-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* Make the SVG white */
}

/* Mobile Resume Section */
@media (max-width: 768px) {
  .resume-section {
    margin-top: 3rem;
    padding: 2rem 0 5rem 0;  /* Increased bottom padding for mobile */
  }
  
  .resume-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  .resume-download-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 400;
  }
}

/* Project Page Styles */
.project-page {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 8vw 6rem 8vw;
}

/* Back Link */
.back-link {
  position: absolute;
  top: 50%;
  left: 8vw;
  transform: translateY(-50%);
  z-index: 3;
}

.back-btn {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-sans);
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  opacity: 0.7;
}

/* Project Header */
.project-header {
  margin-bottom: 6rem;
}

.project-title {
  font-size: 4.5rem;
  font-weight: 200;
  color: var(--text);
  margin: 0 0 3rem 0;
  letter-spacing: -0.02rem;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.project-description h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  font-family: var(--font-sans);
}

.project-description p {
  font-size: 1.15rem;
  font-weight: 400;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-credits,
.project-software {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
}

.project-credits h3,
.project-software h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1rem 0;
  font-family: var(--font-sans);
}

.project-credits ul,
.project-software ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-credits li,
.project-software li {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-credits li:last-child,
.project-software li:last-child {
  margin-bottom: 0;
}

/* Project Media Section */
.project-media {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.media-item {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Project Video and Image Styles */
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.media-caption {
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.media-caption h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.media-caption p {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.media-item.square {
  aspect-ratio: 1266/1124;
}

.media-item.large {
  aspect-ratio: 1/1;
}

.media-item.medium-full {
  aspect-ratio: 16/10;
}

.media-item.medium {
  aspect-ratio: 4/3;
}

.media-item.small {
  aspect-ratio: 1/1;
}

.media-row {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.media-row:not(.three-col) {
  grid-template-columns: 1fr 1fr;
}

.media-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  background: #d0d0d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.media-placeholder:hover {
  background: #c0c0c0;
}

.placeholder-text {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-sans);
  text-align: center;
}

/* Mobile Project Page */
@media (max-width: 768px) {
  .project-container {
    padding: 2rem 5vw 4rem 5vw;
  }
  
  .back-link {
    left: 5vw;
  }
  
  .project-header {
    margin-bottom: 4rem;
  }
  
  .project-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  
  .project-meta {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-description h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .project-description p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .project-details {
    gap: 2rem;
  }
  
  .project-credits,
  .project-software {
    padding: 1.5rem;
  }
  
  .project-credits h3,
  .project-software h3 {
    font-size: 1.1rem;
  }
  
  .project-credits li,
  .project-software li {
    font-size: 0.9rem;
  }
  
  .project-media {
    gap: 2rem;
  }
  
  .media-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .media-row.three-col {
    grid-template-columns: 1fr;
  }
  
  .placeholder-text {
    font-size: 0.9rem;
  }
}

/* Circular Wipe Effect Styles */
.circular-wipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit; /* Inherit button's border-radius for smooth edges */
}

/* Purple button → Much darker purple wipe */
.btn-primary .circular-wipe-overlay {
  background: #1a0080; /* Much darker purple */
  color: var(--text-light);
  border-radius: 50%; /* Ensure smooth circular edges */
  box-sizing: border-box;
}

/* Black/White buttons → Dark purple wipe with white text */
.btn-outline .circular-wipe-overlay {
  background: #1a0080; /* Same dark purple as Contact me button */
  color: var(--text-light);
}

/* Ensure overlay text is specifically white */
.btn-outline .btn-text-overlay {
  color: var(--text-light) !important;
}

/* Close button wipe effect */
.close-btn .circular-wipe-overlay {
  background: #1a0080; /* Same dark purple as other buttons */
  border-radius: 50%; /* Match button's circular shape */
  z-index: 10; /* Below the X pseudo-elements */
}

/* Resume download button wipe effect */
.resume-download-btn .circular-wipe-overlay {
  background: #1a0080; /* Same dark purple as other buttons */
  color: var(--text-light);
  border-radius: 50px; /* Match button's border-radius */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* Same gap as the base button */
}

.resume-download-btn .circular-wipe-overlay .download-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* Make the overlay icon white */
}

/* Small resume download buttons */
.resume-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.resume-download-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.resume-download-btn-small:hover {
  transform: scale(1.02);
}

.resume-download-btn-small:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(80, 0, 255, 0.3);
}

.resume-download-btn-small .download-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.resume-download-btn-small .circular-wipe-overlay {
  background: #1a0080;
  color: var(--text-light);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.resume-download-btn-small .circular-wipe-overlay .download-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Mobile resume buttons */
@media (max-width: 768px) {
  .resume-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .resume-download-btn-small {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* Key insights section for project pages */
.key-insights {
  margin: 2rem 0;
}

.key-insights h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  font-family: var(--font-sans);
}

.key-insights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-insights li {
  font-size: 1.15rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.8;
}

.key-insights li:before {
  content: '•';
  color: var(--primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

.key-insights li:last-child {
  margin-bottom: 0;
}

/* Desktop video sizing for hero videos */
@media (min-width: 1025px) {
  .hero-video-container .media-item.large {
    width: 65vw;
    margin: 0 auto;
  }
  
  /* Left-align video only on 3D Modeling page */
  .ai-3d-modeling-page .hero-video-container .media-item.large {
    margin: 0;
  }
  
  /* Make AI storytelling video 16:9 ratio and full width */
  .ai-video-storytelling-page .hero-video-container .media-item.large {
    aspect-ratio: 16/9;
    width: 100%;
  }
  
  /* Make AI cinematic storytelling video 16:9 ratio and full width */
  .ai-cinematic-storytelling-page .hero-video-container .media-item.large {
    aspect-ratio: 16/9;
    width: 100%;
  }
}

/* Fix for case study download button in project pages */
.case-study-download {
  margin-top: 2rem;
}

.case-study-download .btn {
  padding: 1rem 2.5rem;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
}

/* Remove box-shadow from download buttons on hover */
.case-study-download .btn:hover,
.case-study-download .btn:focus {
  box-shadow: none !important;
}

/* Ensure text doesn't get cut off */
.case-study-download .btn-text,
.case-study-download .btn-text-overlay {
  padding: 0;
  margin: 0;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
}

/* Mobile case study download button */
@media (max-width: 768px) {
  .case-study-download .btn {
    width: 33.33vw;
    height: 33.33vw;
    padding: 0;
    font-size: 0.9rem;
    min-width: auto;
    max-width: none;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    line-height: 1.2;
  }
  
  .case-study-download .btn .btn-text,
  .case-study-download .btn .btn-text-overlay {
    white-space: pre-line;
    line-height: 1.2;
  }
  
  .case-study-download {
    text-align: center;
  }
}

/* Contact submit button wipe effect */
.contact-submit-btn .circular-wipe-overlay {
  background: #1a0080; /* Same dark purple as other buttons */
  color: var(--text-light);
  border-radius: 50px; /* Match button's border-radius */
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-text-overlay {
  position: relative;
  z-index: 3;
}

/* Prompt Dropdown Styles */
.prompt-details-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.prompt-dropdown {
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prompt-summary {
  background: #f0f0f0;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  border: none;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.prompt-summary::-webkit-details-marker {
  display: none;
}

.prompt-summary::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.prompt-dropdown[open] .prompt-summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.prompt-summary:hover {
  background: #e8e8e8;
}

.prompt-content {
  padding: 2rem;
  background: #ffffff;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prompt-content h4 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  font-family: var(--font-sans);
}

.prompt-text {
  padding-right: 1rem;
}

.prompt-text p {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.prompt-text p strong {
  color: var(--text);
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}

/* Individual Prompt Dropdowns */
.individual-prompt {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.individual-prompt:last-child {
  margin-bottom: 0;
}

.individual-prompt-summary {
  background: #f8f8f8;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  border: none;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  border-left: 3px solid var(--primary);
}

.individual-prompt-summary::-webkit-details-marker {
  display: none;
}

.individual-prompt-summary::after {
  content: '▼';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.individual-prompt[open] .individual-prompt-summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.individual-prompt-summary:hover {
  background: #f0f0f0;
}

.individual-prompt-content {
  padding: 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  animation: slideDown 0.3s ease-out;
}

.individual-prompt-content p {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* Mobile prompt dropdown */
@media (max-width: 768px) {
  .prompt-details-section {
    margin-top: 3rem;
  }
  
  .prompt-summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .prompt-summary::after {
    right: 1.5rem;
  }
  
  .prompt-content {
    padding: 1.5rem;
  }
  
  .prompt-content h4 {
    font-size: 1.1rem;
  }
  
  .prompt-text {
    max-height: 300px;
    padding-right: 0.5rem;
  }
  
  .prompt-text p {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  .individual-prompt-summary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .individual-prompt-summary::after {
    right: 1rem;
  }
  
  .individual-prompt-content {
    padding: 1rem;
  }
  
  .individual-prompt-content p {
    font-size: 0.85rem;
  }
}

/* Force 16:9 aspect ratio for AI storytelling pages on all screen sizes */
.ai-video-storytelling-page .hero-video-container .media-item.large,
.ai-cinematic-storytelling-page .hero-video-container .media-item.large {
  aspect-ratio: 16/9 !important;
  width: 100%;
}

/* Fix text consistency in key findings sections */
.project-description p {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  line-height: 2.16 !important;
  margin: 0 0 1.5rem 0 !important;
}

/* Key findings bullet points - match intro text */
.key-insights li {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  line-height: 2.16 !important;
  margin-bottom: 0.75rem !important;
}

/* Mobile text consistency */
@media (max-width: 768px) {
  .project-description p {
    font-size: 1.15rem !important;
    line-height: 1.92 !important;
  }
  
  .key-insights li {
    font-size: 1.15rem !important;
    line-height: 1.92 !important;
  }
}

/* Ensure consistent text sizing across all pages (excluding home page) */
.placeholder-content p,
.work-intro h2,
.contact-form p,
.skills-grid li,
.project-credits li,
.project-software li {
  font-size: 1.15rem !important;
  line-height: 2.16 !important;
  font-weight: 400 !important;
}

/* Mobile consistency for all text elements */
@media (max-width: 768px) {
  .placeholder-content p,
  .work-intro h2,
  .contact-form p,
  .skills-grid li,
  .project-credits li,
  .project-software li {
    font-size: 1.15rem !important;
    line-height: 1.92 !important;
  }
}

/* About page portrait positioning and sizing updates */
.portrait-wrapper {
  top: calc(68% + 94px) !important; /* Move photo up on both desktop and mobile */
}

/* Keep portrait image same size on mobile */
@media (max-width: 768px) {
  .portrait-wrapper {
    top: calc(68% + 94px) !important; /* Moved up from default mobile position */
  }
  
  .portrait-image {
    width: 188px !important; /* Keep desktop size, don't reduce on mobile */
    height: 188px !important; /* Keep desktop size, don't reduce on mobile */
  }
  
  /* Move text content down on mobile to make room for larger photo */
  .page-content {
    margin-top: 4rem !important; /* Add extra top margin on mobile */
    padding-top: 6rem !important; /* Add extra top padding on mobile */
  }
}

/* Tighten line height specifically for About page bullet points */
.skills-grid li {
  line-height: 1.4 !important; /* Tighter line height for About page bullets only */
}

/* Mobile version of tighter About page bullet points */
@media (max-width: 768px) {
  .skills-grid li {
    line-height: 1.3 !important; /* Even tighter on mobile */
  }
}

/* Make work page intro heading match About page heading style */
.work-intro h2 {
  font-size: 2.5rem !important;
  font-weight: 200 !important;
  margin-bottom: 2rem !important;
  color: var(--text) !important;
  line-height: 1.1 !important;
}

/* Mobile work intro heading */
@media (max-width: 768px) {
  .work-intro h2 {
    font-size: 2rem !important;
  }
}

/* Smaller font size for Software and Credits areas */
.project-credits li,
.project-software li {
  font-size: 0.95rem !important;
  line-height: 1.78 !important; /* Proportional to 2.16 (0.95/1.15 * 2.16) */
}

/* Mobile Software and Credits areas */
@media (max-width: 768px) {
  .project-credits li,
  .project-software li {
    font-size: 0.95rem !important;
    line-height: 1.58 !important; /* Proportional to 1.92 (0.95/1.15 * 1.92) */
  }
}

/* Project subheadings - Helvetica Neue Thin with larger size */
.project-description h2,
.key-insights h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 200 !important; /* Thin weight to match main H1s */
  font-size: 2.25rem !important; /* 50% increase from 1.5rem */
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
}

/* Mobile project subheadings */
@media (max-width: 768px) {
  .project-description h2,
  .key-insights h3 {
    font-size: 1.95rem !important; /* 50% increase from 1.3rem mobile */
  }
}

/* Hero Video Styles for eBook pages */
.project-hero-video {
  position: relative;
  width: 100%;
  margin: 3rem 0 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  /* Removed box-shadow */
}

/* Enhanced styling for eBook hero videos */
.project-hero-video.ebook-video {
  transform: scale(1.15);
  margin: 3rem -7.5% 2rem -7.5%;
  padding-left: 8%;
}

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

/* CTA Button Below Video */
.video-cta-below {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0 3rem 0;
}

.video-cta-btn {
  background-color: var(--primary) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9rem !important;
  border: none !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.02em !important;
  gap: 0.5rem !important;
}

.video-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(80, 0, 255, 0.3) !important;
}

.video-cta-btn .circular-wipe-overlay {
  background-color: var(--primary-dark) !important;
  border-radius: 50px !important;
}

/* Mobile adjustments for hero video */
@media (max-width: 768px) {
  .project-hero-video {
    margin: 2rem 0 1rem 0;
  }
  
  .video-cta-below {
    justify-content: center; /* Center on mobile */
    margin: 1rem 0 2rem 0;
  }
  
  .video-cta-btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
}