/* =============================================================
   Alina Stepanov — Portfolio Styles
   Design: Apple / Premium Dark  •  Glass Morphism  •  Gradient Accents
   ============================================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:          #080b11;
  --bg-2:        #0d1117;
  --bg-3:        #111827;
  --surface:     rgba(255,255,255,0.03);
  --surface-2:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.12);

  --green:       #3fb950;
  --green-dim:   rgba(63,185,80,0.15);
  --blue:        #58a6ff;
  --blue-dim:    rgba(88,166,255,0.15);
  --violet:      #a78bfa;
  --violet-dim:  rgba(167,139,250,0.15);
  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34,211,238,0.15);
  --amber:       #fbbf24;
  --amber-dim:   rgba(251,191,36,0.15);
  --pink:        #f472b6;
  --pink-dim:    rgba(244,114,182,0.15);

  --text-1:  #f0f6fc;
  --text-2:  #b8c4d0;
  --text-3:  #8b99a8;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --nav-h: 64px;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== BACKGROUND ORBS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, #3fb950 0%, transparent 70%);
  animation-duration: 22s;
}
.orb-2 {
  width: 600px; height: 600px;
  top: 30%; right: -150px;
  background: radial-gradient(circle, #58a6ff 0%, transparent 70%);
  animation-duration: 18s;
  animation-delay: -6s;
}
.orb-3 {
  width: 500px; height: 500px;
  bottom: 5%; left: 30%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -12s;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(8,11,17,0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.nav-logo .logo-dot { color: var(--green); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-1); background: var(--surface-2); }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
#hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== SECTION WRAPPER ===== */
.section-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 100px 0; }

/* Section Header */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 50%, var(--violet) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--text-2);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}
.cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--green), #2ea043);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(63,185,80,0.25);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(63,185,80,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.24);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 2.5rem;
}
.metric-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero right panel */
.hero-panel {
  width: 320px;
  flex-shrink: 0;
}
.hero-panel-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.panel-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(63,185,80,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stack-row:last-child { border-bottom: none; }
.stack-name {
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.stack-badge {
  font-size: 0.6875rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(63,185,80,0.3);  }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(88,166,255,0.3); }
.badge-violet { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(167,139,250,0.3); }
.badge-cyan   { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(34,211,238,0.3); }
.badge-amber  { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(251,191,36,0.3); }

/* ===== ABOUT SECTION ===== */
#about { background: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 3rem;
  align-items: start;
}

.about-text-block p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-text-block p:last-child { margin-bottom: 0; }

.about-highlight {
  color: var(--text-1) !important;
  font-weight: 500;
}

.about-side { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  padding: 1.25rem 1.5rem;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.info-card p {
  font-size: 0.9375rem;
  color: var(--text-1);
}
.info-card a { color: var(--blue); }
.info-card a:hover { text-decoration: underline; }

.availability-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.status-dot-anim {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.status-dot-anim::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--green);
  border-radius: 50%;
  animation: ripple 1.8s ease-out infinite;
  opacity: 0;
}
@keyframes ripple {
  0%   { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0;   transform: scale(2); }
}
.avail-text strong { color: var(--green); display: block; font-size: 0.9375rem; }
.avail-text span   { color: var(--text-3); font-size: 0.8125rem; }

/* ===== EXPERIENCE SECTION ===== */
#experience { background: transparent; }

.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 180px 32px 1fr;
  gap: 0 1rem;
  align-items: start;
}

.tl-left {
  padding-top: 1.75rem;
  text-align: right;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.3rem;
}
.tl-company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
}

.tl-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tl-dot {
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(63,185,80,0.25);
  flex-shrink: 0;
  margin-top: 1.875rem;
  z-index: 1;
}
.tl-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(63,185,80,0.3), rgba(63,185,80,0.05));
  min-height: 2rem;
}
.tl-item:last-child .tl-line { display: none; }

.tl-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.tl-role {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}
.tl-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tl-meta span {
  background: var(--surface-2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.tl-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tl-achievements li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}
.tl-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  top: 0.05em;
}
.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* ===== SKILLS SECTION ===== */
#skills { background: transparent; }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Skill Globe */
.globe-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.globe-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
}
#skill-globe {
  width: 380px;
  height: 380px;
  cursor: grab;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(63,185,80,0.06) 0%,
    rgba(88,166,255,0.04) 40%,
    transparent 70%
  );
  box-shadow: 0 0 80px rgba(63,185,80,0.08);
}
#skill-globe:active { cursor: grabbing; }

/* Skill Groups */
.skill-groups { display: flex; flex-direction: column; gap: 1.5rem; }

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.65rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sk {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.sk:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

.sk.cloud  { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(88,166,255,0.25);  }
.sk.orch   { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(34,211,238,0.25);  }
.sk.iac    { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(167,139,250,0.25); }
.sk.cicd   { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(63,185,80,0.25);   }
.sk.mon    { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(251,191,36,0.25);  }
.sk.sec    { background: var(--pink-dim);   color: var(--pink);   border: 1px solid rgba(244,114,182,0.25); }
.sk.lang   { background: var(--surface-2);  color: var(--text-2); border: 1px solid var(--border-2);        }

/* ===== PROJECTS SECTION ===== */
#projects { background: transparent; }

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

.project-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-4px); }

