/* ==========================================================================
   Sreya Sathyan — DevOps & Cloud Portfolio Stylesheet
   Pure CSS3 (Zero external frameworks or font dependencies)
   ========================================================================== */

:root {
  /* Core Dark Palette */
  --bg-primary: #070b14;
  --bg-secondary: #0c1222;
  --surface-glass: rgba(15, 23, 42, 0.68);
  --surface-glass-hover: rgba(20, 30, 54, 0.85);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(56, 189, 248, 0.4);

  /* Typography */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Blue / Purple / Cyan Accents */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --gradient-main: linear-gradient(135deg, #38bdf8 0%, #3b82f6 48%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));

  /* Status Colors */
  --learned-bg: rgba(34, 211, 238, 0.12);
  --learned-text: #22d3ee;
  --learned-border: rgba(34, 211, 238, 0.35);

  --learning-bg: rgba(168, 85, 247, 0.14);
  --learning-text: #c084fc;
  --learning-border: rgba(168, 85, 247, 0.38);

  --placeholder-bg: rgba(148, 163, 184, 0.1);
  --placeholder-text: #cbd5e1;
  --placeholder-border: rgba(148, 163, 184, 0.3);

  /* Fonts */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;

  /* Layout & Timing */
  --container-max: 1180px;
  --header-height: 74px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-med: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  background: radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.08), transparent 40%),
              radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.08), transparent 42%),
              var(--bg-primary);
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
  transition: width 0.08s linear;
}

/* Animated Ambient Background */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.bg-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.32;
  will-change: transform;
}

.bg-orb--blue {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  animation: orbFloatOne 18s ease-in-out infinite alternate;
}

.bg-orb--purple {
  width: 460px;
  height: 460px;
  top: 32%;
  right: -130px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  animation: orbFloatTwo 22s ease-in-out infinite alternate;
}

.bg-orb--cyan {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: 25%;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: orbFloatOne 20s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloatOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 50px, 0) scale(1.12); }
}

@keyframes orbFloatTwo {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-70px, -45px, 0) scale(1.15); }
}

/* Container & Sections */
.container {
  width: min(100% - 2.25rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: 5.75rem 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-sky);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass Card & Shared Surfaces */
.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
  border-color: var(--border-glow);
  background: var(--surface-glass-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

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

.btn--sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(59, 130, 246, 0.65);
}

.btn--primary:hover {
  box-shadow: 0 14px 30px -6px rgba(56, 189, 248, 0.75);
}

.btn--glass {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
}

.btn--glass:hover {
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.9);
}

.btn--outline {
  background: transparent;
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent-sky);
}

