/* ──────────────────────────────────────────────────────────────
   CLOUD & DEVOPS PORTFOLIO — Minimalist Edition
   Dark / Clean / Editorial · AWS Orange #FF9900
────────────────────────────────────────────────────────────── */

/* ── 1. DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg: #0c0c0e;
  --clr-bg-2: #101012;
  --clr-surface: rgba(255, 255, 255, 0.03);
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-border-2: rgba(255, 255, 255, 0.12);

  --clr-orange: #FF9900;
  --clr-orange-dim: rgba(255, 153, 0, 0.1);

  --clr-text: #e8eaed;
  --clr-text-2: #8a929e;
  --clr-text-3: #555d6a;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-med: 300ms;
}

/* ── 2. RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
}

/* ── 3. UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 520px;
  color: var(--clr-text-2);
  font-size: 1rem;
  font-weight: 300;
}

.accent-text {
  color: var(--clr-orange);
}

/* ── 4. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--duration-med) var(--ease-smooth);
  white-space: nowrap;
}

.btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--clr-orange);
  color: #000;
}

.btn-primary:hover {
  background: #ffa922;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border-2);
}

.btn-ghost:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── 5. NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--duration-med) var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.9rem 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  transition: color var(--duration-fast);
}

.logo-bracket {
  color: var(--clr-text-3);
}

.logo-accent {
  color: var(--clr-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--clr-text-2);
  transition: color var(--duration-fast);
}

.nav-link:hover {
  color: var(--clr-text);
}

.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  background: var(--clr-orange);
  transition: all var(--duration-fast);
}

.nav-cta:hover {
  background: #ffa922;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--duration-med) var(--ease-smooth);
}

/* Mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  background: #111114;
  border-left: 1px solid var(--clr-border);
  z-index: 1002;
  padding: 5rem var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: right var(--duration-med) var(--ease-smooth);
}

.mobile-menu.open {
  right: 0;
}

.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.4rem;
  color: var(--clr-text-2);
  transition: color var(--duration-fast);
}

.mobile-close:hover {
  color: var(--clr-text);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--clr-text-2);
  transition: color var(--duration-fast);
}

.mobile-nav-link:hover {
  color: var(--clr-text);
}

.mobile-cta {
  margin-top: 0.5rem;
  background: var(--clr-orange);
  color: #000 !important;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
}

.mobile-cta:hover {
  background: #ffa922 !important;
}

/* ── 6. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255, 153, 0, 0.04) 0%, transparent 70%),
    var(--clr-bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem var(--space-md) 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  min-width: 0;
}

/* Portrait */
.hero-portrait {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(30px);
  animation: portrait-enter 0.9s var(--ease-smooth) 0.6s forwards;
}

@keyframes portrait-enter {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.portrait-frame {
  position: relative;
  width: 280px;
  height: 280px;
}

.portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 153, 0, 0.25);
  animation: ring-spin 18s linear infinite;
}

.portrait-ring--outer {
  inset: -18px;
  border-color: rgba(255, 153, 0, 0.12);
  animation-direction: reverse;
  animation-duration: 25s;
}

.portrait-ring--inner {
  inset: -6px;
  animation-duration: 12s;
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.portrait-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255, 153, 0, 0.3);
  display: block;
  box-shadow: 0 0 40px rgba(255, 153, 0, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: box-shadow var(--duration-med) var(--ease-smooth);
}

.portrait-img:hover {
  box-shadow: 0 0 60px rgba(255, 153, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.portrait-badge {
  position: absolute;
  bottom: 6px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--clr-orange);
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.portrait-badge svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* Availability pill */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clr-text-3);
  margin-bottom: 2rem;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-orange);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-title .accent-text {
  font-weight: 500;
}

/* ── Title Line Animation ── */
.title-line {
  display: block;
  overflow: hidden;
}

.title-line--1,
.title-line--2,
.title-line--3 {
  opacity: 0;
  transform: translateY(24px);
  animation: title-rise 0.75s var(--ease-smooth) forwards;
}

.title-line--1 {
  animation-delay: 0.1s;
}

.title-line--2 {
  animation-delay: 0.45s;
}

.title-line--3 {
  animation-delay: 0.8s;
}

@keyframes title-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 'Kyle' — orange glow pulse on reveal ── */
.title-name {
  position: relative;
  display: inline-block;
  animation: name-glow 2.5s ease-in-out 0.9s infinite alternate;
}

.title-name::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  color: var(--clr-orange);
  opacity: 1;
  animation: cursor-blink 0.85s step-end 0.1s 7;
}

@keyframes name-glow {
  from {
    text-shadow: 0 0 8px rgba(255, 153, 0, 0.15);
  }

  to {
    text-shadow: 0 0 22px rgba(255, 153, 0, 0.5), 0 0 6px rgba(255, 153, 0, 0.3);
  }
}

