/* ===========================
   LOADER - v4 style
=========================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: opacity 0.5s var(--easing, cubic-bezier(0.645,0.045,0.355,1)), visibility 0.5s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo-wrapper {
  width: 90px;
  opacity: 0;
  animation: loaderFadeIn 0.4s ease 0.2s forwards;
}
#loader-logo path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawHex 2.2s ease 0.4s forwards;
}
#loader-logo text {
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 1.9s forwards;
}
@keyframes drawHex { to { stroke-dashoffset: 0; } }
@keyframes loaderFadeIn { to { opacity: 1; } }
body.hidden { overflow: hidden; }
body.hidden #content,
body.hidden #hero,
body.hidden #about,
body.hidden #navbar { opacity: 0; }
#hero, #about, #navbar, #content { transition: opacity 0.5s ease 0.3s; }

/* ===========================
   VARIABLES
=========================== */
:root {
  --dark-navy: #020c1b;
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --navy-shadow: rgba(2, 12, 27, 0.7);
  --dark-slate: #495670;
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green: #64ffda;
  --green-tint: rgba(100, 255, 218, 0.1);
  --font-sans: "Inter", "Calibre", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --font-tiny: 12px;
  --font-small: 14px;
  --font-normal: 16px;
  --font-medium: 18px;
  --font-large: 20px;
  --font-xlarge: 22px;
  --font-xxlarge: 24px;
  --font-heading: 34px;
  --border-radius: 4px;
  --nav-height: 70px;
  --nav-scroll-height: 70px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-slate) var(--navy);
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-slate);
  border: 3px solid var(--navy);
  border-radius: 10px;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: var(--font-xlarge);
  line-height: 1.3;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--green);
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===========================
   SKIP LINK
=========================== */
.skip-to-content {
  position: absolute;
  top: -99px;
  left: 0;
  background: var(--green);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  font-size: var(--font-small);
  z-index: 999;
}
.skip-to-content:focus {
  top: 0;
}

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 50px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 20;
  transition: var(--transition);
  box-shadow: 0 10px 30px -10px var(--navy-shadow);
}
#navbar.shrink {
  height: var(--nav-scroll-height);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links {
  display: flex;
  gap: 30px;
  counter-reset: nav;
  list-style: none;
}
.nav-links li a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lightest-slate);
  letter-spacing: 0.05em;
}
.nav-links li a span {
  color: var(--green);
  margin-right: 5px;
  font-size: var(--font-tiny);
}
.nav-links li a:hover {
  color: var(--green);
}
.resume-btn {
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  background: transparent;
  line-height: 1;
}
.resume-btn:hover {
  background: var(--green-tint);
  box-shadow: 3px 3px 0 0 var(--green);
  transform: translate(-3px, -3px);
}
.resume-btn.block {
  display: inline-block;
  margin-top: 30px;
}

/* ===========================
   HAMBURGER
=========================== */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px;
  z-index: 30;
  align-items: center;
  justify-content: center;
}
.ham-box {
  display: inline-block;
  width: 30px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ham-inner,
.ham-inner::before,
.ham-inner::after {
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--green);
  border-radius: 4px;
  transition: var(--transition);
  content: "";
}
.ham-inner {
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
.ham-inner::before {
  top: -10px;
  left: 0;
}
.ham-inner::after {
  top: 10px;
  left: 0;
}
.hamburger.open .ham-inner {
  transform: translateY(-50%) rotate(45deg);
  top: 50%;
}
.hamburger.open .ham-inner::before {
  top: 0;
  opacity: 0;
}
.hamburger.open .ham-inner::after {
  transform: rotate(-90deg);
  top: 0;
}

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  bottom: 0;
  width: min(75vw, 400px);
  background: var(--light-navy);
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: -10px 0 30px -15px var(--navy-shadow);
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu ol {
  text-align: center;
}
.mobile-menu li {
  margin: 20px 0;
}
.mobile-menu a {
  font-family: var(--font-mono);
  color: var(--lightest-slate);
}
.mobile-menu a span {
  color: var(--green);
  display: block;
  font-size: var(--font-normal);
  margin-bottom: 5px;
}
.mobile-resume {
  margin-top: 30px;
  display: inline-block;
}
body.blur {
  overflow: hidden;
}
body.blur main,
body.blur .side,
body.blur #dot-nav {
  filter: blur(5px) brightness(0.7);
  pointer-events: none;
}

