@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f5f5f5;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --text-muted: #a3a3a3;
  --border: #e5e5e5;
  --border-subtle: #f0f0f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.06);
  --success: #059669;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  padding: 4px 0;
}

.logo {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  color: var(--text-primary);
}

nav {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 400;
}

nav a {
  position: relative;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-smooth);
}

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

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

nav a.active::after {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 120px;
  padding-top: 20px;
  perspective: 1000px;
  position: relative;
  overflow: visible;
}

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(37, 99, 235, 0.08) 25%,
    rgba(147, 51, 234, 0.05) 50%,
    rgba(37, 99, 235, 0.02) 70%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(1px);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 25% 25%,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 50%
  );
}

.hero-content {
  animation: slideUp 0.8s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.hero-content .hero-tagline {
  transform: translateZ(10px);
}

.hero-content .hero-title {
  transform: translateZ(40px);
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.hero-content .hero-subtitle {
  transform: translateZ(20px);
}

.hero-content .hero-cta {
  transform: translateZ(25px);
}

.hero-content .hero-meta {
  transform: translateZ(15px);
}

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

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-tagline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.hero-tagline-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
  max-width: 14ch;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 48ch;
  line-height: 1.75;
  font-weight: 300;
}

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

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all var(--transition-smooth);
}

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

.btn-primary:hover {
  background: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.hero-meta span {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  padding: 6px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.hero-meta span:hover {
  border-color: var(--border);
}

.hero-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.8s ease-out 0.2s backwards;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  position: relative;
  z-index: 1;
  background-image: linear-gradient(145deg, rgba(37, 99, 235, 0.06), transparent 35%);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-card.tilt-active {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

.hero-card .glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: background;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-card:hover .glare {
  opacity: 0.6;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.glance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.glance-stat {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 82px;
  opacity: 0;
  transform: translateY(8px);
  animation: glanceReveal 0.5s ease-out forwards;
}

.glance-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glance-stat-value {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

.glance-block {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: glanceReveal 0.55s ease-out forwards;
}

.glance-stats .glance-stat:nth-child(1) { animation-delay: 0.22s; }
.glance-stats .glance-stat:nth-child(2) { animation-delay: 0.3s; }
.glance-stats .glance-stat:nth-child(3) { animation-delay: 0.38s; }

.glance-block:nth-of-type(1) { animation-delay: 0.46s; }
.glance-block:nth-of-type(2) { animation-delay: 0.56s; }
.glance-block:nth-of-type(3) { animation-delay: 0.66s; }

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

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stack-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.stack-tag:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

.hero-card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

section {
  margin-bottom: 100px;
}

.section-heading {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  font-weight: 300;
}

.about-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.3fr 1fr;
}

.about-main p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-list {
  font-size: 0.88rem;
}

.about-list ul {
  list-style: none;
  margin-top: 12px;
}

.about-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  font-weight: 300;
}

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

.about-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.experience-list {
  display: grid;
  gap: 20px;
}

.exp-item {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition-smooth);
}

.exp-item:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
}

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

.exp-role {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
}

.exp-company {
  color: var(--text-tertiary);
  font-size: 0.88rem;
  margin-top: 4px;
  font-weight: 300;
}

.exp-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 400;
}

.exp-points {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.exp-points li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  font-weight: 300;
  line-height: 1.6;
}

.exp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.cta-section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 60px;
  text-align: center;
  margin-bottom: 0;
}

.cta-section .section-heading {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  margin-bottom: 32px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

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

@media (max-width: 768px) {
  main {
    padding: 24px 20px 60px;
  }
  
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 60px;
  }
  
  nav {
    width: 100%;
    gap: 20px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  
  .hero-title {
    max-width: 100%;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-card {
    order: 2;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .glance-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .glance-stat {
    min-height: initial;
  }
  
  .cta-section {
    padding: 40px 24px;
  }
  
  .exp-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .exp-meta {
    white-space: normal;
  }
  
  footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main,
  .hero-content,
  .hero-card,
  .glance-stat,
  .glance-block,
  .hero-tagline-dot::after {
    animation: none !important;
  }

  .hero-content,
  .hero-card,
  .btn-primary,
  .btn-secondary,
  .stack-tag {
    transition: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}
