/* ===== Variables ===== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --bg-accent: #0a0a0a;
  --bg-muted: #2a2a2a;
  --foreground: #f8f9f8;
  --muted-foreground: #a0a0a0;
  --border-primary: #2a2a2a;
  --border-secondary: #1a1a1a;
  --primary: #a855f7;
  --primary-accent: #6366f1;
  --gradient-1: linear-gradient(to right, var(--primary) 0%, var(--primary-accent) 100%);
  --gradient-2: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
  --transition: all 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--foreground);
  background: #050505;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Apple-style ambient background ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 90% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 50%);
}

/* Subtle noise/grain overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--foreground);
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-2);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-primary);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--primary);
}

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

.tab {
  padding: 6px 14px;
  border-radius: 10px;
  color: var(--muted-foreground);
  transition: var(--transition);
  cursor: pointer;
  border: solid 0.5px transparent;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
}

.tab:hover {
  color: var(--foreground);
}

.tab.active {
  color: var(--foreground);
  border-color: var(--border-primary);
  background: var(--bg-accent);
}

.nav-icon-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.nav-icon-tab svg {
  display: block;
}

.tab.btn-primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 500;
}

.tab.btn-primary:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Mobile Nav */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 4px;
}

.cancel-btn {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-primary);
  color: var(--foreground);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--foreground);
  transform: rotate(90deg);
}

/* ===== Hero ===== */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Animated floating orbs in hero */
#hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  animation: floatOrb1 12s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  animation: floatOrb2 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.05); }
  66% { transform: translate(-20px, -15px) scale(0.95); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -25px) scale(1.08); }
  66% { transform: translate(20px, 20px) scale(0.92); }
}

.hero-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 160px;
}

/* Two-column hero layout */
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-info {
  flex: 1;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Portrait / Profile Picture */
.hero-portrait {
  flex-shrink: 0;
}

.portrait-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient-2);
  animation: portraitGlow 4s ease-in-out infinite alternate;
}

@keyframes portraitGlow {
  0% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); }
  100% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.3); }
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.04em;
  border: 4px solid var(--bg-primary);
}

/* Replace placeholder with a real image:
   .portrait-placeholder {
     background: url('your-photo.jpg') center/cover;
     font-size: 0;
   }
*/

/* Social links in hero */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn:hover {
  color: var(--foreground);
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #000;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border-primary);
}

.btn-outline:hover {
  border-color: var(--foreground);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

/* Achievement Cluster */
.achievement-cluster {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border-top: 0.5px solid var(--border-primary);
}

.achievement-cluster .container {
  padding: 30px 24px;
}

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

.achievement-card {
  text-align: center;
  padding: 20px;
  background: var(--bg-accent);
  border-radius: 20px;
}

.achievement-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}

.achievement-label {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* ===== Organization Strip (inspired by Eric Wadkins) ===== */
.org-strip {
  padding: 40px 0;
  border-bottom: 0.5px solid var(--border-primary);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.org-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

.org-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.org-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0.6;
  transition: var(--transition);
  white-space: nowrap;
}

.org-item:hover {
  opacity: 1;
}

.org-divider {
  color: var(--muted-foreground);
  opacity: 0.3;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}

/* Subtle glow divider between sections */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15), transparent);
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
}

/* Ambient orbs on select sections */
#about {
  overflow: hidden;
}

#about::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -15%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb2 18s ease-in-out infinite;
}

#skills {
  overflow: hidden;
}

#skills::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb1 20s ease-in-out infinite;
}

#contact {
  overflow: hidden;
}

#contact::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb2 14s ease-in-out infinite;
}

/* ===== Quick-Nav Buttons (inspired by Eric Wadkins) ===== */
.quick-nav {
  text-align: center;
  margin-bottom: 50px;
}

.quick-nav-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
}

.quick-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-nav-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.quick-nav-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--primary);
  color: var(--foreground);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}

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

.about-card {
  background: var(--bg-accent);
  padding: 30px;
  border-radius: 10px;
  border: 0.5px solid var(--border-primary);
  transition: var(--transition);
}

.about-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-icon {
  margin-bottom: 16px;
  color: var(--primary);
}

.about-icon svg {
  display: block;
}

.about-card-title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  transition: var(--transition);
}

