/* ========================================
   Аслан Кайтмазов — Portfolio Styles
   Accent: #007acc | Secondary: #41b883
   ======================================== */

:root {
  --color-accent: #007acc;
  --color-accent-dark: #005fa3;
  --color-secondary: #41b883;
  --color-secondary-dark: #369870;
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a72;
  --color-border: #e8e8f0;
  --color-surface: #f7f8fc;
  --sidebar-width: 260px;
  --transition: 0.25s ease;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --gradient-brand: linear-gradient(135deg, #007acc 0%, #0098e6 45%, #41b883 100%);
  --gradient-brand-hover: linear-gradient(135deg, #005fa3 0%, #007acc 50%, #369870 100%);
  --gradient-soft-blue: linear-gradient(160deg, #ffffff 0%, #e8f4ff 55%, #f0faff 100%);
  --gradient-soft-green: linear-gradient(160deg, #ffffff 0%, #e8faf2 55%, #f0fdf8 100%);
  --gradient-hero: linear-gradient(135deg, #fafbff 0%, #eef6ff 35%, #ffffff 60%, #eefbf4 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 122, 204, 0.07) 0%, transparent 50%),
                   radial-gradient(ellipse 60% 50% at 85% 80%, rgba(65, 184, 131, 0.06) 0%, transparent 50%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #ffffff;
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  display: flex;
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 60%, #f5faf8 100%);
  border-right: 1px solid transparent;
  border-image: linear-gradient(180deg, rgba(0, 122, 204, 0.15), rgba(65, 184, 131, 0.15)) 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 100;
  overflow-y: auto;
}

.sidebar__header {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar__avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  background: var(--color-surface);
}

.sidebar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, var(--color-surface), #eef0f8);
}

.sidebar__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.sidebar__title {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.sidebar__nav ul {
  list-style: none;
}

.sidebar__nav .nav-link {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.sidebar__nav .nav-link:hover {
  color: var(--color-accent);
  background: rgba(0, 122, 204, 0.06);
}

.sidebar__nav .nav-link.active {
  color: var(--color-accent);
  background: linear-gradient(90deg, rgba(0, 122, 204, 0.1) 0%, rgba(65, 184, 131, 0.06) 100%);
  font-weight: 600;
}

.sidebar__nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-brand);
  border-radius: 0 3px 3px 0;
}

.sidebar__social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 1.5rem;
}

.sidebar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all var(--transition);
}

.sidebar__social a:hover {
  color: #fff;
  background: var(--color-accent);
}

.sidebar__dev-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.625rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--color-text-muted);
  overflow: hidden;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.lang-switch--mobile {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  margin-top: 0;
  box-shadow: var(--shadow);
}

.lang-switch__btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch__btn:hover {
  color: var(--color-accent);
}

.lang-switch__btn.active {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.25);
}

.sidebar__dev-tag code {
  font-family: inherit;
  white-space: nowrap;
}

.sidebar__dev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
  animation: devPulse 2s ease-in-out infinite;
}

@keyframes devPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(65, 184, 131, 0.4); }
  50% { opacity: 0.85; box-shadow: 0 0 0 4px rgba(65, 184, 131, 0); }
}

/* ========================================
   Dev decor
   ======================================== */

.dev-decor {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dev-decor__glyph {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.07;
  user-select: none;
  animation: floatSlow 24s ease-in-out infinite;
}

.dev-decor__glyph--1 {
  top: 18%;
  right: 8%;
  font-size: 2.5rem;
  opacity: 0.05;
}

.dev-decor__glyph--2 {
  top: 42%;
  right: 22%;
  font-size: 1.75rem;
  color: var(--color-secondary);
  animation-delay: 3s;
}

.dev-decor__glyph--3 {
  bottom: 28%;
  left: 12%;
  letter-spacing: 0.15em;
  animation-delay: 1s;
}

.dev-decor__glyph--4 {
  top: 72%;
  right: 18%;
  animation-delay: 5s;
}

.dev-decor__glyph--5 {
  top: 55%;
  left: 8%;
  color: var(--color-secondary);
  animation-delay: 2s;
}

.dev-decor__glyph--6 {
  bottom: 12%;
  right: 35%;
  font-size: 1.25rem;
  animation-delay: 4s;
}

.dev-bracket {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.08;
  line-height: 1;
  user-select: none;
}

.dev-bracket--tl {
  top: 12%;
  left: 4%;
}

.dev-bracket--br {
  bottom: 18%;
  right: 6%;
  color: var(--color-secondary);
}

.dev-terminal {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: min(280px, 32vw);
  background: #1e1e2e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
  opacity: 0.92;
  transform: rotate(2deg);
  animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-6px); }
}

