/* ========== Reset & Base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: #111318;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== Layout container ========== */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* ========== Sections & cards ========== */
.section {
  margin-bottom: 32px;
}

/* Card look used by all sections and hero block */
.card,
.hero-inner {
  position: relative;
  background: radial-gradient(circle at top, #262932 0, #14161c 60%);
  border-radius: 18px;
  padding: 24px 20px;
  color: #f5f5f5;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    opacity 260ms ease;
}


/* Hover: subtle lift + glow with mouse-follow highlight */
@media (hover: hover) {
  .card:hover,
  .hero-inner:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top, #2d3039 0, #151820 65%);
  }

  .card::before,
  .hero-inner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
      circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.06),
      transparent 55%
    );
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    z-index: -1;
  }

  .card:hover::before,
  .hero-inner:hover::before {
    opacity: 1;
  }
}

/* Section headings */
.section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #f7f7f7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========== Hero (name & role) ========== */
.hero.center {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 16px;
}

.hero-inner {
  padding: 32px 20px;
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h2 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #b4b8c5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.location {
  margin-top: 8px;
  color: #8b8f9b;
  font-size: 0.9rem;
}

/* Hero links (Email, Phone, LinkedIn, GitHub) */
.hero-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #f5f5f5;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(32, 35, 43, 0.92), rgba(20, 22, 28, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-links a:hover {
  background: linear-gradient(180deg, rgba(42, 46, 56, 0.95), rgba(24, 27, 34, 0.95));
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}

.hero-links a.blog-btn {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), 0 12px 30px rgba(34, 211, 238, 0.12);
}

.hero-links a.blog-btn:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.32), rgba(59, 130, 246, 0.22));
  border-color: rgba(34, 211, 238, 0.8);
}


/* ========== Experience / Skills / Education / Contact ========== */

.experience-item header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.experience-item h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.meta {
  font-size: 0.78rem;
  color: #8b8f9b;
}

.project-block {
  margin-top: 14px;
}

.project-block h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d1d5e0;
}

.project-block ul {
  margin-left: 18px;
  margin-top: 4px;
}

.project-block li {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #d2d4dc;
}

/* Skills */
.skills-group {
  margin-bottom: 12px;
}

.skills-group h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #d1d5e0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skills-group p {
  font-size: 0.9rem;
  color: #d2d4dc;
}

/* Education */
.edu-item {
  margin-bottom: 10px;
}

.edu-item h3 {
  font-size: 0.95rem;
  color: #d1d5e0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========== Contact ========== */
.contact-section {
  padding: 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 10px;
}

.section-subtitle {
  color: #b9bec9;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 18px;
}

.contact-form-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.contact-form--enhanced {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.52);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8, 10, 16, 0.88);
  color: #f4f7fb;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.32);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.07);
  background: rgba(10, 12, 18, 0.96);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(180deg, rgba(32, 35, 43, 0.96), rgba(20, 22, 28, 0.96));
  color: #f5f5f5;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.submit-btn:hover {
  background: linear-gradient(180deg, rgba(42, 46, 56, 0.98), rgba(24, 27, 34, 0.98));
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-status {
  min-height: 20px;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.68);
}

.contact-status.success {
  color: #79dba6;
}

