/* ==========================================================================
   JenMo Portfolio stylesheet
   Dual-Threat: Motion Design & Vector Illustration
   Theme: Minimalist White Background, Deep Charcoal Text, Electric Blue Accent
   ========================================================================== */

:root {
  --bg-color: #ffffff;
  --bg-color-alt: #f8f9fa;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #0052FF; /* Premium Electric Blue */
  --accent-light: rgba(0, 82, 255, 0.08);
  --border-color: #eeeeee;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Scroll & Reveal Timings */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-color);
}

/* Hide default cursor on desktops to support the custom cursor trail */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  .showreel-video { cursor: auto; }

  a, button, .project-card, .modal-close-btn, .magnetic-target {
    cursor: none !important;
  }

  /* ensure click affordance still works via custom cursor */
  .project-card { cursor: none; }
}


/* Custom Cursor Trail */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, transform 0.08s ease-out;
  mix-blend-mode: normal;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform 0.02s linear;
}

/* Cursor Hover States */
.custom-cursor.hovering {
  width: 64px;
  height: 64px;
  background-color: var(--accent-light);
  border-color: var(--accent);
}

.custom-cursor.clicking {
  transform: translate(-50%, -50%) scale(0.85);
  background-color: var(--accent);
}

/* Sticky Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
}

.brand-blue-text {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-quick);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-quick);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 40px 80px 40px;
  background-color: var(--bg-color);
  overflow: hidden;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-tagline {
  margin-bottom: 28px;
}

.animated-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  background-color: var(--accent-light);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 750px;
  font-weight: 300;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 100px;
  transition: var(--transition-quick);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-primary .arrow {
  font-size: 1.1rem;
  transition: var(--transition-quick);
}

.btn-primary:hover .arrow {
  transform: translateY(4px);
}

/* Background gridlines */
.hero-background-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 82, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 82, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}

/* Work Section */
.work {
  padding: 100px 40px;
  background-color: var(--bg-color-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 80px;
  max-width: 600px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Media Panels */
.showreel-feature {
  margin: -10px auto 56px auto;
  max-width: 1400px;
  padding: 0 0;
}


.showreel-feature-inner {
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0,82,255,0.06), rgba(0,82,255,0.02));
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.03);
}

.showreel-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.showreel-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 22px 0;
  color: var(--text-primary);
}

.showreel-feature {
  margin: -10px auto 56px auto;
  max-width: 1400px;
  padding: 0 0;
}

.showreel-feature-inner {
  padding: 28px 28px 0 28px;
  /* allow content to fully fit; avoid clipping */
  max-height: none;
}


.showreel-video-outer {
  max-width: 60%;
  margin: 0 auto;
  padding-bottom: 32px;
}


.showreel-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0c10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0;
  line-height: 0;

  border-top: none !important;

  /* Prevent any background bleed through sub-pixel gaps in normal card view */
  background-color: transparent !important;
}






.showreel-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: middle;
  border: none;
  outline: none;

  /* Aggressively remove the persistent black edge line artifacts */
  clip-path: inset(3px 1px 2px 1px);
  margin-top: -2px;
  margin-bottom: -2px;

  border-top: none !important;

  /* Also hard-kill any residual strokes */
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  /* Overlap any phantom gaps above the video in normal card view */
  transform: translateY(-1px) translateZ(0);

  /* Hardware acceleration / bleed prevention */
  backface-visibility: hidden;
  background-color: transparent !important;
}








.showreel-feature-inner {
  padding: 34px 34px 0 34px;
}

.panel-sections {
  display: flex;
  flex-direction: column;
  gap: 90px;
  padding-bottom: 40px;
}

.panel-section-header {
  margin-bottom: 26px;
}

.panel-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 2-Column Showcase Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
}

.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: stretch;
}


@media (max-width: 1100px) {
  .illustrations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .showreel-feature-inner { padding: 20px 16px 0 16px; max-height: none; }
  .showreel-feature { margin-bottom: 40px; }
  .panel-sections { gap: 50px; }
  .showreel-video-wrapper { aspect-ratio: 16/9; max-height: none; }
  .illustrations-grid { grid-template-columns: 1fr; }
}



.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
  will-change: transform;
  opacity: 1;
}


.project-card {
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 82, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 82, 255, 0.06);
  filter: saturate(1.05);
}

