:root {
  --ink: #17201d;
  --ink-deep: #0f1513;
  --cream: #f3f0e8;
  --paper: #faf9f5;
  --green: #a8b8a2;
  --deep-green: #315d4c;
  --deep-green-hover: #264a3c;
  --orange: #c86f43;
  --orange-light: #fbeee7;
  --line: rgba(23, 32, 29, .14);
  --line-strong: rgba(23, 32, 29, .26);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, .1);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition-smooth: all .3s cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

/* Background Texture Noise */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.container {
  width: 100% !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* ===================================================
   SLEEK PRELOADER (CHAUDHARY NILESH) - MATCHES WEBSITE WARM THEME
   =================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--cream) !important;
  background-color: #f3f0e8 !important;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
}

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

.preloader-content {
  text-align: center;
  padding: 24px;
  max-width: 560px;
}

.preloader-name {
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 10px;
  line-height: 1.1;
  color: var(--ink);
}

.preloader-sub {
  font-size: 13px;
  color: #5d6761;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 24px;
  font-weight: 700;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(23, 32, 29, .14);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

.preloader-progress {
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform-origin: left;
  animation: preloaderFill 1.5s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes preloaderFill {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/* ===================================================
   NAVIGATION & PROJECT DROPDOWN
   =================================================== */
.nav-wrap {
  position: absolute;
  z-index: 50;
  width: 100%;
  top: 0;
}

.nav {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-green);
}

/* Header Projects Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  border-color: var(--deep-green);
  color: var(--deep-green);
  background: rgba(255, 255, 255, 0.4);
}

.dropdown-chevron {
  font-size: 10px;
  font-style: normal;
  transition: transform .25s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-chevron,
.nav-dropdown-menu.show+.nav-dropdown-toggle .dropdown-chevron {
  transform: rotate(180deg);
}

/* Glass effect for Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 320px;
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(23, 32, 29, .14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .2s cubic-bezier(.2, .7, .2, 1);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease, transform .2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(23, 32, 29, .06);
}

/* No green square background - clean minimalist vector icon */
.item-icon-svg {
  width: 24px;
  height: 24px;
  color: #555d58;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .2s ease;
}

.dropdown-item:hover .item-icon-svg,
.dropdown-item.active .item-icon-svg {
  color: var(--deep-green);
  transform: scale(1.15);
}

.item-text {
  display: flex;
  flex-direction: column;
}

.item-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.item-text small {
  font-size: 11px;
  color: #727a75;
  margin-top: 2px;
}

.nav-cta {
  justify-self: end;
  border-bottom: 1.5px solid var(--ink);
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.nav-cta span {
  display: inline-block;
  margin-left: 10px;
  transition: transform .25s;
}

.nav-cta:hover span {
  transform: translate(3px, -3px);
}

.menu-toggle {
  display: none;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 760px;
  height: 88vh;
  max-height: 860px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  overflow: hidden;
}

.hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(60px, 7.5vw, 110px);
  line-height: .93;
  letter-spacing: -.07em;
  margin: 22px 0 28px;
  max-width: 1080px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--orange);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--deep-green);
}

.hero-copy {
  width: min(540px, 85%);
  margin: 0 0 36px 42%;
  line-height: 1.75;
  color: #555d58;
  font-size: 16.5px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 42%;
}

.button {
  min-height: 54px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 20px 0 26px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: var(--transition-smooth);
}

.button span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform .25s;
}

.button:hover span {
  transform: translate(2px, -2px);
}

.button-dark {
  background: var(--deep-green);
  color: white;
}

.button-dark:hover {
  background: var(--deep-green-hover);
  box-shadow: 0 8px 24px rgba(49, 93, 76, .35);
}

.button-dark span {
  background: rgba(255, 255, 255, .2);
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 8px 0;
  transition: color .2s, border-color .2s;
}

.text-link:hover {
  border-color: var(--ink);
  color: var(--deep-green);
}

