/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
============================================================ */
:root {
  --color-bg: #0a0a0f;
  --color-bg-2: #0f0f1a;
  --color-bg-3: #141428;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(124, 58, 237, 0.4);

  --color-primary: #7c3aed;
  --color-primary-light: #9d61f8;
  --color-primary-dark: #5b21b6;
  --color-secondary: #06b6d4;
  --color-secondary-light: #22d3ee;

  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-white: #ffffff;

  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-text: linear-gradient(135deg, #a78bfa, #22d3ee);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: 100px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.menu-open {
  overflow: hidden;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: normal;
  opacity: 0;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.cursor.hover {
  width: 20px;
  height: 20px;
  background: var(--color-secondary);
}

.cursor-follower.hover {
  width: 56px;
  height: 56px;
  border-color: rgba(6, 182, 212, 0.4);
}

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ============================================================
   CONTAINER & LAYOUT
============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
}

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

.nav__link {
  padding: 8px 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link.active {
  color: var(--color-white);
}

.nav__link--cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 8px 20px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.nav__link--cta:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero__greeting {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero__name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 4px;
}

.hero__name-highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 20px 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.typed-text {
  color: var(--color-secondary);
  font-weight: 600;
}

.typed-cursor {
  color: var(--color-secondary);
  animation: blink 0.75s infinite;
  font-weight: 300;
}

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

.hero__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__desc strong {
  color: var(--color-white);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.hero__stat-plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 8px;
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-wheel {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-wheel::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn--primary::before {
  background: linear-gradient(135deg, #9d61f8, #22d3ee);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: var(--color-surface-hover);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

.highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about {
  background: var(--color-bg-2);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__img-wrapper {
  position: relative;
  width: 340px;
  height: 400px;
}

.about__img-bg {
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  opacity: 0.08;
  transform: rotate(-3deg);
  z-index: 0;
}

.about__avatar {
  width: 100%;
  height: 100%;
  background: var(--color-bg-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
}

.about__avatar-inner {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.about__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  display: block;
}

.about__floating-badge {
  position: absolute;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  animation: float-badge 4s ease-in-out infinite;
  z-index: 3;
}

.about__floating-badge--1 {
  bottom: 40px;
  right: -20px;
  animation-delay: 0s;
}

.about__floating-badge--2 {
  top: 40px;
  left: -30px;
  animation-delay: 1.5s;
}

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

.about__content .section__tag { margin-bottom: 12px; }

.about__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text strong {
  color: var(--color-white);
  font-weight: 600;
}

.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.about__fact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.about__fact svg {
  flex-shrink: 0;
}

/* Mobile-only badges (shown when about__visual is hidden) */
.about__badges-mobile {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

.about__floating-badge--static {
  position: static;
  animation: none;
  transform: none;
}

@media (max-width: 1024px) {
  .about__badges-mobile {
    display: flex;
  }
}

/* ============================================================
   SERVICES SECTION
============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  background: var(--color-surface-hover);
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.service-card--featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
  border-color: rgba(124, 58, 237, 0.3);
}

.service-card--featured:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.12));
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.1em;
  position: absolute;
  top: 24px;
  right: 32px;
}

.service-card__badge {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.service-card__tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-card__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  transition: var(--transition);
}

.service-card:hover .service-card__arrow {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateX(4px);
}

/* ============================================================
   SKILLS SECTION
============================================================ */
.skills {
  background: var(--color-bg-2);
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.skill-bar {
  margin-bottom: 28px;
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-bar__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.skill-bar__level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.skill-bar__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar__fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-secondary);
  opacity: 0;
  transition: opacity 0.3s ease 0.8s;
}

.skill-bar.animated .skill-bar__fill::after { opacity: 1; }

.skills__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tech-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-align: center;
  cursor: none;
}

.tech-badge:hover {
  background: var(--color-surface-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  color: var(--color-white);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.tech-badge svg {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.1));
}

/* ============================================================
   PORTFOLIO SECTION
============================================================ */
.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portfolio__filter {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: none;
}

.portfolio__filter:hover {
  color: var(--color-white);
  border-color: rgba(124, 58, 237, 0.3);
}

.portfolio__filter.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  transition: var(--transition);
  cursor: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(124, 58, 237, 0.3);
}

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

.project-card__img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.project-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color) 20%, #0a0a0f), color-mix(in srgb, var(--color) 35%, #0f0f1a));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
}

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

.project-card:hover .project-card__img img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.6) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 1;
  transition: var(--transition);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(to top, rgba(10,10,15,0.99) 0%, rgba(10,10,15,0.85) 70%, rgba(10,10,15,0.4) 100%);
}

.project-card__content {
  width: 100%;
}

.project-card__cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.project-card:hover .project-card__desc {
  max-height: 60px;
  opacity: 1;
}

.project-card__actions {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.project-card:hover .project-card__actions {
  opacity: 1;
  transform: none;
}

.project-card__btn {
  padding: 8px 18px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-card__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.project-card__btn--disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.portfolio__cta {
  text-align: center;
  margin-top: 60px;
}

.portfolio__cta p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact {
  background: var(--color-bg-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact__card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--color-surface-hover);
  transform: translateX(6px);
}

.contact__card-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.contact__card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact__card-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact__card-value:hover { color: var(--color-primary-light); }

.contact__socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact__social {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.contact__social:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

/* Form */
.contact__form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form__input::placeholder { color: var(--color-text-subtle); }

.form__input:focus {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form__select {
  cursor: none;
  color: var(--color-text);
}

.form__select option {
  background: var(--color-bg-3);
  color: var(--color-text);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-top: 16px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: var(--color-text-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer__nav a:hover { color: var(--color-primary-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  color: var(--color-text-subtle);
  font-size: 0.85rem;
}

.footer__heart {
  color: #f43f5e;
  animation: pulse-heart 1.5s ease-in-out infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about__visual { display: none; }

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

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

  .nav__link {
    font-size: 1.3rem;
    padding: 12px 32px;
  }

  .nav__burger { display: flex; }

  .hero__content { padding: 0 20px; }
  .hero__stats { gap: 16px; flex-wrap: nowrap; }
  .hero__stat { flex-direction: column; align-items: center; gap: 4px; }
  .hero__stat-number { font-size: 1.75rem; }
  .hero__stat-plus { font-size: 1.1rem; }
  .hero__stat-label {
    display: block;
    margin-left: 0;
    font-size: 0.65rem;
    text-align: center;
    letter-spacing: 0.04em;
  }
  .hero__stat-divider { height: 48px; }

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

  .services__grid .service-card:last-child {
    max-width: 100%;
    grid-column: auto;
  }

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

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

  .contact__form-wrapper { padding: 24px; }

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

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .about__facts { grid-template-columns: 1fr; }
  .skills__badges { grid-template-columns: repeat(2, 1fr); }

  .portfolio__filters {
    gap: 8px;
  }

  .portfolio__filter {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