.btn--outline:hover {
  background: rgba(56, 189, 248, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.1);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge--learned {
  background: var(--learned-bg);
  color: var(--learned-text);
  border-color: var(--learned-border);
}

.badge--learning {
  background: var(--learning-bg);
  color: var(--learning-text);
  border-color: var(--learning-border);
}

.badge--placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border-color: var(--placeholder-border);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.chip {
  padding: 0.32rem 0.72rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

/* Card Icon */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.card-icon--blue {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-icon--purple {
  background: rgba(139, 92, 246, 0.16);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.card-icon--cyan {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.32);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast), backdrop-filter var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand__dot {
  color: var(--accent-sky);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.45rem 0.78rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

.nav-link.is-active {
  color: var(--accent-sky);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.nav-toggle__line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 3rem;
}

.hero__content,
.hero__visual,
.orbit-stage,
.terminal-card {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 1.35rem;
}

.status-pill__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero__title {
  font-size: clamp(1.95rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.hero__subtitle {
  font-size: clamp(1.06rem, 1.9vw, 1.32rem);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero__divider {
  color: var(--accent-purple);
}

.typing-wrapper {
  color: var(--accent-sky);
  font-family: var(--font-mono);
  font-size: 0.96em;
}

.typed-cursor {
  display: inline-block;
  color: var(--accent-purple);
  animation: blinkCursor 0.95s step-end infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.hero__description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-item__label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.18rem;
}

/* Orbit Stage & Floating Terminal */
.orbit-stage {
  position: relative;
  padding: 2rem 0.6rem;
}

.terminal-card {
  background: rgba(9, 14, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.85), 0 0 40px -15px rgba(59, 130, 246, 0.3);
  overflow: hidden;
  animation: gentleFloat 6.5s ease-in-out infinite;
}

.terminal-card__bar {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.78rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-dot--red { background: #ef4444; }
.term-dot--amber { background: #f59e0b; }
.term-dot--green { background: #22c55e; }

.terminal-card__title {
  margin-left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.terminal-card__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.6;
}

.term-line {
  color: #e2e8f0;
}

.term-prompt {
  color: #22d3ee;
  margin-right: 0.35rem;
}

.term-output {
  color: #93c5fd;
  margin-bottom: 0.7rem;
}

.term-code {
  margin: 0.45rem 0 0.75rem;
  padding: 0.78rem;
  background: rgba(15, 23, 42, 0.72);
  border-left: 3px solid var(--accent-purple);
  border-radius: 8px;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-status {
  color: #4ade80;
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.float-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.float-badge__dot--cyan { background: #22d3ee; }
.float-badge__dot--purple { background: #c084fc; }
.float-badge__dot--blue { background: #60a5fa; }

.float-badge--1 {
  top: 0;
  right: 12px;
  animation: gentleFloat 5s ease-in-out infinite;
}

.float-badge--2 {
  bottom: 4px;
  left: -8px;
  animation: gentleFloat 5.8s ease-in-out infinite 0.9s;
}

.float-badge--3 {
  bottom: -6px;
  right: 28px;
  animation: gentleFloat 6.2s ease-in-out infinite 1.6s;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Scroll Cue */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 2.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color var(--transition-fast);
}

.scroll-cue:hover {
  color: var(--accent-sky);
}

.scroll-cue__mouse {
  width: 22px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid currentColor;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-cue__wheel {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: currentColor;
  animation: wheelDrop 1.8s infinite;
}

@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   2. About Me Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.about-card,
.experience-card {
  padding: 2rem;
}

.about-card h3,
.experience-card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.75rem;
}

.about-card p + p {
  margin-top: 0.9rem;
}

.about-card p,
.muted-meta {
  color: var(--text-secondary);
}

.muted-meta {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-card .badge {
  margin-bottom: 0.65rem;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-secondary);
}

.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-main);
}

.training-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.training-callout p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   3. Technical Skills Section
   ========================================================================== */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2.2rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.is-active {
  background: var(--gradient-soft);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--learned { background: var(--learned-text); }
.legend-dot--learning { background: var(--learning-text); }

.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.skills-group.is-hidden {
  display: none;
}

.skills-group__header {
  margin-bottom: 1.3rem;
}

.skills-group__header h3 {
  font-size: 1.32rem;
  margin-top: 0.55rem;
  margin-bottom: 0.25rem;
}

.skills-group__header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1.15rem;
}

.skill-card {
  position: relative;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.skill-card:hover::after,
.skill-card:focus-visible::after {
  opacity: 1;
}

.skill-card:hover,
.skill-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 16px 32px -14px rgba(6, 182, 212, 0.28);
}

.skill-card--learning:hover,
.skill-card--learning:focus-visible {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 16px 32px -14px rgba(168, 85, 247, 0.3);
}

.skill-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skill-card__category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-tag--learned {
  background: var(--learned-bg);
  color: var(--learned-text);
}

.status-tag--learning {
  background: var(--learning-bg);
  color: var(--learning-text);
}

.skill-card h4 {
  font-size: 1.12rem;
  margin-bottom: 0.42rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -18px rgba(59, 130, 246, 0.32);
}

.project-card__glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  pointer-events: none;
  transition: transform var(--transition-med);
}

.project-card:hover .project-card__glow {
  transform: scale(1.35);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.05rem;
}

.project-card__index {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.45);
}

.project-card__title {
  font-size: 1.24rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.project-card__desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.project-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  font-size: 0.87rem;
  color: #cbd5e1;
}

.project-card__highlights li {
  padding-left: 1rem;
  position: relative;
}

.project-card__highlights li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-sky);
  font-weight: 700;
}

.project-card__footer {
  margin-top: auto;
  padding-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.section-footnote {
  margin-top: 1.85rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   5. Certifications Section
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.cert-card {
  padding: 2rem;
}

.cert-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.cert-card--active .cert-card__icon {
  background: var(--learning-bg);
  color: var(--learning-text);
  border: 1px solid var(--learning-border);
}

.cert-card--placeholder {
  border-style: dashed;
}

.cert-card--placeholder .cert-card__icon {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border: 1px solid var(--placeholder-border);
}

.cert-card h3 {
  font-size: 1.24rem;
  margin-top: 0.7rem;
  margin-bottom: 0.35rem;
}

.cert-card p:last-child {
  color: var(--text-secondary);
}

/* ==========================================================================
   6. Education Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 820px;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-sky), var(--accent-purple));
}

.timeline-item {
  position: relative;
}

.timeline-item__marker {
  position: absolute;
  left: -2rem;
  top: 1.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-sky);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.timeline-item__card {
  padding: 1.75rem;
}

.timeline-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.timeline-item__head .muted-meta {
  margin-bottom: 0;
}

.timeline-item__card h3 {
  font-size: 1.24rem;
  margin-bottom: 0.25rem;
}

.timeline-item__org {
  color: var(--accent-sky);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.timeline-item__card p:last-child {
  color: var(--text-secondary);
}

/* ==========================================================================
   7. Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.contact-item__info {
  min-width: 0;
  flex: 1;
}

.contact-item__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.inline-placeholder {
  font-style: normal;
  color: var(--accent-purple);
}

.contact-item__value {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

a.contact-item__value:hover {
  color: var(--accent-sky);
}

.copy-btn {
  padding: 0.42rem 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-sky);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(56, 189, 248, 0.22);
}

.contact-form {
  padding: 1.85rem;
}

.contact-form h3 {
  font-size: 1.28rem;
  margin-bottom: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.72);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.25em;
  color: var(--accent-sky);
}

/* ==========================================================================
   Modal & Footer & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 620px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.24s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--accent-sky);
}

.modal-card h3 {
  font-size: 1.42rem;
  margin: 0.75rem 0 0.6rem;
}

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

.modal-section {
  margin-top: 1.3rem;
}

.modal-section h4 {
  font-size: 0.95rem;
  color: var(--accent-sky);
  margin-bottom: 0.55rem;
}

.modal-devops-note {
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.back-to-top {
  color: var(--accent-sky);
  font-weight: 600;
}

.back-to-top:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1600;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--accent-sky);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.toast[hidden] {
  display: none;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.4rem;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 0.72rem 0.9rem;
  }

  .nav-cv-btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.25rem 0;
  }

  .status-pill {
    font-size: 0.78rem;
    padding: 0.38rem 0.78rem;
    max-width: 100%;
  }

  .about-grid,
  .projects-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .float-badge--1 {
    right: 4px;
  }

  .float-badge--2 {
    left: 4px;
  }

  .float-badge--3 {
    right: 4px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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