:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: rgba(255, 215, 0, 0.05);
  --card-alt: rgba(255, 215, 0, 0.03);
  --accent: #FFD700;
  --accent-2: #FFA500;
  --accent-3: #D4AF37;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 215, 0, 0.2);
  --radius-lg: 40px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  --glow: 0 0 40px rgba(255, 215, 0, 0.4);
  --font-heading: "Unbounded", "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Unbounded", "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Анимированный фон с градиентами */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  filter: blur(60px);
  z-index: -2;
  animation: gradientShift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes gradientShift {
  0% {
    transform: translate3d(-10%, -10%, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(10%, 10%, 0) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-5%, 5%, 0) scale(1.05);
    opacity: 0.9;
  }
}

/* Оптимизация производительности */
body::before {
  will-change: transform, opacity;
  transform: translateZ(0);
}

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

img[loading="lazy"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

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

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #FFD700, #FFA500, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.75rem;
  color: var(--text);
}

.site-header {
  padding: 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: sticky;
  top: 24px;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav__logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav__links a {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --hover-x: 0px;
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translate3d(calc(var(--magnet-x) + var(--hover-x)), calc(var(--magnet-y) + var(--hover-y)), 0) scale(var(--hover-scale));
}

.nav__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav__links a:hover {
  color: var(--text);
  --hover-y: -2px;
}

.nav__links a:hover::before {
  opacity: 0.15;
}

.nav__links .pill {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.nav__links .pill::before {
  display: none;
}

.nav__links .pill:hover {
  --hover-y: -2px;
  --hover-scale: 1.05;
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

.theme-toggle {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle__track {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 31px;
  background: rgba(60, 60, 67, 0.3);
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle__thumb {
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  left: 2px;
}

.theme-toggle__icon {
  width: 14px;
  height: 14px;
  position: absolute;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1c1c1e;
  display: block;
  pointer-events: none;
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
}

body[data-theme="light"] .theme-toggle__track {
  background: rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(20px);
  background: #ffffff;
}

body[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.8) rotate(90deg);
}

body[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #1c1c1e;
}

.theme-toggle:hover .theme-toggle__track {
  background: rgba(60, 60, 67, 0.4);
}

body[data-theme="light"] .theme-toggle:hover .theme-toggle__track {
  background: rgba(255, 215, 0, 0.5);
}

.theme-toggle:active .theme-toggle__thumb {
  transform: translateX(0) scale(0.95);
}

body[data-theme="light"] .theme-toggle:active .theme-toggle__thumb {
  transform: translateX(20px) scale(0.95);
}

.nav__toggle {
  display: none;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

@media (max-width: 768px) {
  main {
    gap: 80px;
    padding: 0 16px 80px;
  }
}

.about {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .about {
    gap: 48px;
    margin-top: 24px;
  }
}

.about__hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 80vh;
  position: relative;
}

@media (max-width: 1024px) {
  .about__hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .about__hero {
    gap: 32px;
  }

  .about__visual {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

.about__content {
  z-index: 2;
}

.lead {
  color: var(--muted);
  margin: 32px 0;
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 600px;
}

.about__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.primary,
.secondary {
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --hover-x: 0px;
  --hover-y: 0px;
  transform: translate3d(calc(var(--magnet-x) + var(--hover-x)), calc(var(--magnet-y) + var(--hover-y)), 0);
}

@media (max-width: 768px) {
  .primary,
  .secondary {
    padding: 16px 28px;
    font-size: 0.95rem;
  }
}

.primary {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
  border: none;
}

.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFA500, #D4AF37);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: inherit;
}

.primary:hover {
  --hover-y: -3px;
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
  color: #000000;
}

.primary:hover::before {
  opacity: 1;
}

.primary span {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.secondary {
  border: 2px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 215, 0, 0.1);
  --hover-y: -3px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.about__visual {
  position: relative;
  min-height: clamp(480px, 65vh, 640px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about__photo img {
  width: 100%;
  height: auto;
  min-height: 100%;
  aspect-ratio: 832 / 1160;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.about__visual:hover .about__photo img {
  transform: scale(1.05);
}

.about__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 165, 0, 0.15), transparent 50%);
  z-index: 1;
}

.orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
  top: 10%;
  right: 10%;
  filter: blur(40px);
  animation: float 15s ease-in-out infinite;
  z-index: 2;
}

.orb--accent {
  width: 250px;
  height: 250px;
  left: 15%;
  bottom: 15%;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.4), transparent 70%);
  animation-delay: -5s;
  filter: blur(50px);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

[data-parallax-layer] {
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(30px, -30px, 0) scale(1.1);
  }
  66% {
    transform: translate3d(-20px, 20px, 0) scale(0.9);
  }
}

.orb,
.orb--accent {
  will-change: transform;
  transform: translateZ(0);
}

.about__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.about__panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.about__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.about__panel {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.about__panel:hover {
  transform: translate3d(0, -8px, 0);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.about__panel:hover::before {
  transform: scaleX(1);
}

.about__panel--approach {
  padding: 40px;
}

.approach__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 24px;
}

.approach__content p + p {
  margin-top: 16px;
}

.approach__visual {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

.approach__visual img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__panel:hover .approach__visual img {
  transform: scale(1.05);
}

.since {
  margin-top: 32px;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  width: 100%;
  text-align: center;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .approach__layout {
    grid-template-columns: 1fr;
    margin-top: 16px;
    gap: 20px;
  }
  
  .approach__visual {
    min-height: 220px;
    aspect-ratio: 3 / 4;
  }
}

.credentials {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin-left: 0;
}

.credentials li {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  height: auto;
}

.credentials li:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 64px;
}

.skills {
  padding: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

@media (min-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }
  
  .skills-grid .skill-item {
    grid-column: span 4;
  }
  
  .skills-grid .skill-item:nth-child(4) {
    grid-column: 3 / span 4;
  }
  
  .skills-grid .skill-item:nth-child(5) {
    grid-column: 7 / span 4;
  }
}


.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.skill-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.skill-progress-bar {
  position: relative;
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffa500, #d4af37);
  border-radius: 999px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.skill-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skill-percentage {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  padding: 10px 18px;
  border-radius: 999px;
  min-width: 88px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
}

.services .service-grid,
.portfolio .case-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.service-grid article,
.case,
.testimonial-grid article,
.contact__form,
.skill-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  --hover-lift: 0px;
  --filter-offset: 0px;
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  --tilt-glow-x: 50%;
  --tilt-glow-y: 50%;
  transform: perspective(1200px)
    rotateX(var(--tilt-rotate-x))
    rotateY(var(--tilt-rotate-y))
    translate3d(0, calc(var(--hover-lift) + var(--filter-offset)), 0);
}

@media (max-width: 768px) {
  .service-grid article,
  .case,
  .testimonial-grid article,
  .contact__form {
    padding: 24px;
  }
}

.service-grid article::before,
.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-grid article::after,
.case::after,
.testimonial-grid article::after,
.contact__form::after,
.skill-item::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: var(--tilt-glow-y, 50%);
  left: var(--tilt-glow-x, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-grid article.is-tilting::after,
.case.is-tilting::after,
.testimonial-grid article.is-tilting::after,
.contact__form.is-tilting::after,
.skill-item.is-tilting::after {
  opacity: 1;
}

.service-grid article.is-tilting,
.case.is-tilting,
.testimonial-grid article.is-tilting,
.contact__form.is-tilting,
.skill-item.is-tilting {
  transition-duration: 0.2s;
}

.service-grid article:hover,
.case:hover,
.testimonial-grid article:hover,
.contact__form:hover {
  --hover-lift: -12px;
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 30px 80px rgba(255, 215, 0, 0.2);
}

.skill-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 36px;
  isolation: isolate;
}

.skill-item:hover {
  --hover-lift: -10px;
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 25px 70px rgba(255, 215, 0, 0.2);
}

.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08),
              0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.35), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-item:hover .skill-icon {
  transform: scale(1.08) rotate(3deg);
  border-color: rgba(255, 215, 0, 0.8);
}

.skill-item:hover .skill-icon::after {
  opacity: 1;
}

.skill-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

@media (max-width: 640px) {
  .skill-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .skill-progress {
    grid-template-columns: 1fr;
  }
  
  .skill-percentage {
    justify-self: center;
  }
}

.service-grid article:hover::before,
.case:hover::before {
  transform: scaleX(1);
}

.case__image {
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case:hover .case__image img,
.case:hover .case__image video {
  transform: scale(1.05);
}

.case__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case:hover .case__image::after {
  opacity: 1;
}

.gradient-one {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.gradient-two {
  background: linear-gradient(135deg, #FFA500, #D4AF37);
}

.gradient-three {
  background: linear-gradient(135deg, #D4AF37, #C9A961);
}

.gradient-four {
  background: linear-gradient(135deg, #FFD700, #F4D03F);
}

.gradient-five {
  background: linear-gradient(135deg, #FFA500, #FFD700);
}

.gradient-six {
  background: linear-gradient(135deg, #D4AF37, #FFA500);
}

.case__category {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-weight: 600;
}

.tags {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tags li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tags li:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.services article h3 {
  margin-bottom: 40px;
}

.services article p {
  margin-bottom: 0;
}

.services article ul,
.about__panel ul:not(.credentials) {
  list-style: none;
  margin-top: 32px;
  color: var(--muted);
}

.services article li + li,
.about__panel ul:not(.credentials) li + li {
  margin-top: 12px;
}

.process {
  padding: 0;
}

.process .timeline {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
}

.timeline li {
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  transition: all 0.4s ease;
  counter-increment: steps;
  overflow: hidden;
}

.timeline li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: -20px;
  left: 40px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
  z-index: 2;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.timeline li:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.timeline li:hover::after {
  transform: scaleX(1);
}

.step {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: var(--text);
  margin-top: 20px;
}

.timeline li p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 1.05rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact__content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact__content::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent);
  animation: pulse 4s ease-in-out infinite;
}

.contact label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.contact input,
.contact select,
.contact textarea {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.contact input.error,
.contact select.error,
.contact textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact button {
  margin-top: 12px;
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
  width: 100%;
}

.contact button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
}

.contact button:active {
  transform: translateY(-1px);
}

.contact button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.site-footer {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--muted);
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-signature {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-link {
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text);
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link:hover .footer-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.footer-link:hover::after {
  width: 100%;
}

/* Light theme */
body[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-soft: #fafafa;
  --card: #ffffff;
  --card-alt: #f8f8f8;
  --text: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.6);
  --border: rgba(255, 215, 0, 0.25);
  background: #f5f5f5;
}

body[data-theme="light"]::before {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
  opacity: 0.4;
}

body[data-theme="light"]::after {
  opacity: 0.1;
}

body[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

body[data-theme="light"] .nav__links a {
  color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .nav__links a:hover {
  color: var(--text);
}

body[data-theme="light"] .nav__links a::before {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

body[data-theme="light"] .nav__links .pill {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}


body[data-theme="light"] h1,
body[data-theme="light"] h2 {
  background: linear-gradient(135deg, #1a1a1a 0%, rgba(26, 26, 26, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .eyebrow {
  background: linear-gradient(135deg, #D4AF37, #FFA500, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .nav__logo {
  background: linear-gradient(135deg, #D4AF37, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .lead {
  color: rgba(26, 26, 26, 0.65);
}

body[data-theme="light"] .about__panel,
body[data-theme="light"] .service-grid article,
body[data-theme="light"] .case,
body[data-theme="light"] .testimonial-grid article,
body[data-theme="light"] .contact__form {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .about__panel:hover,
body[data-theme="light"] .service-grid article:hover,
body[data-theme="light"] .case:hover,
body[data-theme="light"] .testimonial-grid article:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

body[data-theme="light"] .about__panel::before,
body[data-theme="light"] .service-grid article::before,
body[data-theme="light"] .case::before {
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
}

body[data-theme="light"] .about__visual {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 215, 0, 0.25);
}

body[data-theme="light"] .about__visual::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 165, 0, 0.12), transparent 50%);
}


body[data-theme="light"] .orb {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
}

body[data-theme="light"] .orb--accent {
  background: radial-gradient(circle, rgba(255, 165, 0, 0.3), transparent 70%);
}

body[data-theme="light"] .credentials li {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.2);
  color: rgba(26, 26, 26, 0.8);
  font-weight: 500;
}

body[data-theme="light"] .credentials li:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .skill-item {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .skill-item:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

body[data-theme="light"] .skill-item::before {
  background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.18), transparent 60%);
}

body[data-theme="light"] .skill-info h3 {
  color: var(--text);
}

body[data-theme="light"] .skill-progress-bar {
  background: rgba(255, 215, 0, 0.1);
}

body[data-theme="light"] .skill-progress-fill {
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
}

body[data-theme="light"] .skill-percentage {
  color: #0b0b0b;
}

body[data-theme="light"] .timeline li {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .timeline li:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

body[data-theme="light"] .timeline li::before {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .timeline li::after {
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
}

body[data-theme="light"] .timeline li p {
  color: rgba(26, 26, 26, 0.65);
}

body[data-theme="light"] .tags li {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.2);
  color: rgba(26, 26, 26, 0.8);
}

body[data-theme="light"] .tags li:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

body[data-theme="light"] .contact__content {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .contact__content::before {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent);
}

body[data-theme="light"] .contact input,
body[data-theme="light"] .contact select,
body[data-theme="light"] .contact textarea {
  background: #fafafa;
  border-color: rgba(255, 215, 0, 0.2);
  color: var(--text);
}

body[data-theme="light"] .contact input:focus,
body[data-theme="light"] .contact select:focus,
body[data-theme="light"] .contact textarea:focus {
  border-color: rgba(255, 215, 0, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

body[data-theme="light"] .contact button {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .contact button:hover {
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

body[data-theme="light"] .secondary {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

body[data-theme="light"] .secondary:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .primary {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .primary:hover {
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
  color: #000000;
}

body[data-theme="light"] .primary span {
  color: #000000;
}

body[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 215, 0, 0.2);
  color: rgba(26, 26, 26, 0.8);
}

body[data-theme="light"] .filter-btn:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.1);
}

body[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .case__more {
  border-color: rgba(255, 215, 0, 0.25);
  color: rgba(26, 26, 26, 0.8);
}

body[data-theme="light"] .case__more:hover {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .testimonial {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .testimonial:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

body[data-theme="light"] .testimonial__quote {
  color: #FFD700;
  opacity: 0.6;
}

body[data-theme="light"] .testimonial__text {
  color: rgba(26, 26, 26, 0.65);
}

body[data-theme="light"] .testimonial__author strong {
  color: var(--text);
}

body[data-theme="light"] .testimonial__author span {
  color: rgba(26, 26, 26, 0.6);
}

body[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

body[data-theme="light"] .scroll-top {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

body[data-theme="light"] .scroll-top:hover {
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

body[data-theme="light"] .modal__content {
  background: #ffffff;
  border-color: rgba(255, 215, 0, 0.25);
}

body[data-theme="light"] .modal__close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--text);
}

body[data-theme="light"] .modal__close:hover {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
}

body[data-theme="light"] .modal__details {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .modal__details p {
  color: rgba(26, 26, 26, 0.65);
}

body[data-theme="light"] .modal__tags li {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="light"] .notification {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .notification--success {
  border-left: 4px solid #FFD700;
}

body[data-theme="light"] .site-footer {
  border-color: rgba(255, 215, 0, 0.15);
}

body[data-theme="light"] .footer-link {
  color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .footer-link .footer-icon {
  color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .footer-link:hover {
  color: #D4AF37;
}

body[data-theme="light"] .footer-link:hover .footer-icon {
  color: #D4AF37;
}

body[data-theme="light"] .services article ul,
body[data-theme="light"] .about__panel ul {
  color: rgba(26, 26, 26, 0.65);
}

body[data-theme="light"] .case__category {
  color: rgba(26, 26, 26, 0.6);
}

/* Scroll animations */
html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.nav__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.6;
}

.notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.notification--success {
  border-left: 4px solid #FFD700;
}

.notification--error {
  border-left: 4px solid #ef4444;
}

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

  [data-parallax-layer] {
    transition: none !important;
  }

  .orb,
  .orb--accent,
  body::before {
    animation: none !important;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #FFD700, #FFA500, #D4AF37);
  z-index: 1000;
  transition: width 0.1s ease;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.scroll-top:hover {
  transform: translate3d(0, -4px, 0) scale(1.1);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
}

/* Portfolio filters */
.portfolio-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.filter-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 215, 0, 0.15);
  transform: translate3d(0, -2px, 0);
}

.filter-btn.active {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.case__more {
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  will-change: transform;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --hover-x: 0px;
  --hover-y: 0px;
  transform: translate3d(calc(var(--magnet-x) + var(--hover-x)), calc(var(--magnet-y) + var(--hover-y)), 0);
}

.case__more:hover {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000000;
  border-color: transparent;
  --hover-y: -2px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
}

.modal__content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  margin: 5vh auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  overflow-y: auto;
  transform: scale(0.9) translate3d(0, 20px, 0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.modal.is-open .modal__content {
  transform: scale(1) translate3d(0, 0, 0);
}

.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal__close:hover {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
  color: #000000;
}

.modal__body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal__image {
  width: 100%;
  height: 400px;
  min-height: 400px;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  flex-shrink: 0;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal__info {
  padding: 48px;
}

.modal__category {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  font-weight: 600;
}

.modal__title {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.modal__description {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.modal__details {
  margin-bottom: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.modal__details h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.modal__details p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.modal__tags {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal__tags li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials {
  padding: 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.testimonial {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 40px;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.testimonial {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.testimonial:hover {
  transform: translate3d(0, -8px, 0);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.testimonial:hover::before {
  transform: scaleX(1);
}

.testimonial__quote {
  margin-bottom: 24px;
  color: var(--accent);
  opacity: 0.5;
}

.testimonial__text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testimonial__author strong {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial__author span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about__hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact {
    grid-template-columns: 1fr;
  }
  
  .services .service-grid,
  .portfolio .case-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 16px;
  }

  main {
    gap: 100px;
    padding: 0 16px 80px;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 12px;
    position: relative;
    padding: 10px 16px;
  }

  .nav__toggle {
    display: flex;
    order: 3;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 24px 24px;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    font-size: 1.2rem;
    padding: 14px 28px;
    width: auto;
  }

  .theme-toggle {
    order: 2;
    width: 40px;
    height: 40px;
  }

  .theme-toggle__icon {
    width: 18px;
    height: 18px;
  }

  .nav__logo {
    order: 1;
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .about {
    gap: 48px;
    margin-top: 24px;
  }

  .about__hero {
    min-height: auto;
    margin-top: 0;
    gap: 32px;
  }

  .about__visual {
    min-height: 300px;
  }

  .about__details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about__panel {
    padding: 32px 24px;
  }

  .about__cta {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .about__cta .primary,
  .about__cta .secondary {
    width: 100%;
    justify-content: center;
  }

  .case-grid,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case,
  .service-grid article,
  .testimonial {
    padding: 24px;
  }

  .case__image {
    height: 200px;
    margin-bottom: 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skill-item {
    padding: 24px;
  }

  .skill-icon {
    width: 56px;
    height: 56px;
  }

  .skill-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .portfolio-filters {
    margin-bottom: 32px;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .portfolio-filters::-webkit-scrollbar {
    height: 3px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

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

  .contact__content {
    padding: 32px 24px;
  }

  .contact label {
    font-size: 0.9rem;
  }

  .contact input,
  .contact select,
  .contact textarea {
    padding: 14px;
    font-size: 0.95rem;
  }

  .contact button {
    padding: 16px 24px;
  }

  .contact__content {
    padding: 32px;
  }

  .scroll-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }

  .notification {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .modal__content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal__info {
    padding: 24px 20px;
  }

  .modal__title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .modal__description {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .modal__details {
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  .site-footer {
    padding: 32px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 12px;
  }

  .site-header {
    padding: 20px 0 12px;
  }

  main {
    gap: 64px;
    padding: 0 12px 64px;
  }

  .nav {
    padding: 8px 12px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .about__panel,
  .case,
  .service-grid article,
  .testimonial,
  .contact__form {
    padding: 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .skill-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
  }

  .about__visual {
    min-height: 250px;
  }
}

