/* ============================================
   MODERN MACOS TAHOE PORTFOLIO
   ============================================ */

:root {
  color-scheme: dark;

  --bg-primary: #081120;
  --bg-secondary: #0d1930;
  --bg-tertiary: #13233f;
  --panel-base: rgba(10, 18, 34, 0.62);
  --panel-strong: rgba(16, 28, 48, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-border-strong: rgba(255, 255, 255, 0.24);
  --surface-shadow: 0 24px 80px rgba(2, 8, 23, 0.42);
  --surface-shadow-soft: 0 10px 30px rgba(2, 8, 23, 0.24);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.28);

  --accent-blue: #7dd3fc;
  --accent-cyan: #67e8f9;
  --accent-indigo: #8b9dff;
  --accent-mint: #6ee7b7;
  --accent-rose: #fb7185;
  --accent-amber: #fbbf24;

  --text-primary: #f8fbff;
  --text-secondary: rgba(229, 238, 255, 0.82);
  --text-tertiary: rgba(203, 216, 237, 0.64);
  --text-muted: rgba(182, 197, 222, 0.48);

  --page-gradient:
    radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.28), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(129, 140, 248, 0.22), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(251, 113, 133, 0.16), transparent 30%),
    linear-gradient(145deg, #081120 0%, #0c1630 40%, #09111f 100%);

  --transition-fast: 180ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 480ms ease;
}

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

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--page-gradient);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background var(--transition-slow), color var(--transition-base);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  opacity: 0.45;
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
}

.ambient-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.42;
}

.ambient-blob-one {
  width: 420px;
  height: 420px;
  top: 5%;
  left: -6%;
  background: rgba(125, 211, 252, 0.28);
}

.ambient-blob-two {
  width: 360px;
  height: 360px;
  top: 12%;
  right: -4%;
  background: rgba(129, 140, 248, 0.22);
}

.ambient-blob-three {
  width: 320px;
  height: 320px;
  bottom: 6%;
  left: 16%;
  background: rgba(251, 113, 133, 0.16);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85) 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 45%, rgba(255, 255, 255, 0.55) 0.7px, transparent 0.8px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.45) 0.7px, transparent 0.8px);
  background-size: 24px 24px;
  z-index: -1;
}

.app-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 18px auto 30px;
  padding: 20px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  position: relative;
  overflow: clip;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-bottom: 24px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 18px;
  border-radius: 24px;
  background: var(--panel-base);
  border: 1px solid var(--panel-border);
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

header.scrolled nav {
  background: var(--panel-strong);
  border-color: var(--panel-border-strong);
}

