/* ===================================================================
   GAZI ANAS — PORTFOLIO DESIGN SYSTEM
   Ultra-Premium Gen-Z Minimalist White Mode + High Contrast Accents
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Core Palette - Minimal Pristine Light Mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F4F4F6;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-subtle: #EBEBEF;
  --border-strong: #111111;
  
  --text-primary: #0A0A0B;
  --text-secondary: #575764;
  --text-muted: #8E8E9F;
  --text-inverse: #FFFFFF;

  /* Brand Accents */
  --accent-black: #0A0A0B;
  --accent-yellow: #F5A623;
  --accent-yellow-light: #FFF8EB;
  --accent-yellow-glow: rgba(245, 166, 35, 0.25);
  --accent-green: #10B981;
  --accent-blue: #2563EB;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-max: 1360px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scrolling */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 3.5rem);
  padding-right: clamp(1.25rem, 5vw, 3.5rem);
}

/* ===================================================================
   PAGE PRELOADER
   =================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-brand {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.preloader-bar {
  width: 180px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 99px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-black);
  transition: width 0.1s ease-out;
}

/* ===================================================================
   CUSTOM SMOOTH-FOLLOWING CURSOR
   =================================================================== */
.custom-cursor-dot,
.custom-cursor-follower {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-black);
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(10, 10, 11, 0.35);
  background: transparent;
  backdrop-filter: blur(0px);
}

/* Hover State on interactive elements */
body.cursor-hover .custom-cursor-follower {
  width: 64px;
  height: 64px;
  background: rgba(10, 10, 11, 0.08);
  border-color: rgba(10, 10, 11, 0.8);
}

body.cursor-hover .custom-cursor-dot {
  opacity: 0.2;
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* ===================================================================
   1. FLOATING PILL NAVBAR
   Left: Logo/Name | Right: About, Resume
   =================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1.25rem;
}

.navbar-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 880px;
  height: 60px;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease-out-expo);
}

.navbar-pill.scrolled {
  height: 52px;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-green);
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link-item {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  position: relative;
}

.nav-link-item:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link-item.active {
  color: var(--text-primary);
  font-weight: 700;
}

.nav-link-resume {
  background: var(--accent-black);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nav-link-resume:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.nav-link-resume svg {
  transition: transform 0.2s ease;
}

.nav-link-resume:hover svg {
  transform: translateY(1px);
}

/* ===================================================================
   2. HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 76%, rgba(206, 231, 239, 0.72) 0 13%, transparent 37%),
    radial-gradient(ellipse at 88% 18%, rgba(0, 116, 174, 0.34) 0 22%, transparent 52%),
    linear-gradient(135deg, #087eae 0%, #0da6d6 50%, #078bbd 100%);
}

/* Background Media Container (Interchangeable Video/Image) */
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-media-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.8s var(--ease-out-expo);
  filter: contrast(102%) brightness(102%);
}

.hero-liquid-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 66, 103, 0.12) 100%),
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