.dev-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  background: #2d2d3f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-terminal__bar span:nth-child(1) { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dev-terminal__bar span:nth-child(2) { width: 10px; height: 10px; border-radius: 50%; background: #febc2e; }
.dev-terminal__bar span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: #28c840; }

.dev-terminal__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.35);
}

.dev-terminal__code {
  margin: 0;
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #cdd6f4;
  overflow-x: auto;
}

.dev-terminal__code code {
  font-family: inherit;
}

.tok-keyword { color: #cba6f7; }
.tok-prop { color: #89b4fa; }
.tok-string { color: #a6e3a1; }

.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.footer__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.footer__code code {
  font-family: inherit;
}

.footer__code span {
  color: var(--color-secondary-dark);
}

.timeline__content::after {
  content: '</>';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-accent);
  opacity: 0.12;
  pointer-events: none;
}

.timeline__content {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0, 122, 204, 0.1);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.timeline--stack .timeline__content {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline--stack .timeline__item.is-active .timeline__content {
  box-shadow: 0 12px 40px rgba(0, 122, 204, 0.15);
  border-color: rgba(0, 122, 204, 0.2);
}

.skill-card::before {
  content: attr(data-skill);
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
  text-transform: lowercase;
}

.skill-card:hover::before {
  opacity: 0.35;
}

.project-card__body::before {
  content: 'git clone';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--color-secondary);
  opacity: 0.5;
  margin-bottom: 0.375rem;
}

.project-card--closed .project-card__body::before {
  content: 'private repo';
  color: var(--color-text-muted);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--color-accent);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Main Content
   ======================================== */

.main {
  position: relative;
  margin-left: var(--sidebar-width);
  flex: 1;
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  padding: 0;
  overflow-x: hidden;
}

.section {
  margin-bottom: 0;
  scroll-margin-top: 2rem;
  padding: 3.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.section--decor > *:not(.section-bg) {
  position: relative;
  z-index: 1;
}

.section--grad-blue {
  background: var(--gradient-soft-blue);
}

.section--grad-green {
  background: var(--gradient-soft-green);
}

.section:last-of-type {
  border-bottom: none;
}

.section--hero {
  padding: 0;
  border-bottom: none;
}

/* ========================================
   Background Shapes (global)
   ======================================== */

.bg-shapes {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.bg-shape--1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 122, 204, 0.06) 0%, transparent 70%);
  animation: floatSlow 20s ease-in-out infinite;
}

.bg-shape--2 {
  width: 300px;
  height: 300px;
  top: 60%;
  right: 15%;
  background: radial-gradient(circle, rgba(65, 184, 131, 0.05) 0%, transparent 70%);
  animation: floatSlow 25s ease-in-out infinite reverse;
}

.bg-shape--3 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 10%;
  border: 2px solid rgba(0, 122, 204, 0.06);
  background: transparent;
  animation: floatSlow 18s ease-in-out infinite;
}

.bg-shape--4 {
  width: 120px;
  height: 120px;
  top: 35%;
  left: 25%;
  border: 2px solid rgba(65, 184, 131, 0.08);
  background: transparent;
  transform: rotate(45deg);
  border-radius: 20%;
  animation: floatSlow 22s ease-in-out infinite reverse;
}

.bg-shape--5 {
  width: 80px;
  height: 80px;
  top: 80%;
  right: 30%;
  background: rgba(0, 122, 204, 0.04);
  animation: floatSlow 15s ease-in-out infinite;
}

.bg-shape--6 {
  width: 250px;
  height: 250px;
  top: 45%;
  left: 5%;
  background: radial-gradient(circle, rgba(65, 184, 131, 0.04) 0%, transparent 70%);
  animation: floatSlow 28s ease-in-out infinite;
}