.logo {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    var(--panel-base);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.logo-icon {
  width: 28px;
  height: 28px;
  filter: saturate(1.1);
  transition: transform var(--transition-base);
}

.logo:hover .logo-icon {
  transform: scale(1.08) rotate(8deg);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.78rem 1rem;
  color: var(--text-tertiary);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

main {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 14px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section > .container {
  padding: 38px clamp(16px, 2vw, 28px);
  border-radius: 24px;
  background: var(--panel-base);
  border: 1px solid var(--panel-border);
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.section-title {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.section-title p {
  font-size: 1.02rem;
  color: var(--text-tertiary);
}

.hero {
  min-height: calc(100vh - 80px);
}

.hero > .container {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  transform: none !important;
}

.hero-main,
.hero-side,
.glass-card {
  min-width: 0;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--panel-base);
  border: 1px solid var(--panel-border);
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--panel-border-strong);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16), var(--surface-highlight);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.9;
}

.window-dot-red { background: #ff5f57; }
.window-dot-yellow { background: #febc2e; }
.window-dot-green { background: #28c840; }

.hero-main {
  padding: clamp(1.5rem, 2vw, 2rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  letter-spacing: -0.055em;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--text-primary), var(--accent-blue) 42%, var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 40rem;
  margin-bottom: 1rem;
}

.hero-description {
  max-width: 42rem;
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.hero-chip strong {
  color: var(--text-primary);
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  transition: box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: var(--panel-border-strong);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(129, 140, 248, 0.22));
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.hero-panel-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-stack {
  display: grid;
  gap: 0.9rem;
}

.hero-stack-item {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stack-label {
  color: var(--text-muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stack-value {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--text-primary);
}

.metric-card span {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.experience-grid,
.projects-grid,
.blog-grid,
.skills-container,
.footer-content {
  display: grid;
  gap: 1.35rem;
}

.experience-grid {
  position: relative;
}

.experience-item {
  position: relative;
  padding-left: 2rem;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: -1.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.8), transparent);
}

.experience-item:last-child::before {
  bottom: 26%;
}

.experience-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.12);
}

.experience-card {
  padding: 1.5rem;
  overflow-wrap: anywhere;
}

.experience-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.experience-title {
  font-size: 1.32rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.experience-company {
  color: var(--accent-blue);
  font-weight: 700;
}

.experience-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.experience-pill {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.experience-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.highlights {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.highlights li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-tertiary);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  overflow-wrap: anywhere;
}

.project-header {
  display: grid;
  gap: 0.8rem;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-status,
.project-year,
.blog-date,
.blog-read-time,
.project-link-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-status {
  color: var(--text-primary);
}

.project-year {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
}

.status-active-development,
.status-active {
  background: rgba(34, 197, 94, 0.14);
  color: #74f3b5;
}

.status-completed {
  background: rgba(96, 165, 250, 0.14);
  color: #9fd0ff;
}

.status-live {
  background: rgba(251, 146, 60, 0.14);
  color: #fdc98a;
}

.status-published {
  background: rgba(168, 85, 247, 0.16);
  color: #d4b0ff;
}

.project-title,
.blog-title {
  font-size: 1.42rem;
  color: var(--text-primary);
}

.project-tagline {
  color: var(--accent-cyan);
  font-weight: 600;
}

.project-description,
.blog-excerpt {
  color: var(--text-secondary);
  flex-grow: 1;
}

.tech-stack,
.blog-tags,
.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-tag,
.blog-tag,
.skill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
}

.project-links a,
.project-link-fallback,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 46px;
  padding: 0.82rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 700;
  margin-top: auto;
  flex-shrink: 0;
}

.project-links a:hover,
.read-more:hover {
  border-color: var(--panel-border-strong);
}

.project-link-fallback {
  color: var(--text-muted);
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-wrap: anywhere;
}

.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.blog-date,
.blog-read-time {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
}

.blog-read-time {
  color: var(--accent-cyan);
}

.skills-container {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-wrap: anywhere;
}

.skill-category-title {
  font-size: 1.08rem;
  color: var(--text-primary);
}

footer {
  margin-top: 28px;
}

.footer-shell {
  padding: 24px;
  border-radius: 28px;
  background: var(--panel-base);
  border: 1px solid var(--panel-border);
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.footer-content {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.footer-section h3 {
  margin-bottom: 0.8rem;
  font-size: 1.04rem;
  color: var(--text-primary);
}

.footer-section p,
.footer-links a {
  color: var(--text-tertiary);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

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

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.8rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

.contact-shell {
  max-width: 760px;
  margin: 0 auto;
}

.contact-container {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-status {
  min-height: 1.25rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-tertiary);
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

.contact-links {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.contact-links p {
  text-align: center;
}

.contact-links .cta-buttons {
  justify-content: center;
}

.contact-meta {
  margin-top: 0.6rem;
  font-size: 0.96rem;
}

.blog-post-article {
  padding: 2rem;
}

.blog-post-article h1,
.blog-post-article h2,
.blog-post-article h3 {
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.blog-post-article p,
.blog-post-article li {
  color: var(--text-secondary);
}

.blog-post-article pre {
  overflow-x: auto;
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-article code {
  font-family: Consolas, "Courier New", monospace;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0;
  z-index: 100;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-indigo));
  box-shadow: 0 0 22px rgba(125, 211, 252, 0.42);
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: grid;
  gap: 1rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  width: min(92vw, 370px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel-strong);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.34);
  transform: translateX(28px) scale(0.98);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base), border-color var(--transition-base);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-glow {
  position: absolute;
  inset: -30% auto auto -8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.24;
  pointer-events: none;
}

.toast-content {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.toast-copy {
  min-width: 0;
}

.toast-title {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}

.toast-message {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform-origin: left center;
  animation: toastShrink 4s linear forwards;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info .toast-icon {
  color: var(--accent-blue);
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.32);
}

.toast-success .toast-glow {
  background: rgba(16, 185, 129, 0.42);
}

.toast-success .toast-progress {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(110, 231, 183, 0.9));
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.34);
}

.toast-error .toast-glow {
  background: rgba(239, 68, 68, 0.38);
}

.toast-error .toast-progress {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.96), rgba(251, 113, 133, 0.9));
}

.toast-info {
  border-color: rgba(125, 211, 252, 0.34);
}

.toast-info .toast-glow {
  background: rgba(125, 211, 252, 0.42);
}

.toast-info .toast-progress {
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.96), rgba(125, 211, 252, 0.9));
}

@keyframes toastShrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.fade-in {
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero-content,
  .blog-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-shell {
    width: calc(100% - 16px);
    margin: 8px auto 18px;
    padding: 12px;
    border-radius: 24px;
  }

  header {
    padding-bottom: 14px;
  }

  nav {
    padding: 12px;
    border-radius: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 1rem;
    border-radius: 20px;
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
    box-shadow: var(--surface-shadow-soft);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section {
    padding: 10px;
    border-radius: 22px;
  }

  .section > .container,
  .footer-shell {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-chip-row,
  .cta-buttons,
  .social-links {
    gap: 0.7rem;
  }

  .btn {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .hero-metrics,
  .projects-grid,
  .blog-grid,
  .skills-container,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .experience-item {
    padding-left: 1.4rem;
  }

  .experience-item::after {
    left: -0.08rem;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    width: 100%;
  }
}