.hero-stats {
  position: absolute;
  right: 0;
  bottom: 44px;
  display: flex;
  border-top: 1px solid var(--line-strong);
  width: 440px;
}

.hero-stats div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 0 0;
}

.hero-stats strong {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.hero-stats span {
  color: #727a75;
  font-size: 12px;
  margin-top: 4px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 640px;
  height: 640px;
  right: -220px;
  top: 70px;
}

.orbit-two {
  width: 440px;
  height: 440px;
  left: -280px;
  bottom: -110px;
}

/* ===================================================
   TICKER
   =================================================== */
.ticker {
  background: var(--ink);
  color: var(--cream);
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker span {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  margin: 0 28px;
  white-space: nowrap;
}

.ticker i {
  color: var(--green);
  font-style: normal;
  font-size: 14px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.section {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 20px 0 0;
  font-weight: 800;
}

.section-heading h2 em,
.about-copy h2 em,
.contact h2 em {
  color: var(--orange);
  font-style: normal;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line-strong);
}

.service-card {
  min-height: 320px;
  padding: 34px 34px 28px 0;
  border-right: 1px solid var(--line);
  position: relative;
  transition: transform .3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card+.service-card {
  padding-left: 34px;
}

.service-card:last-child {
  border-right: 0;
}

.service-num {
  position: absolute;
  right: 24px;
  top: 36px;
  color: #929995;
  font-size: 12px;
  font-weight: 600;
}

.service-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 50px;
  background: rgba(255, 255, 255, .4);
}

.service-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.service-card p {
  color: #626965;
  line-height: 1.7;
  max-width: 320px;
  font-size: 14px;
}

/* ===================================================
   WORK & PORTFOLIO SECTION
   =================================================== */
.work {
  background: var(--paper);
}

.work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.work-heading>p {
  width: min(440px, 100%);
  color: #636b66;
  line-height: 1.7;
  margin: 0 0 8px;
  font-size: 14.5px;
}

/* Filter Buttons */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--ink);
  background: rgba(23, 32, 29, .05);
}

.filter-btn.active {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: white;
  box-shadow: 0 4px 14px rgba(49, 93, 76, .25);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 58px 30px;
  margin-top: 44px;
}

.project-featured,
.project-wide {
  grid-column: 1 / -1;
}

.project {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s ease;
}

.project:hover {
  transform: translateY(-5px);
}

/* BROWSER MOCKUP CONTAINER - EXACT 1.98:1 ASPECT RATIO (1917x968) - NO CROPPING */
.browser-mockup {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 32, 29, .06);
  transition: all .35s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.project:hover .browser-mockup {
  box-shadow: 0 12px 36px rgba(23, 32, 29, .14);
}

.browser-header {
  height: 38px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  gap: 8px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccd2cb;
}

.browser-dots span:nth-child(1) {
  background: #ed6a5e;
}

.browser-dots span:nth-child(2) {
  background: #f5bf4f;
}

.browser-dots span:nth-child(3) {
  background: #61c554;
}

.browser-address {
  font-size: 11px;
  color: #68726c;
  background: rgba(255, 255, 255, .9);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, .08);
  font-family: monospace;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.browser-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--deep-green);
  background: rgba(49, 93, 76, .12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* 1.98:1 Aspect Ratio - Matches 1917x968 Screenshots 100% Exactly */
.project-image {
  aspect-ratio: 1.98 / 1;
  width: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #ffffff;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.project:hover .project-image img {
  transform: scale(1.03);
}

/* Hover Action Overlay */
.project-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 29, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.project:hover .project-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.action-pill {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}

.preview-pill {
  background: white;
  color: var(--ink);
}

.preview-pill:hover {
  transform: scale(1.06);
}

.study-pill {
  background: var(--orange);
  color: white;
}

.study-pill:hover {
  transform: scale(1.06);
  background: #d4794b;
}

/* Project Meta */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 14px;
  gap: 16px;
}

.project-meta p {
  margin: 0 0 5px;
  color: #727a75;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.project-meta h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(21px, 2.1vw, 28px);
  letter-spacing: -.04em;
  font-weight: 700;
}

