:root {
  --color-bg: #0a0a0b;
  --color-bg-soft: #111113;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-hover: rgba(255, 255, 255, 0.1);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #f5f5f7;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-accent: #ffffff;
  --blur-glass: 20px;
  --blur-strong: 32px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.global-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.global-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  animation: starFall linear infinite;
  will-change: transform;
}

.global-star--s {
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.global-star--m {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.42);
}

.global-star--blink {
  animation: starFall linear infinite, starBlink 2.5s ease-in-out infinite;
}

@keyframes starFall {
  0% {
    transform: translateY(-10%) translateX(0);
    opacity: 0;
  }

  5% {
    opacity: 0.45;
  }

  95% {
    opacity: 0.45;
  }

  100% {
    transform: translateY(110vh) translateX(0);
    opacity: 0;
  }
}

@keyframes starBlink {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.15;
  }
}

.cursor-glow,
.cursor-trail {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.hero,
main,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.glass-card:hover {
  background: var(--color-surface-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-surface);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 4rem 0;
  position: relative;
  border-bottom: none;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  border-radius: 1px;
}

.section:last-of-type {
  border-bottom: none;
}

.section:last-of-type::after {
  display: none;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.section-title i {
  opacity: 0.85;
  font-size: 0.9em;
}

.section .container>.section-title,
.section .glass-card,
.section .skills-grid,
.section .projects-grid,
.section .timeline-branch,
.section .reviews-grid,
.footer .footer-inner,
.section-about .about-two-col,
.section-about .about-skills-carousel-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible .container>.section-title,
.section.visible .glass-card,
.section.visible .skills-grid,
.section.visible .projects-grid,
.section.visible .timeline-branch,
.section.visible .reviews-grid,
.footer.visible .footer-inner,
.section-about.visible .about-two-col,
.section-about.visible .about-skills-carousel-wrap {
  opacity: 1;
  transform: translateY(0);
}

.section.visible .skills-category {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

.section.visible .skills-category:nth-child(1) {
  animation-delay: 0.1s;
}

.section.visible .skills-category:nth-child(2) {
  animation-delay: 0.2s;
}

.section.visible .skills-category:nth-child(3) {
  animation-delay: 0.3s;
}

.section.visible .skills-category:nth-child(4) {
  animation-delay: 0.4s;
}

.section-skills.visible .skill-item {
  animation: skillItemIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-12px);
}

.section-skills.visible .skill-item:nth-child(1) {
  animation-delay: 0.15s;
}

.section-skills.visible .skill-item:nth-child(2) {
  animation-delay: 0.25s;
}

.section-skills.visible .skill-item:nth-child(3) {
  animation-delay: 0.35s;
}

.section-skills.visible .skill-item:nth-child(4) {
  animation-delay: 0.45s;
}

.section-skills.visible .skills-category:nth-child(2) .skill-item:nth-child(1) {
  animation-delay: 0.25s;
}

.section-skills.visible .skills-category:nth-child(2) .skill-item:nth-child(2) {
  animation-delay: 0.35s;
}

.section-skills.visible .skills-category:nth-child(2) .skill-item:nth-child(3) {
  animation-delay: 0.45s;
}

.section-skills.visible .skills-category:nth-child(2) .skill-item:nth-child(4) {
  animation-delay: 0.55s;
}

.section-skills.visible .skills-category:nth-child(3) .skill-item:nth-child(1) {
  animation-delay: 0.35s;
}

.section-skills.visible .skills-category:nth-child(3) .skill-item:nth-child(2) {
  animation-delay: 0.45s;
}

.section-skills.visible .skills-category:nth-child(3) .skill-item:nth-child(3) {
  animation-delay: 0.55s;
}

.section-skills.visible .skills-category:nth-child(3) .skill-item:nth-child(4) {
  animation-delay: 0.65s;
}

.section-skills.visible .skills-category:nth-child(4) .skill-item:nth-child(1) {
  animation-delay: 0.45s;
}

.section-skills.visible .skills-category:nth-child(4) .skill-item:nth-child(2) {
  animation-delay: 0.55s;
}

.section-skills.visible .skills-category:nth-child(4) .skill-item:nth-child(3) {
  animation-delay: 0.65s;
}

.section-skills.visible .skills-category:nth-child(4) .skill-item:nth-child(4) {
  animation-delay: 0.75s;
}

@keyframes skillItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section.visible .project-card {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

.section.visible .project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.section.visible .project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.section.visible .project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.section-experience.visible .timeline-item:nth-child(odd) {
  animation: timelineItemInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-experience.visible .timeline-item:nth-child(even) {
  animation: timelineItemIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-experience.visible .timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.section-experience.visible .timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.section-experience.visible .timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

.section-experience.visible .timeline-track {
  animation: timelineLineDraw 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.section.visible .review-card {
  animation: reviewReveal 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.section.visible .review-card:nth-child(1) {
  animation-delay: 0.1s;
}

.section.visible .review-card:nth-child(2) {
  animation-delay: 0.2s;
}

.section.visible .review-card:nth-child(3) {
  animation-delay: 0.3s;
}

.section.visible .review-card:nth-child(4) {
  animation-delay: 0.4s;
}

.skills-category,
.project-card {
  opacity: 0;
  transform: translateX(-24px);
}

.timeline-item {
  opacity: 0;
  transform: translateX(-24px);
}

.timeline-item:nth-child(odd) {
  transform: translateX(24px);
}

.review-card {
  opacity: 0;
  transform: translateY(24px);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: starFloat 20s ease-in-out infinite;
}

.hero-star--m {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  animation-duration: 25s;
}

.hero-star--s {
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  animation-duration: 18s;
}

@keyframes starFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  25% {
    transform: translate(10px, -15px) scale(1.2);
    opacity: 0.8;
  }

  50% {
    transform: translate(-5px, -25px) scale(0.9);
    opacity: 0.4;
  }

  75% {
    transform: translate(15px, -10px) scale(1.1);
    opacity: 0.7;
  }
}

.hero-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: gradientFloat 12s ease-in-out infinite;
}

.hero-gradient-1 {
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  top: -20%;
  left: -10%;
}

.hero-gradient-2 {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: -6s;
}

@keyframes gradientFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3%, 3%) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-avatar-wrapper {
  width: clamp(160px, 40vw, 280px);
  height: clamp(160px, 40vw, 280px);
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-glass);
  animation: heroAvatar 1s ease-out;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroAvatar {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.hero-title-typed {
  display: inline;
}

.hero-title-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: cursorBlink 0.9s step-end infinite;
  color: var(--color-accent);
}

@keyframes cursorBlink {

  0%,
  60% {
    opacity: 1;
  }

  61%,
  100% {
    opacity: 0;
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  animation: heroText 0.8s ease-out 0.28s both;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.hero-tag:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  animation: heroText 0.8s ease-out 0.35s both;
}

.hero-description {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  animation: heroText 0.8s ease-out 0.5s both;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: heroText 0.8s ease-out 0.65s both;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.35rem;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.hero-social-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes heroText {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (max-width: 767px) {
  .about-two-col {
    grid-template-columns: 1fr;
  }
}

.about-bio {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-bio-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-bio-heading i {
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-bio-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  flex: 1;
}

.about-education-evolution {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-evolution-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-evolution-title i {
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform 0.2s ease;
}

.about-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.about-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.about-step:hover .about-step-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.about-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.85;
  min-width: 2em;
}

.about-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.about-step-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.about-step-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
}

.about-skills-carousel-wrap {
  overflow: hidden;
  padding: 1.25rem 0;
}

.section-about .about-skills-carousel-wrap {
  transition-delay: 0.2s;
}

.about-skills-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.about-carousel-track--left {
  animation: aboutCarouselLeft 32s linear infinite;
}

.about-carousel-track--right {
  animation: aboutCarouselRight 38s linear infinite;
}

.about-carousel-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  transition: color var(--transition), background var(--transition);
}

.about-carousel-item .fa-js {
  color: #F7DF1E;
}

.about-carousel-item .fa-html5 {
  color: #E34F26;
}

.about-carousel-item .fa-css3-alt {
  color: #1572B6;
}

.about-carousel-item .fa-react {
  color: #61DAFB;
}

.about-carousel-item .fa-vuejs {
  color: #42b883;
}

.about-carousel-item .fa-git-alt {
  color: #f05032;
}

.about-carousel-item .fa-figma {
  color: #a259ff;
}

.about-carousel-item .fa-node-js {
  color: #339933;
}

.about-carousel-item .fa-sass {
  color: #CC6699;
}

.about-carousel-item .fa-npm {
  color: #CB3837;
}

.about-carousel-item .fa-php {
  color: #777BB4;
}

.about-carousel-item .fa-python {
  color: #3776AB;
}

.about-carousel-item .fa-desktop {
  color: var(--color-text-muted);
}

.about-carousel-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.about-carousel-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.about-carousel-item:hover .about-carousel-name {
  color: var(--color-text);
}

@keyframes aboutCarouselLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes aboutCarouselRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skills-category {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.skills-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.skills-category:hover::before {
  opacity: 1;
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  min-height: 48px;
}

.skills-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  animation: skillIconPulse 3s ease-in-out infinite;
}

.skills-category:nth-child(1) .skills-category-icon {
  animation-delay: 0s;
}

.skills-category:nth-child(2) .skills-category-icon {
  animation-delay: 0.2s;
}

.skills-category:nth-child(3) .skills-category-icon {
  animation-delay: 0.4s;
}

.skills-category:nth-child(4) .skills-category-icon {
  animation-delay: 0.6s;
}

@keyframes skillIconPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.skills-category-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.skill-item-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.skill-icon i {
  font-size: 1.25rem;
}

.skill-icon--js i {
  color: #F7DF1E;
}

.skill-icon--ts i {
  color: #3178C6;
}

.skill-icon--react i {
  color: #61DAFB;
}

.skill-icon--vue i {
  color: #42b883;
}

.skill-icon--git i {
  color: #f05032;
}

.skill-icon--figma i {
  color: #a259ff;
}

.skill-icon--double {
  display: flex;
  gap: 4px;
}

.skill-icon--double i {
  font-size: 1.1rem;
}

.skill-icon--double .fa-html5 {
  color: #E34F26;
}

.skill-icon--double .fa-css3-alt {
  color: #1572B6;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-percent {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 2.5em;
  text-align: center;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-item:hover .skill-percent {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.skill-bar {
  height: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.section-skills .skill-item {
  opacity: 0;
  transform: translateX(-12px);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.project-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-body .project-links {
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech li,
.project-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.project-tech-item i {
  font-size: 0.95em;
  opacity: 0.9;
}

.project-tech-item .fa-react {
  color: #61DAFB;
}

.project-tech-item .fa-vuejs {
  color: #42b883;
}

.project-tech-item .fa-js {
  color: #F7DF1E;
}

.project-tech-item .fa-html5 {
  color: #E34F26;
}

.project-tech-item .fa-code {
  color: #3178c6;
}

.project-tech-item .fa-chart-line,
.project-tech-item .fa-plug,
.project-tech-item .fa-puzzle-piece,
.project-tech-item .fa-bolt,
.project-tech-item .fa-cloud-arrow-up {
  color: var(--color-text-muted);
}

.project-tech-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.section-experience .container {
  max-width: 1520px;
}

.timeline-branch {
  position: relative;
  padding-left: 0;
}

.timeline-track {
  position: absolute;
  left: 50%;
  margin-left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(255, 255, 255, 0.15) 50%, var(--color-border) 100%);
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0.9;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-left: 0;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 1;
  order: -1;
}

.timeline-item:nth-child(odd):hover .timeline-card {
  transform: translateX(6px);
}

.timeline-item:nth-child(even):hover .timeline-card {
  transform: translateX(-6px);
}

.timeline-item:hover .timeline-year {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 899px) {
  .timeline-track {
    left: 1.75rem;
    margin-left: -1px;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .timeline-node {
    grid-column: 1;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    order: 0;
  }

  .timeline-item:nth-child(even):hover .timeline-card {
    transform: translateX(4px);
  }
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  min-width: 3.5rem;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), background var(--transition);
}

.timeline-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: timelineDotBlink 1.5s ease-in-out infinite;
}

.timeline-dot::before,
.timeline-dot::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #e53935;
  background: transparent;
  transform-origin: center center;
  animation: timelineDotWave 2s ease-out infinite;
  opacity: 0;
}

.timeline-dot::after {
  animation-delay: 1s;
}

@keyframes timelineDotBlink {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
  }

  50% {
    box-shadow: 0 0 14px rgba(229, 57, 53, 0.8), 0 0 20px rgba(229, 57, 53, 0.3);
  }
}

@keyframes timelineDotWave {

  0% {
    transform: scale(1);
    opacity: 0.7;
    border-color: rgba(229, 57, 53, 0.8);
  }

  100% {
    transform: scale(3);
    opacity: 0;
    border-color: rgba(229, 57, 53, 0);
  }
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
}

.timeline-card {
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline-duties {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.timeline-duties li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.timeline-duties li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

@keyframes timelineLineDraw {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

@keyframes timelineItemIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes timelineItemInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reviewReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--color-surface-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.review-card:hover .review-avatar {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.review-nickname {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.review-quote {
  position: relative;
  margin: 0 0 1rem;
  padding: 0 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  font-style: italic;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
  color: #eab308;
}

.review-stars i {
  opacity: 0.3;
}

.review-stars--1 i:nth-child(1),
.review-stars--2 i:nth-child(1),
.review-stars--2 i:nth-child(2),
.review-stars--3 i:nth-child(1),
.review-stars--3 i:nth-child(2),
.review-stars--3 i:nth-child(3),
.review-stars--4 i:nth-child(1),
.review-stars--4 i:nth-child(2),
.review-stars--4 i:nth-child(3),
.review-stars--4 i:nth-child(4),
.review-stars--5 i {
  opacity: 1;
}

.review-votes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.review-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition), transform 0.2s ease;
}

.review-vote i {
  font-size: 0.95em;
  opacity: 0.9;
}

.review-vote--like {
  color: rgba(255, 255, 255, 0.75);
}

.review-vote--like i {
  color: #22c55e;
}

.review-vote--dislike i {
  color: rgba(239, 68, 68, 0.9);
}

.review-vote:hover {
  color: var(--color-text);
}

.footer {
  padding: 4rem 0 2.5rem;
  position: relative;
  margin-top: 2rem;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.footer-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-bar {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  min-height: 56px;
  border-radius: 20px;
  transition: box-shadow var(--transition), background var(--transition);
}

.footer-bar:hover {
  background: var(--color-surface-hover);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.footer-copy {
  font-size: 1.0rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-legal-block {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.9rem 0.9rem;
  min-height: 56px;
  border-radius: 20px;
  transition: box-shadow var(--transition), background var(--transition);
}

.footer-legal-block:hover {
  background: var(--color-surface-hover);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.footer-legal-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  flex-shrink: 0;
  margin: 0 2px;
}

.footer-legal-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  font-size: 1rem;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition), transform 0.2s ease;
}

.footer-legal-icon:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.footer-legal-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.footer-legal-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

.page-legal .legal-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2.5rem 0 1.5rem;
}

.legal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.legal-lang-wrap {
  display: flex;
  align-items: center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform 0.2s ease;
}

.legal-back:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  transform: translateX(-4px);
}

.legal-back i {
  font-size: 1rem;
}

.legal-lang-dropdown {
  position: relative;
  z-index: 100;
  padding: 0;
  border-radius: var(--radius-sm);
  min-width: 160px;
}

.legal-lang-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: inherit;
  gap: 0.5rem;
  transition: background var(--transition);
}

.legal-lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.legal-lang-chevron {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.legal-lang-dropdown.is-open .legal-lang-chevron {
  transform: rotate(180deg);
}

.legal-lang-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  max-height: 0;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.legal-lang-dropdown.is-open .legal-lang-list {
  max-height: 340px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.legal-lang-option {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.legal-lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.legal-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius);
}

.legal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-title i {
  opacity: 0.9;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.legal-intro {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0 0 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2,
.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}

.legal-section h2 i,
.legal-section h3 i {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0.35rem 0 1rem 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.legal-section ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
}

.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.9;
}

.legal-section p+ul {
  margin-top: 0.25rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.project-modal[hidden] {
  display: flex !important;
}

.project-modal[hidden]:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalIn 0.35s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.project-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding-right: 2.5rem;
  margin-bottom: 0.25rem;
}

.project-modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.project-modal-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.project-modal-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.project-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-prev,
.project-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), transform var(--transition);
}

.project-modal-prev:hover,
.project-modal-next:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.project-modal-prev {
  left: 0.75rem;
}

.project-modal-next {
  right: 0.75rem;
}

.project-modal-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  min-height: 1.5rem;
  flex-shrink: 0;
}

.project-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.project-modal-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.project-modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.project-modal-features-wrap {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.project-modal-features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.project-modal-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-modal-features li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-modal-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}

.project-modal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.project-modal-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform 0.2s ease;
}

.project-modal-demo:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.project-modal-demo-icon {
  animation: demoBlink 1.5s ease-in-out infinite;
}

@keyframes demoBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.project-modal-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  transition: color var(--transition), background var(--transition), transform 0.2s ease;
}

.project-modal-github:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

@keyframes islandFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes islandGlow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}


@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    flex-direction: row;
  }

}

@media (min-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
    gap: 1.5rem;
  }

  .timeline-branch {
    max-width: 720px;
    margin: 0 auto;
  }

  .timeline-item:hover .timeline-card {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .global-star {
    animation: none;
    opacity: 0.7;
  }

  .review-card {
    animation: none;
  }

  .cursor-glow,
  .cursor-trail {
    display: none !important;
  }

  .hero-title-cursor {
    animation: none;
    opacity: 1;
  }

  .about-carousel-track--left,
  .about-carousel-track--right {
    animation: none;
  }
}