/* ============================================================
   Noah Kantor Portfolio — Redesigned (PerryW-inspired layout)
   Full-width layout, top nav, scroll animations
   Color palette & fonts preserved from original site
   ============================================================ */

/* ---------- CSS Variables (Light Mode Default) ---------- */
:root {
  /* Accent palette — light blue / purple */
  --accent: #6C63FF;
  --accent-light: #8B83FF;
  --accent-dark: #5A52E0;

  /* Semantic color tokens — light mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #f1f1f1;
  --bg-tertiary: #e8e8e8;
  --text-primary: #292929;
  --text-secondary: #999999;
  --text-body: #666666;
  --text-link: #121212;
  --border-color: #e0e0e0;
  --overlay-bg: rgba(255, 255, 255, 0.92);
  --overlay-border-hover: #292929;
  --social-opacity: 0.7;

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-mono: 'Inconsolata', monospace;
  --font-alt: 'Open Sans', sans-serif;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

/* ---------- Dark Mode Override ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #292929;
    --text-primary: #f1f1f1;
    --text-secondary: #999999;
    --text-body: #b0b0b0;
    --text-link: #f1f1f1;
    --border-color: #292929;
    --overlay-bg: rgba(18, 18, 18, 0.92);
    --overlay-border-hover: #f1f1f1;
    --social-opacity: 0.5;
  }

  .site-logo img,
  .social-link img,
  .footer-social a img,
  .nav-social a img,
  .mobile-nav-overlay .mobile-social a img {
    filter: invert(1);
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  font-family: var(--font-body);
  color: var(--text-body);
  margin-bottom: 1em;
  line-height: 1.7;
}

/* ---------- Accent Liner ---------- */
.liner {
  width: 60px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
  margin: 0.5em 0 1em 0;
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION — Top bar (PerryW style)
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 60px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-social a img {
  width: 20px;
  height: 20px;
  opacity: var(--social-opacity);
  transition: opacity var(--transition);
}

.nav-social a:hover img {
  opacity: 1;
}

/* ---------- Mobile Menu Toggle ---------- */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 12px;
  transition: color var(--transition);
}

.mobile-nav-overlay a:hover {
  color: var(--accent);
}

.mobile-nav-overlay .mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  list-style: none;
}

.mobile-nav-overlay .mobile-social a img {
  width: 28px;
  height: 28px;
  opacity: var(--social-opacity);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 4vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-secondary);
  max-width: 100%;
  padding: clamp(60px, 10vw, 120px) clamp(24px, 4vw, 60px);
}

.section-alt .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================================
   WORKS / PORTFOLIO GRID (PerryW style — large thumbnails)
   ============================================================ */
.works-header {
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 20px;
}

.works-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  text-transform: none;
}

.works-header p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.1rem;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 24px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Portfolio grid — large items */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px) 80px;
}

.portfolio-item {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--bg-secondary);
  opacity: 1;
  transform: none;
  transition: opacity 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
             transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Purple-tinted monochrome + pixelation at rest */
  filter: grayscale(1) sepia(0.8) hue-rotate(260deg) saturate(1.8);
  image-rendering: pixelated;
  transition: filter 0.6s ease;
}

.portfolio-item:hover img {
  filter: none;
  image-rendering: auto;
}