/* SVG Liquid Filter Hook */
.svg-filter-hidden {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-tagline-badge {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  row-gap: 0.85rem;
  font-size: clamp(2.75rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: none;
  margin: 0;
}

.hero-title-prefix {
  justify-self: end;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero-title-highlight {
  display: inline-block;
  background: #fff;
  color: #171717;
  padding: 0.04em 0.12em 0.08em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transform: none;
  margin: 0;
}

.hero-title-highlight-dark {
  background: #171717;
  color: #fff;
}

.hero-subheadline {
  display: none;
}

.hero-actions {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-black);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
  background: #1F1F24;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: #D1D1D8;
  transform: translateY(-2px);
}

/* --------------------------------------------------
   FLOATING MASCOTS
   -------------------------------------------------- */
/* Top-Right: Spider-Man Resume Mascot */
.mascot-spiderman-widget {
  position: absolute;
  top: clamp(6rem, 12vh, 10rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 50;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gentleFloat 4s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out-expo);
}

.mascot-spiderman-widget:hover {
  transform: translateY(-6px) scale(1.08) rotate(3deg);
}

.mascot-spiderman-img {
  width: clamp(90px, 11vw, 130px);
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(229, 9, 20, 0.25));
}

.mascot-tooltip-pill {
  margin-top: -8px;
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1.5px solid var(--accent-black);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Bottom-Left: Doraemon Contact Mascot */
.mascot-contact-widget {
  position: fixed;
  bottom: 2.25rem;
  left: clamp(1rem, 3.8vw, 3.5rem);
  z-index: 950;
  display: block;
  width: 126px;
  height: 54px;
  cursor: pointer;
  background: #fff;
  padding: 0;
  border-radius: 0.35rem;
  border: 2px solid #171717;
  box-shadow: 0 4px 0 #171717;
  transition: border-color 0.25s ease;
}

.mascot-contact-img-wrapper {
  position: absolute;
  width: 104px;
  height: 104px;
  left: 58px;
  bottom: 1px;
  z-index: 2;
}

.mascot-contact-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.mascot-contact-img.state-hover {
  opacity: 0;
}

.mascot-contact-widget:hover .mascot-contact-img.state-idle {
  opacity: 0;
}

.mascot-contact-widget:hover .mascot-contact-img.state-hover {
  opacity: 1;
}

.mascot-contact-pill-text {
  font-family: var(--font-heading);
  position: absolute;
  inset: 0;
  justify-content: flex-start;
  padding-left: 0.7rem;
  padding-right: 2.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===================================================================
   3. LATEST WORK SECTION (Home Featured Cards + 3D Tilt)
   =================================================================== */
.section-work {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 1.75rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.browse-all-link {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.browse-all-link:hover {
  background: var(--accent-black);
  color: #FFFFFF;
  border-color: var(--accent-black);
  transform: translateX(4px);
}

/* 3-Card Featured Grid */
.projects-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1000px;
}

/* Project Card Component */
.project-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.project-card:hover {
  box-shadow: var(--shadow-float);
  border-color: #0A0A0B;
}

.project-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111116;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.06);
}

/* Overlay "View Project ↗" pill */
.card-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-view-pill {
  background: #FFFFFF;
  color: #0A0A0B;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(10px);
  transition: transform 0.3s var(--ease-out-expo);
}

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

.project-card:hover .card-view-pill {
  transform: translateY(0);
}

/* Backdrop Blur Tech Strip (Fades in on hover) */
.card-tech-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
  z-index: 5;
}

.project-card:hover .card-tech-strip {
  opacity: 1;
  transform: translateY(0);
}

.card-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Action Buttons (GitHub & Live Site - Stop Propagation) */
.card-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.btn-icon-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0A0A0B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-icon-action:hover {
  transform: scale(1.15);
  background: #2563EB;
}

.btn-icon-action svg {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
}

/* Content Below Thumbnail */
.project-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* Mobile Fallback: Permanent Tech Tags & Buttons when touch */
.mobile-card-details {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===================================================================
   4. FLEXIBLE INFINITE MARQUEE GALLERY
   =================================================================== */
.section-marquee {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee-heading-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.marquee-container-rows {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.marquee-row {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  will-change: transform;
}

/* Direction Classes */
.marquee-track.dir-left {
  animation: marqueeLeft 38s linear infinite;
}

.marquee-track.dir-right {
  animation: marqueeRight 38s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-card {
  flex-shrink: 0;
  width: 360px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.marquee-card:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  border-color: #0A0A0B;
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================================
   5. BROWSE ALL PROJECTS PAGE (projects.html)
   =================================================================== */
.projects-page-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background: #FFFFFF;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-back-link:hover {
  color: var(--text-primary);
  transform: translateX(-4px);
}

.page-display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.page-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* Tech Filter Bar */
.filter-bar-wrapper {
  margin: 2.5rem 0 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: #111111;
}

.filter-btn.active {
  background: var(--accent-black);
  color: #FFFFFF;
  border-color: var(--accent-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* All Projects Grid (3 cols desktop, 2 tablet, 1 mobile) */
.projects-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 6rem;
}

/* 80/20 Image to Content Split Card */
.browser-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.browser-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #0A0A0B;
}

.browser-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  cursor: pointer;
  background: #111116;
}

.browser-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.browser-card:hover .browser-card-image {
  transform: scale(1.03);
}

.browser-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.browser-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.browser-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  transition: max-height 0.4s ease;
}

.browser-card-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-see-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-black);
  text-decoration: underline;
  margin-bottom: 1rem;
  align-self: flex-start;
  padding: 0.2rem 0;
}

.browser-card-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.browser-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-btn-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-card-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-card-outline:hover {
  background: #0A0A0B;
  color: #FFFFFF;
  border-color: #0A0A0B;
}

/* ===================================================================
   6. ABOUT PAGE (about.html) — SPLIT SCREEN
   =================================================================== */
.about-page-wrapper {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  background: #FFFFFF;
}

.about-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
}

.about-left-content {
  padding-bottom: 6rem;
}

