/* ══════════════════════════════════════════════════════════════
   home.css – Minimalist & Executive Modern Design System
   Refined Obsidian Dark Mode (Default) + Crisp Glass Light Mode
   Generous Whitespace, Razor-Sharp Typography, Subtle Micro-Animations
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Dark Theme (Default) */
  --h-bg: #070b14;
  --h-bg-secondary: #0c1220;
  --h-paper: rgba(14, 22, 38, 0.65);
  --h-paper-solid: #0d1527;
  --h-paper-hover: rgba(19, 30, 52, 0.85);
  --h-ink: #f8fafc;
  --h-ink-secondary: #cbd5e1;
  --h-muted: #8493a8;
  --h-line: rgba(255, 255, 255, 0.07);
  --h-line-hover: rgba(56, 189, 248, 0.3);
  
  /* Refined Tech Accents */
  --h-cyan: #06b6d4;
  --h-cyan-glow: rgba(6, 182, 212, 0.2);
  --h-blue: #38bdf8;
  --h-emerald: #10b981;
  --h-amber: #f59e0b;
  
  --h-radius-sm: 8px;
  --h-radius-md: 14px;
  --h-radius-lg: 18px;
  --h-radius-full: 9999px;

  --h-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --h-shadow-md: 0 12px 36px -10px rgba(0, 0, 0, 0.5);
  --h-shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.65);
  --h-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.18);
  --h-glow-card: 0 18px 40px -10px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.06);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --h-bg: #f8fafc;
  --h-bg-secondary: #f1f5f9;
  --h-paper: rgba(255, 255, 255, 0.85);
  --h-paper-solid: #ffffff;
  --h-paper-hover: #ffffff;
  --h-ink: #0f172a;
  --h-ink-secondary: #334155;
  --h-muted: #64748b;
  --h-line: rgba(15, 23, 42, 0.08);
  --h-line-hover: rgba(2, 132, 199, 0.3);
  
  --h-cyan: #0891b2;
  --h-cyan-glow: rgba(8, 145, 178, 0.12);
  --h-blue: #0284c7;
  --h-emerald: #059669;
  --h-amber: #d97706;

  --h-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --h-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07);
  --h-shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.1);
  --h-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.12);
  --h-glow-card: 0 14px 32px -5px rgba(15, 23, 42, 0.07);
}

/* ── Base Page Setup ── */
body.home-page {
  background-color: var(--h-bg);
  color: var(--h-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Radial Mesh Lighting (Subtle & Elegant) */
body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 40% at 15% 10%, rgba(6, 182, 212, 0.09), transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(129, 140, 248, 0.07), transparent 70%);
}

[data-theme="light"] body.home-page::before {
  background:
    radial-gradient(ellipse 55% 40% at 15% 10%, rgba(56, 189, 248, 0.06), transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(99, 102, 241, 0.04), transparent 70%);
}

/* Subtle Grid Texture */
body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(to right, var(--h-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--h-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  opacity: 0.6;
}

/* ── Floating Navigation & Theme Switcher ── */
.home-page .floating-nav {
  background: var(--h-paper) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--h-line) !important;
  box-shadow: var(--h-shadow-md) !important;
}

.home-page .nav-link {
  color: var(--h-muted) !important;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.2s ease;
}

.home-page .nav-link:hover,
.home-page .nav-link.active {
  color: var(--h-ink) !important;
}

.home-page .nav-indicator {
  background: var(--h-line) !important;
  border-radius: var(--h-radius-full);
}

.home-page .nav-logo {
  color: var(--h-cyan) !important;
  transition: transform 0.2s ease;
}

.home-page .nav-logo:hover {
  transform: scale(1.08);
}

.home-page .nav-resume-btn {
  background: linear-gradient(135deg, var(--h-cyan), var(--h-blue)) !important;
  color: #04101e !important;
  font-weight: 700 !important;
  border-radius: var(--h-radius-full) !important;
  border: none !important;
  box-shadow: 0 4px 14px var(--h-cyan-glow) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.home-page .nav-resume-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px var(--h-cyan-glow) !important;
}

