/* ============================================================
   RITIK KUMAR — PORTFOLIO DESIGN SYSTEM
   Professional · Clean · Premium Dark
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-tertiary: #101018;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --bg-glass: rgba(16, 16, 24, 0.7);

  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.12);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(6,182,212,0.05) 100%);
  --glow-purple: 0 0 60px rgba(139, 92, 246, 0.08);
  --glow-strong: 0 0 80px rgba(139, 92, 246, 0.12);

  --text-primary: #ededf0;
  --text-secondary: #8b8b9e;
  --text-muted: #55556a;
  --text-bright: #ffffff;

  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(139, 92, 246, 0.2);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);
  --transition-fast: 0.2s var(--ease);
  --transition-slow: 0.6s var(--ease-out);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --container: 1100px;
  --container-sm: 720px;
  --nav-height: 72px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
}


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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 10% 10%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 500px 500px at 90% 20%, rgba(6, 182, 212, 0.04), transparent),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(139, 92, 246, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-bright);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: var(--container-sm);
}


/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }


/* --- Section System --- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--gradient);
  border-radius: var(--radius-full);
  margin: 0 auto;
  opacity: 0.5;
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }


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

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
  margin-left: 2px;
}

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

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-cta-link {
  margin-left: 12px;
}

.nav-cta-btn {
  padding: 9px 24px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  transition: var(--transition) !important;
}

.nav-cta-btn:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-hover) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: float-orb 15s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: float-orb 18s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(16, 16, 24, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  animation: fadeDown 0.7s var(--ease-out) forwards;
  opacity: 0;
}

.hero-badge .pulse {
  position: relative;
  width: 8px;
  height: 8px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-badge .pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-greeting {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  animation: fadeUp 0.7s 0.1s var(--ease-out) forwards;
  opacity: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 8px;
  letter-spacing: -0.035em;
  animation: fadeUp 0.7s 0.2s var(--ease-out) forwards;
  opacity: 0;
}

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

.hero-typewriter {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 44px;
  min-height: 1.8em;
  animation: fadeUp 0.7s 0.3s var(--ease-out) forwards;
  opacity: 0;
}

.typewriter-text {
  color: var(--accent-light);
  font-weight: 500;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-caret 0.85s step-end infinite;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s var(--ease-out) forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 0.7s 0.6s var(--ease-out) forwards;
  opacity: 0;
  z-index: 1;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 2s ease-in-out infinite;
}

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


/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  background: #7c4fdf;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
  transform: translateX(3px);
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-photo-wrapper {
  display: flex;
  justify-content: center;
}

.about-photo {
  position: relative;
  width: 300px;
  height: 370px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  filter: grayscale(15%) contrast(1.02);
  transition: filter 0.5s var(--ease);
}

.about-photo:hover img {
  filter: grayscale(0%) contrast(1.05);
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient);
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease);
}

.about-photo:hover::before {
  opacity: 0.8;
}

.about-photo::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 0;
  transition: var(--transition);
}

.about-photo:hover::after {
  border-color: var(--border-hover);
  top: 16px;
  left: 16px;
}

/* Experience badge */
.about-exp-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  z-index: 3;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-exp-badge .exp-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.about-exp-badge .exp-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.about-info {
  padding: 8px 0;
}

.about-name {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.about-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.highlight-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--gradient-subtle);
  color: var(--accent-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.highlight-item span {
  font-weight: 500;
  color: var(--text-primary);
}


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

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

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

.skill-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.skill-card .skill-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.01em;
}

.skill-card .skill-level {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: brightness(0.9);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
  filter: brightness(1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.2) 50%, transparent 100%);
  pointer-events: none;
}

.project-body {
  padding: 24px 24px 28px;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--text-bright);
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.project-link:hover svg {
  transform: translateX(3px);
}

/* Featured (full-width) project */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-card.featured .project-image {
  height: 100%;
  min-height: 280px;
}

.project-card.featured .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px;
}

.project-card.featured .project-body h3 {
  font-size: 1.35rem;
}

.project-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-featured-label svg {
  width: 12px;
  height: 12px;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 52px;
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: -0.01em;
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  background: #7c4fdf;
}

.contact-email svg {
  width: 18px;
  height: 18px;
}

.contact-or {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.contact-or::before,
.contact-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

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

.social-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

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


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

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

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-left span {
  color: var(--text-secondary);
  font-weight: 600;
}

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

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.back-to-top:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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


/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
  .project-card.featured { grid-template-columns: 1fr; }
  .project-card.featured .project-image { min-height: 200px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 100px 24px 32px;
    gap: 2px;
    border-left: 1px solid var(--border);
    transition: right 0.35s var(--ease);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 16px; font-size: 0.95rem; }
  .nav-cta-link { margin-left: 0; margin-top: 12px; }
  .nav-cta-btn { width: 100%; justify-content: center; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  .nav-overlay.visible { display: block; }

  /* About */
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { width: 240px; height: 300px; }
  .about-info { display: flex; flex-direction: column; align-items: center; }
  .about-highlights { justify-items: start; }
  .about-text { text-align: center; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Footer */
  .footer-content { flex-direction: column; gap: 16px; }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .about-stats { gap: 20px; }
  .about-highlights { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { padding: 20px 10px 18px; }
}
