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

:root {
  --bg-charcoal: #0a0a0a;
  --bg-surface: #121824;
  --bg-surface-elevated: #1a2233;
  --bg-card: rgba(18, 24, 36, 0.75);
  --text-primary: #f8f9fa;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent-orange: #e46b0f;
  --accent-orange-glow: rgba(228, 107, 15, 0.35);
  --accent-teal: #08c1b8;
  --accent-teal-glow: rgba(8, 193, 184, 0.35);
  --accent-blue: #38bdf8;
  --border-subtle: rgba(248, 249, 250, 0.08);
  --border-card: rgba(248, 249, 250, 0.12);
  --font-title: 'Rubik', sans-serif;
  --font-body: 'Gotham Book', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --scroll-blur: 0px;
  --scroll-opacity: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg-charcoal);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}

/* Background parallax layer */
#hero-bg-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url('/assets/img/mountain-hero.jpg') center/cover no-repeat;
  filter: blur(var(--scroll-blur));
  transform: scale(1.05);
  z-index: -2;
  will-change: filter;
}

#hero-bg-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  opacity: var(--scroll-opacity);
  z-index: -1;
  pointer-events: none;
  will-change: opacity;
}

/* Sticky Executive Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-teal), #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-teal-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(248, 249, 250, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn-vault {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(8, 193, 184, 0.1);
  border: 1px solid rgba(8, 193, 184, 0.3);
  color: var(--accent-teal);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.nav-btn-vault:hover {
  background: var(--accent-teal);
  color: #000;
  box-shadow: 0 0 16px var(--accent-teal-glow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
}

/* Landing viewport peek layout */
.hero-viewport {
  position: relative;
  box-sizing: border-box;
  height: calc(100vh - 20px);
  height: calc(100svh - 20px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 3rem 4rem;
}

.hero-title-anchor {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: center;
}

.hero-profile-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.portrait-frame {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-teal), rgba(228, 107, 15, 0.8), rgba(255, 255, 255, 0.2));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-teal-glow);
  flex-shrink: 0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-surface);
}

.portrait-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--bg-charcoal);
  box-shadow: 0 0 8px #10b981;
}

.hero-identity-header {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-title-anchor h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.dynamic-role-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: var(--text-muted);
  min-height: 2rem;
}

.dynamic-role-prefix {
  color: var(--text-subtle);
}

.dynamic-role-text {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 2px solid var(--accent-teal);
  transition: opacity 250ms ease;
}

.hero-summary-copy {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
}

.hero-cta-anchor {
  grid-column: 1 / 3;
  grid-row: 3;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  background-color: var(--accent-teal);
  color: #000;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  box-shadow: 0 4px 20px var(--accent-teal-glow);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  background-color: #12dfd5;
  box-shadow: 0 8px 28px rgba(8, 193, 184, 0.55);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: rgba(248, 249, 250, 0.06);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 200ms ease;
}

.cta-secondary:hover {
  background: rgba(248, 249, 250, 0.12);
  border-color: rgba(248, 249, 250, 0.3);
  transform: translateY(-2px);
}

/* Peek Indicator */
.peek-indicator {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  pointer-events: none;
  animation: pulsePeek 2.5s infinite;
}

@keyframes pulsePeek {
  0%, 100% { opacity: 0.5; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 4px); }
}

/* Content streaming over the fixed hero */
.content-stream {
  position: relative;
  z-index: 10;
  background: var(--bg-charcoal);
  border-top: 1px solid rgba(248, 249, 250, 0.1);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.bento-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
}

/* Section Grouping */
.portfolio-section {
  padding-top: 4.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4.5rem;
}

.portfolio-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-header {
  margin-bottom: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-eyebrow.orange {
  color: var(--accent-orange);
}

.section-eyebrow.blue {
  color: var(--accent-blue);
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0.4rem 0 0;
}

/* Bento Grid Structure */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 193, 184, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(8, 193, 184, 0.1);
}

.bento-card.accent-orange-hover:hover {
  border-color: rgba(228, 107, 15, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px var(--accent-orange-glow);
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.bento-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bento-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(248, 249, 250, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.bento-card-badge.teal {
  color: var(--accent-teal);
  background: rgba(8, 193, 184, 0.1);
  border-color: rgba(8, 193, 184, 0.25);
}

.bento-card-badge.orange {
  color: var(--accent-orange);
  background: rgba(228, 107, 15, 0.1);
  border-color: rgba(228, 107, 15, 0.25);
}

.bento-card-badge.blue {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

/* SaaS Status Pill */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.bento-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(248, 249, 250, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.bento-card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.bento-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(10, 10, 10, 0.6);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* Card Column Spans */
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* Resume & Connect Cards */
.resume-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.8), rgba(8, 193, 184, 0.05));
}

.resume-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-download-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--accent-teal);
  color: #000;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-teal-glow);
  transition: all 200ms ease;
}

.btn-download-resume:hover {
  background: #14eae0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 193, 184, 0.5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input, .form-textarea {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 12px var(--accent-teal-glow);
}

.btn-submit-contact {
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-teal), #0284c7);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease;
  align-self: flex-start;
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-teal-glow);
}

/* Vault Card Special Styling */
.bento-card.vault-card {
  background: radial-gradient(circle at 100% 0%, rgba(8, 193, 184, 0.12) 0%, rgba(18, 24, 36, 0.8) 60%);
  border-color: rgba(8, 193, 184, 0.3);
}

.vault-lock-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: rgba(8, 193, 184, 0.15);
  border: 1px solid var(--accent-teal);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 200ms ease;
  width: fit-content;
}

.vault-lock-btn:hover {
  background: var(--accent-teal);
  color: #000;
  box-shadow: 0 4px 18px var(--accent-teal-glow);
}

/* Glass lockscreen overlay */
.gatekeeper-wall {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.gatekeeper-wall.active {
  opacity: 1;
  pointer-events: auto;
}

.gatekeeper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  background: rgba(18, 24, 36, 0.65);
  border: 1px solid rgba(248, 249, 250, 0.15);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  position: relative;
}

.gatekeeper-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

.gatekeeper-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 150ms ease;
}

.gatekeeper-close-btn:hover {
  color: var(--text-primary);
}

.pin-container {
  display: flex;
  gap: 1rem;
}

.pin-digit {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(248, 249, 250, 0.05);
  border: 1px solid rgba(248, 249, 250, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--text-primary);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.pin-digit.active {
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(228, 107, 15, 0.35);
}

.pin-digit.filled::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
}

#gatekeeper-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-charcoal);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-viewport {
    padding: 2.5rem;
  }
  .col-8, .col-7, .col-5, .col-4 {
    grid-column: span 12;
  }
  .col-6 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.25rem 2rem;
    gap: 0.75rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-viewport {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
  }
  .hero-title-anchor {
    margin-top: 1.5rem;
  }
  .hero-profile-row {
    flex-direction: row;
    gap: 1rem;
  }
  .portrait-frame {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }
  .portrait-img {
    border-radius: 15px;
  }
  .hero-cta-anchor {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
  }
  .bento-container {
    padding: 3.5rem 1.25rem 5rem;
  }
  .metric-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .pin-digit {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .gatekeeper-card {
    padding: 2rem 1.5rem;
  }
}