/* Theme Toggle Button */
.theme-toggle,
.home-page .theme-toggle,
.home-page #themeToggle,
.home-page #themeToggleMobile {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--h-line);
  background: var(--h-paper);
  color: var(--h-ink);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  margin-right: 6px;
  padding: 0;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--h-cyan);
  box-shadow: var(--h-glow-cyan);
}

html:not([data-theme="light"]) .theme-icon-dark {
  display: none !important;
}
html:not([data-theme="light"]) .theme-icon-light {
  display: inline-block !important;
  color: #fbbf24;
  font-size: 14px;
}

[data-theme="light"] .theme-icon-light {
  display: none !important;
}
[data-theme="light"] .theme-icon-dark {
  display: inline-block !important;
  color: #0f172a;
  font-size: 14px;
}

/* ── Container ── */
.home-page .home-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Typography & Gradients ── */
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Section (Minimalist & Clean) ── */
.home-page .home-hero {
  min-height: calc(88vh - 100px);
  padding-top: 150px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}

.network-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
  opacity: 0.6;
}

[data-theme="light"] .network-field-canvas {
  opacity: 0.4;
}

.home-page .hero-copy,
.home-page .hero-editorial-aside {
  position: relative;
  z-index: 1;
}

.home-page .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Subtle Live Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--h-radius-full);
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--h-muted);
  box-shadow: var(--h-shadow-sm);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-emerald);
  box-shadow: 0 0 8px var(--h-emerald);
}

/* Hero Heading & Roles */
.home-page .hero-title {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--h-ink);
}

.home-page .hero-role {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--h-cyan);
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-page .hero-sep {
  color: var(--h-muted);
  opacity: 0.45;
  font-weight: 400;
}

/* Crisp, Concise Intro */
.home-page .hero-intro {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--h-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

/* Hero Action Buttons */
.home-page .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--h-radius-full);
  background: linear-gradient(135deg, var(--h-cyan), var(--h-blue));
  color: #04101e !important;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--h-cyan-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--h-radius-full);
  background: var(--h-paper);
  color: var(--h-ink) !important;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--h-line);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-glass-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--h-line-hover);
  background: var(--h-paper-hover);
  color: var(--h-cyan) !important;
}

/* Minimalist Hero Portrait (Clean, Uncluttered Frame) */
.home-page .hero-profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.profile-card-minimal {
  position: relative;
  width: 100%;
  border-radius: var(--h-radius-lg);
  padding: 6px;
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  box-shadow: var(--h-shadow-lg);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-minimal:hover {
  border-color: var(--h-line-hover);
  transform: translateY(-2px);
  box-shadow: var(--h-glow-card);
}

.profile-card-inner {
  position: relative;
  border-radius: calc(var(--h-radius-lg) - 4px);
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: var(--h-bg-secondary);
}

.profile-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.4s ease;
}

.profile-card-minimal:hover .profile-card-inner img {
  transform: scale(1.025);
}

.profile-location-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  color: var(--h-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(12px);
  box-shadow: var(--h-shadow-md);
  z-index: 5;
}

.profile-location-pill i {
  color: var(--h-cyan);
  font-size: 12px;
}

.profile-location-pill strong {
  color: var(--h-cyan);
  font-weight: 600;
}

/* ── Section Headings ── */
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--h-cyan);
  margin-bottom: 8px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--h-cyan);
}

.home-section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--h-ink);
}

.section-lede {
  color: var(--h-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 540px;
  margin: 6px 0 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h-cyan);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  color: var(--h-blue);
  transform: translateX(4px);
}

/* ── Selected Projects (Refined Minimalist Grid: 3 in a line) ── */
.projects-minimal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card-clean {
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--h-shadow-sm);
  backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-card-clean:hover {
  transform: translateY(-3px);
  border-color: var(--h-line-hover);
  box-shadow: var(--h-glow-card);
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-category-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-cyan);
}