.meta-tag {
  color: #6a736d;
  font-size: 12px;
  font-weight: 600;
}

.project-summary {
  max-width: 860px;
  color: #5c645f;
  line-height: 1.7;
  font-size: 14px;
  margin: 12px 0 14px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.project-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-chips span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #4b524e;
  background: rgba(255, 255, 255, .5);
}

.card-detail-link {
  color: var(--deep-green);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(49, 93, 76, .09);
  transition: var(--transition-smooth);
}

.card-detail-link:hover {
  background: var(--deep-green);
  color: white;
}

/* ===================================================
   PROPER BALANCED QUICK PREVIEW MODAL
   (NO DEAD SPACE, 16:9 DESKTOP SLIDER)
   =================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal[hidden] {
  display: none !important;
}

.project-modal.open {
  display: flex !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 19, .82);
  backdrop-filter: blur(10px);
}

.modal-shell {
  position: relative;
  z-index: 1010;
  width: min(1200px, 95vw);
  max-height: 90vh;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1030;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease;
}

.modal-close:hover {
  background: var(--ink);
  color: white;
  transform: rotate(90deg);
}

/* Modal Gallery Left Side - 16:9 Full Screen */
.modal-gallery-side {
  background: #f5f7f4;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.modal-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.modal-browser-dots {
  display: flex;
  gap: 6px;
}

.modal-browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccd2cb;
}

.modal-browser-dots span:nth-child(1) {
  background: #ed6a5e;
}

.modal-browser-dots span:nth-child(2) {
  background: #f5bf4f;
}

.modal-browser-dots span:nth-child(3) {
  background: #61c554;
}

.modal-browser-title {
  color: #556059;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, .05);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-family: monospace;
}

.gallery-count {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Modal Screen Container (1.98:1 - Perfectly Fits 1917x968 Screenshots & Scrollable!) */
.modal-screen-container {
  position: relative;
  aspect-ratio: 1.98 / 1;
  width: 100%;
  max-height: 480px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.modal-main-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
  z-index: 5;
}

.gallery-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

/* Modal Thumbnail Strip */
.modal-thumbs-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: thin;
}

.modal-thumb-item {
  width: 90px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: white;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: .6;
  transition: var(--transition-smooth);
}

.modal-thumb-item:hover {
  opacity: 1;
  border-color: var(--ink);
}

.modal-thumb-item.active {
  border-color: var(--deep-green);
  opacity: 1;
  box-shadow: 0 2px 10px rgba(49, 93, 76, .3);
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Modal Details Right Side */
.modal-details-side {
  padding: 34px 28px 28px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}

.modal-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(49, 93, 76, .1);
  color: var(--deep-green);
}

.modal-details-side h2 {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 6px 0 12px;
  font-weight: 800;
}

.modal-description {
  color: #555d58;
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 20px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #77807a;
  margin: 0 0 10px;
}

.modal-features {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.modal-features span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  font-size: 13px;
  color: #424a45;
  line-height: 1.45;
}

.modal-features span::before {
  content: "✓";
  color: var(--deep-green);
  font-weight: 800;
  margin-right: 8px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.modal-tech span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
}

.modal-actions-bar {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.modal-cta-btn {
  width: 100%;
  justify-content: center;
}

/* ===================================================
   STANDALONE PROJECT DETAILS PAGE (project-details.html)
   =================================================== */
.detail-page {
  background: var(--paper);
}

.detail-nav-wrap {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.project-detail-main {
  padding-top: 36px;
  padding-bottom: 100px;
}

/* Clean Top Breadcrumb */
.detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  transition: var(--transition-smooth);
}

.back-link:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.back-arrow {
  font-size: 16px;
  transition: transform .2s;
}

.back-link:hover .back-arrow {
  transform: translateX(-3px);
}

.detail-quick-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--deep-green);
  background: rgba(49, 93, 76, .1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Detail Hero */
.detail-hero {
  margin-bottom: 38px;
}

.detail-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 0 0 14px;
  font-weight: 800;
}

