*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  body::before,
  body::after {
    animation: none !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #0f172a;
  background-color: #f9fafb;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient mesh background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%);
  background-size: 100% 100%;
  animation: gradientShift 15s ease infinite;
  opacity: 1;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Subtle animated dots pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  animation: patternMove 20s linear infinite;
  pointer-events: none;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(to bottom, rgba(249, 250, 251, 0.85), rgba(249, 250, 251, 0.75));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  animation: slideInLeft 0.5s ease-out;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #0f172a;
  transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.logo:hover {
  transform: scale(1.05);
  color: #2563eb;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #475569;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
  position: relative;
}

.nav-link:hover {
  color: #111827;
}

.nav-link.active {
  color: #111827;
  border-bottom-color: #2563eb;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  animation: fadeIn 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 3rem;
  align-items: flex-start;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #64748b;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  color: #0f172a;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.15;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
}

.accent {
  color: #2563eb;
}

.hero-subtitle {
  margin-top: 0.8rem;
  color: #4b5563;
}

.hero-avatar-row {
  margin-bottom: 1rem;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 3px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  object-fit: cover;
  animation: scaleIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
  opacity: 0;
}

.scale-in {
  animation: scaleIn 0.4s ease-out forwards;
  opacity: 0;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn.primary:active {
  transform: translateY(0) scale(0.98);
}

.btn.ghost {
  background-color: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #111827;
}

.btn.ghost:hover {
  background-color: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn.ghost:active {
  transform: translateY(0);
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card {
  background-color: #0f172a;
  color: #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.hero-card:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-card:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.6);
}

.hero-card h2,
.hero-card h3 {
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.hero-card-accent {
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.stack-list li + li {
  margin-top: 0.4rem;
}

.badge-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge-list li {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.22);
  color: #e5e7eb;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
  display: inline-block;
}

.badge-list li:hover {
  transform: scale(1.08);
  background-color: rgba(15, 23, 42, 0.3);
}

.hero-card-accent .badge-list li {
  background-color: rgba(15, 23, 42, 0.35);
}

.small-note {
  font-size: 0.8rem;
  color: #d1d5db;
  margin-top: 0.5rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: rgba(241, 245, 249, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header p {
  color: #4b5563;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out, background-color 0.3s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.5);
  background-color: rgba(255, 255, 255, 0.95);
}

.card p {
  margin: 0;
  color: #4b5563;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-column {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out, background-color 0.3s ease-out;
}

.stack-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(148, 163, 184, 0.5);
  background-color: rgba(255, 255, 255, 0.95);
}

.stack-column p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: radial-gradient(circle at top left, #2563eb, #1e40af);
  color: #e5e7eb;
  border-radius: 1.4rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 24px 50px rgba(30, 64, 175, 0.6);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(30, 64, 175, 0.7);
}

.cta h2 {
  color: #f9fafb;
}

.cta p {
  color: #e5e7eb;
  margin: 0.4rem 0 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-hero {
  padding: 3.5rem 0 2.2rem;
  animation: fadeInUp 0.6s ease-out;
}

.page-hero .lead {
  color: #4b5563;
}

.narrow {
  max-width: 720px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.key-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.key-list li + li {
  margin-top: 0.5rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.badge-group h3 {
  margin-bottom: 0.5rem;
}

.badge-group .badge-list li {
  background-color: #e5edff;
  color: #1e3a8a;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
}

.badge-group .badge-list li:hover {
  transform: scale(1.08);
  background-color: #dbeafe;
}

.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.7);
  margin-left: 0.4rem;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.timeline-item {
  position: relative;
  transition: transform 0.3s ease-out;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.74rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.3);
}

.timeline-meta h2 {
  font-size: 1.1rem;
}

.company {
  font-size: 0.95rem;
  color: #374151;
  margin: 0;
}

.duration {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.15rem 0 0.5rem;
}

.timeline-content ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: #4b5563;
}

.timeline-content li + li {
  margin-top: 0.35rem;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.education-meta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-list li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: background-color 0.3s ease-out;
}

.contact-form:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.form-field input,
.form-field textarea {
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.25rem 0 1.5rem;
  background-color: #f8fafc;
  margin-top: 1.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-link {
  color: #4b5563;
}

.footer-link:hover {
  color: #111827;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding-inline: 1.1rem;
  }

  .nav {
    gap: 0.9rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .education-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    padding: 1.4rem 1.5rem;
  }

  .contact-form {
    padding-inline: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}


