:root {
  --bg-base: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2128;
  --border: #21262d;
  --border-light: #30363d;
  --blue: #1a73e8;
  --blue-dim: rgba(26, 115, 232, 0.12);
  --blue-glow: rgba(26, 115, 232, 0.35);
  --orange: #ff6d00;
  --orange-dim: rgba(255, 109, 0, 0.12);
  --orange-glow: rgba(255, 109, 0, 0.35);
  --green: #3fb950;
  --text-primary: #f8fcff;
  --text-muted: #8b949e;
  --text-dim: #484f58;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --sidebar-w: 280px;
  --radius: 10px;
  --transition: 0.25s ease;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--orange);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
}
.cursor.hover {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1.5px solid var(--orange);
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 40px 0 30px;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* Avatar block */
.sidebar-avatar {
  text-align: center;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.avatar-wrap img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  filter: grayscale(30%);
}
.avatar-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  background: var(--green);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(63, 185, 80, 0);
  }
}
.sidebar-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0 12px;
}
.nav-item {
  margin-bottom: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.nav-link i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: var(--text-dim);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-left-color: var(--blue);
}
.nav-link:hover i,
.nav-link.active i {
  color: var(--blue);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
}
.social-links {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.social-links a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-dim);
}
.sidebar-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Mobile toggle */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 200;
}
.mobile-bar-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99;
}
.sidebar-overlay.show {
  display: block;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ── SECTION BASE ── */
section {
  padding: 100px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
section:last-child {
  border-bottom: none;
}

/* Section header */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 109, 0, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.section-tag i {
  font-size: 11px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 3px;
  margin: 18px 0 48px;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px;
  background:
    radial-gradient(
      ellipse 60% 60% at 80% 50%,
      rgba(26, 115, 232, 0.08) 0%,
      transparent 70%
    ),
    var(--bg-base);
  overflow: hidden;
  position: relative;
}
/* subtle grid texture */
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-contact-bar {
  position: absolute;
  top: 0;
  right: 80px;
  display: flex;
  gap: 28px;
}
.hero-contact-bar a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.hero-contact-bar a:hover {
  color: var(--blue);
}
.hero-contact-bar i {
  color: var(--orange);
  font-size: 12px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--orange);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-headline span {
  color: var(--blue);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--bg-surface);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--blue);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover {
  background: transparent;
  color: var(--blue);
}
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-custom:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Hero photo */
.hero-photo {
  position: relative;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(80%) contrast(1.1);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
  border: 1px solid var(--border-light);
}
.hero-photo-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--blue);
  opacity: 0.4;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
}
.hero-photo-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.hero-badge-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.hero-badge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── ABOUT ── */
#about {
  background: var(--bg-base);
}
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  filter: grayscale(70%) contrast(1.05);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-avail {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.about-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
.about-avail-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.about-bio {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.about-info-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about-info-item:nth-last-child(-n + 2) {
  border-bottom: none;
}
.about-info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-info-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── COMPÉTENCES ── */
#skills {
  background: var(--bg-surface);
}
.skills-tracks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-track {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
  border-left: 3px solid var(--border);
}
.skill-track:hover {
  border-color: var(--track-color, var(--blue));
  background: var(--bg-elevated);
}
.skill-track:nth-child(1) {
  --track-color: #1a73e8;
}
.skill-track:nth-child(2) {
  --track-color: #ff6d00;
}
.skill-track:nth-child(3) {
  --track-color: #3fb950;
}
.skill-track:nth-child(4) {
  --track-color: #a371f7;
}
.skill-track:nth-child(5) {
  --track-color: #f0883e;
}
.skill-track-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--track-color, var(--blue));
  min-width: 170px;
  white-space: nowrap;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--bg-surface);
  transition: var(--transition);
}
.skill-pill:hover {
  color: var(--track-color, var(--blue));
  border-color: var(--track-color, var(--blue));
  background: var(--bg-elevated);
}

/* ── SERVICES ── */
#services {
  background: var(--bg-base);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: var(--transition);
  box-shadow: inset 0 0 0 1.5px var(--card-color, var(--blue));
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px;
  background: var(--icon-bg, var(--blue-dim));
  color: var(--card-color, var(--blue));
}
.service-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── EXPÉRIENCE ── */
#experience {
  background: var(--bg-surface);
}
.exp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}
.exp-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}
.exp-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 0;
  width: 1.5px;
  background: var(--border-light);
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--blue);
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 8px;
}
.tl-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tl-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tl-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.exp-tab-content {
  display: none;
}
.exp-tab-content.active {
  display: block;
}

/* ── PORTFOLIO ── */
#portfolio {
  background: var(--bg-base);
}
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--blue-glow);
  box-shadow: 0 0 0 1px var(--blue-glow);
}
.project-thumb {
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.85);
  transition: var(--transition);
}
.project-card:hover .project-thumb img {
  filter: grayscale(0%) brightness(1);
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-surface) 100%);
}
.project-info {
  padding: 36px 36px 36px 40px;
}
.project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}
.project-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  transition: var(--transition);
}
.project-link:hover {
  gap: 10px;
  color: var(--orange);
}

.portfolio-more {
  text-align: center;
  margin-top: 36px;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-dim) 0%, transparent 70%);
  pointer-events: none;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contact-headline span {
  color: var(--blue);
}
.contact-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 56px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.contact-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--blue);
  background: var(--bg-elevated);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-card-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}

/* ── FADE-IN ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  section {
    padding: 80px 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding-top: 58px;
  }
  .mobile-bar {
    display: flex;
  }
  section {
    padding: 60px 24px;
  }

  #home {
    padding: 80px 24px 60px 24px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(28px, 9vw, 48px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    display: none;
  }
  .hero-contact-bar {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-wrap {
    max-width: 280px;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }

  /*skill responsive*/
  .skill-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .skill-track-label {
    min-width: unset;
    margin-bottom: 4px;
  }

  .skill-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .skill-pill {
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-thumb {
    height: 220px;
  }
  .project-thumb::after {
    display: none;
  }
}