.about-card-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== Experience Timeline (inspired by Eric Wadkins) ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-accent), transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 24px 28px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 4px 0;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.timeline-list {
  list-style: none;
  padding: 0;
}

.timeline-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
}

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

.project-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.project-media {
  height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-primary);
  cursor: pointer;
  position: relative;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Project overlay (inspired by Eric Wadkins portfolio grid) */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.project-overlay-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
}

.project-overlay-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

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

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

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

.project-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--muted-foreground);
  border: 0.5px solid var(--border-primary);
  transition: var(--transition);
}

.project-card:hover .project-tag {
  border-color: rgba(168, 85, 247, 0.2);
}

/* ===== Education ===== */
.education-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 32px;
  transition: var(--transition);
}

.education-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.education-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.education-degree {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.education-school {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.education-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

.education-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.education-honors {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  padding-top: 16px;
  border-top: 0.5px solid var(--border-primary);
}

/* ===== Certifications ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 24px;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cert-icon {
  margin-bottom: 12px;
  color: var(--primary);
}

.cert-icon svg {
  display: block;
}

.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Skills Feature Cards (inspired by Eric Wadkins) ===== */
.skills-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-feature-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.skill-feature-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.skill-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: var(--transition);
}

.skill-feature-card:hover .skill-feature-icon {
  background: rgba(168, 85, 247, 0.2);
  transform: scale(1.1);
}

.skill-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.skill-feature-card p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--muted-foreground);
  border: 0.5px solid var(--border-primary);
}

/* Center last row when it has fewer than 3 items */
@media (min-width: 769px) {
  .skills-feature-grid {
    justify-items: center;
  }

  /* When 5 cards: last 2 center in the bottom row */
  .skills-feature-grid .skill-feature-card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
    max-width: 340px;
    width: 100%;
  }

  .skills-feature-grid .skill-feature-card:nth-child(5) {
    grid-column: 2 / 3;
    justify-self: start;
    max-width: 340px;
    width: 100%;
  }
}

/* ===== Contact ===== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  width: 200px;
  flex-shrink: 0;
  display: block;
}

a.contact-card {
  transition: var(--transition);
  cursor: pointer;
}

a.contact-card:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
}

.contact-icon {
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-icon svg {
  display: inline-block;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  word-break: break-word;
}

a.contact-card:hover .contact-value {
  color: var(--foreground);
}

/* ===== Footer (Enhanced) ===== */
.footer {
  padding: 40px 0 30px;
  border-top: 0.5px solid var(--border-primary);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: var(--transition);
  display: flex;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: center;
  padding-top: 20px;
  border-top: 0.5px solid var(--border-primary);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 930px) {
  .menu-btn {
    display: block;
  }

  .navbar.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #000000;
  }

  .nav-links-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 200;
    display: none;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }

  .nav-links-wrapper.visible {
    display: flex;
    flex-direction: column;
  }

  .cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-primary);
  }

  .nav-links .tab {
    display: block;
    padding: 16px 0;
    border-radius: 0;
    font-size: 1.1rem;
  }

  .tab.btn-primary {
    margin-top: 16px;
    text-align: center;
    border-radius: 10px;
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Hero: stack vertically on mobile */
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .portrait-ring {
    width: 180px;
    height: 180px;
  }

  .portrait-placeholder {
    font-size: 3rem;
  }

  /* Org strip */
  .org-logos {
    gap: 8px;
  }

  .org-item {
    font-size: 0.8rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -27px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 20px;
  }

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

  .project-media {
    height: 200px;
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Skills */
  .skills-feature-grid {
    grid-template-columns: 1fr;
  }

  .skills-feature-grid .skill-feature-card:nth-child(4),
  .skills-feature-grid .skill-feature-card:nth-child(5) {
    grid-column: auto;
    justify-self: auto;
    max-width: none;
  }

  /* Contact */
  .contact-card {
    width: 100%;
  }

  .education-stats {
    gap: 24px;
  }

  .achievement-grid {
    gap: 10px;
  }

  .achievement-card {
    padding: 14px 10px;
  }

  .achievement-value {
    font-size: 1.5rem;
  }

  .achievement-label {
    font-size: 0.7rem;
  }

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

  /* Quick nav */
  .quick-nav-buttons {
    gap: 8px;
  }

  .quick-nav-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