@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── 'Cloud & DevOps.' — shimmer sweep ── */
.title-accent-phrase {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg,
      var(--clr-orange) 0%,
      #ffd28a 45%,
      var(--clr-orange) 55%,
      #ff9500 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-sweep 3s linear 1.6s infinite;
}

@keyframes shimmer-sweep {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--clr-text-2);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-tech-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-3);
}

.hero-tech-strip .divider {
  color: var(--clr-border-2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: var(--space-md);
  color: var(--clr-text-3);
  animation: bounce-y 2.5s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll-hint svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes bounce-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ── 7. SKILLS ──────────────────────────────────────────────── */
.skills-section {
  background: var(--clr-bg-2);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento-wide {
  grid-column: span 2;
}

.bento-card {
  background: var(--clr-bg-2);
  padding: 1.75rem;
  transition: background var(--duration-med) var(--ease-smooth);
  position: relative;
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.bento-card:hover {
  background: #131315;
}

.bento-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-orange);
}

.bento-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.bento-icon--purple {
  color: #a855f7;
}

.bento-icon--teal {
  color: #14b8a6;
}

.bento-icon--blue {
  color: #3b82f6;
}

.bento-icon--red {
  color: #ef4444;
}

.bento-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 0.83rem;
  color: var(--clr-text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tech-tags li {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-3);
  white-space: nowrap;
}

/* ── 8. CERTIFICATIONS ──────────────────────────────────────── */
.certs-section {
  background: var(--clr-bg);
}

.certs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.certs-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--duration-med) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.cert-card--featured {
  border-color: rgba(255, 153, 0, 0.2);
  background: linear-gradient(145deg, var(--clr-surface) 0%, rgba(255, 153, 0, 0.03) 100%);
}

.cert-card--featured:hover {
  border-color: rgba(255, 153, 0, 0.4);
}

/* Horizontal Layout Modifier */
.cert-card--horizontal {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 1.5rem;
}

.cert-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  transition: transform var(--duration-med) var(--ease-smooth);
}

.cert-card:hover .cert-content-wrap {
  transform: translateX(4px);
}

.cert-btn {
  margin-top: 1.25rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  opacity: 0.85;
  align-self: flex-start;
}

.cert-btn:hover {
  opacity: 1;
}

/* Glow orbs — removed */
.cert-glow {
  display: none;
}

.cert-shine {
  display: none;
}

.cert-badge-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.cert-card--featured .cert-badge-wrap {
  width: 120px;
  height: 120px;
}

.cert-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform var(--duration-med) var(--ease-smooth);
}

.cert-card:hover .cert-badge-img {
  transform: translateY(-3px);
}

.cert-badge-ring {
  display: none;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 0.4rem;
}

.cert-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--clr-text);
}

.cert-card--featured .cert-name {
  font-size: 1.5rem;
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-3);
  margin-bottom: 0.8rem;
}

.cert-desc {
  font-size: 0.83rem;
  color: var(--clr-text-2);
  line-height: 1.5;
  margin-bottom: 0.875rem;
  font-weight: 300;
  max-width: 450px;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--clr-text-2);
}

.cert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.cert-dot--orange {
  background: var(--clr-orange);
  color: var(--clr-orange);
}

.cert-dot--purple {
  background: #a855f7;
  color: #a855f7;
}

.cert-dot--teal {
  background: #14b8a6;
  color: #14b8a6;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .certs-sub-grid {
    grid-template-columns: 1fr;
  }

  .cert-card--horizontal {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cert-content-wrap {
    align-items: center;
  }

  .cert-card--featured .cert-name {
    font-size: 1.2rem;
  }

  .cert-card:hover .cert-content-wrap {
    transform: none;
  }
}

/* ── 9. PROJECTS ────────────────────────────────────────────── */
.projects-section {
  background: var(--clr-bg-2);
}

/* Flagship */
.project-flagship {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.project-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: 1.75rem;
}

.project-flag svg {
  width: 0.8rem;
  height: 0.8rem;
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.project-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--clr-orange);
  font-family: var(--font-mono);
}

.project-description {
  color: var(--clr-text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--clr-orange);
  width: 1rem;
  height: 1rem;
}

.highlight-item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.highlight-item p {
  font-size: 0.82rem;
  color: var(--clr-text-2);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.project-stack span {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--clr-orange-dim);
  border: 1px solid rgba(255, 153, 0, 0.15);
  color: var(--clr-orange);
}

.project-stack--sm span {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--clr-border);
  color: var(--clr-text-3);
}

.project-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Diagram */
.project-diagram {
  position: sticky;
  top: 5rem;
}