.project-card:hover .project-overlay {
  opacity: 1;
}


.project-visual {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #fafafa;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

/* Grid item click affordance */
.project-card:hover {
  opacity: 0.98;
}

@media (hover: hover) and (pointer: fine) {
  .project-card {
    cursor: zoom-in;
  }
}


/* Video & Image Layout structures */
.project-media-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.illustrations-grid .project-media-element {
  object-fit: contain;
  image-rendering: auto;
}


/* Container for programmatically animated SVG motion preview */
.svg-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-preview-container svg {
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
}

/* Project card text overlay / dynamic details */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.4) 60%, rgba(17, 17, 17, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-overlay h4 {
  transform: translateY(0);
}

.project-overlay .project-overlay-meta {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.project-card:hover .project-overlay .project-overlay-meta {
  transform: translateY(0);
}

/* Card details bottom panel (always visible fallback) */
.project-info {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-quick);
}

.project-card:hover .project-card-title {
  color: var(--accent);
}

.project-card-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-quick);
  background-color: transparent;
}

.project-card-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: var(--transition-quick);
}

.project-card:hover .project-card-arrow {
  background-color: var(--accent);
  border-color: var(--accent);
}

.project-card:hover .project-card-arrow svg {
  color: #ffffff;
  transform: rotate(-45deg);
}

/* About Section */
.about {
  padding: 140px 40px;
  background-color: var(--bg-color);
}

.about-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.about-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  max-width: 680px;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 680px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-left: 1px solid var(--border-color);
  padding-left: 80px;
}

/* Specific vertical list styling for Expertise (matching Screenshot structure) */
.expertise-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 24px;
}

.expertise-list {
  list-style: none;
}

.expertise-list li {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.expertise-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 16px;
  display: inline-block;
  flex-shrink: 0;
}

/* Modal Case Study overlay styling (also used for fullscreen lightbox) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Premium cinematic lightbox backdrop */
.modal-overlay.lightbox-active {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.modal-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Lightbox layout */
.modal-overlay.lightbox-active .modal-scroll-container {
  padding: 0;
  max-width: none;
  overflow: hidden;
}

.modal-overlay.lightbox-active .modal-wrapper {
  flex-direction: row;
}

.modal-overlay.lightbox-active .modal-grid {
  width: 100vw;
  height: 100vh;
  grid-template-columns: 1fr;
}

.modal-overlay.lightbox-active .modal-visuals {
  width: 100vw;
  height: 100vh;
  display: flex;
}

.modal-overlay.lightbox-active .modal-media-wrapper {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}


.modal-overlay.lightbox-active .modal-header {
  display: none;
}

.modal-overlay.lightbox-active .modal-grid {
  height: 100vh;
  grid-template-columns: 1fr;
  gap: 0;
}

.modal-overlay.lightbox-active .modal-visuals {
  position: relative;
  top: 0;
  height: 100vh;
}


.modal-overlay.lightbox-active .modal-media-wrapper {
  border: none;
  border-radius: 0;
  height: 100%;
  background: transparent;
}

/* Lightbox media sizing */
.lightbox-media {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}


.lightbox-image {
  image-rendering: auto;
}

.lightbox-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-svg svg {
  width: 100%;
  height: 100%;
}


.modal-close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10010;

  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--text-primary);
  border: none;
  color: var(--bg-color);
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-quick);
}

