/* ==========================================================================
   GLOBAL DESIGN TOKENS
   ========================================================================== */
:root {
  /* Core brand */
  --accent: #cc86dd;
  --accent-rgb: 204 134 221;
  --accent-alt: #a650c9;
  --accent-soft: #e5c3ef;

  /* Surfaces */
  --surface-0: #140d16;
  --surface-1: #1d1821;
  --surface-2: #241c29;
  --surface-glass: rgba(255,255,255,0.07);

  /* Text */
  --text-strong: #ffffff;
  --text-normal: #ddd;
  --text-soft: #c9c1cf;
  --text-fade-gradient: linear-gradient(90deg,#f7e9fb,#cc86dd 50%,#a650c9);

  /* Shadows / Glow */
  --shadow-sm: 0 4px 10px -4px rgba(0,0,0,0.55);
  --shadow-md: 0 10px 28px -10px rgba(0,0,0,0.7);
  --shadow-accent-glow: 0 0 22px -4px rgba(var(--accent-rgb) / 0.55);

  /* Motion */
  --ease-out-back: cubic-bezier(.22,1,.32,1);
  --transition-base: 0.55s var(--ease-out-back);
  --transition-fast: 0.35s ease;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 26px;

  /* Gradients */
  --grad-accent: linear-gradient(90deg,#e5c3ef,#cc86dd 55%,#a650c9);
  --grad-card-border: linear-gradient(150deg, rgba(204,134,221,0.7), rgba(120,40,150,0.32) 55%, rgba(255,255,255,0.22));
  --grad-glass-overlay: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  --grad-project: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.025));

  /* Misc */
  --blur-strong: blur(14px) saturate(160%);
  --blur-soft: blur(8px) saturate(180%);
}

/* ==========================================================================
   ACCESSIBILITY UTILS
   ========================================================================== */
.visually-hidden {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  border: 0;
}

.focusable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.no-focus-outline:focus {
  outline: none !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .4px;
  transition: color .35s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width .5s var(--ease-out-back);
}