/* ===========================
   DOT NAVIGATION
=========================== */
#dot-nav {
  position: fixed;
  right: 80px;
  top: 52.5%;
  transform: translateY(-52.5%);
  z-index: 10;
  display: flex;
  flex-direction: column;
}
#dot-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dot-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid var(--slate);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size:11px;
  color: var(--slate);
  transition: var(--transition);
  background: transparent;
}
.dot-link:hover .dot,
.dot-link.active .dot {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-tint);
  transform: scale(1.05);
}
.dot-link.active .dot {
  border-color: var(--green);
  background: var(--green-tint);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}
.dot-label {
  position: absolute;
  right: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-slate);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
  background: var(--light-navy);
  padding: 4px 8px;
  border-radius: 4px;
}
.dot-link:hover .dot-label {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================
   SIDE BARS
=========================== */
.side {
  position: fixed;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.side::after {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  background: var(--light-slate);
}
.side-left {
  left: 40px;
}
.side-right {
  right: 40px;
}
.social-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.social-list a {
  color: var(--light-slate);
  display: block;
  width: 20px;
  height: 20px;
}
.social-list a:hover {
  color: var(--green);
  transform: translateY(-3px);
}
.social-list svg {
  width: 20px;
  height: 20px;
}
.social-list img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(0.75);
  opacity: 0.85;
  transition: var(--transition);
  display: block;
}
.social-list a:hover img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(68%) saturate(360%) hue-rotate(110deg) brightness(101%) contrast(95%);
  opacity: 1;
}
.email-link {
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-size: var(--font-tiny);
  color: var(--light-slate);
}
.email-link:hover {
  color: var(--green);
  transform: translateY(-3px);
}

/* ===========================
   MAIN LAYOUT
=========================== */
main {
  position: relative;
  z-index: 1;
  background: var(--navy);
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
  padding: 0 170px;
}
section {
  margin: 0 auto;
  padding: 70px 0;
  max-width: 1100px;
}
.numbered-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(26px, 5vw, var(--font-heading));
  color: var(--lightest-slate);
  white-space: nowrap;
  margin-bottom: 60px;
}
.numbered-heading span {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(16px, 3vw, 20px);
}
.numbered-heading::after {
  content: "";
  display: block;
  height: 1px;
  width: 300px;
  background: var(--lightest-navy);
  margin-left: 20px;
}
.section-divider {
  display: block;
  height: 1px;
  background: var(--lightest-navy);
  max-width: 500px;
  margin: 0 auto 40px;
}
.section-divider.center {
  margin: 0 auto 40px;
}

/* ===========================
    HERO + ABOUT MERGED (keeps id="about" for nav anchoring, styled like former #hero)
=========================== */
#hero,
#about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 150px;
  overflow: hidden;
  box-sizing: border-box;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 12, 27, 0.4),
      rgba(2, 12, 27, 0.9) 50%,
      rgba(2, 12, 27, 0.5) 100%
    ),
    url(images/Hero-bg.jpg)
      center center / cover no-repeat fixed;
  background-attachment: fixed, fixed;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding-top: 130px;
  padding-bottom: 40px;
}
.hero-eyebrow {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(14px, 5vw, 16px);
  margin: 0 0 20px 4px;
}
.hero-name {
  margin: 0;
  font-size: clamp(30px, 8vw, 50px);
  color: var(--lightest-slate);
  line-height: 1.1;
  font-weight: 600;
}
.hero-tagline {
  margin: 0;
  font-size: clamp(30px, 8vw, 50px);
  color: var(--slate);
  line-height: 1.4;
  font-weight: 600;
}
.hero-desc {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--slate);
  font-size: var(--font-normal);
  line-height: 1.5;
}
.hero-desc--secondary {
  margin-top: 12px;
  color: var(--light-slate);
  font-size: 15px;
  opacity: 0.95;
}
@media (max-width: 768px) {
  .hero-desc { font-size: 15px; line-height: 1.6; max-width: 100%; }
  .hero-desc--secondary { font-size: 14px; }
  .hero-tech-list { gap: 8px 14px; margin-top: 16px; }
  .hero-tech-list li { font-size: 11px; }
}
@media (max-width: 480px) {
  .hero-desc { font-size: 14.5px; }
  .hero-desc--secondary { font-size: 13.5px; }
}
.hero-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 540px;
}
.hero-tech-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.hero-tech-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 11px;
  line-height: 1.4;
}
.hero-cta {
  display: inline-block;
  margin-top: 30px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: var(--font-normal);
  background: transparent;
}
.hero-cta:hover {
  background: var(--green-tint);
  box-shadow: 4px 4px 0 0 var(--green);
  transform: translate(-4px, -4px);
}

/* ===========================
   ABOUT
=========================== */
.about-inner {
  display: block;
}
.about-text p {
  margin: 0 0 15px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0 10px;
  margin-top: 20px;
}
.skills-list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  color: var(--slate);
  margin-bottom: 10px;
}
.skills-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ===========================
   WHAT I DO - clean, no cards - like reference (thin cross lines)