.modal-close-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 120px 80px 80px 80px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.modal-header {
  margin-bottom: 60px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-tag {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.modal-title-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.modal-visuals {
  position: sticky;
  top: 0;
  width: 100%;
}

.modal-media-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media-wrapper svg,
.modal-media-wrapper video,
.modal-media-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-details-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.details-section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.details-section:last-child {
  border-bottom: none;
}

.details-section h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.details-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.details-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  font-size: 0.85rem;
  padding: 6px 14px;
  background-color: var(--bg-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: var(--transition-quick);
}

.tool-tag:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Minimal Dark Footer */
.footer {
  background-color: #0c0d10; /* Deep Charcoal Dark background */
  color: #ffffff;
  padding: 120px 40px 60px 40px;
  border-top: 1px solid #1a1c22;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 100px;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.footer-email-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 6.2rem);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
  position: relative;
  transition: color 0.4s ease;
  line-height: 1;
}

.footer-email-link::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-email-link:hover {
  color: var(--accent);
}

.footer-email-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid #1a1c22;
}

.footer-credits p {
  font-size: 0.9rem;
  color: #888888;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #2a2d36;
  color: #888888;
  transition: var(--transition-quick);
  background-color: transparent;
}

.social-link:hover {
  color: #ffffff;
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* GSAP Scroll Reveal Setup Classes */
.reveal-text, .reveal-text-delay, .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .illustrations-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .about-right {
    border-left: none;
    padding-left: 0;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .modal-visuals {
    position: relative;
    top: 0;
  }
  
  .modal-scroll-container {
    padding: 80px 30px 40px 30px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 16px 20px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero {
    padding: 120px 20px 60px 20px;
  }
  
  .work {
    padding: 60px 20px;
  }
  
  .about {
    padding: 80px 20px;
  }
  
  .footer {
    padding: 80px 20px 40px 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  
  .modal-close-btn {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Mobile Responsive Overhaul (<= 768px)
   - Appended at end to reliably override earlier rules
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --mobile-x-pad: 1.25rem; /* ~20px */
  }

  /* 1) Global Viewport & Padding Reset */
  .nav-container,
  .hero,
  .work,
  .about,
  .footer,
  .modal-scroll-container {
    padding-left: var(--mobile-x-pad);
    padding-right: var(--mobile-x-pad);
  }

  /* Tighten section containers so headings/cards don't feel cramped or overflow */
  .section-container,
  .section-header {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .showreel-feature {
    max-width: 100%;
  }

  /* 2) Mobile Navigation Row */
  .nav-container {
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .nav-brand {
    font-size: 1.35rem;
    white-space: nowrap;
  }

  .nav-links {
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 6px 0;
    white-space: nowrap;
  }

  /* 3) Responsive Typography */
  .section-title {
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-break: normal;
  }

  .showreel-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .project-card-title {
    font-size: 1.15rem;
  }

  /* Ensure overlay titles don't clip on small screens */
  .project-overlay {
    padding: 20px;
  }

  .project-overlay h4 {
    font-size: 1.4rem;
    line-height: 1.2;
    word-break: normal;
  }

  /* 4) Stack Layouts Dynamically */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .illustrations-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .panel-sections {
    gap: 50px;
  }

  .showreel-video-outer {
    max-width: 100%;
  }

  /* Make cards stretch full-width on mobile */
  .project-card {
    width: 100%;
  }

  /* Showreel (mobile): force edge-to-edge layout with higher specificity */
  /* Shrink the bounding box so it doesn't waste screen space */
  body html #work .showreel-card,
  body .showreel-card {
    padding: 1rem !important; /* 16px all around */
    overflow: hidden !important;
    width: 100% !important;
  }

  /* Keep the text inside the card padded */
  body .showreel-card .card-header,
  body .showreel-card h3,
  body .showreel-card .tag {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Scale down the text + tighten spacing */
  body .showreel-card h3 {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0 !important;
  }

  /* Maximize the video inside the tighter bounding box */
  body .showreel-card .video-wrapper,
  body .showreel-card video,
  body .showreel-card .video-container,
  body .showreel-card [class*="video"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Curves only the bottom corners */
  body .showreel-card .video-wrapper,
  body .showreel-card video {
    border-radius: 0 0 12px 12px !important;
  }





  /* Showreel card: force mobile proportions (HTML: .showreel-feature/.showreel-feature-inner/.showreel-title/.showreel-video-outer/.showreel-video-wrapper/video) */
  /* 1. Shrink the main card wrapper padding */
  .showreel-feature-inner {
    padding: 16px !important;
  }

  /* 2. Scale down the massive text */
  .showreel-title,
  .showreel-card h3,
  .showreel-feature h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  /* 3. Force the video AND its parent wrappers to expand edge-to-edge */
  .showreel-video-outer,
  .showreel-video-wrapper,
  .showreel-feature video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Avoid clipping gaps caused by border radius math */
  .showreel-video-wrapper {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Disable custom cursor on touch/mobile */

  .custom-cursor,
  .custom-cursor-dot,
  .cursor,
  .cursor-follower {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }


  body {
    cursor: auto !important;
  }

  a,
  button,
  .project-card,
  .modal-close-btn,
  .showreel-video {
    cursor: auto !important;
  }
}