nav a:hover,
nav a:focus-visible {
  color: var(--text-strong);
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

/* ==========================================================================
   LANGUAGE SWITCH
   ========================================================================== */
.language {
  background: none;
  border-radius: var(--radius-sm);
  border: 2px solid #ccc;
  color: #ccc;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  transition: all .3s ease;
}
.language:hover,
.language:focus-visible {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Language dropdown wrapper */
.lang-switch {
  position: relative;
  display: inline-block;
}

/* Dropdown menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px 6px;
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.07) inset;
  min-width: 86px;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px) scale(.96);
  pointer-events: none;
  transition: opacity .28s var(--ease-out-back), transform .45s var(--ease-out-back);
  z-index: 50;
}

.lang-switch.open .lang-menu,
.lang-switch:focus-within .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-menu li {
  padding: 6px 12px 5px;
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--text-soft);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background .35s var(--ease-out-back), color .3s ease;
}
.lang-menu li[aria-selected="true"] {
  background: rgba(var(--accent-rgb) / 0.15);
  color: var(--text-strong);
}
.lang-menu li:hover,
.lang-menu li:focus-visible {
  outline: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Arrow indicator on button when open */
.language::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .35s var(--ease-out-back);
}
.lang-switch.open .language::after {
  transform: rotate(-135deg) translateY(1px);
}

@media (max-width: 560px) {
  .lang-menu {
    right: auto;
    left: 0;
  }
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo,
.logo-center {
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  line-height: 1;
}

.logo {
  font-size: 32px;
}

.logo-center {
  font-size: 52px;
}

.sub-logo,
.sub-center {
  font-weight: 400;
  font-family: "Gill Sans", Calibri, "Trebuchet MS", sans-serif;
  color: var(--accent);
}

.sub-logo {
  font-size: 24px;
}

.sub-center {
  font-size: 42px;
}

/* ==========================================================================
   HERO SUBTITLE DECOR
   ========================================================================== */
.subt {
  position: relative;
  top: -50px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-soft);
  opacity: .85;
}

/* ==========================================================================
   SOCIAL LINKS (Redesigned Buttons)
   ========================================================================== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 14px 0 4px;
}

.social-btn {
  --accent-local: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 11px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .6px;
  line-height: 1;
  text-decoration: none;
  color: var(--accent-local);
  background: linear-gradient(135deg, #1d1520, #281d2c 60%, #2f2035);
  border: 1px solid #3a2642;
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 120%, rgba(var(--accent-rgb) / 0.22), transparent 70%),
    radial-gradient(circle at -5% -5%, rgba(150,70,190,0.18), transparent 65%);
  opacity: .55;
  mix-blend-mode: overlay;
  transition: opacity .6s ease;
  pointer-events: none;
}

.social-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(70deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

@keyframes socialShine {
  0% { left: -130%; opacity: 0; }
  20% { opacity: .95; }
  60% { opacity: .45; }
  100% { left: 140%; opacity: 0; }
}

.social-btn:hover::after {
  animation: socialShine 1s .1s ease forwards;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-6px) scale(1.045);
  border-color: #5d3d69;
  background: linear-gradient(135deg,#241a27,#322137 60%, #3a2341);
  color: #e8c7f1;
  box-shadow:
    var(--shadow-md),
    0 18px 40px -14px rgba(70,0,90,0.55),
    0 0 0 1px rgba(var(--accent-rgb) / 0.4),
    0 0 20px -4px rgba(var(--accent-rgb) / 0.55);
}

.social-btn:hover::before {
  opacity: .85;
}

.social-btn:active {
  transform: translateY(-2px) scale(1.02);
  transition-duration: .25s;
}

.social-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg,#2b1d33,#3a2543);
  border: 1px solid #4d2d59;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 10px -4px rgba(var(--accent-rgb) / 0.5),
    0 0 0 1px rgba(var(--accent-rgb) / 0.25) inset;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow .55s ease,
    background .55s ease;
}

.social-btn:hover .social-btn__icon {
  transform: translateY(-4px) scale(1.00);
  box-shadow:
    0 6px 14px -6px rgba(var(--accent-rgb) / 0.6),
    0 0 0 1px rgba(var(--accent-rgb) / 0.35) inset,
    0 0 16px -4px rgba(var(--accent-rgb) / 0.5);
}

.social-btn__icon {
  background:
    linear-gradient(145deg,#2a1d31,#37233f),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.08), transparent 60%);
}

.social-btn .icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  color: var(--accent-local);
  transition: color var(--transition-base), transform var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
}

.social-btn--mail .icon path:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.social-btn:hover .icon,
.social-btn:focus-visible .icon {
  color: #e1b5ec;
  transform: translateY(-2px);
}

.social-btn__label {
  position: relative;
  top: 1px;
}

.social-btn--discord { --accent-local: var(--accent); }
.social-btn--telegram { --accent-local: #b975d1; }
.social-btn--mail { --accent-local: #d595e6; }

.social-btn--outline {
  background: transparent;
  border: 1px solid #4b3354;
}
.social-btn--outline:hover { background: #2a1e30; }

.social-btn--glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border: 1px solid rgba(255,255,255,0.14);
}

.social-btn--minimal {
  padding: 10px 18px 9px;
  background: #201722;
  border-radius: 14px;
  border: 1px solid #322533;
}
.social-btn--minimal .social-btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.icon--discord .d-body { transition: stroke .5s ease; }
.icon--discord .d-eye { transition: filter .5s ease; }
.social-btn--discord:hover .d-eye { filter: drop-shadow(0 0 3px rgba(var(--accent-rgb) / 0.6)); }

/* Responsive (social buttons) */
@media (max-width: 560px) {
  .social-links { gap: 14px; }
  .social-btn {
    padding: 12px 18px 11px;
    font-size: 14px;
  }
  .social-btn__icon {
    width: 36px;
    height: 36px;
  }
  .social-btn .icon {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-btn,
  .social-btn:hover,
  .social-btn__icon,
  .social-btn .icon {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   GENERIC BUTTON (legacy classes .button, .discord-button, etc.) - optional
   ========================================================================== */
.button-container {
  position: relative;
  top: -60px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  height: 42px;
  margin: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  background-color: rgba(0,0,0,0.6);
  transition: all .3s ease;
  box-shadow: 0 4px 8px rgba(255,255,255,0.2);
}

.button:hover {
  background-color: rgba(0,0,0,0.8);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Legacy colored variants */
.discord-button {
  background-color: rgba(88,101,242,0.48);
  box-shadow: 0 4px 12px rgba(88,101,242,0.4);
}
.discord-button:hover {
  background-color: rgba(71,82,196,0.9);
  box-shadow: 0 6px 16px rgba(71,82,196,0.6);
}

.telegram-button {
  background-color: rgba(0,136,204,0.51);
  box-shadow: 0 4px 12px rgba(0,136,204,0.4);
}
.telegram-button:hover {
  background-color: rgba(0,102,153,0.9);
  box-shadow: 0 6px 16px rgba(0,102,153,0.6);
}

.gmail-button {
  background-color: #d1483683;
  box-shadow: 0 4px 12px rgba(209,72,54,0.4);
}
.gmail-button:hover {
  background-color: #a7372a;
  box-shadow: 0 6px 16px rgba(167,55,42,0.6);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  display: inline-block;
  position: relative;
  top: -25px;
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  transition: color .3s ease;
}
.back-to-top:hover { color: #fff; }
.back-to-top::after {
  content: " ↑";
  font-size: 12px;
  letter-spacing: 1px;
}

/* ==========================================================================
   SCROLL DOWN INDICATOR
   ========================================================================== */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}
.scroll-down svg { stroke: var(--accent); }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%,0); }
  40% { transform: translate(-50%,-10px); }
  60% { transform: translate(-50%,-5px); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: .6px;
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-normal);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.about-text p {
  margin: 15px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}

/* Reveal (JS adds .visible to section-about) */
.section-about.visible .about-text p {
  opacity: 1;
  transform: translateY(0);
}

.section-about.visible .about-text p:nth-child(1) { transition-delay: .1s; }
.section-about.visible .about-text p:nth-child(2) { transition-delay: .2s; }
.section-about.visible .about-text p:nth-child(3) { transition-delay: .3s; }
.section-about.visible .about-text p:nth-child(4) { transition-delay: .4s; }

.about-text p:nth-child(1) {
  font-weight: 500;
  font-size: 20px;
  color: #fff;
}
.about-text p:nth-child(2) { font-style: italic; }
.about-text p:nth-child(3) { font-weight: 300; }
.about-text p:nth-child(4) {
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================================
   STATS (Glass + Hover + New Outline Icons)
   ========================================================================== */
.stats-section .section-title {
  font-size: 30px;
  margin-top: 30px;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  perspective: 1200px;
}

.stat-card {
  position: relative;
  width: 210px;
  padding: 24px 22px 30px;
  border-radius: 20px;
  text-align: center;
  background: var(--surface-glass);
  background-image: var(--grad-glass-overlay);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow:
    var(--shadow-sm),
    0 6px 28px -6px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color .45s ease,
    background-color .5s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(204,134,221,0.65), rgba(150,70,190,0.35) 55%, rgba(255,255,255,0.25));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: .55;
  transition: opacity .5s ease;
  pointer-events: none;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(115deg, rgba(255,255,255,0.12), transparent 60%);
  transform: rotate(8deg);
  opacity: 0;
  transition: opacity .7s ease;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.stat-card:hover::after { opacity: .75; }

.stat-card:hover {
  transform: translateY(-14px) scale(1.045) rotateX(7deg) rotateY(-4deg);
  box-shadow:
    0 10px 26px -6px rgba(0,0,0,0.65),
    0 18px 40px -10px rgba(70,0,90,0.55),
    0 0 0 1px rgba(255,255,255,0.12) inset,
    var(--shadow-accent-glow);
  border-color: rgba(255,255,255,0.28);
}

.stat-card:hover::before {
  opacity: .95;
  animation: borderPulse 2.8s linear infinite;
}

.stat-card:active {
  transform: translateY(-6px) scale(1.02) rotateX(2deg) rotateY(-1deg);
  transition-duration: .25s;
}

.stat-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
    linear-gradient(190deg, rgba(204,134,221,0.22), rgba(80,20,120,0.18));
  border: 1px solid rgba(255,255,255,0.16);
  position: relative;
  box-shadow:
    0 4px 14px -4px rgba(var(--accent-rgb) / .55),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  overflow: hidden;
  backdrop-filter: var(--blur-soft);
}

.stat-card .icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%);
  opacity: .4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stat-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform var(--transition-base), color .5s ease;
}

.stat-card:hover .stat-icon {
  transform: translateY(-4px) scale(1.08);
  color: #dfa6ee;
}

.stat-number {
  font-size: 38px;
  line-height: 1;
  margin: 6px 0 4px;
  font-weight: 700;
  background: var(--text-fade-gradient);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(var(--accent-rgb) / 0.25);
}

.stat-label {
  font-size: 14px;
  letter-spacing: .7px;
  text-transform: uppercase;
  font-weight: 500;
  color: #e2dce8;
  opacity: .85;
  margin: 0;
  transition: opacity .4s ease;
}

.stat-card:hover .stat-label { opacity: 1; }

@keyframes borderPulse {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(25deg) brightness(1.25); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card:hover,
  .stat-icon,
  .stat-card::before,
  .stat-card::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .stat-card { background: rgba(30,10,40,0.65); }
  .stat-card .icon { background: rgba(60,25,75,0.6); }
}

/* ==========================================================================
   HIRE BUTTON (Legacy style)
   ========================================================================== */
.hire-button {
  background-color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb) / 0.4);
  margin-top: 30px;
  width: 200px;
  color: #140d16;
  font-weight: 600;
  letter-spacing: .6px;
}
.hire-button:hover {
  background-color: #b36dcc;
  box-shadow: 0 6px 16px rgba(179,109,204,0.6);
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.section-skills {
  padding: 60px 20px 40px;
}

.section-skills .section-title {
  text-align: center;
  font-size: 42px;
  margin: 0 0 25px;
  font-weight: 700;
  letter-spacing: .6px;
  background: var(--text-fade-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.skill-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 240px;
  padding: 22px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform .45s var(--ease-out-back),
    box-shadow .45s ease,
    border-color .4s ease;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.035);
  border-color: rgba(var(--accent-rgb) / 0.6);
  box-shadow:
    0 10px 30px -8px rgba(0,0,0,0.55),
    0 0 0 1px rgba(var(--accent-rgb) / 0.35);
}

.skill-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,#2d1f33,#3a2546);
  box-shadow:
    0 4px 12px -4px rgba(var(--accent-rgb) / 0.5),
    0 0 0 1px rgba(var(--accent-rgb) / 0.3) inset;
}

