/* ═══════════════════════════════════════════════════════
   PORTFOLIO — Design System & Styles
   Dark theme · Cyan/blue accent · Glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & Custom Properties ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --bg:          #0a0a0f;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --surface:     #111118;
  --border:      rgba(255, 255, 255, 0.06);
  --text:        #e4e4e7;
  --text-muted:  #71717a;
  --text-dim:    #52525b;
  --accent:      #00d4ff;
  --accent-2:    #7b61ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --gradient:    linear-gradient(135deg, var(--accent), var(--accent-2));

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);

  /* Spacing */
  --section-pad: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px);
  --container:   1100px;
  --radius:      14px;
  --radius-sm:   8px;

  /* Transitions */
  --ease:  cubic-bezier(.4,0,.2,1);
  --speed: .35s;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

a:hover { color: var(--accent-2); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* ─── Scrollbar (Webkit) ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
  transition: padding var(--speed) var(--ease), background var(--speed) var(--ease);
}

.navbar.scrolled {
  padding: 12px clamp(20px, 5vw, 60px);
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-bracket { color: var(--accent); }
.logo-dot { color: var(--accent-2); }

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--speed) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--speed) var(--ease);
}

.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open .hamburger::after  { transform: rotate(-45deg); top: 0; }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.hero-greeting {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) .3s forwards;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) .5s forwards;
}

/* Glitch effect on hover */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
}
.glitch:hover::before {
  animation: glitch-1 .4s linear;
  opacity: 1;
}
.glitch:hover::after {
  animation: glitch-2 .4s linear;
  opacity: 1;
}

@keyframes glitch-1 {
  0%   { clip-path: inset(40% 0 35% 0); transform: translate(-3px, 0); }
  20%  { clip-path: inset(10% 0 65% 0); transform: translate(3px, 0); }
  40%  { clip-path: inset(55% 0 20% 0); transform: translate(-3px, 0); }
  60%  { clip-path: inset(25% 0 45% 0); transform: translate(3px, 0); }
  80%  { clip-path: inset(70% 0 5% 0);  transform: translate(-2px, 0); }
  100% { clip-path: inset(0 0 0 0);      transform: translate(0); }
}

@keyframes glitch-2 {
  0%   { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 0); }
  40%  { clip-path: inset(75% 0 0% 0);  transform: translate(2px, 0); }
  60%  { clip-path: inset(5% 0 70% 0);  transform: translate(-2px, 0); }
  80%  { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(0 0 0 0);      transform: translate(0); }
}

.hero-role {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 2em;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) .7s forwards;
}

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

.cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-tagline {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) .9s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) 1.1s forwards;
}

.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) 1.3s forwards;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
}

.social-icon svg { width: 18px; height: 18px; }

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp .8s var(--ease) 1.6s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: scrollDown 2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span,
.btn-primary svg { position: relative; z-index: 1; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

.btn-arrow {
  transition: transform var(--speed) var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════════════════ */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.title-number {
  color: var(--accent);
  font-size: .85em;
  font-weight: 500;
  margin-right: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: .85rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.image-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--text-dim);
}

.image-border {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: var(--gradient);
  z-index: 0;
  opacity: .5;
  transition: opacity var(--speed) var(--ease);
}

.image-wrapper:hover .image-border { opacity: .8; }

.image-placeholder {
  margin: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: calc(var(--radius) - 1px);
}

.image-dots {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .4;
  z-index: 0;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: .98rem;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(0, 212, 255, 0.08);
}

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

.skill-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: transform var(--speed) var(--ease);
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) rotate(-5deg);
}

.skill-icon svg { width: 100%; height: 100%; }

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1.2s var(--ease);
}

/* ══════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--speed) var(--ease);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(0, 212, 255, 0.06);
}

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: hsl(var(--hue, 200) 60% 8%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--hue, 200) 60% 30%);
  font-size: .85rem;
  font-weight: 500;
  position: relative;
}

.placeholder-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg,
      transparent 25%,
      hsl(var(--hue, 200) 60% 12%) 25%,
      hsl(var(--hue, 200) 60% 12%) 50%,
      transparent 50%,
      transparent 75%,
      hsl(var(--hue, 200) 60% 12%) 75%);
  background-size: 40px 40px;
  opacity: .4;
  animation: patternScroll 20s linear infinite;
}

@keyframes patternScroll {
  to { background-position: 400px 400px; }
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

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

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: all var(--speed) var(--ease);
  transform: translateY(12px);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

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

.project-info {
  padding: 24px;
}

.project-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.project-description {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.12);
}

/* ══════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 0 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--speed) var(--ease);
  resize: none;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--text-dim);
  font-size: .95rem;
  pointer-events: none;
  transition: all var(--speed) var(--ease);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: .75rem;
  color: var(--accent);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--speed) var(--ease);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  width: 100%;
}

/* Placeholder hack for label float */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.btn-submit {
  align-self: flex-start;
}

/* Contact info side */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--speed) var(--ease);
}

.info-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  background: var(--bg-card-hover);
}

.info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
}

.info-icon svg { width: 22px; height: 22px; }

.info-card h4 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p,
.info-card a {
  color: var(--text-muted);
  font-size: .9rem;
}

.contact-socials {
  margin-top: 12px;
}

.contact-socials h4 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--speed) var(--ease);
}

.social-chip svg { width: 16px; height: 16px; }

.social-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  padding: 32px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  color: var(--text-dim);
  font-size: .85rem;
}

.back-to-top {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

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

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION SYSTEM
   ══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

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

.reveal.active {
  opacity: 1;
  transform: translate(0);
}

/* ══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50%      { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(123, 97, 255, 0.1); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-image {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-stats {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: right var(--speed) var(--ease);
    border-left: 1px solid var(--border);
  }

  .nav-menu.open { right: 0; }

  .nav-link {
    font-size: 1.1rem;
    padding: 12px 24px;
  }

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

  .hero-socials {
    margin-top: 32px;
  }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .about-stats {
    gap: 24px;
  }

  .stat-number { font-size: 1.5rem; }

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

  .skill-card { padding: 20px 16px; }
}