.bg-shape--7 {
  width: 60px;
  height: 60px;
  top: 25%;
  right: 40%;
  border: 2px solid rgba(0, 122, 204, 0.05);
  background: transparent;
  border-radius: 30%;
  animation: floatSlow 19s ease-in-out infinite reverse;
}

/* ========================================
   Section Background Decor
   ======================================== */

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.section-bg span {
  position: absolute;
  display: block;
}

.section-bg__circle {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 204, 0.07) 0%, transparent 70%);
  animation: floatSlow 22s ease-in-out infinite;
}

.section-bg__circle--lg {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
}

.section-bg__circle--md {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
}

.section-bg__circle--sm {
  width: 180px;
  height: 180px;
  top: -40px;
  right: 10%;
}

.section-bg__circle--left {
  right: auto;
  left: -100px;
}

.section-bg__ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(0, 122, 204, 0.1);
  background: transparent;
  bottom: 10%;
  right: 8%;
  animation: floatSlow 18s ease-in-out infinite reverse;
}

.section-bg__ring--alt {
  width: 140px;
  height: 140px;
  top: 15%;
  left: 5%;
  border-color: rgba(65, 184, 131, 0.12);
  bottom: auto;
  right: auto;
}

.section-bg__ring--contact {
  width: 220px;
  height: 220px;
  top: -60px;
  left: 15%;
  border-color: rgba(0, 122, 204, 0.08);
}

.section-bg__blob {
  width: 220px;
  height: 220px;
  top: 20%;
  right: -40px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(65, 184, 131, 0.06);
  animation: blobMorph 14s ease-in-out infinite;
}

.section-bg__blob--alt {
  width: 160px;
  height: 160px;
  bottom: 5%;
  right: 20%;
  top: auto;
  background: rgba(0, 122, 204, 0.05);
  animation-delay: 2s;
}

.section-bg__blob--contact {
  width: 280px;
  height: 280px;
  bottom: -80px;
  right: -60px;
  top: auto;
  background: rgba(65, 184, 131, 0.05);
}

.section-bg__square {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 8%;
  border: 2px solid rgba(65, 184, 131, 0.1);
  border-radius: 20%;
  transform: rotate(35deg);
  background: transparent;
  animation: floatSlow 20s ease-in-out infinite;
}

.section-bg__square--contact {
  width: 70px;
  height: 70px;
  top: 30%;
  right: 12%;
  bottom: auto;
  left: auto;
  border-color: rgba(0, 122, 204, 0.08);
  transform: rotate(20deg);
}

.section-bg__dots {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 12%;
  background-image: radial-gradient(rgba(0, 122, 204, 0.12) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.6;
}

.section-bg__dots--right {
  left: auto;
  right: 10%;
  top: 60%;
  background-image: radial-gradient(rgba(65, 184, 131, 0.15) 2px, transparent 2px);
}

.section-bg__line {
  width: 180px;
  height: 3px;
  top: 40%;
  left: 20%;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.2), transparent);
  transform: rotate(-20deg);
}

.section-bg__line--alt {
  width: 220px;
  top: auto;
  bottom: 25%;
  right: 15%;
  left: auto;
  background: linear-gradient(90deg, transparent, rgba(65, 184, 131, 0.25), transparent);
  transform: rotate(15deg);
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15px, -20px) rotate(5deg); }
  66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

.main > .section,
.main > .footer {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--color-accent), var(--color-secondary), transparent) 1;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.section-title::before {
  content: '// ';
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-secondary);
  opacity: 0.85;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-secondary);
}

/* ========================================
   Hero
   ======================================== */

.hero-wrapper {
  position: relative;
  padding: 4rem 4rem 3rem;
  overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
}

.hero-shape--circle {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.08), rgba(65, 184, 131, 0.06));
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-shape--ring {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: 5%;
  border-radius: 50%;
  border: 3px solid rgba(0, 122, 204, 0.1);
  background: transparent;
  animation: floatSlow 16s ease-in-out infinite;
}

.hero-shape--blob {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 45%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(65, 184, 131, 0.06);
  animation: blobMorph 12s ease-in-out infinite;
}