.icon-svg {
  width: 42px;
  height: 42px;
  color: var(--accent);
  display: block;
  transition: transform .6s var(--ease-out-back);
}

.skill-card:hover .icon-svg {
  transform: translateY(-4px) scale(1.08);
}

.skill-card h3 {
  margin: 4px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-strong);
}

.skill-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-normal);
  opacity: .9;
}

@media (max-width: 640px) {
  .skill-card {
    width: 46%;
    min-width: 170px;
    padding: 18px 16px 24px;
  }
}

@media (max-width: 420px) {
  .skill-card { width: 100%; }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.section-projects {
  padding: 80px 20px 60px;
  position: relative;
  z-index: 1;
}

.section-projects .section-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 38px;
  font-weight: 700;
  letter-spacing: .5px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  color: transparent;
}

.projects-container {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  max-width: 1250px;
  margin: 0 auto;
  perspective: 1600px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--proj-bg-glass);
  background-image: var(--grad-project);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    var(--shadow-sm),
    0 14px 40px -14px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.07) inset;
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  transform-style: preserve-3d;
  transition:
    transform .75s var(--ease-out-back),
    box-shadow .6s ease,
    border-color .55s ease,
    background-color .6s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-card-border);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: .55;
  transition: opacity .55s ease;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,0.15), transparent 70%);
  transform: rotate(8deg);
  opacity: 0;
  transition: opacity .8s ease;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 110%, rgba(var(--accent-rgb) / 0.25), transparent 70%),
    radial-gradient(circle at -10% -5%, rgba(140,60,185,0.22), transparent 65%);
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity .6s ease;
}