.about-right-visual {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  width: 100%;
  height: calc(100vh - var(--header-height) - 4rem);
  max-height: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Left Stack Components */
.about-section-block {
  margin-bottom: 4rem;
}

.about-sub-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-bio-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Competitive Programming Highlight Card */
.cp-stats-card {
  background: #0A0A0B;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cp-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
}

.cp-stats-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cp-stat-box {
  background: #18181D;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cp-stat-box-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cp-stat-handle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.cp-stat-metric {
  font-size: 0.875rem;
  color: #A1A1AA;
  margin-top: 0.5rem;
}

/* Timeline Components */
.timeline-list {
  position: relative;
  padding-left: 2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-black);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   7. CONTACT PAGE (contact.html) — WARM RICH AMBER / YELLOW THEME
   =================================================================== */
.contact-page-body {
  background-color: #FFBC70 !important;
  color: #0A0A0B;
}

.contact-hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
  background-color: #FFBC70;
  position: relative;
  min-height: 100vh;
}

.contact-cartoon-widget {
  position: absolute;
  top: clamp(5.25rem, 8vh, 7rem);
  right: clamp(1.5rem, 7vw, 7rem);
  z-index: 20;
  width: clamp(90px, 9vw, 126px);
  animation: gentleFloat 4s ease-in-out infinite;
  pointer-events: none;
}

.contact-cartoon-img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.25) drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18));
}

.contact-hero-section > .container {
  width: calc(100% - 2rem);
  max-width: 780px;
}

.contact-headline-wrap {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.contact-display-heading {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: #FFFFFF;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.contact-heading-line {
  display: block;
  white-space: nowrap;
}

.contact-heading-line-marked {
  position: relative;
  margin-top: 0.04em;
}

.contact-heading-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: contactLetterReveal 0.1s ease-out forwards;
}

