/* =============== VARIABLES & RESET =============== */
:root {
  --bg-color: #000000;
  /* True black background */
  --bg-surface: #0a0a0a;
  /* Deep gray surface */
  --bg-hover: #141414;
  /* Lighter gray hover */
  --border-color: #222222;
  --border-hover: #333333;

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --accent: #ffffff;
  --accent-faint: rgba(255, 255, 255, 0.05);

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

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

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

/* =============== TYPOGRAPHY =============== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* =============== LAYOUT =============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* =============== NAVIGATION =============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* =============== HERO SECTION =============== */
.hero {
  padding: 8rem 0 6rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: left;
    gap: 3rem;
    align-items: flex-start;
  }
}

.hero-image-container {
  flex-shrink: 0;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 5px;
  /* sharp, premium look instead of rounded */
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid var(--border-color);
}

.hero-text {
  flex-grow: 1;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background-color: #e5e5e5;
}

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

.btn-secondary:hover {
  background-color: var(--accent-faint);
  border-color: var(--text-primary);
}

/* =============== STATS SECTION =============== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-box:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .stat-box:nth-child(2) {
    border-right: none;
  }

  .stat-box:nth-child(n+3) {
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 600px) {
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .stat-box:last-child {
    border-bottom: none;
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* =============== EXPERIENCE SECTION =============== */
.exp-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.exp-container {
  display: flex;
  flex-direction: column;
}

.timeline-container {
  position: relative;
  padding-left: 20px;
}

.timeline-line {
  position: absolute;
  left: 32px;
  /* perfectly split the dot */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

@media (max-width: 900px) {
  .timeline-container {
    padding-left: 10px;
  }

  .timeline-line {
    left: 17px;
  }
}

.exp-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: none;
  /* Removed border in favor of timeline */
  position: relative;
  z-index: 2;
}

.exp-row:first-child {
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .exp-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  padding-left: 45px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .exp-meta {
    padding-left: 35px;
  }
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
  left: -8px;
  top: 6px;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

@media (max-width: 900px) {
  .timeline-dot {
    left: 1px;
  }
}

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

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

.exp-content {
  max-width: 800px;
}

.exp-role {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.exp-company {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.exp-desc {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* =============== EXPERTISE & EDUCATION =============== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
}

.skill-category h4 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.edu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-university {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}

.edu-degree {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.edu-award-muted {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-color);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

/* =============== BENTO GRID - EXPERTISE & EDUCATION =============== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bento-item {
  background: rgba(30, 32, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-item h4 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bento-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bento-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.edu-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {

  .bento-grid,
  .edu-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-large,
  .bento-tall,
  .bento-wide {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* =============== FOOTER =============== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  background-color: var(--bg-surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* =============== ANIMATIONS =============== */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 {
  transition-delay: 200ms;
}

.site-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Markdown Body Overrides */
.markdown-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.markdown-body h1 {
  font-size: 2.5rem;
}

.markdown-body h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.markdown-body h3 {
  font-size: 1.5rem;
}

.markdown-body p {
  margin-bottom: 1.5rem;
}

.markdown-body strong {
  color: var(--text-primary);
}

.markdown-body em {
  font-style: italic;
  color: var(--text-muted);
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body code {
  background: var(--bg-surface);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.markdown-body pre {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--text-secondary);
}

.markdown-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-left: 0;
  margin-bottom: 1.5rem;
}