.project-card .shine {
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(70deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-18px) scale(1.045) rotateX(5deg) rotateY(-4deg);
  box-shadow:
    0 12px 34px -10px rgba(0,0,0,0.7),
    0 22px 52px -16px rgba(70,0,90,0.6),
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 0 30px -6px rgba(var(--accent-rgb) / 0.55);
  border-color: rgba(255,255,255,0.24);
}

.project-card:hover::before {
  opacity: .95;
  animation: projBorderPulse 3.3s linear infinite;
}

.project-card:hover::after { opacity: .7; }
.project-card:hover .card-glow { opacity: .6; }

@keyframes projShine {
  0% { left:-130%; opacity:0; }
  15% { opacity:.95; }
  55% { opacity:.55; }
  100% { left:140%; opacity:0; }
}

@keyframes projBorderPulse {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(28deg) brightness(1.25); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}

.project-card:hover .shine {
  animation: projShine 1.05s .1s ease forwards;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-2xl) - 6px);
  margin: 14px 14px 12px;
  background: #1a101f;
  box-shadow:
    0 4px 14px -6px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out-back), filter .75s ease;
  filter: saturate(.9) contrast(1.02);
}
.project-card:hover .project-media img {
  transform: scale(1.14);
  filter: saturate(1.15) contrast(1.05);
}