.detail-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #5b635f;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 0 32px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7b837e;
  margin-bottom: 5px;
}

.meta-val {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Detail Gallery Section (16:9 Full Desktop Screen - Never Cut Off) */
.detail-gallery-section {
  margin-bottom: 46px;
}

.detail-browser-mockup {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 0;
}

.gallery-counter-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--ink);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.gallery-viewport {
  position: relative;
  aspect-ratio: 1.98 / 1;
  width: 100%;
  max-height: 600px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.gallery-main-frame {
  width: 100%;
  min-height: 100%;
  display: block;
  padding: 0;
}

.gallery-main-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: var(--transition-smooth);
}

.gallery-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn.prev {
  left: 20px;
}

.gallery-nav-btn.next {
  right: 20px;
}

/* Thumbnails Strip */
.gallery-thumbs-wrap {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 14px 18px;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.thumb-item {
  width: 120px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  background: white;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  opacity: .6;
  transition: var(--transition-smooth);
}

.thumb-item:hover {
  opacity: 1;
  border-color: var(--ink);
}

.thumb-item.active {
  border-color: var(--deep-green);
  opacity: 1;
  box-shadow: 0 4px 14px rgba(49, 93, 76, .3);
}


.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.thumb-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, .7);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Detail Stats Grid */
.detail-stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-val {
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
  color: var(--deep-green);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: #616a65;
  font-weight: 600;
}

/* Detail Content Layout */
.detail-content-layout {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 36px;
  margin-bottom: 50px;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.card-header h2 {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.detail-overview-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #4b534e;
  margin: 0;
}

/* Features List */
.detail-features-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.feat-check {
  color: var(--deep-green);
  font-weight: 800;
  font-size: 15px;
  margin-top: 1px;
}

.feat-text {
  font-size: 14px;
  color: #444c48;
  line-height: 1.6;
}

.feat-text strong {
  color: var(--ink);
}

/* Architecture Workflow Grid */
.detail-arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.arch-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.arch-step {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

.arch-card h4 {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.arch-card p {
  font-size: 13px;
  color: #616a65;
  line-height: 1.6;
  margin: 0;
}

/* Sidebar Column */
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.detail-side-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tech-stack-group {
  margin-bottom: 18px;
}

.tech-stack-group:last-child {
  margin-bottom: 0;
}

.tech-stack-group h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7b837e;
  margin: 0 0 8px;
}

.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.cta-side-card {
  background: var(--deep-green);
  color: white;
}

.cta-side-card h3 {
  border-color: rgba(255, 255, 255, .2);
  color: white;
}

.cta-side-card p {
  color: #d1ded7;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.button.full-width {
  width: 100%;
  background: white;
  color: var(--ink);
}

.button.full-width:hover {
  background: var(--cream);
}

.button.full-width span {
  background: var(--green);
  color: var(--ink);
}

.cta-direct-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.cta-direct-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .2s;
}

.cta-direct-links a:hover {
  color: white;
}

/* Pagination: Prev / Next Project */
.detail-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  margin-top: 10px;
}