.contact-heading-letter:nth-child(1) { animation-delay: 0.05s; }
.contact-heading-letter:nth-child(2) { animation-delay: 0.10s; }
.contact-heading-letter:nth-child(3) { animation-delay: 0.15s; }
.contact-heading-letter:nth-child(4) { animation-delay: 0.20s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(1) { animation-delay: 0.30s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(2) { animation-delay: 0.35s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(3) { animation-delay: 0.40s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(4) { animation-delay: 0.45s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(5) { animation-delay: 0.50s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(6) { animation-delay: 0.55s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(7) { animation-delay: 0.60s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(8) { animation-delay: 0.65s; }
.contact-heading-line-marked .contact-heading-letter:nth-child(9) { animation-delay: 0.70s; }

.contact-heading-mark {
  position: absolute;
  width: 3.2em;
  height: auto;
  right: 0.05em;
  bottom: 0.12em;
  overflow: visible;
}

.contact-heading-mark path {
  stroke: #F0522D;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: contactMarkReveal 0.7s ease-out 0.95s forwards;
}

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

@keyframes contactMarkReveal {
  to {
    stroke-dashoffset: 0;
  }
}

/* Hand-drawn SVG squiggle swash */
.contact-swash-svg {
  display: none;
  width: clamp(240px, 45vw, 480px);
  height: auto;
  margin-top: -0.5rem;
}

/* Quick Contact Pills */
.quick-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.quick-pill-card {
  background: #FFFFFF;
  border: 2px solid #0A0A0B;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 4px 6px 0px #0A0A0B;
  transition: all 0.25s var(--ease-out-expo);
  flex: 1;
  min-width: 260px;
  cursor: pointer;
}

.quick-pill-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 9px 0px #0A0A0B;
}

.quick-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-yellow-light);
  border: 1.5px solid #0A0A0B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-pill-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #575764;
}

.quick-pill-val {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: #0A0A0B;
}

/* Contact Form Grid */
.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 2rem;
  align-items: start;
  justify-content: center;
}

.contact-card-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #575764;
  text-align: center;
  margin-bottom: 1.5rem;
}

#portfolio-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#portfolio-contact-form .form-group:first-of-type,
#portfolio-contact-form .form-group:nth-of-type(4),
#portfolio-contact-form .btn-contact-submit {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: transparent;
  height: 0;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(10, 10, 11, 0.55);
  border-radius: 0.45rem;
  color: #0A0A0B;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(10, 10, 11, 0.58);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

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

.form-input:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-contact-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #FFFFFF;
  color: #0A0A0B;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  padding: 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(10, 10, 11, 0.55);
  box-shadow: none;
  transition: all 0.25s var(--ease-out-expo);
  margin-top: 0.25rem;
}

.btn-contact-submit:hover {
  background: #FFFFFF;
  border-color: #0A0A0B;
  transform: translateY(-2px);
  box-shadow: 3px 4px 0px #0A0A0B;
}

/* Scheduling Embed Container */
.cal-embed-box {
  background: #FFFFFF;
  border: 2.5px solid #0A0A0B;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 8px 12px 0px #0A0A0B;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Form Feedback Toast */
.form-status-alert {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.form-status-alert.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1.5px solid #16A34A;
}

.form-status-alert.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1.5px solid #DC2626;
}

/* ===================================================================
   8. DEDICATED RESUME PAGE (resume.html)
   =================================================================== */
.resume-page-wrapper {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
  background: var(--bg-secondary);
  min-height: 100vh;
}

.resume-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.resume-paper-view {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 900px;
  margin: 0 auto;
}

.resume-header-block {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.resume-applicant-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.resume-applicant-role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.resume-contact-col {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   9. SITE-WIDE BLACK FOOTER
   =================================================================== */
.site-footer {
  background-color: #0D0D0D;
  color: #FAFAFA;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #222222;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

/* Left Block: Monospace Slash Navigation */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-link {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #8E8E9F;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s var(--ease-out-expo);
  width: fit-content;
}

.footer-nav-link:hover {
  color: #FFFFFF;
  transform: translateX(10px);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Right Block: Newsletter & Hand Decoration */
.footer-newsletter-box {
  position: relative;
  background: #141416;
  border: 1px solid #27272A;
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.footer-hand-graphic {
  position: absolute;
  top: -30px;
  right: 25px;
  animation: waveHand 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(14deg); }
  50% { transform: rotate(-8deg); }
  75% { transform: rotate(10deg); }
}

.footer-newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-newsletter-sub {
  font-size: 0.9375rem;
  color: #A1A1AA;
  margin-bottom: 1.5rem;
}

.newsletter-form-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  background: #0D0D0F;
  border: 1.5px solid #27272A;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #FAFAFA;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: #FFFFFF;
}

.btn-newsletter-submit {
  background: #FFFFFF;
  color: #0A0A0B;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-newsletter-submit:hover {
  background: var(--accent-yellow);
  transform: translateX(2px);
}

/* Social Row (GIF / SVG Small Badges) */
.footer-social-wrapper {
  margin-top: 2rem;
}

.footer-social-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717A;
  margin-bottom: 0.85rem;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #1C1C20;
  border: 1px solid #2E2E36;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #D4D4D8;
  transition: all 0.25s var(--ease-out-expo);
}

.footer-social-badge img,
.footer-social-badge svg {
  width: 18px;
  height: 18px;
}

.footer-social-badge:hover {
  background: #FFFFFF;
  color: #0A0A0B;
  border-color: #FFFFFF;
  transform: translateY(-2px) scale(1.05);
}

/* Footer Bottom Strip */
.footer-bottom-strip {
  border-top: 1px solid #222225;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #71717A;
}

.footer-tagline {
  color: #D4D4D8;
  font-weight: 700;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 1024px) {
  .projects-featured-grid,
  .projects-all-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split-layout {
    grid-template-columns: 1fr;
  }

  .about-right-visual {
    position: relative;
    top: 0;
    height: 480px;
    order: -1;
    margin-bottom: 3rem;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-hero-section > .container {
    width: calc(100% - 2rem);
    max-width: none;
  }

  #portfolio-contact-form {
    grid-template-columns: 1fr;
  }

  #portfolio-contact-form .form-group,
  #portfolio-contact-form .btn-contact-submit {
    grid-column: 1;
  }

  .projects-featured-grid,
  .projects-all-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile touch devices, show tags permanently */
  .mobile-card-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-tech-strip {
    display: none !important;
  }

  .mascot-spiderman-widget {
    top: 5rem;
    right: 0.5rem;
  }

  .mascot-contact-widget {
    bottom: 1.25rem;
    left: 1rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  }

  .navbar-pill {
    padding: 0 1rem;
  }

  .nav-link-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }

  .quick-contact-row {
    flex-direction: column;
    gap: 1rem;
  }

  .quick-pill-card {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.1rem;
  }

  .quick-pill-card > div:last-child {
    min-width: 0;
  }

  .quick-pill-val {
    overflow-wrap: anywhere;
  }

  .footer-newsletter-box {
    padding: 1.5rem;
    min-width: 0;
  }

  .newsletter-form-group {
    width: 100%;
  }

  .newsletter-input {
    min-width: 0;
  }

  .btn-newsletter-submit {
    flex: 0 0 auto;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
