@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Deep Purple Palette ───────────────────────────── */
:root {
  --bg-page:      #060410;
  --bg-card:      #0d0822;
  --bg-surface:   #130d2e;
  --bg-element:   #1c1240;
  --bg-element-2: #231650;

  --purple-700: #5b21b6;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;
  --purple-200: #ddd6fe;

  --glow:        rgba(139, 92, 246, 0.2);
  --glow-md:     rgba(139, 92, 246, 0.35);
  --glow-strong: rgba(139, 92, 246, 0.55);

  --text-primary:   #f0eaff;
  --text-secondary: #b0a0d0;
  --text-muted:     #6b5d8c;

  --border:       rgba(167, 139, 250, 0.1);
  --border-hover: rgba(167, 139, 250, 0.3);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
}

/* ── Animated Background ───────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.bg-orbs span:nth-child(1) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.bg-orbs span:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

.bg-orbs span:nth-child(3) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(91,33,182,0.18), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  33%       { opacity: 1;   transform: translate(20px, -30px) scale(1.05); }
  66%       { opacity: 0.7; transform: translate(-15px, 20px) scale(0.97); }
}

/* ── Card ──────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.05),
    0 4px 24px rgba(0,0,0,0.5),
    0 0 80px rgba(139,92,246,0.08);
  overflow: hidden;
}

/* ── Navigation ────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 8, 34, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px var(--glow-md);
  flex-shrink: 0;
}

.nav-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--purple-300);
  background: var(--glow);
}

.nav-links li a.active {
  color: var(--purple-300);
  background: rgba(139,92,246,0.15);
}

/* ── Section System ────────────────────────────────── */
.section {
  display: none;
  opacity: 0;
  padding: 40px 32px 32px;
}

.section.active {
  display: block;
  animation: sectionIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section.leaving {
  animation: sectionOut 0.3s ease forwards;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── About ─────────────────────────────────────────── */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.profile-ring {
  position: relative;
  width: 120px; height: 120px;
}

.profile-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400), var(--purple-300));
  z-index: 0;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 16px var(--glow-md); }
  50%       { box-shadow: 0 0 32px var(--glow-strong); }
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-element), var(--purple-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--purple-200);
  letter-spacing: 1px;
  border: 3px solid var(--bg-card);
}

.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-400);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.about-title {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.about-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

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

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

.btn-outline:hover {
  background: var(--glow);
  border-color: var(--purple-400);
  transform: translateY(-2px);
}

/* ── Section Headers ───────────────────────────────── */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-hover), transparent);
}

/* ── What I Do Grid ────────────────────────────────── */
.what-i-do {
  padding: 36px 0 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 20px var(--glow);
}

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

.skill-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px var(--glow-md);
}

.skill-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Testimonials ──────────────────────────────────── */
.testimonials {
  padding: 36px 0 0;
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.testimonial-quote {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author-info span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── Fun Facts ─────────────────────────────────────── */
.fun-facts {
  padding: 36px 0 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
}

.fact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow);
}

.fact-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.fact-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--purple-400);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.fact-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Resume ────────────────────────────────────────── */
#resume h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.resume-meta {
  font-size: 13px;
  color: var(--purple-400);
  margin-bottom: 36px;
  font-weight: 500;
}

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

.resume-col h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-item {
  position: relative;
  padding: 0 0 24px 20px;
  border-left: 2px solid var(--border);
}

.resume-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.resume-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 8px var(--glow-md);
}

.resume-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--purple-300);
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.resume-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.resume-item .resume-sub {
  font-size: 12px;
  color: var(--purple-400);
  font-weight: 500;
  margin-bottom: 6px;
}

.resume-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resume-item ul {
  margin: 4px 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-item ul li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--purple-300);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 5px;
  padding: 3px 9px;
  transition: all var(--transition);
}

.tech-tag:hover {
  background: rgba(139,92,246,0.25);
  border-color: var(--purple-500);
}

/* ── Portfolio ─────────────────────────────────────── */
#portfolio h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

#portfolio .page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
}

.portfolio-block {
  margin-bottom: 32px;
}

.portfolio-block.is-collapsed {
  display: none;
}

.portfolio-group-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.portfolio-group-dates {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.filter-btn:hover {
  color: var(--purple-300);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--glow-md);
}

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

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-slow);
  position: relative;
}

.project-card.is-hidden {
  display: none !important;
}

.project-card--placeholder,
.project-card[data-category="placeholder"] {
  cursor: default;
  opacity: 0.75;
  border-style: dashed;
}

.project-card[data-category="placeholder"]:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--glow);
}

.project-thumbnail {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-element);
}

.project-thumbnail-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail-shot {
  transform: scale(1.04);
}

.project-thumb-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.project-screenshots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.project-screenshots img {
  height: 76px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  object-fit: cover;
}

.project-card--link {
  cursor: pointer;
}

.project-card--soon {
  cursor: default;
}

.project-thumbnail .project-overlay--thumbnail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  transition: opacity var(--transition);
  z-index: 3;
}

.project-overlay--store {
  opacity: 0;
  background: rgba(13, 8, 34, 0.88);
}

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

.project-overlay--soon {
  opacity: 1;
  pointer-events: none;
  background: rgba(13, 8, 34, 0.68);
}

.project-overlay-soon-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-200);
}

.project-overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--glow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-overlay-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow);
}

.project-store-link {
  margin: 10px 0 0;
  font-size: 12px;
}

.project-store-link a {
  color: var(--purple-400);
  font-weight: 600;
  text-decoration: none;
}

.project-store-link a:hover {
  text-decoration: underline;
  color: var(--purple-300);
}

.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.project-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(139,92,246,0.8);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-tag-secondary {
  left: auto;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 9px;
  font-weight: 600;
}

.project-role-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.project-info {
  padding: 16px;
}

.project-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legacy full-card overlay (unused); portfolio uses .project-thumbnail .project-overlay--thumbnail */
.project-overlay:not(.project-overlay--thumbnail) {
  position: absolute;
  inset: 0;
  background: rgba(13,8,34,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay:not(.project-overlay--thumbnail) {
  opacity: 1;
}

.project-overlay:not(.project-overlay--thumbnail) span {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-300);
}

/* ── Contact ───────────────────────────────────────── */
#contact h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

#contact .page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all var(--transition);
  text-decoration: none;
}

.contact-info-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--glow);
}

.contact-info-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-info-item span {
  font-size: 13px;
  color: var(--text-primary);
}

.contact-form-col h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--glow);
  background: var(--bg-element);
}

.form-group textarea { min-height: 100px; }

/* ── Footer ────────────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background: rgba(13,8,34,0.5);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-socials a:hover {
  color: var(--purple-400);
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── Scroll-reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 16px 20px; }
  .nav-name { display: none; }
  .nav-links li a { padding: 6px 10px; font-size: 12px; }
  .section { padding: 28px 20px 24px; }

  .skills-grid,
  .testimonial-grid,
  .facts-grid,
  .portfolio-grid { grid-template-columns: 1fr; }

  .resume-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .card-footer { flex-direction: column; gap: 8px; }
  .about-name { font-size: 26px; }
}

@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  body { padding: 0; }
  .card { border-radius: 0; min-height: 100vh; }
}