.project-content {
  padding: 0 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.project-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: .5px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.project-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e4dee9;
  opacity: .92;
  transition: opacity .5s ease;
}
.project-card:hover .project-desc { opacity: 1; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.project-tags span {
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 4px 8px 3px;
  border-radius: 40px;
  color: #e8e2ef;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .4s ease, border-color .4s ease;
}
.project-card:hover .project-tags span {
  background: rgba(var(--accent-rgb) / 0.15);
  border-color: rgba(var(--accent-rgb) / 0.5);
}

.project-link {
  margin-top: 4px;
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px 11px;
  border-radius: 14px;
  position: relative;
  color: #140d16;
  background: var(--grad-accent);
  box-shadow:
    0 4px 14px -6px rgba(var(--accent-rgb) / 0.65),
    0 0 0 1px rgba(255,255,255,0.25) inset;
  overflow: hidden;
  transition: transform .55s var(--ease-out-back), box-shadow .55s ease, filter .5s ease;
}

.project-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 55%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity .6s ease;
  pointer-events: none;
}

.project-card:hover .project-link::before { opacity: .5; }

.project-link:hover {
  transform: translateY(-4px) scale(1.045);
  box-shadow:
    0 8px 20px -8px rgba(var(--accent-rgb) / 0.75),
    0 0 0 1px rgba(255,255,255,0.35) inset;
  filter: brightness(1.05);
}

.project-link:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: .25s;
}

/* Scroll reveal states (add via JS) */
.project-card[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(40px) scale(.96);
  transition: opacity .9s ease, transform .9s var(--ease-out-back);
}
.project-card[data-reveal="shown"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card:hover,
  .project-card::before,
  .project-card::after,
  .project-card .shine,
  .project-media img,
  .project-link {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .project-card { background: rgba(30,10,40,0.75); }
}

@media (max-width: 820px) {
  .projects-container { gap: 32px; }
}
@media (max-width: 560px) {
  .project-card { border-radius: 22px; }
  .project-content { padding: 0 18px 24px; }
}

/* ==========================================================================
   PRICING
   ========================================================================== */
#pricing.section-pricing.pricing-simple {
  padding: 74px 20px 60px;
  position: relative;
  z-index: 1;
}

.pricing-simple .section-title {
  text-align: center;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 40px;
  font-weight: 700;
  letter-spacing: .6px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  color: transparent;
}

.pricing-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  max-width: 1250px;
  margin: 0 auto;
}

.price-card {
  --accent-local: var(--accent);
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid #2f2535;
  border-radius: 20px;
  padding: 26px 22px 28px;
  position: relative;
  overflow: hidden;
  gap: 14px;
  min-height: 100%;
  box-shadow:
    var(--shadow-sm),
    0 10px 30px -12px rgba(0,0,0,0.6);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color .5s ease,
    background-color .5s ease;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 115%, rgba(var(--accent-rgb) / 0.18), transparent 70%),
    radial-gradient(circle at -10% -5%, rgba(120,50,160,0.15), transparent 65%);
  opacity: .45;
  mix-blend-mode: overlay;
  transition: opacity .6s ease;
}