.diagram-container {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.diag-layer {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  position: relative;
}

.diag-internet {
  border-color: rgba(255, 255, 255, 0.1);
}

.diag-web {
  border-color: rgba(255, 153, 0, 0.2);
}

.diag-app {
  border-color: rgba(59, 130, 246, 0.2);
}

.diag-data {
  border-color: rgba(20, 184, 166, 0.2);
}

.diag-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 0.5rem;
}

.diag-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.diag-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--clr-text-3);
}

.diag-icon-box svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--clr-text-2);
}

.diag-standby {
  opacity: 0.5;
}

.diag-connector {
  width: 24px;
  height: 1px;
  background: var(--clr-border);
}

.diag-arrow {
  text-align: center;
  padding: 0.3rem 0;
  color: var(--clr-text-3);
}

.diag-arrow svg {
  width: 0.875rem;
  height: 0.875rem;
}

.diag-iac-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-orange);
  background: var(--clr-orange-dim);
  border: 1px solid rgba(255, 153, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  margin-top: 0.875rem;
}

.diag-iac-badge svg {
  width: 0.7rem;
  height: 0.7rem;
}

/* Secondary cards */
.projects-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--duration-med) var(--ease-smooth);
}

.project-card:hover {
  border-color: var(--clr-border-2);
}

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

.project-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
}

.project-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.project-card-icon--teal {
  color: #14b8a6;
}

.project-card-icon--purple {
  color: #a855f7;
}

.project-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}

.project-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-card p {
  font-size: 0.83rem;
  color: var(--clr-text-2);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* ── 10. ABOUT ──────────────────────────────────────────────── */
.about-section {
  background: var(--clr-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-title {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 500 !important;
}

.about-bio {
  font-size: 0.93rem;
  color: var(--clr-text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 0.75rem;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-orange);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--clr-text-3);
  display: block;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--clr-border);
}

.about-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-card {
  background: var(--clr-bg-2);
  padding: 1.375rem 1.5rem;
  transition: background var(--duration-fast);
  border-bottom: 1px solid var(--clr-border);
}

.about-card:last-child {
  border-bottom: none;
}

.about-card:hover {
  background: #131315;
}

.about-card-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  margin-bottom: 0.625rem;
}

.about-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.about-card-icon--orange {
  color: var(--clr-orange);
}

.about-card-icon--teal {
  color: #14b8a6;
}

.about-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about-card p {
  font-size: 0.82rem;
  color: var(--clr-text-2);
  line-height: 1.6;
  font-weight: 300;
}

/* ── 11. CONTACT ────────────────────────────────────────────── */
.contact-section {
  background: var(--clr-bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-title {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 500 !important;
}

.contact-sub {
  font-size: 0.92rem;
  color: var(--clr-text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast);
  background: var(--clr-surface);
}

.contact-link:hover {
  border-color: var(--clr-border-2);
}

.contact-link svg {
  width: 1rem;
  height: 1rem;
  color: var(--clr-orange);
  flex-shrink: 0;
}

.contact-link-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-link-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-3);
  font-weight: 300;
}

/* Form */
.glass-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-label {
  font-size: 0.8rem;
  color: var(--clr-text-2);
  font-weight: 400;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  color: var(--clr-text);
  font-size: 0.875rem;
  width: 100%;
  transition: border-color var(--duration-fast);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--clr-orange);
}

.form-input::placeholder {
  color: var(--clr-text-3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  cursor: pointer;
}

.form-success {
  font-size: 0.875rem;
  color: #14b8a6;
  text-align: center;
  margin-top: 0.25rem;
}

/* ── 12. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  margin-top: 0.375rem;
  font-weight: 300;
}

.footer-logo {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--clr-text-3);
  transition: color var(--duration-fast);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-3);
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  border-color: var(--clr-border-2);
  color: var(--clr-text-2);
}

.footer-social a svg {
  width: 0.9rem;
  height: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--clr-text-3);
  font-weight: 300;
}

/* ── 13. SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms var(--ease-smooth),
    transform 500ms var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── 14. BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--duration-med) var(--ease-smooth);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
}

.back-to-top svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* ── 15. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .project-split {
    grid-template-columns: 1fr;
  }

  .project-diagram {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait-frame,
  .portrait-img {
    width: 220px;
    height: 220px;
  }
}

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

  .bento-wide {
    grid-column: span 1;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-portrait {
    justify-self: center;
    order: -1;
  }

  .portrait-frame,
  .portrait-img {
    width: 190px;
    height: 190px;
  }

  .portrait-badge {
    right: 0;
    bottom: -2px;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .title-line--1,
  .title-line--2,
  .title-line--3 {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .hero-scroll-hint {
    left: 50%;
    transform: translateX(-50%);
  }

  @keyframes bounce-y {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }

    50% {
      transform: translateX(-50%) translateY(6px);
    }
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    flex-direction: column;
    border: none;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    text-align: left;
    padding: 0;
  }
}