:root {
  --bg: #11161f;
  --bg2: #0f1217;
  --surface: #1a1f2e;
  --surface2: #1f2535;
  --border: #2a3040;
  --border2: #3a4560;
  --accent: #a07c50;
  --accent2: #9394a0;
  --accent3: #869b84;
  --warn: #6e4d40;
  --text: #e8eaf0;
  --text2: #8892a4;
  --text3: #4a5568;
  --mono: 'Space Mono', monospace;
  --sans: 'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 2px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px); */
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: 12px; color: var(--text2); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

section { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; padding: 4rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-tag {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
h1 span { color: var(--accent); }

.hero-sub { font-family: var(--mono); font-size: 13px; color: var(--text2); margin-bottom: 2rem; line-height: 1.8; }
.hero-sub strong { color: var(--accent3); font-weight: 400; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.05em; text-decoration: none; border-radius: 4px;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #000; font-weight: 700; }
.btn-primary:hover { background: #3b2f21; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* HERO ICON LINKS */
.hero-icon-links { display: flex; gap: 0.6rem; }
.hero-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none;
  transition: all 0.2s;
}
.hero-icon-link:hover { border-color: var(--accent2); background: var(--surface2); transform: translateY(-2px); }

/* DUAL IMAGE STACK */
.hero-images {
  position: relative;
  height: 360px;
}

.hero-img-back {
  position: absolute;
  top: 32px; right: 0;
  width: 300px; height: 205px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border2);
  filter: brightness(0.7) saturate(0.85);
  transition: all 0.35s ease;
  z-index: 1;
}
.hero-img-front {
  position: absolute;
  top: 0; left: 0;
  width: 300px; height: 230px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--accent2);
  transition: all 0.35s ease;
  z-index: 2;
}

.hero-img-radius {
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--accent2);
  transition: all 0.35s ease;
  z-index: 2;
}

.hero-images:hover .hero-img-front {
  transform: translate(-6px, -6px);
  border-color: var(--accent);
}
.hero-images:hover .hero-img-back {
  transform: translate(6px, 6px);
  filter: brightness(0.9) saturate(1);
  border-color: var(--accent3);
}

/* placeholder ikinci resim yoksa */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px;
  background: var(--surface); border: 1px dashed var(--border2);
  border-radius: 10px; font-family: var(--mono);
  font-size: 11px; color: var(--text3);
}
.img-placeholder span:first-child { font-size: 26px; }

/* SECTION HEADER */
.sec-header { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 3rem; }
.sec-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.15em; }
h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; }
.sec-line { flex: 1; height: 1px; background: var(--border); }

/* ABOUT */
#about { padding: 0rem 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
.about-text p strong { color: var(--text); font-weight: 600; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.skill-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.5rem 0.75rem; font-family: var(--mono); font-size: 11px; color: var(--text2);
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s; cursor: default;
}
.skill-chip:hover { border-color: var(--accent2); color: var(--accent); transform: translateY(-1px); background: var(--surface2); }
.skill-chip::before { content: '▸'; color: var(--accent); font-size: 10px; }
.skills-label { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }

/* PROJECTS */
#projects { padding: 3rem 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.project-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.75rem; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover {
  border-color: var(--accent2);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 212, 255, 0.08);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card.featured::before { transform: scaleX(1); background: var(--accent3); }
.project-card.featured { border-color: var(--border2); }
.project-card.featured:hover { box-shadow: 0 14px 36px rgba(0, 255, 136, 0.08); border-color: var(--accent3); }

