:root {
  --primary: #1f3a5f;
  --primary-dark: #162a47;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --grey-900: #111827;
  --grey-800: #1f2937;
  --grey-700: #374151;
  --grey-600: #4b5563;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  --grey-50: #f9fafb;
  --bg-base: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, #edf2f8 0%, #ffffff 50%, #ecf7f4 100%);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#background-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(31, 58, 95, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, rgba(237, 242, 248, 0.58), rgba(236, 247, 244, 0.58));
  border-bottom: 1px solid transparent;
  border-radius: 14px;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: slideDown 0.5s ease-out;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier Prime', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(140deg, var(--primary-dark), var(--accent-dark));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgb(22 42 71 / 24%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-brand-logo {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.nav-brand:hover .nav-brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(22 42 71 / 30%);
}

.nav-bar.is-scrolled {
  background: linear-gradient(90deg, rgba(237, 242, 248, 0.92), rgba(236, 247, 244, 0.92));
  border-color: rgba(31, 58, 95, 0.24);
  box-shadow: var(--shadow-sm);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-links {
  display: flex;
  width: calc(100% - 50px);
  flex: 1;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  border: 1px solid rgba(31, 58, 95, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(243, 244, 246, 0.88));
  box-shadow: 0 1px 2px rgb(31 58 95 / 10%);
  transition: color 0.3s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  border-color: rgba(31, 58, 95, 0.38);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: calc(100% - 24px);
}

.nav-bar.is-scrolled .nav-link {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 255, 0.98));
  border-color: rgba(31, 58, 95, 0.34);
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .nav-bar {
    border-radius: 12px;
    padding: 10px 6px;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 8px;
  }

  .nav-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

/* Sections */
section {
  padding: 80px 0;
}

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

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

/* Scroll Reveal System */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.99);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translate3d(-22px, 16px, 0) scale(0.99);
}

.reveal-right {
  transform: translate3d(22px, 16px, 0) scale(0.99);
}

.reveal-pop {
  transform: translate3d(0, 20px, 0) scale(0.95);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Typography */
h1, h2, h3 {
  color: var(--text-primary);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero {
  padding: 120px 0 80px !important;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Courier Prime', monospace;
  color: var(--primary);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 28px rgba(22, 42, 71, 0.18);
}

.typed-text {
  display: inline;
  min-height: 1.2em;
}

.name-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--primary);
  margin-left: 5px;
}

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

.hero-academic {
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-interests {
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: revealInterests 0.65s ease forwards;
  animation-delay: 1.15s;
}

.flip-interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 40px;
  perspective: 800px;
}

.flip-interest-text {
  display: inline-block;
  font-family: 'Futura', 'Futura PT', 'Avenir Next', sans-serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: #0f0f0f;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transform-origin: center;
  backface-visibility: hidden;
}

.hero-ms-note {
  margin-top: -18px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--grey-700);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.flip-interest-text.is-flipping {
  animation: flipChange 0.55s ease;
}

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

@keyframes flipChange {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  48% {
    transform: rotateX(90deg);
    opacity: 0.1;
  }
  52% {
    transform: rotateX(-90deg);
    opacity: 0.1;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  margin: 24px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--grey-600);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: scrollHintFloat 1.9s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.scroll-indicator-text {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-indicator-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}

@keyframes scrollHintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }

  .flip-interest-text.is-flipping {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero-interests {
    gap: 8px;
    margin-bottom: 18px;
  }

  .flip-interest {
    min-width: 180px;
    min-height: 36px;
  }

  .hero-academic {
    font-size: 0.94rem;
  }

  .flip-interest-text {
    font-size: 1.18rem;
  }

  .hero-ms-note {
    margin-top: -12px;
    margin-bottom: 24px;
    font-size: 0.88rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }

  .scroll-indicator {
    margin-top: 20px;
  }
}

/* About Section */
.about-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 60px 30px !important;
}