.contact-status.error {
  color: #ff9a9a;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}




/* ========== Terminal ========== */
.terminal-section h2 {
  margin-bottom: 12px;
}

.terminal-window {
  background: radial-gradient(circle at top, #262932 0, #14161c 60%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: "Fira Code", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem; /* slightly larger text */
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #1b1e26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.terminal-header .red {
  background: #ef4444;
}
.terminal-header .yellow {
  background: #facc15;
}
.terminal-header .green {
  background: #22c55e;
}

.terminal-title {
  margin-left: auto;
  color: #8b8f9b;
  font-size: 0.75rem;
}

.terminal-body {
  background: transparent;
  padding: 12px 14px;
  max-height: 380px; /* increased height */
  overflow-y: auto;
}

.terminal-body .line {
  margin-bottom: 3px;
  color: #e5e7eb;
}

.terminal-body .cmd {
  color: #fbbf24;
}

.terminal-body .output {
  color: #cbd0dd;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #14161c;
}

.prompt {
  color: #22d3ee;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .page {
    padding: 24px 12px 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }

  .section h2 {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
}
/* ========== Responsive ========== */

/* Tablets and small laptops */
@media (max-width: 900px) {
  .page {
    max-width: 100%;
    padding: 32px 14px 48px;
  }

  .hero-inner,
  .card {
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.22em;
  }

  .section h2 {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  .terminal-body {
    max-height: 320px;
  }
}

/* ========== Mobile only hero fixes ========== */
@media (max-width: 640px) {
  .hero.center {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .hero-inner {
    padding: 20px 14px;
    border-radius: 16px;
  }

  /* top skills line */
  .hero-topline {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 8px;
    color: #b8becc;
    letter-spacing: 0.03em;
  }

  .hero h1 {
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    line-height: 1.08;
  }

  .hero h2 {
    margin-top: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .location {
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .hero-links {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-links a {
    width: 100%;
    min-height: 44px;
    padding: 11px 10px;
    justify-content: center;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    border-radius: 12px;
  }

  .hero-links a.blog-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hero-inner {
    padding: 18px 12px;
  }

  .hero-topline {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.65rem;
    letter-spacing: 0.06em;
  }

  .hero h2 {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .location {
    font-size: 0.78rem;
  }

  .hero-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-links a,
  .hero-links a.blog-btn {
    grid-column: auto;
  }
}

/* ========== Blog ========== */
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-heading-row h2 {
  margin-bottom: 6px;
}

.section-heading-row .section-kicker {
  margin-bottom: 0;
}

.blog-count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Base blog card */
.blog-card {
  position: relative;
  background: rgba(8,10,16,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
  border-color: rgba(255,255,255,0.13);
  background: rgba(14,16,24,0.72);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

/* Featured card: same layout as regular cards, clean 2x2 grid */
.blog-card--featured {
  flex-direction: column;
}

.blog-card--featured .blog-card-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-card--featured .blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Non-featured card meta row */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tags */
.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-block;
}

.blog-tag--kubernetes  { background: rgba(34,211,238,0.12);  border-color: rgba(34,211,238,0.22);  color: #67e8f9; }
.blog-tag--observability { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.22); color: #c4b5fd; }
.blog-tag--terraform   { background: rgba(99,102,241,0.12);   border-color: rgba(99,102,241,0.22);   color: #a5b4fc; }
.blog-tag--security    { background: rgba(251,146,60,0.12);   border-color: rgba(251,146,60,0.22);   color: #fdba74; }

.blog-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e8eaf0;
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin: 0;
}

.blog-card > p,
.blog-card-body p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Actions row: Read article + GitHub */
.blog-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 180ms ease, gap 180ms ease;
}

.blog-read-more:hover {
  color: #22d3ee;
  gap: 8px;
}

.blog-github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-github-link:hover {
  color: rgba(255,255,255,0.75);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--featured {
    flex-direction: column;
  }

  .blog-card--featured .blog-card-aside {
    width: auto;
    flex-direction: row;
    align-items: center;
    padding-right: 0;
    border-right: none;
    margin-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
    margin-bottom: 2px;
  }
}

/* ========== Article page ========== */
.article-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 180ms ease;
}

.article-back:hover { color: #22d3ee; }

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #f0f2f8;
  margin: 0 0 16px;
}

.article-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0 0 20px;
}

.article-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0f2f8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.article-github-btn:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* Article prose */
.article-body {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8eaf0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #d4d8e4;
  margin: 26px 0 10px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body pre {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-family: "Fira Code", Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #cbd0dd;
}

.article-body code {
  font-family: "Fira Code", Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 2px 6px;
  color: #67e8f9;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

.article-body blockquote {
  border-left: 3px solid rgba(34,211,238,0.4);
  margin: 0 0 20px;
  padding: 12px 18px;
  background: rgba(34,211,238,0.04);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.article-body strong { color: #e8eaf0; font-weight: 600; }

.article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 180ms ease;
}

.article-footer-back:hover { color: #22d3ee; }