=========================== */
#what-i-do {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px max(50px, calc((100vw - 1100px) / 2));
  box-sizing: border-box;
  background:
    linear-gradient(rgba(10, 25, 47, 0.90), rgba(17, 34, 64, 0.80)),
    url(images/what-i-do-bg.jpg)
      center / cover no-repeat;
}
#what-i-do .numbered-heading {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
}
#what-i-do .numbered-heading::after {
  background: rgba(100, 255, 218, 0.5);
  height: 2px;
  width: 250px;
}
#what-i-do .section-divider {
  display: none;
}
.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-row:first-child {
  border-bottom: 1px solid rgba(204, 214, 246, 0.50);
}
.service-column {
  background: transparent;
  backdrop-filter: none;
  padding: 28px 32px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}
.service-column:hover {
  transform: none;
}
/* vertical divider - stronger */
.service-row .service-column:first-child {
  border-right: 1px solid rgba(204, 214, 246, 0.50);
  padding-left: 0;
  padding-right: 32px;
}
.service-row .service-column:last-child {
  padding-left: 32px;
  padding-right: 0;
}
.service-icon {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1;
  opacity: 1;
}
.service-heading {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.3;
}
.service-text {
  color: #e6f1ff;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 500;
  max-width: 48ch;
}
.service-text em {
  color: #ffffff;
  font-style: italic;
  font-weight: 600;
}

/* ===========================
   SKILLS
=========================== */
.skills-flex-wrapper {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 40px 50px;
  align-items: start;
}
.skills-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.skills-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.skills-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lightest-slate);
  font-size: 18px;
  margin-bottom: 20px;
}
.skills-heading .sprite {
  color: var(--green);
}
/* Development circles - like Brittany's 3x3 */
.dev-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 320px;
}
.dev-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(204, 214, 246, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--light-slate);
  background: transparent;
  transition: var(--transition);
  padding: 8px;
  line-height: 1.2;
}
.dev-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.dev-circle span {
  font-size: 11px;
}
.dev-circle:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
  background: rgba(100, 255, 218, 0.05);
}
.design-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.design-logos img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.design-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(100,255,218,0.3));
}
.design-logo-box {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.5px solid white;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.design-logo-box img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.design-logo-text {
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px solid white;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.list li {
  font-family: var(--font-mono);
  font-size: var(--font-normal);
  color: var(--slate);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check {
  color: var(--green);
  font-size: 12px;
}

/* ===========================
   EXPERIENCE
=========================== */
.experience-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--slate);
  font-size: var(--font-medium);
  line-height: 1.5;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  transform: translateX(-50%);
  z-index: 0;
}
.timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--green);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 60px;
}
.timeline-block:nth-child(odd) {
  /* handled by grid */
}
.timeline-block:nth-child(odd) .timeline-content {
  text-align: left;
}
.timeline-content {
  background: var(--light-navy);
  padding: 26px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
  position: relative;
}
.timeline-block:nth-child(odd) .timeline-content {
  grid-column: 1;
}
.timeline-block:nth-child(even) .timeline-content {
  grid-column: 3;
}
.timeline-content::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.timeline-block:nth-child(odd) .timeline-content::after {
  right: -8px;
  border-left: 8px solid var(--light-navy);
}
.timeline-block:nth-child(even) .timeline-content::after {
  left: -8px;
  border-right: 8px solid var(--light-navy);
}
.timeline-content .position {
  color: var(--lightest-slate);
  font-size: 18px;
  margin: 0 0 5px;
}
.timeline-content .company {
  font-size: var(--font-normal);
  font-family: var(--font-mono);
  margin: 0 0 10px;
}
.timeline-content .company a,
.timeline-content .company span {
  color: var(--green);
}
.timeline-content .job-desc {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.5;
}
.timeline-img {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #020c1b;
  border: 2px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--navy);
}
.date {
  position: absolute;
  top: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lightest-slate);
  white-space: nowrap;
}
.timeline-block:nth-child(odd) .date {
  left: calc(50% + 38px);
}
.timeline-block:nth-child(even) .date {
  right: calc(50% + 38px);
  text-align: right;
}
.resume-wrap {
  text-align: center;
}