.page-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  max-width: 320px;
  padding: 12px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.page-link:hover {
  background: white;
  border-color: var(--deep-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-link-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7b837e;
  margin-bottom: 4px;
}

.page-link-title {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.next-page {
  text-align: right;
  margin-left: auto;
}

.all-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: white;
  transition: var(--transition-smooth);
}

.all-projects-btn:hover {
  background: var(--ink);
  color: white;
}

/* ===================================================
   ABOUT, EXPERIENCE, CONTACT & FOOTER
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: center;
}

.about-mark {
  height: 460px;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% var(--radius-md) var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--green);
  box-shadow: var(--shadow-sm);
}

.initials {
  font-family: "Manrope", sans-serif;
  font-size: 110px;
  letter-spacing: -.12em;
  color: var(--cream);
  font-weight: 800;
  line-height: 1;
}

.about-mark p {
  margin-top: 32px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
}

.about-copy h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  margin-bottom: 22px;
}

.about-copy>p:not(.eyebrow) {
  color: #555d58;
  line-height: 1.8;
  max-width: 620px;
  font-size: 16px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.skill-list span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  transition: transform .2s, background .2s;
}

.skill-list span:hover {
  background: white;
  transform: translateY(-2px);
}

.experience {
  background: var(--ink);
  color: var(--cream);
}

.experience .eyebrow {
  color: var(--green);
}

.experience-list {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.experience-list article {
  min-height: 140px;
  display: grid;
  grid-template-columns: 190px 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  padding: 22px 0;
}

.experience-list article>span {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.experience-list h3 {
  font-family: "Manrope", sans-serif;
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
}

.experience-list div p {
  margin: 0;
  color: #c0c8c3;
  font-size: 13.5px;
}

.experience-list article>p {
  margin: 0;
  color: #9ea7a1;
  font-size: 13.5px;
  line-height: 1.7;
}

.contact {
  background: var(--deep-green);
  color: var(--cream);
}

.contact-inner {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact .eyebrow {
  color: var(--green);
}

.contact h2 {
  font-size: clamp(62px, 8vw, 112px);
  margin: 16px 0 42px;
}

.contact h2 em {
  color: var(--green);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.button-light {
  background: var(--cream);
  color: var(--ink);
}

.button-light:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.button-light span {
  background: var(--green);
  color: var(--ink);
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 8px;
}

.contact-info-block a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}

.contact-info-block a:hover {
  color: white;
}

.contact-loc {
  color: #c2cfc7;
  font-size: 13px;
}

footer {
  background: var(--ink);
  color: var(--cream);
}

.footer-inner {
  height: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-brand {
  color: var(--cream);
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
}

.footer-inner p {
  text-align: center;
  color: #8f9792;
  font-size: 12px;
  margin: 0;
}

.back-top {
  justify-self: end;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.back-top:hover {
  color: var(--green);
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

/* ===================================================
   RESPONSIVE QUERIES
   =================================================== */
@media (max-width: 1024px) {
  .detail-content-layout {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-gallery-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-meta-grid,
  .detail-stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .nav {
    height: 80px;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 16px;
    right: 16px;
    background: var(--paper);
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
  }

  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown-menu.show {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    top: auto !important;
    box-shadow: none !important;
    background: rgba(23, 32, 29, 0.04) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    margin-top: 6px !important;
    max-height: 340px !important;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
  }

  /* Prevent Mobile Right Overflow in Hero */
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 110px;
    padding-bottom: 50px;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(36px, 9.5vw, 54px);
    line-height: 1.05;
    margin: 16px 0 20px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-left: 0;
    width: 100%;
    gap: 16px;
  }

  .hero-stats {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-top: 36px !important;
    border-top: 1px solid var(--line-strong) !important;
    padding-top: 14px;
  }

  .hero-orbit {
    display: none !important;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .service-card,
  .service-card+.service-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 24px;
  }

  .work-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
  }

  .project {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-featured,
  .project-wide {
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-mark {
    width: min(360px, 100%);
    height: 340px;
    justify-self: center;
  }

  .experience-list article {
    grid-template-columns: 130px 1fr;
    padding: 20px 0;
  }

  .experience-list article>p {
    grid-column: 2;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .contact-info-block {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .browser-header {
    height: 34px;
    padding: 0 10px;
    gap: 6px;
  }

  .browser-address {
    max-width: 120px;
    font-size: 10px;
    padding: 2px 8px;
  }

  .browser-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .action-pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .project-card-chips {
    gap: 4px;
  }

  .project-card-chips span {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  .experience-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .experience-list article>p {
    grid-column: 1;
  }

  .detail-meta-grid,
  .detail-stats-section,
  .detail-arch-grid {
    grid-template-columns: 1fr;
  }

  .detail-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .next-page {
    text-align: left;
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}