@charset "UTF-8";


/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeSpeed;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  min-height: 100vh;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}


/* Grain / Noise Texture Overlay */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Subtle dot grid on sections for visual depth */
body.scheme-midnight section,
body.scheme-midnight header.top {
  background-image: radial-gradient(circle, rgba(255, 255, 245, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

body.scheme-daylight section,
body.scheme-daylight header.top {
  background-image: radial-gradient(circle, rgba(30, 32, 34, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* bg-alt sections get no dot grid, just a slight tonal shift */
body.scheme-midnight section.bg-alt {
  background-image: none;
}

body.scheme-daylight section.bg-alt {
  background-image: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

button {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

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


/* Global Spacing Layout & Grid Controls */

header.top,
section {
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.boxed {
  width: 100%;
}

@media (max-width: 1100px) {

  header.top,
  section,
  .site-footer {
    width: calc(100% - 40px) !important;
  }
}


/* Header Navigation Layout Rules (Desktop First) */

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  position: relative;
  z-index: 100;
}

.top__left {
  display: flex;
  align-items: center;
}

.top__brand {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.top__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top .links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top__link {
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.top__link:hover {
  opacity: 0.7;
}

.top__cv-btn {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: transform 0.2s ease;
}

.top__cv-btn:hover {
  transform: translateY(-1px);
}

.scheme-btn {
  font-size: 1.25rem;
  padding: 4px;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scheme-btn:hover {
  transform: scale(1.15);
}

.menu-toggle {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Responsive Mobile Header & Dropdown Override */

@media (max-width: 768px) {
  header.top {
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    /* 🚀 CRITICAL: Force the header container ABOVE the grid-overlay (z-index: 2) */
    position: relative !important;
    z-index: 99999 !important; 
  }

  header.top,
  section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .top__right {
    gap: 0;
  }

  /* Keep your toggles accessible and cleanly placed on the far top layer */
  .scheme-btn {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100005 !important;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100005 !important;
  }

  /* Clean up dropdown configurations to explicitly fire user gestures */
  .nav-container {
    display: none !important; /* Hide by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    gap: 30px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* 🎯 Layer it beautifully over sections & layouts */
    z-index: 100000 !important;
    pointer-events: auto !important; /* Forces interactive allowance */
  }

  /* Explicitly handle state overrides cleanly */
  .nav-container.is-active {
    display: flex !important;
    pointer-events: auto !important;
  }

  .top .links,
  .top__actions {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    pointer-events: auto !important; /* Ensure children handle touches smoothly */
  }

  .top__link,
  .top__cv-btn,
  .top__cta {
    pointer-events: auto !important; /* Forces link clickable state inheritance */
  }

  .top__cv-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* 🌓 Dynamic theme-based background modifications */
  body.scheme-midnight .nav-container {
    background-color: #191b1d !important;
    border: 1px solid #3a3b3e;
  }

  body.scheme-daylight .nav-container {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
  }
}


/* Hero Section */

.hero {
  padding-top: 140px;
  padding-bottom: 120px;
  position: relative;
}

/* Blinking cursor after the hero heading */
.hero .overview::after {
  content: "_";
  display: inline-block;
  animation: blink 1.1s step-end infinite;
  margin-left: 4px;
  font-weight: 300;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Hero fade-in on load */
.hero .eyebrow {
  animation: fadeUp 0.6s ease both;
}

.hero .overview {
  animation: fadeUp 0.75s 0.15s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: block;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.8;
}

.overview {
  font-size: 4rem;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 950px;
  word-spacing: -0.05em;
}

@media (max-width: 1024px) {
  .overview {
    font-size: 4rem;
    line-height: 1.0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .overview {
    font-size: 2.75rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }
}


/* About / Bio Layout Elements */


.bio-section {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.bio-image,
.bio-text {
  flex: 1;
  width: 100%;
}

.bio-text {
  font-size: 1.25rem;
  line-height: 1.65;
}

.bio-text p {
  margin-bottom: 20px;
}

.skills-group {
  margin-bottom: 24px;
}

.skills-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.8rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 12px;
}

.bio-links {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  font-size: 1rem;
}

.bio-links ul {
  list-style: none;
}

.bio-links ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.bio-links ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
}

.bio-links a {
  font-weight: 500;
}

@media (max-width: 768px) {
  .bio-section {
    flex-direction: column;
    gap: 40px;
  }
}


/* Responsive Project Display Grids */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px dotted;
  border-bottom: 2px dotted;
}

.proj-row {
  display: contents;
}

.proj-cell {
  padding: 40px;
  border-right: 2px dotted;
  border-bottom: 2px dotted;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.proj-cell:nth-child(2n) {
  border-right: none;
}

.proj-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

/* Coming soon placeholder styling */
.proj-cell--placeholder {
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.proj-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.proj-meta {
  margin-bottom: 16px;
}

.proj-badge {
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proj-desc-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.proj-tag {
  font-size: 0.72rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 10px;
}

.proj-links-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

a.cta-project {
  font-size: 0.85rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

  .proj-cell {
    border-right: none !important;
    border-bottom: 2px dotted !important;
    padding: 30px 0;
  }

  .proj-cell:last-child {
    border-bottom: none !important;
  }
}


/* Experience Layout */

.exp-table {
  width: 100%;
}

.exp-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 2px dotted;
}

.exp-row:last-child {
  border-bottom: none !important;
}

.exp-period {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.exp-city {
  font-size: 0.78rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.exp-badge {
  display: inline-block;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exp-company {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.exp-role-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.exp-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-size: 0.72rem;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 10px;
}

@media (max-width: 768px) {
  .exp-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 0;
  }
}


/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  font-size: 0.9rem;
  border-top: 2px dotted currentColor;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 30px 0;
  }
}


/* Color Schemes Theme Sync Rules */

body.scheme-midnight .proj-badge,
body.scheme-midnight .proj-tag,
body.scheme-midnight .exp-badge,
body.scheme-midnight .exp-tag,
body.scheme-midnight .chip,
body.scheme-midnight .exp-company,
body.scheme-midnight .skills-label,
body.scheme-midnight .proj-meta {
  color: #919297;
  border-color: #3a3b3e;
}

body.scheme-midnight .proj-title,
body.scheme-midnight .exp-role-title,
body.scheme-midnight .section-heading,
body.scheme-midnight .menu-toggle {
  color: #fffff5;
}

body.scheme-midnight .proj-row,
body.scheme-midnight .proj-cell,
body.scheme-midnight .exp-row,
body.scheme-midnight .proj-grid {
  border-color: #3a3b3e;
}

body.scheme-midnight .proj-badge.published {
  color: #c9a84c;
  border-color: #c9a84c;
}

body.scheme-daylight .proj-badge,
body.scheme-daylight .proj-tag,
body.scheme-daylight .exp-badge,
body.scheme-daylight .exp-tag,
body.scheme-daylight .chip,
body.scheme-daylight .exp-company,
body.scheme-daylight .skills-label,
body.scheme-daylight .proj-meta {
  color: #727477;
  border-color: #ccc;
}

body.scheme-daylight .proj-title,
body.scheme-daylight .exp-role-title,
body.scheme-daylight .section-heading,
body.scheme-daylight .menu-toggle {
  color: #1e2022;
}

body.scheme-daylight .proj-row,
body.scheme-daylight .proj-cell,
body.scheme-daylight .exp-row,
body.scheme-daylight .proj-grid {
  border-color: #ccc;
}

body.scheme-daylight .proj-badge.published {
  color: #a07828;
  border-color: #a07828;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* ANIMATIONS & INTERACTIONS */


/* Scroll-reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Experience rows slide in from left */
.exp-row.reveal {
  transform: translateX(-24px);
}

.exp-row.reveal.is-visible {
  transform: translateX(0);
}


/* Cursor glow (desktop hover devices only)                                         */

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.scheme-midnight .cursor-glow {
  background: radial-gradient(circle, rgba(255, 255, 245, 0.055) 0%, transparent 70%);
}

body.scheme-daylight .cursor-glow {
  background: radial-gradient(circle, rgba(30, 32, 34, 0.055) 0%, transparent 70%);
}

@media (hover: hover) {
  .cursor-glow {
    opacity: 1;
  }
}

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


/* Project card — tilt + lift on hover (JS applies --rx --ry)                      */

.proj-cell {
  transition: background 0.2s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.proj-cell:not(.proj-cell--placeholder) {
  cursor: default;
}

body.scheme-midnight .proj-cell:not(.proj-cell--placeholder):hover {
  background: rgba(255, 255, 245, 0.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

body.scheme-daylight .proj-cell:not(.proj-cell--placeholder):hover {
  background: rgba(30, 32, 34, 0.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}


/* CTA button — fill sweep on hover                                                 */

a.cta-project {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

a.cta-project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

body.scheme-midnight a.cta-project::before {
  background: rgba(255, 255, 245, 0.1);
}

body.scheme-daylight a.cta-project::before {
  background: rgba(30, 32, 34, 0.08);
}

a.cta-project:hover::before {
  transform: scaleX(1);
}


/* Skill chips — pop on hover                                                       */

.chip {
  cursor: default;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s ease;
}

.chip:hover {
  transform: translateY(-3px) scale(1.06);
}

body.scheme-midnight .chip:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

body.scheme-daylight .chip:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


/* Section heading — underline draw on scroll-in                                    */

.section-heading {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.section-heading.is-visible::after {
  width: 100%;
}

body.scheme-midnight .section-heading::after {
  background: #F8F8FF;
}

body.scheme-daylight .section-heading::after {
  background: #1e2022;
}


/* Bio links — arrow nudge                                                          */

.bio-links a {
  display: inline-block;
  transition: transform 0.18s ease;
}

.bio-links a:hover {
  transform: translateX(4px);
}


/* Experience tags — scale pop                                                      */

.exp-tag {
  display: inline-block;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exp-tag:hover {
  transform: scale(1.08);
}


/* Background canvas                                                                */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content sits above the canvas */
header.top,
section,
.site-footer,
.cursor-glow {
  position: relative;
  z-index: 1;
}



/* Minimal Mesh Grid Overlay Layer Configuration */

.gradient-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Architectural Tech Grid Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  z-index: 2;
  transition: background-image 0.4s ease;
}

body.scheme-midnight .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

body.scheme-daylight .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* ☀️ Softening Daylight Mode to Premium Slate White */
body.scheme-daylight {
  background-color: #f3f5f8 !important;
  /* Calms down harsh monitor brightness */
}