.project-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.project-icon { font-size: 28px; line-height: 1; }
.project-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.status-active { background: rgba(0,255,136,0.1); color: var(--accent3); border: 1px solid rgba(0,255,136,0.3); }
.status-dev { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid rgba(0,212,255,0.3); }
.status-done { background: rgba(255,107,53,0.1); color: var(--warn); border: 1px solid rgba(255,107,53,0.3); }
.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.project-desc { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tag { font-family: var(--mono); font-size: 10px; padding: 2px 7px; background: var(--surface2); color: var(--text3); border-radius: 3px; border: 1px solid var(--border); }
.project-links { display: flex; gap: 0.75rem; }
.project-link { font-family: var(--mono); font-size: 11px; color: var(--text3); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; transition: color 0.2s; }
.project-link:hover { color: var(--accent); }

/* CV */
#cv { padding: 3rem 0; }
.cv-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cv-col h3 { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; }
.cv-item { position: relative; padding-left: 1.25rem; margin-bottom: 1.75rem; transition: transform 0.2s; }
.cv-item:hover { transform: translateX(4px); }
.cv-item::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); }
.cv-item::after { content: ''; position: absolute; left: 2px; top: 18px; width: 1px; height: calc(100% + 8px); background: var(--border); }
.cv-item:last-child::after { display: none; }
.cv-date { font-family: var(--mono); font-size: 10px; color: var(--accent2); letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.cv-role { font-size: 14px; font-weight: 600; margin-bottom: 0.2rem; }
.cv-place { font-family: var(--mono); font-size: 11px; color: var(--text3); margin-bottom: 0.4rem; }
.cv-detail { font-size: 12px; color: var(--text2); line-height: 1.6; }

/* PROJECT SLIDER */

.projects-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.projects-slider {
  display: flex;
  gap: 1.5rem;

  overflow-x: auto;
  scroll-behavior: smooth;

  padding: 0.5rem 0 1rem;

  scrollbar-width: none;

  scroll-snap-type: x mandatory;
}

.projects-slider::-webkit-scrollbar {
  display: none;
}

.project-card {
  min-width: 340px;
  max-width: 340px;

  flex-shrink: 0;

  scroll-snap-align: center;

  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;

  padding: 1.75rem;

  position: relative;
  overflow: hidden;

  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.project-card:hover {
  border-color: var(--accent2);
  transform: translateY(-6px);

  box-shadow:
    0 14px 36px rgba(0, 212, 255, 0.08);
}

.slider-btn {
  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: 1px solid var(--border2);

  background: rgba(20,20,20,0.85);

  color: var(--accent);

  font-size: 18px;

  cursor: pointer;

  transition: all 0.2s;

  flex-shrink: 0;

  z-index: 5;
}

.slider-btn:hover {
  background: var(--surface);

  border-color: var(--accent);

  transform: scale(1.06);
}

.slider-btn:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {

  .project-card {
    min-width: 85%;
    max-width: 85%;
  }

  .slider-btn {
    display: none;
  }
}


/* CONTACT */
#contact { padding: 3rem 0 4rem; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-text h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.contact-text p { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 2rem; }
.social-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.social-link {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; transition: all 0.22s;
}
.social-link:hover {
  border-color: var(--accent2); background: var(--surface);
  transform: translateX(5px) translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.06);
}
.social-icon { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon.gh { background: rgba(255,255,255,0.05); }
.social-icon.yt { background: rgba(255,0,0,0.1); }
.social-icon.li { background: rgba(0,119,181,0.15); }
.social-icon.mail { background: rgba(0,255,136,0.08); }
.social-icon.ig { background: rgba(225,48,108,0.1); }

.social-info { flex: 1; }
.social-name { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.social-handle { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.social-arrow { font-size: 14px; color: var(--text3); transition: color 0.2s, transform 0.2s; }
.social-link:hover .social-arrow { color: var(--accent); transform: translateX(4px); }

footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.footer-built { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.footer-built span { color: var(--accent); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* PROJECT DETAILS PAGE */
.detail-hero { padding: 5rem 0 2rem; }
.back-link { 
  display: inline-flex; align-items: center; gap: 0.5rem; 
  font-family: var(--mono); font-size: 12px; color: var(--accent); 
  text-decoration: none; margin-bottom: 2rem; transition: transform 0.2s;
}
.back-link:hover { transform: translateX(-5px); }

.project-header { margin-bottom: 2rem; }
.project-header h1 { margin-bottom: 0.5rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.project-header .project-status { margin-bottom: 1rem; display: inline-block; }
.project-header .hero-sub { text-align: justify; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; margin-top: 2rem; }

.detail-section { margin-bottom: 4rem; }
.detail-section h3 { 
  font-family: var(--mono); font-size: 14px; color: var(--accent); 
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; 
  display: flex; align-items: center; gap: 1rem;
}
.detail-section h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.process-list { list-style: none; border-left: 1px solid var(--border); margin-left: 5px; }
.process-step { 
  position: relative; padding-left: 2rem; margin-bottom: 2rem; 
  font-size: 15px; color: var(--text2); line-height: 1.6;
  text-align: justify;
}
.process-step::before { 
  content: ''; 
  position: absolute; left: -4px; top: 0.5rem; 
  width: 7px; height: 7px;
  background: var(--accent); 
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.step-content { margin-bottom: 1rem; }

/* Deck of Cards Effect */
.step-images-container {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.75rem;
}

.step-images-container.is-stack {
  position: relative;
  width: 140px; 
  height: 110px; 
  margin: 1.5rem 0 1.5rem 1.5rem; /* Reduced left margin for tighter fan */
  cursor: pointer;
}

.step-image { 
  flex: 0 0 auto;
  width: 140px; 
  height: auto;
  aspect-ratio: 4/3;
  margin: 0;
  border-radius: 8px; 
  overflow: hidden; 
  border: 1px solid var(--border2); 
  background: var(--bg2);
  cursor: zoom-in; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  transform-origin: bottom left;
}

.step-image.is-square {
  width: 105px;
  aspect-ratio: 1/1;
}

.step-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stack-specific absolute positioning to force exact corner overlap */
.step-images-container.is-stack:not(.expanded) .step-image {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: -5px 0 15px rgba(0,0,0,0.4);
}

/* Fan effect from exact bottom-left corner - Upright front card, spread back cards */
.step-images-container.is-stack:not(.expanded) .step-image:nth-child(1) { transform: rotate(0deg); z-index: 10; } /* Front card */
.step-images-container.is-stack:not(.expanded) .step-image:nth-child(2) { transform: rotate(-3deg); z-index: 9; }
.step-images-container.is-stack:not(.expanded) .step-image:nth-child(3) { transform: rotate(-6deg); z-index: 8; }
.step-images-container.is-stack:not(.expanded) .step-image:nth-child(4) { transform: rotate(-9deg); z-index: 7; }
.step-images-container.is-stack:not(.expanded) .step-image:nth-child(n+5) { transform: rotate(-12deg); z-index: 6; }

/* Hover spread - more pronounced fan but still tight */
.step-images-container.is-stack:not(.expanded):hover .step-image:nth-child(2) { transform: rotate(-6deg); }
.step-images-container.is-stack:not(.expanded):hover .step-image:nth-child(3) { transform: rotate(-12deg); }
.step-images-container.is-stack:not(.expanded):hover .step-image:nth-child(4) { transform: rotate(-18deg); }

/* Expanded State - REMOVED per user request for direct lightbox open */
.step-images-container.expanded {
  display: none; /* We don't use this anymore */
}

/* MODAL NAVIGATION */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 1020;
  transition: transform 0.2s, color 0.2s;
  line-height: 1;
}
.modal-close:hover { transform: scale(1.1); color: var(--accent); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1015;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: none; /* Shown via JS when gallery > 1 */
}
.modal-nav:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--accent); color: var(--accent); }
.modal-prev { left: 1rem; }
.modal-next { right: 1rem; }

.modal-content-wrapper {
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-content { 
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px; 
  border: 1px solid var(--border2); 
  box-shadow: 0 0 50px rgba(0,0,0,0.6);
  object-fit: contain;
}

.step-video { 
  margin: 1rem 0; border-radius: 8px; overflow: hidden; 
  border: 1px solid var(--border); max-width: 160px;
  position: relative; padding-bottom: 90px; /* Smaller thumbnail size */
  height: 0; cursor: zoom-in; transition: transform 0.2s;
}
.step-video:hover { transform: scale(1.02); border-color: var(--accent); }
.step-video iframe, .step-video video, .video-thumbnail { 
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; 
  pointer-events: none;
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.step-video:hover .video-thumbnail img { opacity: 1; }

.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: rgba(255, 255, 255, 0.15); 
  color: white; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; backdrop-filter: blur(4px);
  opacity: 0.9; transition: all 0.3s;
}
.step-video:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: rgba(255, 255, 255, 0.3); border-color: white; }

/* If it's a local video without padding-bottom hack */
.step-video:has(video) { height: auto; padding-bottom: 0; }
.step-video video { position: relative; }

/* LIGHTBOX MODAL */
.modal {
  display: none; position: fixed; z-index: 1000; inset: 0;
  background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content { 
  max-width: 90%; max-height: 90vh; border-radius: 12px; 
  border: 1px solid var(--border2); box-shadow: 0 0 40px rgba(0,0,0,0.5); 
}

.modal-video {
  width: 80vw;
  aspect-ratio: 16/9;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border2);
}
.modal-video iframe, .modal-video video { width: 100%; height: 100%; border: none; }

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

.gallery-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.gallery-item { 
  width: 200px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border); 
  background: var(--surface); aspect-ratio: 16/9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}
.gallery-item:hover { 
  transform: translateY(-5px); 
  border-color: var(--accent); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item:hover .play-icon { background: rgba(255, 255, 255, 0.3); border-color: white; transform: translate(-50%, -50%) scale(1.1); }

.project-sidebar { position: sticky; top: 6rem; }
.sidebar-box { 
  background: var(--bg2); border: 1px solid var(--border); 
  padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem;
}
.sidebar-box h4 { font-size: 14px; margin-bottom: 1rem; color: var(--text); }

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .hero-inner, .about-grid, .cv-layout, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  #hero { padding: 5rem 0 3rem; }
  .hero-images { height: 260px; }
  .hero-img-front { width: 220px; height: 170px; }
  .hero-img-back { width: 195px; height: 150px; top: 24px; }
}
