/* theme: gold-green v20260824 — Hostinger cache-bust */
/* ===== CSS Variables ===== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #10140f;
  --color-surface: #161b16;
  --color-surface-hover: #1d241c;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #ffffff;
  --color-text-muted: #d8d4c8;
  --color-accent: #c9a227;
  --color-accent-light: #e4c35a;
  --color-accent-glow: rgba(201, 162, 39, 0.35);
  --color-green: #2f9e6b;
  --color-green-light: #5ecf94;
  --color-success: #2f9e6b;
  --color-error: #ef4444;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --header-height: 72px;
  --container-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--container-width), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--color-text-muted);
  max-width: 540px;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__header .section__desc {
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1608;
}

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

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

.btn__loader {
  display: none;
  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;
}

.btn.loading .btn__text {
  opacity: 0;
}

.btn.loading .btn__loader {
  display: block;
  position: absolute;
}

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

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 3;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  order: 2;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  order: 1;
  max-width: min(52vw, 22rem);
  line-height: 1.25;
}

.nav__logo-heart {
  color: var(--color-accent);
  font-size: 1.15em;
  flex-shrink: 0;
}

/* ===== Language Switch ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch__btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: var(--transition);
}

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

.lang-switch__btn.active {
  color: var(--color-accent-light);
  background: rgba(201, 162, 39, 0.15);
}

.lang-switch__sep {
  font-size: 0.75rem;
  color: var(--color-border);
  user-select: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link.active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: #1a1608 !important;
  border-radius: var(--radius-sm);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-accent-light);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--color-accent-glow), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(47, 158, 107, 0.14), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-accent-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5rem;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

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

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: var(--transition);
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.hero__scroll:hover {
  border-color: var(--color-accent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== About ===== */
.about {
  background: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/6;
  border: 1px solid var(--color-border);
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.about__image-frame:hover img {
  transform: scale(1.05);
}

.about__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--color-green);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 12px 32px rgba(47, 158, 107, 0.4);
}

.about__badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about__badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

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

.about__highlights {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about__highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.about__highlights svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.about__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn--download {
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.btn--download svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Experience & Timeline ===== */
.experience {
  background: var(--color-bg);
}

.cv-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin: 0 auto 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 720px;
}

.cv-panel__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cv-panel__text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.cv-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-panel__preview {
  display: none;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.timeline__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline__content:hover {
  border-color: rgba(47, 158, 107, 0.3);
}

.timeline__period {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline__bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

.education-block {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.education-block__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.education-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.education-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.education-item__degree {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-item__school {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.education-item__period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent-light);
}

.skills__languages {
  text-align: center;
  margin: 2rem 0;
}

.skills__languages-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills__languages-list {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== Projects ===== */
.projects {
  background: var(--color-bg-alt);
}

.projects__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1a1608;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 158, 107, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.project-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.08);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

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

.project-card__link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.project-card__link:hover {
  background: var(--color-accent-light);
  transform: scale(1.1);
}

.project-card__link svg {
  width: 20px;
  height: 20px;
}

.project-card__body {
  padding: 1.5rem;
}

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

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background: rgba(47, 158, 107, 0.18);
  color: var(--color-green-light);
  border-radius: 999px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== Blog ===== */
.blog {
  background: var(--color-bg-alt);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card__excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.blog-card__link {
  color: var(--color-accent-light);
  font-weight: 600;
  font-size: 0.9375rem;
}

.blog-card__link:hover {
  text-decoration: underline;
}

/* ===== Skills (within Experience section) ===== */
.experience .skills__grid {
  margin-bottom: 1rem;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skills__category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.skills__category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.skills__category-title svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.skills__item {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  background: rgba(47, 158, 107, 0.08);
  border: 1px solid rgba(47, 158, 107, 0.18);
  border-radius: 999px;
  color: var(--color-text);
  line-height: 1.3;
  transition: var(--transition);
}

.skills__item:hover {
  border-color: var(--color-accent);
  background: rgba(47, 158, 107, 0.14);
}

.about__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.about__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: var(--transition);
  min-height: 44px;
}

.about__social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.about__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-1px);
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

/* ===== Contact ===== */
.contact {
  background: var(--color-bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.form-honeypot {
  display: none !important;
}

.contact__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: var(--transition);
  resize: vertical;
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.form-success {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-success);
  min-height: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px var(--color-accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-light);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal,
  html.js-ready .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image {
    max-width: 400px;
    margin-inline: auto;
  }

  .about__badge {
    right: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(var(--container-width), 100% - 1.5rem);
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .nav__logo {
    font-size: 0.92rem;
    max-width: 58vw;
  }

  .nav__menu {
    order: 4;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 100vw);
    height: 100dvh;
    background: var(--color-bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    font-size: 1rem;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .lang-switch__btn {
    min-width: 36px;
    min-height: 36px;
  }

  .nav__link--cta {
    margin-top: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 7.2vw, 2.25rem);
    white-space: normal;
    color: var(--color-accent-light);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    width: auto;
    flex: 1 1 auto;
    min-height: 44px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__stats {
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: space-between;
    width: 100%;
  }

  .stat {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .about__downloads {
    flex-direction: column;
  }

  .about__downloads .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .about__social {
    flex-direction: column;
  }

  .about__social-link {
    width: 100%;
    justify-content: center;
  }

  .about__content .btn--primary {
    width: 100%;
    min-height: 48px;
  }

  .timeline {
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .timeline__marker {
    left: -1.25rem;
  }

  .timeline__content {
    padding: 1.25rem;
  }

  .education-block {
    padding: 1.5rem;
  }

  .cv-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .skills__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills__category {
    padding: 1.25rem;
  }

  .projects__filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .projects__filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    min-height: 40px;
  }

  .projects__grid,
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 1.25rem;
  }

  .contact__form .btn {
    min-height: 48px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .section__title {
    font-size: 1.5rem;
  }
}