.price-card:hover::before { opacity: .75; }

.price-card:hover {
  transform: translateY(-12px) scale(1.035);
  border-color: #5b3b66;
  background-color: var(--surface-2);
  box-shadow:
    var(--shadow-md),
    0 18px 40px -14px rgba(70,0,90,0.55),
    0 0 0 1px rgba(var(--accent-rgb) / 0.35);
}

.price-card.highlight {
  border-color: #6d4779;
  box-shadow:
    var(--shadow-sm),
    0 10px 30px -12px rgba(0,0,0,0.6),
    0 0 0 1px rgba(var(--accent-rgb) / 0.35);
}

.icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(145deg,#2a1d31,#37233f);
  border: 1px solid #4d2f59;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px -6px rgba(var(--accent-rgb) / 0.5),
    0 0 0 1px rgba(var(--accent-rgb) / 0.25) inset;
  transition: transform .7s var(--ease-out-back), box-shadow .6s ease;
}

.price-card:hover .icon-wrap {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 6px 16px -6px rgba(var(--accent-rgb) / 0.6),
    0 0 0 1px rgba(var(--accent-rgb) / 0.35) inset,
    0 0 14px -2px rgba(var(--accent-rgb) / 0.45);
}

.price-card .icon {
  width: 40px;
  height: 40px;
  display: block;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke .5s ease, transform .7s var(--ease-out-back);
}

.price-card:hover .icon {
  stroke: #e2b8ec;
  transform: translateY(-2px);
}

.card-title {
  font-size: clamp(1.05rem,1.2rem + .2vw,1.35rem);
  margin: 0 0 2px;
  font-weight: 600;
  letter-spacing: .6px;
  background: linear-gradient(90deg,#e9d6ef,#cc86dd 55%,#a650c9);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.price-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.price-lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  background: #251d29;
  border: 1px solid #372b3c;
  padding: 8px 12px 7px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .3px;
  color: #dcd4e2;
  transition: background .45s ease, border-color .45s ease, color .45s ease;
  min-height: 34px;
}
.price-card:hover .price-lines li {
  background: #2c2231;
  border-color: #4e2f5b;
}

.price-lines .label {
  font-weight: 500;
  opacity: .9;
}
.price-lines .range {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

/* CTA per card */
.price-card .cta {
  margin-top: 4px;
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  padding: 11px 16px 10px;
  border-radius: 14px;
  background: var(--grad-accent);
  color: #140d16;
  box-shadow:
    0 4px 14px -6px rgba(var(--accent-rgb) / 0.65),
    0 0 0 1px rgba(255,255,255,0.25) inset;
  position: relative;
  overflow: hidden;
  transition: transform .55s var(--ease-out-back), box-shadow .55s ease, filter .5s ease;
}

.price-card .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity .6s ease;
}

.price-card:hover .cta::before { opacity: .5; }

.price-card .cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 8px 20px -8px rgba(var(--accent-rgb) / 0.75),
    0 0 0 1px rgba(255,255,255,0.35) inset;
  filter: brightness(1.05);
}

.price-card .cta:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: .25s;
}

.price-card.highlight:hover {
  border-color: #7a4d89;
  background-color: #281f2d;
}

@media (max-width: 560px) {
  .pricing-grid { gap: 26px; }
  .price-card {
    padding: 24px 18px 26px;
  }
  .icon-wrap {
    width: 64px;
    height: 64px;
  }
  .price-card .icon {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-card:hover,
  .icon-wrap,
  .price-card .icon,
  .price-card .cta,
  .price-card .cta:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 40px 20px 30px;
  font-size: 14px;
  color: var(--text-soft);
  opacity: .85;
  line-height: 1.4;
}
.footer a {
  text-decoration: none;
  color: var(--accent);
  transition: color .4s ease;
}
.footer a:hover { color: #e7c2f1; }

/* ==========================================================================
   OPTIONAL THEME TOGGLE (placeholder)
   ========================================================================== */
/* TODO: Добавить класс .light-theme и определить альтернативные переменные */

/* ==========================================================================
   END
   ========================================================================== */