.hero-shape--dots {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 30%;
  background-image: radial-gradient(rgba(0, 122, 204, 0.15) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.hero-shape--line {
  width: 200px;
  height: 3px;
  bottom: 30%;
  right: 20%;
  background: linear-gradient(90deg, transparent, rgba(65, 184, 131, 0.3), transparent);
  transform: rotate(-25deg);
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  max-width: 100%;
}

.hero__greeting {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero__greeting span {
  color: var(--color-accent);
  font-weight: 600;
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__heading-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stack {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero__stack-item {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 8px;
}

.hero__stack-item--laravel {
  color: #ff2d20;
  background: rgba(255, 45, 32, 0.08);
}

.hero__stack-item--vue {
  color: var(--color-secondary-dark);
  background: rgba(65, 184, 131, 0.12);
}

.hero__stack-dot {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.9) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 204, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 110px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 122, 204, 0.12), inset 0 0 0 1px rgba(0, 122, 204, 0.2);
}

.stat-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__tech-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hero__tech-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: all var(--transition);
  filter: grayscale(30%);
}

.hero__tech-icons img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

/* Hero visual / photo */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-frame {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-accent), var(--color-secondary), var(--color-accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spinSlow 30s linear infinite;
  opacity: 0.5;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.hero__photo-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 122, 204, 0.15), 0 0 0 6px rgba(255,255,255,0.9);
  background: linear-gradient(135deg, var(--color-surface), #eef0f8);
  position: relative;
  z-index: 1;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, rgba(0,122,204,0.05), rgba(65,184,131,0.05));
  font-size: 0.875rem;
}

.hero__float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: floatBadge 4s ease-in-out infinite;
}

.hero__float--1 {
  width: 52px;
  height: 52px;
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.hero__float--2 {
  width: 52px;
  height: 52px;
  bottom: 20%;
  left: -20px;
  animation-delay: 1s;
}

.hero__float--3 {
  padding: 0.5rem 1rem;
  bottom: 5%;
  right: -10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-text {
  position: relative;
  padding: 3.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 50%, #f5fbf8 100%);
  overflow: hidden;
}

.about-text--decor > *:not(.section-bg) {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 122, 204, 0.25);
}

.btn--primary:hover {
  background: var(--gradient-brand-hover);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  position: relative;
}

.btn--outline:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 204, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--color-accent);
  background: rgba(0, 122, 204, 0.06);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.info-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ========================================
   Timeline
   ======================================== */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  opacity: 0.35;
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.25);
  z-index: 1;
}

.timeline__content:hover {
  box-shadow: var(--shadow);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.timeline__company {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

.timeline__role {
  font-size: 0.875rem;
  color: var(--color-secondary-dark);
  font-weight: 500;
}

.timeline__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline__project {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.timeline__list {
  list-style: none;
  padding: 0;
}

.timeline__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* Stacking sticky timeline (desktop) */
.timeline--stack {
  --timeline-stick-top: 5.5rem;
  --timeline-stack-step: 0.85rem;
  padding-left: 0;
}

.timeline--stack::before,
.timeline--stack .timeline__marker {
  display: none;
}

.timeline--stack .timeline__item {
  position: sticky;
  margin-bottom: 0;
  padding-bottom: clamp(3.5rem, 16vh, 9rem);
}

.timeline--stack .timeline__item:last-child {
  padding-bottom: 1rem;
}

.timeline--stack .timeline__item:nth-child(1) { top: var(--timeline-stick-top); z-index: 1; }
.timeline--stack .timeline__item:nth-child(2) { top: calc(var(--timeline-stick-top) + var(--timeline-stack-step) * 1); z-index: 2; }
.timeline--stack .timeline__item:nth-child(3) { top: calc(var(--timeline-stick-top) + var(--timeline-stack-step) * 2); z-index: 3; }
.timeline--stack .timeline__item:nth-child(4) { top: calc(var(--timeline-stick-top) + var(--timeline-stack-step) * 3); z-index: 4; }
.timeline--stack .timeline__item:nth-child(5) { top: calc(var(--timeline-stick-top) + var(--timeline-stack-step) * 4); z-index: 5; }

.timeline--stack .timeline__item.is-covered .timeline__content {
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Skills
   ======================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 122, 204, 0.1);
  border-color: transparent;
  background: linear-gradient(160deg, #ffffff 0%, #eef6ff 50%, #eefbf4 100%);
}

.skill-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-category {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.6) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 122, 204, 0.08);
}

.skill-category h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.skill-category p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========================================
   Projects
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  box-shadow: 0 12px 40px rgba(0, 122, 204, 0.12);
  transform: translateY(-4px);
  border-color: rgba(0, 122, 204, 0.15);
}

