@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0c1220;
  --muted: #434d5b;
  --primary: #16294f;
  --primary-light: #24406f;
  --accent: #1f677f;
  --proficient: #2e8b57;
  --developing: #d98c22;
  --learning: #7a5cb0;
  --border: #e2e5ea;
}

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

html {
  scroll-behavior: smooth;
}

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

p {
  color: var(--muted);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* NAV */

#desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
  padding: 0 3rem;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 30;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
}

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

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: #c7cfdc;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

#hamburger-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  padding: 0 1.5rem;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 30;
}

.hamburger-menu {
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 18px;
  width: 26px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-links {
  position: absolute;
  top: 130%;
  right: 0;
  background: var(--primary-light);
  border-radius: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  list-style: none;
  min-width: 10rem;
}

.menu-links.open {
  max-height: 300px;
}

.menu-links a {
  display: block;
  padding: 0.9rem 1.25rem;
  color: #dbe1ea;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.menu-links a:hover {
  color: #fff;
}

/* HERO / CASE FILE PANEL */

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0.5rem 0 0.5rem;
}

.hero .role {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.case-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(18, 25, 43, 0.06);
  overflow: hidden;
}

.case-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4fd67a;
  box-shadow: 0 0 0 0 rgba(79, 214, 122, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 214, 122, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(79, 214, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 214, 122, 0);
  }
}

.case-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.case-field {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}

.case-field:last-child {
  border-right: none;
}

.case-field .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.35rem;
}

.case-field .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.8rem 1.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-solid {
  background: var(--primary);
  color: #fff;
}

.btn-solid:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* SECTIONS */

section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head .eyebrow {
  margin-bottom: 0.35rem;
}

.section-head h2 {
  font-size: 1.6rem;
}

/* PROFILE */

.profile-text {
  font-size: 1.02rem;
  max-width: 760px;
}

/* SKILLS */

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.skill-item:last-child {
  border-bottom: none;
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-proficient {
  color: var(--proficient);
  background: rgba(46, 139, 87, 0.1);
}

.badge-developing {
  color: var(--developing);
  background: rgba(217, 140, 34, 0.12);
}

.badge-learning {
  color: var(--learning);
  background: rgba(122, 92, 176, 0.12);
}

.badge-key {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.badge-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-key .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* TIMELINE (experience/education) */

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

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-top h3 {
  font-size: 1.05rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline-item ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.timeline-item li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* CERTS / TRAINING */

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

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.cert-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.cert-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}

.cert-card p {
  font-size: 0.85rem;
}

/* TRYHACKME BADGES */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.thm-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--proficient);
}

.thm-profile-link {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.thm-profile-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* SOFT SKILLS */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* PROJECTS PAGE — ticket cards */

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.ticket-status {
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.ticket-body {
  padding: 1.5rem;
}

.ticket-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.stack-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(47, 136, 166, 0.1);
  color: var(--accent);
}

/* CASE STUDIES */

.cs-field {
  margin-bottom: 1.1rem;
}

.cs-field:last-child {
  margin-bottom: 0;
}

.cs-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.cs-field p {
  font-size: 0.92rem;
}

.evidence-placeholder {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
}

.cs-evidence-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  margin-top: 0.25rem;
}

/* CONTACT PAGE */

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-card .icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  background: rgba(47, 136, 166, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card .value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-card .value:hover {
  color: var(--accent);
}

/* FOOTER */

footer {
  background: var(--primary);
  color: #c7cfdc;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

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

footer p {
  color: #9aa6ba;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

footer .nav-links a {
  color: #c7cfdc;
}

footer .nav-links a:hover {
  color: #fff;
}
