/* ============================================
   AAKASH ACHARJEE — PORTFOLIO DESIGN SYSTEM
   Dark Premium Theme with Glassmorphism
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-primary: #060918;
  --bg-secondary: #0d1127;
  --bg-card: rgba(15, 20, 50, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Accent colors */
  --accent-primary: #6c63ff;
  --accent-secondary: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
  --accent-gradient-hover: linear-gradient(135deg, #7b73ff, #1ae0ff);
  --accent-warm: #ff6b6b;
  --accent-success: #00e676;
  --accent-gold: #ffd700;

  /* Text */
  --text-primary: #e8eaf6;
  --text-secondary: #8892b0;
  --text-muted: #5a6380;
  --text-accent: #6c63ff;

  /* Borders & shadows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(108, 99, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(108, 99, 255, 0.25);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Selection */
::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-primary);
}

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

ul, ol {
  list-style: none;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  max-width: 600px;
}

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

.accent-text {
  color: var(--accent-primary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Glassmorphism card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  transition: all var(--transition-smooth);
}
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.3);
}

/* ---------- Animated Background Mesh ---------- */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(255, 107, 107, 0.04) 0%, transparent 50%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(30px, -30px) rotate(1deg); }
  66%  { transform: translate(-20px, 20px) rotate(-1deg); }
  100% { transform: translate(10px, -10px) rotate(0.5deg); }
}

/* Grid pattern overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(6, 9, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.navbar-brand .bracket {
  color: var(--accent-primary);
}
.navbar-brand:hover {
  color: var(--text-primary);
}

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

.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link-resume {
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.nav-link-resume:hover {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s forwards;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s forwards;
}

.hero-title .typed-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s 1s forwards;
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.2s forwards;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all var(--transition-smooth);
}
.social-link:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}

/* Hero image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s forwards;
}

.hero-image-container {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-image-glow {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 34px;
  background: var(--accent-gradient);
  z-index: 1;
  opacity: 0.4;
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.03); }
}

.hero-decoration {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--border-subtle);
  border-radius: 20px;
  z-index: 0;
}
.hero-decoration-1 {
  top: -30px;
  right: -30px;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-decoration-2 {
  bottom: -20px;
  left: -20px;
  animation: floatSlow 6s ease-in-out infinite 3s;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -15px) rotate(5deg); }
}

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

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

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-tech {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-category h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.tech-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.08);
}

/* ---------- EXPERIENCE ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.timeline-card {
  padding: 32px;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-top: 4px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--bg-glass);
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
}

.timeline-body ul {
  padding-left: 0;
}

.timeline-body li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.timeline-body li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.timeline-tech-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-primary);
  border-radius: 50px;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 24, 0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  transition: opacity var(--transition-smooth);
}

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

.project-overlay-links {
  display: flex;
  gap: 12px;
}

.project-overlay-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.project-overlay-link:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  color: #fff;
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.project-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50px;
}

/* ---------- SKILLS ---------- */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.skills-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-category-title i {
  color: var(--accent-primary);
}

.skill-item {
  margin-bottom: 20px;
}

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

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-percent {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.skill-bar {
  height: 6px;
  background: var(--bg-glass);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skill icons grid (alternative) */
.skills-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.skill-icon-card {
  padding: 20px 16px;
  text-align: center;
  cursor: default;
}

.skill-icon-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-icon-card span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- EDUCATION ---------- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
}

.edu-card {
  padding: 32px;
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.edu-icon i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.95rem;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.edu-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-detail i {
  font-size: 0.75rem;
  color: var(--accent-primary);
}

/* Certifications */
.cert-list {
  margin-top: 40px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.cert-item i {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.cert-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---------- CONTACT ---------- */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

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

.contact-email {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 32px;
  transition: all var(--transition-fast);
}
.contact-email:hover {
  filter: brightness(1.2);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

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

.footer-text .heart {
  color: var(--accent-warm);
  display: inline;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-image-container {
    width: 300px;
    height: 300px;
  }
  .hero-image-wrapper {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 8px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .hero-image-container {
    width: 250px;
    height: 250px;
  }
  .timeline-header {
    flex-direction: column;
  }
  .contact-email {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-name {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 16px 8px;
  }
}