/* ===========================
   WORK
=========================== */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.portfolio-row {
  display: grid;
  grid-template-columns: 1.40fr 1fr;
  gap: 36px;
  align-items: center;
}
.portfolio-row.reverse {
  grid-template-columns: 1fr 1.40fr;
}
.portfolio-row.reverse .portfolio-image {
  order: 2;
}
.portfolio-row.reverse .portfolio-content {
  order: 1;
  text-align: left;
}
.portfolio-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
}
.portfolio-image picture {
  display: block;
  width: 100%;
}
.portfolio-image img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  padding: 8px;
}
.img-placeholder {
  height: 280px;
  background: var(--light-navy);
  display: grid;
  place-items: center;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1px solid var(--lightest-navy);
}
.portfolio-overline {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--font-small);
  margin: 0 0 10px;
}
.portfolio-title {
  color: var(--lightest-slate);
  font-size: 24px;
  margin: 0 0 20px;
}
.portfolio-desc {
  background: var(--light-navy);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
  color: var(--light-slate);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
}
.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 15px;
}
.portfolio-links {
  display: flex;
  gap: 15px;
}
.portfolio-links a {
  color: var(--light-slate);
}
.portfolio-links a:hover {
  color: var(--green);
}
.more-projects {
  text-align: center;
  margin-top: 60px;
}

/* ===========================
   CONTACT - v2 normal background
=========================== */
#contact {
  text-align: center;
}
.contact-desc {
  max-width: 500px;
  margin: 0 auto 40px;
  color: var(--slate);
  font-size: var(--font-normal);
  line-height: 1.5;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.input-label {
  font-family: var(--font-mono);
  font-size: var(--font-small);
  color: var(--light-slate);
}
.contact-input {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: var(--border-radius);
  padding: 12px 14px;
  color: var(--lightest-slate);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.contact-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-tint);
}
.contact-input::placeholder {
  color: var(--slate);
}
textarea.contact-input {
  resize: vertical;
  min-height: 120px;
}
.contact-btn {
  display: block;
  margin: 30px auto 0;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  cursor: pointer;
  transition: var(--transition);
}
.contact-btn:hover {
  background: var(--green-tint);
  box-shadow: 3px 3px 0 0 var(--green);
  transform: translate(-3px, -3px);
}

/* ===========================
   FOOTER
=========================== */
#footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--lightest-navy);
  margin-top: 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}
.footer-sub {
  margin-top: 8px;
  font-size: 11px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1080px) {
  main {
    padding: 0 50px;
  }
  #hero,
  #about {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 50px;
  }
  .side,
  #dot-nav {
    display: none;
  }
  .nav-links-wrap {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  #navbar {
    padding: 0 20px;
    height: 70px;
  }
  .nav-inner {
    height: 100%;
  }
}
@media (max-width: 768px) {
  main {
    padding: 0 25px;
  }
  #hero,
  #about {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 25px;
  }
  section {
    padding: 60px 0;
  }
  .numbered-heading::after {
    width: 100%;
  }
  #what-i-do {
    padding: 60px 25px;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-row:first-child {
    border-bottom: none;
  }
  .service-row .service-column:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(204, 214, 246, 0.14);
    padding-right: 0;
  }
  .service-row .service-column:last-child {
    border-bottom: 1px solid rgba(204, 214, 246, 0.14);
    padding-left: 0;
  }
  .service-row:last-child .service-column:last-child {
    border-bottom: none;
  }
  .service-column {
    padding: 32px 0 !important;
  }
  .skills-flex-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-block,
  .timeline-block:nth-child(odd),
  .timeline-block:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: 60px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-block:nth-child(odd) .timeline-content,
  .timeline-block:nth-child(even) .timeline-content {
    grid-column: auto;
    width: 100%;
    text-align: left;
  }
  .timeline-block .timeline-content::after {
    display: none;
  }
  .timeline-img {
    position: absolute;
    left: 0;
    top: 24px;
    transform: none;
    margin: 0;
    width: 40px;
    height: 40px;
  }
  .date {
    position: static;
    transform: none;
    margin: 10px 0 0;
    text-align: left;
  }
  .portfolio-row,
  .portfolio-row.reverse {
    grid-template-columns: 1fr;
  }
  .portfolio-row.reverse .portfolio-image,
  .portfolio-row.reverse .portfolio-content {
    order: initial;
  }
  .hero-desc {
    font-size: var(--font-medium);
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .portfolio-image img {
    height: 220px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 0 20px;
  }
  #hero,
  #about {
    padding: 0 20px;
  }
  .hero-inner {
    padding-top: 100px;
  }
  .hero-name,
  .hero-tagline {
    font-size: clamp(26px, 9vw, 36px);
  }
  .hero-desc {
    font-size: 15px;
  }
  section {
    padding: 50px 0;
  }
  .numbered-heading {
    font-size: 22px;
  }
  .portfolio-title {
    font-size: 22px;
  }
  .contact-btn {
    width: 100%;
  }
}
