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

:root {
  --bg-deep: #08080a;
  --bg-card: rgba(18, 18, 20, 0.65);
  --bg-card-hover: rgba(26, 26, 30, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);

  /* White, Black, and Readable Neutral Grays */
  --text-main: #ffffff;
  --text-secondary: #d4d4d8;  /* Lightened for readability over video background */
  --text-muted: #a1a1aa;      /* Lightened from #71717a */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px; /* 100% — standard browser default */
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Hardware-Accelerated Monochrome Canvas Background
   ========================================================================== */
#scroll-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 0;
  /* Strip all red/color tones into pure architectural black & white */
  filter: grayscale(100%) contrast(110%);
}

.canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: rgba(8, 8, 10, 0.35);
}

.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

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

/* ==========================================================================
   Minimalist Navigation Bar (Reference Header Aesthetic)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-cta-link:hover {
  border-color: #ffffff;
  opacity: 0.85;
}

.arrow-diag {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.nav-cta-link:hover .arrow-diag,
.btn-clean:hover .arrow-diag,
.btn-solid:hover .arrow-diag,
.btn-outline:hover .arrow-diag {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   SECTION 1: HERO (Modeled After Reference Aesthetic)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 48px 56px 80px;
}

/* Side Rail Editorial Indicators */
.side-rail-top {
  position: absolute;
  top: 140px;
  left: 32px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.side-rail-bottom {
  position: absolute;
  bottom: 60px;
  left: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

/* Minimal Top Stats (Reference: +200 / +50) */
.hero-stats-row {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Main Display (Reference: 'Hello' + intro) */
.hero-main-title {
  margin-bottom: 44px;
  max-width: 680px;
}

.hero-hello {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 4 Capability Columns (Minimalist) */
.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.pillar-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Scroll hint (Reference: Scroll down ↓) */
.scroll-down-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.arrow-down {
  animation: bounceDown 1.8s ease infinite;
}

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

/* ==========================================================================
   SECTION 2: CONVEYOR BELT (Infinite Marquee for Experience & Core Stack)
   ========================================================================== */
.conveyor-section {
  padding: 32px 0;
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.conveyor-header {
  max-width: 1080px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

.conveyor-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeLeft 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f4f4f5;
  transition: all 0.2s ease;
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}

.marquee-logo {
  height: 20px;
  width: auto;
  max-width: 28px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.marquee-item:hover .marquee-logo {
  filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   Typography & Shared Section Styles
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Minimalist Button Utilities */
.btn-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease;
}

.btn-clean:hover {
  border-color: #ffffff;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn-solid:hover {
  background: #f4f4f5;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

/* ==========================================================================
   SECTION 3: ABOUT
   ========================================================================== */
.about-section {
  padding: 72px 0;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.about-left .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-main);
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
  flex-wrap: wrap;
}

.about-subprompt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 4: EXPERIENCE
   ========================================================================== */
.experience-section {
  padding: 64px 0;
  background: transparent;
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.experience-card {
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

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

.card-header-group {
  margin-bottom: 14px;
}

.role-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.company-title {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.achievement-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.achievement-list strong {
  color: #ffffff;
  font-weight: 600;
}

.achievement-list code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #ffffff;
}

/* ==========================================================================
   SECTION 5: PROJECTS
   ========================================================================== */
.projects-section {
  padding: 64px 0;
  background: transparent;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-subtle);
}

.project-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.55;
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

.tech-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.tech-stack-chips span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #f4f4f5;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   SECTION 6: TECHNICAL SKILLS
   ========================================================================== */
.skills-section {
  padding: 64px 0;
  background: transparent;
}

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

.skill-box {
  padding: 22px;
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.skill-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pills span {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.skill-pills span:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* ==========================================================================
   SECTION 7: CREDENTIALS & EDUCATION
   ========================================================================== */
.credentials-section {
  padding: 64px 0;
  background: transparent;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.education-block, .certs-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credential-card {
  padding: 22px;
}

.cred-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.cred-degree {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.cred-institution {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cred-highlight {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.honors-tag-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.honor-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #f4f4f5;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.certs-list-glass {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.cert-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cert-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cert-badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  margin-top: 2px;
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-info strong {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
}

.cert-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 8: CONTACT & FOOTER
   ========================================================================== */
.footer-section {
  padding: 64px 0 32px;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
}

.footer-cta-card {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 48px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 28px;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Minimal Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #08080a;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .skills-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 100px 20px 40px;
  }

  .side-rail-top, .side-rail-bottom {
    display: none;
  }

  .hero-stats-row {
    gap: 24px;
  }

  .hero-pillars-grid {
    grid-template-columns: 1fr;
  }

  .skills-matrix-grid {
    grid-template-columns: 1fr;
  }

  .cert-item {
    grid-template-columns: 95px 1fr;
    gap: 10px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}