.pc-glow {
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}
.project-card:hover .pc-glow { opacity: 0.2; }
.glow-violet { background: var(--violet); }
.glow-cyan   { background: var(--cyan);   }
.glow-amber  { background: var(--amber);  }
.glow-green  { background: var(--green);  }

.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.icon-violet { background: var(--violet-dim); border: 1px solid rgba(167,139,250,0.2); }
.icon-cyan   { background: var(--cyan-dim);   border: 1px solid rgba(34,211,238,0.2);  }
.icon-amber  { background: var(--amber-dim);  border: 1px solid rgba(251,191,36,0.2);  }
.icon-green  { background: var(--green-dim);  border: 1px solid rgba(63,185,80,0.2);   }

.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.pc-link:hover { color: var(--text-1); border-color: var(--border-2); }

.pc-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}
.pc-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pc-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pc-metric {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-weight: 600;
}
.m-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(63,185,80,0.25);   }
.m-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(88,166,255,0.25);  }
.m-violet { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(167,139,250,0.25); }
.m-cyan   { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(34,211,238,0.25);  }
.m-amber  { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(251,191,36,0.25);  }

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pc-tag {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* Arch flow inside project cards */
.arch-flow {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.875rem 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.arch-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.arch-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.arch-arrow {
  color: var(--text-3);
  font-size: 0.75rem;
  padding: 0 0.1rem;
  align-self: flex-start;
  margin-top: 11px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== CERTIFICATIONS SECTION ===== */
#certifications { background: transparent; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cert-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.cert-card:hover { transform: translateY(-4px); }

.cert-badge {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.cert-provider {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.cert-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.cert-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.status-active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.25);
}
.status-progress {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.25);
}

/* ===== CONTACT SECTION ===== */
#contact { background: transparent; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-1);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}
.contact-item-val {
  font-size: 0.9rem;
  color: var(--text-1);
}
.contact-item-val a { color: var(--blue); }
.contact-item-val a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form-wrap { padding: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-1);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(63,185,80,0.5);
  box-shadow: 0 0 0 3px rgba(63,185,80,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.btn-submit {
  width: 100%;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--green), #2ea043);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(63,185,80,0.25);
}
.btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(63,185,80,0.35);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success,
.form-error {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-success[hidden],
.form-error[hidden] { display: none; }
.form-success { background: var(--green-dim);  border: 1px solid rgba(63,185,80,0.3);  color: var(--green);  }
.form-error   { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.3); color: #f85149;       }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-1);
}
.footer-logo .logo-dot { color: var(--green); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-1); }

/* ===== SCROLL REVEAL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  #skill-globe { width: 300px; height: 300px; }
  .globe-container { align-items: center; }
  .tl-item { grid-template-columns: 100px 28px 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  section { padding: 72px 0; }
  .section-wrapper { padding: 0 1.25rem; }

  #navbar { padding: 0 1.25rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(8,11,17,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  #hamburger { display: flex; }

  .hero-metrics { gap: 1.5rem; flex-wrap: wrap; }
  .metric-val   { font-size: 1.5rem; }

  .tl-item { grid-template-columns: 1fr; }
  .tl-left { text-align: left; padding-top: 0; padding-bottom: 0.25rem; }
  .tl-connector { display: none; }

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

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ===== PIPELINE FEATURED CARD ===== */
.pc-featured {
  border-color: rgba(34,211,238,0.18);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.08), inset 0 0 60px rgba(34,211,238,0.03);
}
.pc-link-pipeline {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.3) !important;
  color: var(--cyan) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}
.pc-link-pipeline:hover {
  background: rgba(34,211,238,0.18) !important;
  box-shadow: 0 0 16px rgba(34,211,238,0.2);
  transform: translateY(-1px);
  color: var(--cyan) !important;
  border-color: rgba(34,211,238,0.5) !important;
}
.pc-demo-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ===== PIPELINE MODAL ===== */
.pipeline-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pipeline-modal.open {
  display: flex;
  animation: modal-fade-in 0.2s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pipeline-modal-inner {
  width: 100%;
  max-width: 1360px;
  height: 90vh;
  background: #0d1117;
  border: 1px solid rgba(48, 54, 61, 0.9);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  animation: modal-slide-in 0.22s cubic-bezier(0.34, 1.26, 0.64, 1);
}
@keyframes modal-slide-in {
  from { transform: scale(0.96) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.pipeline-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  flex-shrink: 0;
}
.pipeline-modal-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #8b949e;
  font-family: 'Inter', -apple-system, sans-serif;
}
.pipeline-modal-open-tab {
  font-size: 11px;
  color: #58a6ff;
  text-decoration: none;
  font-family: 'Inter', -apple-system, sans-serif;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.pipeline-modal-open-tab:hover { opacity: 1; text-decoration: underline; }
.pipeline-modal-close {
  position: absolute;
  top: 9px;
  right: 12px;
  z-index: 10;
  background: rgba(33, 38, 45, 0.95);
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #8b949e;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.pipeline-modal-close:hover {
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.4);
  color: #f85149;
}
.pipeline-modal iframe {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}
@media (max-width: 640px) {
  .pipeline-modal { padding: 0; }
  .pipeline-modal-inner { height: 100vh; border-radius: 0; border: none; }
}