.section-title {
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.terminal-container {
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: 40px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red {
  background: #ef4444;
}

.terminal-btn.yellow {
  background: #f59e0b;
}

.terminal-btn.green {
  background: #10b981;
}

.terminal {
  padding: 30px;
  font-family: 'Courier Prime', monospace;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.8;
  min-height: 300px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 15px;
  animation: typeOut 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes typeOut {
  to {
    opacity: 1;
  }
}

.terminal-input {
  color: #f3f4f6;
}

.terminal-input::before {
  content: '$ ';
  color: var(--success);
  margin-right: 5px;
}

.terminal-output {
  color: #fbbf24;
  font-style: italic;
}

.about-story {
  margin-top: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(243, 244, 246, 0.8));
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.about-story p {
  margin: 0 0 10px;
  font-size: 1.01rem;
  color: var(--grey-700);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-profile-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.about-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-card-title {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.about-subtitle {
  margin: 14px 0 8px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.about-list li {
  margin-bottom: 8px;
}

.about-card p {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .terminal {
    font-size: 0.85rem;
    padding: 20px;
    min-height: 250px;
  }

  .about-story {
    padding: 16px;
  }

  .about-story p {
    font-size: 0.95rem;
  }

  .about-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Experience Section */
.experience-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 60px 30px !important;
}

.experience-timeline {
  --timeline-left: 8px;
  --timeline-dot-total: 16px;
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: var(--timeline-left);
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.experience-item {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.experience-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: calc((var(--timeline-left) - 28px) - (var(--timeline-dot-total) / 2));
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.25);
}

.experience-role {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.experience-org-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.experience-org {
  color: var(--grey-800);
  font-weight: 600;
  font-size: 0.95rem;
}

.experience-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.experience-meta-row {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.experience-dates {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.stevens-role-count-highlight {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 12px rgb(22 42 71 / 22%);
  animation: stevensRolePulse 1.9s ease-in-out infinite;
}

.stevens-role-count-note {
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

@keyframes stevensRolePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgb(22 42 71 / 22%);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgb(15 118 110 / 28%);
  }
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tech-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
}

.experience-points {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--text-secondary);
}

.experience-points li {
  margin-bottom: 9px;
}

.experience-brief {
  margin-top: 12px;
  color: var(--grey-700);
  font-size: 0.95rem;
}

.experience-toggle {
  margin-top: 12px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: var(--grey-100);
  color: var(--primary-dark);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.experience-toggle:hover {
  background: rgba(31, 58, 95, 0.12);
  border-color: rgba(31, 58, 95, 0.4);
}

.experience-item.is-open .experience-toggle {
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent-dark);
}

.experience-item-stevens {
  border-left: 4px solid rgba(15, 118, 110, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.88));
}

.stevens-preview-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stevens-preview-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(31, 58, 95, 0.1);
  border: 1px solid rgba(31, 58, 95, 0.2);
}

.stevens-role-list {
  display: grid;
  gap: 14px;
}

.stevens-role-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  padding: 14px;
}

.stevens-role-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.stevens-role-title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--primary-dark);
}

.stevens-role-dates {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.stevens-role-toggle {
  margin-top: 8px;
  border: 1px solid rgba(31, 58, 95, 0.28);
  border-radius: 8px;
  background: rgba(31, 58, 95, 0.08);
  color: var(--primary-dark);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stevens-role-toggle:hover {
  background: rgba(31, 58, 95, 0.15);
  border-color: rgba(31, 58, 95, 0.4);
}

.stevens-role-item.is-open .stevens-role-toggle {
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent-dark);
}

.stevens-role-detail {
  margin-top: 8px;
}

.stevens-role-brief {
  margin-top: 8px;
  color: var(--grey-700);
  font-size: 0.9rem;
}

.experience-expanded {
  margin-top: 12px;
  border-top: 1px dashed var(--grey-300);
  padding-top: 12px;
}

@media (max-width: 768px) {
  .experience-section {
    padding: 44px 20px !important;
  }

  .experience-timeline {
    --timeline-left: 4px;
    --timeline-dot-total: 14px;
    padding-left: 20px;
  }

  .experience-item::before {
    width: 10px;
    height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stevens-role-count-highlight {
    animation: none;
  }
}

/* Education Section */
.education-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 60px 30px !important;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.education-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  border-left: 4px solid var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.5s ease both;
}

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

.education-school {
  color: var(--primary-dark);
  font-size: 1.08rem;
  margin: 0;
}

.education-degree {
  margin-top: 8px;
  color: var(--grey-800);
  font-weight: 600;
}

.education-meta {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.education-stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.education-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
}

.education-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .education-section {
    padding: 44px 20px !important;
  }

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

/* Projects Section */
.projects-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 60px 30px !important;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.project-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.skill-badge {
  display: inline-block;
  background: var(--grey-100);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.project-link {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  color: var(--primary);
}

.project-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Contact Section */
.contact-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 60px 30px !important;
}

.contact-subtitle {
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 12px;
}

.contact-link:hover {
  color: var(--primary);
  background: rgba(31, 58, 95, 0.1);
  transform: translateY(-5px);
}

.icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-link span:last-child {
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .contact-methods {
    gap: 20px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer p {
  font-size: 0.9rem;
}

.visitor-counter {
  margin-top: 8px;
  font-size: 0.66rem !important;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  opacity: 0.38;
  color: var(--grey-600);
  user-select: none;
}

.quick-contact {
  position: fixed;
  right: 14px;
  bottom: 26px;
  z-index: 140;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.quick-contact-toggle {
  border: 1px solid rgba(31, 58, 95, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.95));
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 12px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-contact-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quick-contact-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(31, 58, 95, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.quick-contact.is-open .quick-contact-links {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.quick-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  padding: 7px 9px;
  transition: all 0.2s ease;
}

.quick-contact-link:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .quick-contact {
    right: 10px;
    bottom: 14px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .quick-contact-toggle {
    font-size: 0.74rem;
    padding: 8px 11px;
  }

  .quick-contact-links {
    flex-direction: column;
    border-radius: 12px;
    padding: 8px;
    transform: translateY(8px);
  }

  .quick-contact.is-open .quick-contact-links {
    transform: translateY(0);
  }
}

/* Scroll Link Behavior */
.scroll-link {
  cursor: pointer;
}

/* Utilities */
a {
  color: var(--primary);
  transition: color 0.3s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-pop {
    opacity: 1 !important;
    transform: none !important;
  }
}