/* Purple overlay tint on portfolio items */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(108, 99, 255, 0.2);
  pointer-events: none;
  border-radius: 8px;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.portfolio-item:hover::after {
  opacity: 0;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--transition);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.portfolio-item .overlay .category {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

/* ---------- Portfolio shell wrappers (for FLIP filter animations) ---------- */
.portfolio-grid {
  position: relative; /* anchor for ghost clones */
}

.portfolio-shell {
  overflow: hidden;
  opacity: 1;
  transition: opacity 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-shell.shell-hidden {
  display: none;
}

.portfolio-item.filtered-out {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  pointer-events: none;
}

/* Ghost clone: visual stand-in during filter transitions */
.portfolio-ghost {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  border-radius: 8px;
}

.portfolio-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Keep purple filter on ghosts during exit animation so there's no flash */
  filter: grayscale(1) sepia(0.8) hue-rotate(260deg) saturate(1.8);
  image-rendering: pixelated;
}

.portfolio-ghost .overlay {
  display: none;
}

.portfolio-ghost-exit {
  opacity: 0 !important;
  transform: translateY(24px) scale(0.94);
  transition: opacity 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
             transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   HOME PAGE (merged Home + About)
   ============================================================ */
.home-hero {
  padding: calc(var(--nav-height) + 80px) 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.home-hero h1 {
  margin-bottom: 16px;
  /* Keep "Holohan-Kantor" on its own line without wrapping mid-word */
  white-space: nowrap;
}

.home-hero .home-tagline {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.about-bio {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px) 80px;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Services grid */
.services-section {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 60px);
  background: var(--bg-secondary);
}

.services-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  padding: 30px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-card .service-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-secondary);
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}

.project-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Project media gallery */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px clamp(24px, 4vw, 60px);
}

.project-images .project-media-item {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.project-images .project-media-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}

.project-images .project-media-img:hover img {
  opacity: 0.9;
}

/* Responsive 16:9 video embed wrapper */
.project-images .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.project-images .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* External link button */
.project-images .external-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}

.project-images .external-link-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-images .external-link-icon {
  font-size: 18px;
}

/* Project info section */
.project-info {
  padding: 60px clamp(24px, 4vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.project-info h2 {
  margin-bottom: 12px;
}

.project-info .project-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.project-info .project-desc h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-info .project-desc p {
  font-size: 15px;
  line-height: 1.8;
}

.project-meta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-meta .meta-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 4px;
  text-transform: uppercase;
}

/* Project navigation */
.project-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 24px;
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.project-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition);
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.project-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h1 {
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-info .contact-detail {
  margin-bottom: 24px;
  margin-top: 24px;
}

.contact-info .contact-detail .label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 24px;
  border: none;
  border-bottom: 2px solid var(--border-color);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-form button:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-hero {
  padding: calc(var(--nav-height) + 80px) 24px 40px;
  text-align: center;
}

.resume-hero h1 {
  margin-bottom: 12px;
}

.resume-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.resume-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4vw, 60px) 80px;
}

.resume-section {
  margin-bottom: 60px;
}

.resume-section h2 {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.resume-entry {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
}

.resume-entry:last-child {
  border-bottom: none;
}

.resume-entry .entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-entry .entry-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.resume-entry .entry-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.resume-entry .entry-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.resume-entry .entry-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.resume-entry .entry-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.resume-entry .entry-clients span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 4px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.skill-group h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.skill-group p {
  font-size: 14px;
  line-height: 1.7;
}

.resume-download {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.resume-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  border-radius: 4px;
  transition: all var(--transition);
}

.resume-download a:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ============================================================
   FOOTER (PerryW style — minimal)
   ============================================================ */
.site-footer {
  padding: 40px clamp(24px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer .footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.site-footer .footer-social {
  display: flex;
  gap: 16px;
  list-style: none;
}

.site-footer .footer-social a img {
  width: 22px;
  height: 22px;
  opacity: var(--social-opacity);
  transition: opacity var(--transition);
}

.site-footer .footer-social a:hover img {
  opacity: 1;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .site-nav {
    justify-content: flex-start;
    padding: 0 20px;
  }

  .nav-links,
  .nav-social {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    padding: 0 16px 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .project-images {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    gap: 16px;
  }

  .project-images .video-wrapper {
    max-height: 200px;
    padding-bottom: 0;
    height: 200px;
  }

  .project-images .video-wrapper iframe {
    position: relative;
  }

  .project-nav {
    gap: 12px;
  }

  .project-nav a {
    font-size: 11px;
    padding: 8px 12px;
  }

  .resume-entry .entry-header {
    flex-direction: column;
    gap: 4px;
  }

  .filter-btn {
    padding: 10px 14px;
    font-size: 11px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 14px 0;
  }

  .contact-form button {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