.card-award-tag {
  color: var(--h-amber);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-muted);
}

.project-card-clean h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--h-ink);
}

.project-card-clean p {
  color: var(--h-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.card-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.card-tech-pills span {
  padding: 2.5px 8px;
  border-radius: 4px;
  background: var(--h-bg-secondary);
  border: 1px solid var(--h-line);
  color: var(--h-ink-secondary);
  font-size: 11px;
  font-weight: 500;
}

.card-action-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--h-line);
}

.card-link-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h-cyan);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-link-main:hover {
  color: var(--h-blue);
  transform: translateX(3px);
}

.card-link-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--h-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link-sub:hover {
  color: var(--h-ink);
}

/* ── Engineering Approach (Minimal Cards) ── */
.home-capabilities-section {
  padding: 50px 0 65px;
}

.capabilities-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap-card-clean {
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--h-shadow-sm);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.cap-card-clean:hover {
  border-color: var(--h-line-hover);
  transform: translateY(-2px);
}

.cap-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--h-cyan);
  opacity: 0.85;
}

.cap-card-clean h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--h-ink);
}

.cap-card-clean p {
  color: var(--h-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* ── Professional Experience Callout ── */
.home-experience-section {
  padding: 50px 0 65px;
}

.experience-clean-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: center;
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  padding: 32px;
  box-shadow: var(--h-shadow-sm);
  backdrop-filter: blur(14px);
}

.exp-clean-copy h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--h-ink);
}

.exp-clean-copy p {
  color: var(--h-muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.exp-role-panel {
  background: var(--h-bg-secondary);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.role-tag-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h-emerald);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-role-panel h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--h-ink);
}

.exp-role-panel .role-company {
  color: var(--h-cyan);
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
}

.exp-role-panel .role-dates {
  font-size: 11px;
  color: var(--h-muted);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--h-line);
}

/* ── Minimalist Contact Finish ── */
.home-contact-section {
  padding: 50px 0 90px;
}

.contact-deck-clean {
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  box-shadow: var(--h-shadow-md);
  backdrop-filter: blur(16px);
}

.contact-deck-clean h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--h-ink);
}

.contact-deck-clean p {
  color: var(--h-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.contact-clean-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copy-email-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-radius: var(--h-radius-full);
  background: var(--h-bg-secondary);
  border: 1px solid var(--h-line);
  color: var(--h-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-email-btn:hover {
  border-color: var(--h-cyan);
  box-shadow: var(--h-glow-cyan);
  color: var(--h-cyan);
}

.contact-social-row {
  display: flex;
  gap: 8px;
}

.social-pill-clean {
  padding: 6px 14px;
  border-radius: var(--h-radius-full);
  background: var(--h-bg-secondary);
  border: 1px solid var(--h-line);
  color: var(--h-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-pill-clean:hover {
  color: var(--h-ink);
  border-color: var(--h-cyan);
}

/* ── Toast Notice for Clipboard ── */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0d1527;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  padding: 12px 20px;
  border-radius: var(--h-radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--h-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive Adaptations ── */
@media (max-width: 1024px) {
  .home-page .home-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 130px;
  }
  .projects-minimal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .capabilities-clean-grid {
    grid-template-columns: 1fr;
  }
  .experience-clean-card {
    grid-template-columns: 1fr;
  }
  .contact-deck-clean {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .home-page .home-container {
    width: min(100% - 32px, 500px);
  }
  .home-page .hero-title,
  .home-page .hero-copy h1 {
    font-size: 34px;
  }
  .home-page .hero-role {
    font-size: 15px;
  }
  .home-page .home-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-glow-primary,
  .btn-glass-secondary {
    justify-content: center;
  }
  .project-card-clean {
    padding: 22px;
  }
}