.project-card__image {
  height: 160px;
  background: var(--color-surface);
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,122,204,0.08), rgba(65,184,131,0.08));
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.project-card__tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.1) 0%, rgba(65, 184, 131, 0.08) 100%);
  color: var(--color-accent);
  border-radius: 4px;
}

.project-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Closed / private project — overlay only on image area */
.project-card--closed .project-card__image {
  position: relative;
}

.project-card--closed .project-card__placeholder {
  filter: grayscale(60%);
  opacity: 0.6;
}

.project-card--closed .project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
}

.project-card--closed .project-card__ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  transform: translate(-50%, -50%) rotate(-28deg);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #1a1a2e,
    #1a1a2e 8px,
    #2d2d44 8px,
    #2d2d44 16px
  );
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

/* ========================================
   Reviews Slider
   ======================================== */

.reviews-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.reviews-slider__track {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.reviews-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.reviews-slider__slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.review {
  background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 60%, #f8fdfb 100%);
  border: 1px solid rgba(0, 122, 204, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.review::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
}

.review p {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review footer {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.review cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-secondary-dark);
}

.reviews-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.reviews-slider__btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.reviews-slider__btn--prev {
  left: -56px;
}

.reviews-slider__btn--next {
  right: -56px;
}

.reviews-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.reviews-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.reviews-slider__dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/* ========================================
   Contact
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(0, 122, 204, 0.1);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
  color: inherit;
}

.contact-item:hover {
  border-color: rgba(0, 122, 204, 0.25);
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  color: inherit;
}

.contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.contact-item__value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.education-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.education-block h4 {
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.education-block p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-form {
  background: linear-gradient(160deg, #ffffff 0%, #f0f7ff 50%, #f5fbf8 100%);
  border: 1px solid rgba(0, 122, 204, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 122, 204, 0.06);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

.form-status.success {
  color: var(--color-secondary-dark);
}

.form-status.error {
  color: #e74c3c;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  position: relative;
  text-align: center;
  padding: 2rem 4rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.2), rgba(65, 184, 131, 0.2), transparent) 1;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 40%, #f5fbf8 100%);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 204, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stack {
    justify-content: center;
  }

  .hero__tech-icons {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__photo-frame {
    width: 260px;
    height: 260px;
  }

  .dev-terminal {
    display: none;
  }

  .section {
    padding: 2.5rem 2rem;
  }

  .hero-wrapper {
    padding: 3rem 2rem 2rem;
  }

  .about-text {
    padding: 2.5rem 2rem;
  }

  .reviews-slider__btn--prev {
    left: -12px;
  }

  .reviews-slider__btn--next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .lang-switch--mobile {
    display: flex;
  }

  .lang-switch--sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .bg-shapes {
    left: 0;
  }

  .dev-decor {
    left: 0;
  }

  .dev-decor__glyph {
    display: none;
  }

  .dev-bracket {
    display: none;
  }

  .section:not(.section--hero) {
    padding: 2.5rem 2.5rem;
  }

  .section--hero {
    padding: 0;
  }

  .hero-wrapper {
    padding: 5rem 1.25rem 2rem;
  }

  .about-text {
    padding: 2.5rem 1.25rem;
  }

  .hero__heading {
    font-size: 2.25rem;
  }

  .hero__photo-frame {
    width: 220px;
    height: 220px;
  }

  .hero__float--3 {
    right: 0;
  }

  .timeline__header {
    flex-direction: column;
  }

  .timeline--stack {
    padding-left: 2rem;
  }

  .timeline--stack::before {
    display: block;
  }

  .timeline--stack .timeline__marker {
    display: block;
  }

  .timeline--stack .timeline__item {
    position: relative;
    top: auto !important;
    z-index: auto !important;
    padding-bottom: 0;
    margin-bottom: 2rem;
  }

  .timeline--stack .timeline__item:last-child {
    margin-bottom: 0;
  }

  .timeline--stack .timeline__content {
    transform: none !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-slider__btn--prev {
    left: 0;
  }

  .reviews-slider__btn--next {
    right: 0;
  }

  .about-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card {
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
