/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO — LIGHT CYAN THEME  (#98FFFF / #C8EFFF)
   ─────────────────────────────────────────────────────────────────────────
   Palette:
     Background A : #98FFFF  (bright aqua — hero, projects, journey, contact)
     Background B : #C8EFFF  (soft sky   — about, api-demo, cert, edu, aspire)
     Card         : #FFFFFF  (pure white with faint shadow)
     Text heading : #0A2B32  (deep teal-black — strong contrast on light bg)
     Text body    : #1A4A52  (dark teal — readable, warm)
     Text muted   : #3D7A85  (mid teal-gray — captions, meta)
     Accent teal  : #007080  (deep teal — links, icons, borders)
     Accent orange: #D9601A  (burnt orange — CTAs, highlights)
     Accent2      : #009BAD  (medium teal — tags, gradient partner)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-a: #98ffff;
  --bg-b: #c8efff;
  --card-bg: #ffffff;
  --card-border: rgba(0, 112, 128, 0.16);
  --shadow: 0 4px 20px rgba(0, 80, 100, 0.09);
  --shadow-hover: 0 16px 40px rgba(0, 80, 100, 0.16);

  --col-teal: #007080;
  /* primary brand teal */
  --col-teal-deep: #004f5c;
  /* darker teal for gradients */
  --col-teal-mid: #009bad;
  /* lighter teal for tags/alt */
  --col-orange: #d9601a;
  /* accent orange */
  --col-orange-lt: #f07438;
  /* lighter orange for hover */

  --text-heading: #0a2b32;
  --text-body: #1a4a52;
  --text-muted: #3d7a85;
  --text-faint: #6aaab5;
  /* placeholder, disabled */

  --transition: all 0.3s ease;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Syne', sans-serif;
  --radius: 12px;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-a);
  color: var(--text-body);
  line-height: 1.7;
  font-family: var(--font-display);
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-b);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 112, 128, 0.35);
  border-radius: 3px;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

/* ── Section title ─────────────────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-heading);
  display: inline-block;
  letter-spacing: -0.5px;
}

.section-title h2 span {
  color: var(--col-teal);
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--col-teal), var(--col-orange), var(--col-teal-mid));
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 16px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--col-teal), var(--col-teal-deep));
  color: #ffffff;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 112, 128, 0.28);
  background: linear-gradient(135deg, var(--col-teal-mid), var(--col-teal));
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(0, 112, 128, 0.45);
  color: var(--col-teal);
}

.btn-outline:hover {
  background: rgba(0, 112, 128, 0.07);
  border-color: var(--col-teal);
  box-shadow: 0 8px 22px rgba(0, 112, 128, 0.12);
}

.btn-accent {
  background: linear-gradient(135deg, var(--col-orange), #b84e14);
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 10px 28px rgba(217, 96, 26, 0.28);
  background: linear-gradient(135deg, var(--col-orange-lt), var(--col-orange));
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(152, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 112, 128, 0.14);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(152, 255, 255, 0.97);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  color: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.navbar-logo span {
  color: var(--col-teal);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.navbar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 5px;
  transition: var(--transition);
}

.navbar-link:hover {
  color: var(--col-teal);
  background: rgba(0, 112, 128, 0.08);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: var(--transition);
  display: block;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 60px);
    background: #a8fafa;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 4px;
    transition: var(--transition);
    border-left: 1px solid rgba(0, 112, 128, 0.14);
  }

  .navbar-menu.show {
    right: 0;
  }

  .navbar-link {
    font-size: 0.93rem;
    padding: 10px 20px;
  }
}

/* ── Social bar ────────────────────────────────────────────────────────── */
.below-navbar-social {
  position: sticky;
  top: 60px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 7px 40px;
  background: rgba(200, 239, 255, 0.94);
  z-index: 999;
  border-bottom: 1px solid rgba(0, 112, 128, 0.1);
}

.below-navbar-social a {
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}

.below-navbar-social a:hover {
  color: var(--col-teal);
  transform: scale(1.2);
}

/* ── Header ────────────────────────────────────────────────────────────── */
header {
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0, 155, 173, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(217, 96, 26, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(0, 112, 128, 0.1) 0%, transparent 50%),
    linear-gradient(160deg, #98ffff 0%, #a8fdfd 45%, #c8efff 100%);
  padding: 130px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 112, 128, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(0, 112, 128, 0.38);
  margin: 0 auto 28px;
  background-color: #c8efff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  color: var(--col-teal);
  box-shadow: 0 0 0 6px rgba(0, 112, 128, 0.08), 0 15px 35px rgba(0, 80, 100, 0.12);
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0a2b32 0%, #007080 55%, #d9601a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-tagline {
  font-size: 1.1rem;
  color: var(--col-teal);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.header-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.header-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── About ─────────────────────────────────────────────────────────────── */
#about {
  background: linear-gradient(160deg, var(--bg-b) 0%, #b8f8f8 100%);
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.about-text {
  flex: 1.4;
}

.about-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-details {
  flex: 1;
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 80, 100, 0.12);
  border: 2px solid rgba(0, 112, 128, 0.2);
  display: block;
  margin: 0 auto 20px;
}

.about-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-body);
  text-align: center;
  line-height: 1.75;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--col-teal);
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  background: rgba(0, 112, 128, 0.09);
  border: 1px solid rgba(0, 112, 128, 0.22);
  color: var(--col-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.badge.purple {
  background: rgba(0, 155, 173, 0.1);
  border-color: rgba(0, 155, 173, 0.28);
  color: #006e7f;
}

.badge.red {
  background: rgba(217, 96, 26, 0.09);
  border-color: rgba(217, 96, 26, 0.25);
  color: var(--col-orange);
}

/* ── Skills ────────────────────────────────────────────────────────────── */
#skills {
  background: linear-gradient(160deg, var(--bg-a) 0%, #a4fefc 100%);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--col-teal), var(--col-orange), var(--col-teal-mid));
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 112, 128, 0.3);
  box-shadow: var(--shadow-hover);
}

.skill-card h3 {
  color: var(--text-heading);
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card h3 .skill-icon {
  font-size: 1.4rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  margin-bottom: 7px;
  padding-left: 16px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-body);
}

.skill-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--col-teal);
  font-size: 0.75rem;
}

/* ── API Demo ──────────────────────────────────────────────────────────── */
#api-demo {
  background: linear-gradient(160deg, var(--bg-b) 0%, #b4f2f2 100%);
}

.api-demo-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.api-demo-intro p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.8;
}

.api-demo-intro .endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 112, 128, 0.07);
  border: 1px solid rgba(0, 112, 128, 0.2);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--col-teal);
  margin: 5px 4px;
}

.endpoint-badge .method {
  font-weight: 700;
  color: #006644;
}

.endpoint-badge .method.post {
  color: #8a6000;
}

.endpoint-badge .method.put {
  color: #005a99;
}

.endpoint-badge .method.delete {
  color: var(--col-orange);
}

.api-demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .api-demo-container {
    grid-template-columns: 1fr;
  }
}

.api-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.api-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 112, 128, 0.05);
  border-bottom: 1px solid rgba(0, 112, 128, 0.1);
}

.api-panel-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #e0524e;
}

.dot-y {
  background: #e0a030;
}

.dot-g {
  background: #30b840;
}

.api-panel-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.api-panel-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--col-teal);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: #f2fcfc;
  border: 1px solid rgba(0, 112, 128, 0.18);
  border-radius: 6px;
  color: var(--text-heading);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(0, 112, 128, 0.45);
  background: rgba(0, 112, 128, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 112, 128, 0.08);
}

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

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #f2fcfc;
  color: var(--text-heading);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.endpoint-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ep-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(0, 112, 128, 0.14);
  transition: var(--transition);
  background: rgba(0, 112, 128, 0.05);
  color: var(--text-muted);
}

.ep-btn:hover {
  background: rgba(0, 112, 128, 0.1);
  color: var(--text-heading);
}

.ep-btn.active {
  border-color: var(--col-teal);
  color: var(--col-teal);
  background: rgba(0, 112, 128, 0.09);
}

.ep-btn .ep-method {
  font-weight: 700;
  margin-right: 5px;
}

.ep-btn .ep-method.get {
  color: #006644;
}

.ep-btn .ep-method.post {
  color: #8a6000;
}

.ep-btn .ep-method.put {
  color: #005a99;
}

.ep-btn .ep-method.delete {
  color: var(--col-orange);
}

.btn-run {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--col-teal), var(--col-teal-deep));
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-run:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 112, 128, 0.28);
  background: linear-gradient(135deg, var(--col-teal-mid), var(--col-teal));
}

.btn-run:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.response-area {
  height: 340px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.response-placeholder {
  color: var(--text-faint);
  text-align: center;
  padding: 60px 20px;
}

.response-placeholder i {
  font-size: 2.5rem;
  color: rgba(0, 112, 128, 0.2);
  margin-bottom: 12px;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status-200 {
  background: rgba(0, 140, 70, 0.1);
  color: #006630;
  border: 1px solid rgba(0, 140, 70, 0.25);
}

.status-201 {
  background: rgba(0, 140, 70, 0.07);
  color: #008840;
  border: 1px solid rgba(0, 140, 70, 0.18);
}

.status-404 {
  background: rgba(217, 96, 26, 0.1);
  color: #a84010;
  border: 1px solid rgba(217, 96, 26, 0.25);
}

.status-422 {
  background: rgba(180, 140, 0, 0.1);
  color: #8a6a00;
  border: 1px solid rgba(180, 140, 0, 0.25);
}

.status-err {
  background: rgba(217, 96, 26, 0.1);
  color: #a84010;
  border: 1px solid rgba(217, 96, 26, 0.25);
}

/* JSON syntax in response panel (light-mode friendly) */
.json-key {
  color: #005a80;
  font-weight: 600;
}

.json-str {
  color: #226620;
}

.json-num {
  color: #8a4400;
}

.json-bool {
  color: #7a0080;
}

.json-null {
  color: var(--text-faint);
}

.json-brace {
  color: var(--text-heading);
}

.response-time {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 12px;
  font-family: var(--font-mono);
}

.loading-dots span {
  animation: blink 1.2s infinite;
  font-size: 1.4rem;
  color: var(--col-teal);
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

.api-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 112, 128, 0.04);
  border-bottom: 1px solid rgba(0, 112, 128, 0.1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.method-pill {
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.72rem;
}

.pill-get {
  background: rgba(0, 102, 68, 0.1);
  color: #006644;
}

.pill-post {
  background: rgba(138, 96, 0, 0.1);
  color: #8a6000;
}

.pill-put {
  background: rgba(0, 90, 153, 0.1);
  color: #005a99;
}

.pill-delete {
  background: rgba(217, 96, 26, 0.1);
  color: var(--col-orange);
}

.api-url {
  color: var(--text-heading);
}

/* ── Projects ──────────────────────────────────────────────────────────── */
#projects {
  background: var(--bg-a);
}

.project-featured {
  background: var(--card-bg);
  border: 1px solid rgba(0, 112, 128, 0.2);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--col-teal), var(--col-teal-mid));
}

.project-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 112, 128, 0.08);
  border: 1px solid rgba(0, 112, 128, 0.22);
  color: var(--col-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}

.project-featured h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.project-featured .role-tag {
  color: var(--col-teal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.project-featured p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}

.project-featured ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
}

.project-featured li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-body);
  font-size: 0.9rem;
}

.project-featured li::before {
  content: '▸';
  position: absolute;
  left: 6px;
  color: var(--col-teal);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-tag {
  background: rgba(0, 155, 173, 0.1);
  border: 1px solid rgba(0, 155, 173, 0.25);
  color: #006070;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 112, 128, 0.28);
  box-shadow: var(--shadow-hover);
}

.project-card h3 {
  color: var(--text-heading);
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.project-card .role-tag {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.project-card ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}

.project-card li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--text-body);
  font-size: 0.85rem;
}

.project-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--col-teal);
  font-size: 0.7rem;
}

.project-card .project-links {
  margin-top: 14px;
}

.project-card a,
.project-featured a.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(0, 112, 128, 0.07);
  border: 1px solid rgba(0, 112, 128, 0.2);
  color: var(--col-teal);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-card a:hover,
.project-featured a.project-link:hover {
  background: rgba(0, 112, 128, 0.13);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 128, 0.12);
}

.project-card a.live-link,
.project-featured a.live-link {
  background: rgba(217, 96, 26, 0.07);
  border-color: rgba(217, 96, 26, 0.22);
  color: var(--col-orange);
}

.project-card a.live-link:hover,
.project-featured a.live-link:hover {
  background: rgba(217, 96, 26, 0.13);
}

/* ── Certificates ──────────────────────────────────────────────────────── */
#certificates {
  background: linear-gradient(160deg, var(--bg-b) 0%, #b0fbfb 100%);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--card-bg);
  padding: 22px 18px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 112, 128, 0.28);
  box-shadow: var(--shadow-hover);
}

.cert-card a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.cert-card:hover a {
  color: var(--col-teal);
}

/* ── Strengths ─────────────────────────────────────────────────────────── */
#strengths {
  background: var(--bg-a);
}

.strengths-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.strength-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.strength-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 112, 128, 0.26);
  box-shadow: var(--shadow-hover);
}

.strength-icon {
  font-size: 2.5rem;
  color: var(--col-teal);
  margin-bottom: 16px;
}

.strength-card h3 {
  color: var(--text-heading);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.strength-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── Education ─────────────────────────────────────────────────────────── */
#education {
  background: var(--bg-b);
}

.education-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--col-teal), var(--col-orange), var(--col-teal-mid));
}

.timeline-item {
  background: var(--card-bg);
  padding: 28px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  position: relative;
  margin-left: 70px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--col-teal);
  left: -44px;
  top: 34px;
  box-shadow: 0 0 0 4px rgba(0, 112, 128, 0.14);
}

.timeline-item h3 {
  color: var(--text-heading);
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-item h4 {
  color: var(--col-teal);
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-item h5 {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.timeline-item p {
  color: var(--text-body);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.projects-list {
  margin-top: 16px;
}

.projects-list p {
  color: var(--col-teal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 10px !important;
  font-weight: 700;
}

.projects-list ul {
  list-style: none;
  padding: 0;
}

.projects-list li {
  color: var(--text-body);
  font-size: 0.85rem;
  padding: 3px 0 3px 16px;
  position: relative;
}

.projects-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--col-teal);
}

/* ── Journey ───────────────────────────────────────────────────────────── */
#journey {
  background: var(--bg-a);
}

.journey-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.journey-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--col-teal), var(--col-orange), var(--col-teal-mid), transparent);
}

.journey-step {
  text-align: center;
  background: var(--card-bg);
  padding: 22px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  width: 200px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.journey-step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 112, 128, 0.28);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--col-teal), var(--col-orange));
}

.journey-step h3 {
  color: var(--text-heading);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.journey-step p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ── Aspirations ───────────────────────────────────────────────────────── */
#aspirations {
  background: var(--bg-b);
}

#aspirations .about-details h3 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 700;
}

#aspirations .about-details ul {
  list-style: none;
  padding: 0;
}

#aspirations .about-details li {
  color: var(--text-body);
  padding: 7px 0 7px 18px;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 112, 128, 0.07);
}

#aspirations .about-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--col-teal);
}

/* ── Contact ───────────────────────────────────────────────────────────── */
#contact {
  background: var(--bg-a);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 112, 128, 0.26);
  box-shadow: var(--shadow-hover);
}

.contact-card i {
  font-size: 2.2rem;
  color: var(--col-teal);
  margin-bottom: 16px;
}

.contact-card h3 {
  color: var(--text-heading);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: #78f2f2;
  color: var(--text-body);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 112, 128, 0.14);
}

.social-links {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  background: rgba(0, 112, 128, 0.08);
  border: 1px solid rgba(0, 112, 128, 0.16);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: rgba(0, 112, 128, 0.15);
  border-color: rgba(0, 112, 128, 0.38);
  color: var(--col-teal);
  transform: translateY(-3px);
}

footer p {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .journey-container {
    flex-direction: column;
    gap: 20px;
  }

  .journey-container::before {
    display: none;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

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

  .timeline-item {
    margin-left: 45px;
  }

  .education-timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: -34px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE  —  applied when <html data-theme="dark">
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bg-a: #0d1b2a;
  --bg-b: #112233;
  --card-bg: #132f3d;
  --card-border: rgba(62, 207, 207, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);

  --col-teal: #3ecfcf;
  --col-teal-deep: #1aafaf;
  --col-teal-mid: #2cc8c8;
  --col-orange: #e8632a;
  --col-orange-lt: #ff7a42;

  --text-heading: #e8f8fa;
  --text-body: #b0d8e0;
  --text-muted: #6aaab8;
  --text-faint: #3d7a88;
}

/* Dark mode background overrides for sections with inline gradients */
[data-theme="dark"] body {
  background-color: var(--bg-a);
}

[data-theme="dark"] header {
  background:
    radial-gradient(ellipse at 15% 60%, rgba(62, 207, 207, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(232, 99, 42, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0d1b2a 0%, #0f2744 50%, #112233 100%);
}

[data-theme="dark"] header::before {
  background-image: radial-gradient(rgba(62, 207, 207, 0.07) 1px, transparent 1px);
}

[data-theme="dark"] #about {
  background: linear-gradient(160deg, #112233 0%, #0f2744 100%);
}

[data-theme="dark"] #skills {
  background: linear-gradient(160deg, #091e27 0%, #0d1b2a 100%);
}

[data-theme="dark"] #api-demo {
  background: linear-gradient(160deg, #0f2744 0%, #112233 100%);
}

[data-theme="dark"] #projects {
  background: #0d1b2a;
}

[data-theme="dark"] #certificates {
  background: linear-gradient(160deg, #112233 0%, #0d1b2a 100%);
}

[data-theme="dark"] #strengths {
  background: #0d1b2a;
}

[data-theme="dark"] #education {
  background: #0e2535;
}

[data-theme="dark"] #journey {
  background: #0d1b2a;
}

[data-theme="dark"] #aspirations {
  background: #0e2535;
}

[data-theme="dark"] #contact {
  background: #0d1b2a;
}

[data-theme="dark"] footer {
  background: #060e18;
  border-top-color: rgba(62, 207, 207, 0.1);
}

/* Dark navbar */
[data-theme="dark"] .navbar {
  background: rgba(10, 18, 35, 0.88);
  border-bottom-color: rgba(62, 207, 207, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(10, 18, 35, 0.98);
}

[data-theme="dark"] .navbar-menu {
  background: #0e1e30;
}

/* Dark social bar */
[data-theme="dark"] .below-navbar-social {
  background: rgba(15, 30, 50, 0.95);
  border-bottom-color: rgba(62, 207, 207, 0.08);
}

/* Dark scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #091524;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(62, 207, 207, 0.3);
}

/* Dark form inputs */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-heading);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
  border-color: rgba(62, 207, 207, 0.45);
  background: rgba(62, 207, 207, 0.04);
  box-shadow: 0 0 0 3px rgba(62, 207, 207, 0.08);
}

[data-theme="dark"] .form-input::placeholder {
  color: var(--text-faint);
}

[data-theme="dark"] .form-select option {
  background: #0e2535;
  color: var(--text-heading);
}

/* Dark API panel */
[data-theme="dark"] .api-panel {
  background: #091e27;
}

[data-theme="dark"] .api-panel-header {
  background: rgba(62, 207, 207, 0.05);
  border-bottom-color: rgba(62, 207, 207, 0.1);
}

/* Dark JSON colors */
[data-theme="dark"] .json-key {
  color: #7dd3fc;
}

[data-theme="dark"] .json-str {
  color: #86efac;
}

[data-theme="dark"] .json-num {
  color: #fcd34d;
}

[data-theme="dark"] .json-bool {
  color: #f9a8d4;
}

[data-theme="dark"] .json-null {
  color: var(--text-faint);
}

[data-theme="dark"] .json-brace {
  color: var(--text-heading);
}

/* Dark status badges */
[data-theme="dark"] .status-200 {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.28);
}

[data-theme="dark"] .status-201 {
  background: rgba(0, 230, 118, 0.08);
  color: #69f0ae;
  border-color: rgba(0, 230, 118, 0.2);
}

[data-theme="dark"] .status-404 {
  background: rgba(232, 99, 42, 0.12);
  color: #e8632a;
  border-color: rgba(232, 99, 42, 0.28);
}

[data-theme="dark"] .status-422 {
  background: rgba(255, 215, 64, 0.1);
  color: #ffd740;
  border-color: rgba(255, 215, 64, 0.28);
}

[data-theme="dark"] .status-err {
  background: rgba(232, 99, 42, 0.12);
  color: #e8632a;
  border-color: rgba(232, 99, 42, 0.28);
}

/* Dark endpoint/method pills */
[data-theme="dark"] .ep-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ep-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ep-btn .ep-method.get {
  color: #4de8a8;
}

[data-theme="dark"] .ep-btn .ep-method.post {
  color: #ffd740;
}

[data-theme="dark"] .ep-btn .ep-method.put {
  color: #40c4ff;
}

[data-theme="dark"] .ep-btn .ep-method.delete {
  color: #e8632a;
}

[data-theme="dark"] .endpoint-badge .method {
  color: #4de8a8;
}

[data-theme="dark"] .endpoint-badge .method.post {
  color: #ffd740;
}

[data-theme="dark"] .endpoint-badge .method.put {
  color: #40c4ff;
}

[data-theme="dark"] .endpoint-badge .method.delete {
  color: #e8632a;
}

[data-theme="dark"] .pill-get {
  background: rgba(77, 232, 168, 0.12);
  color: #4de8a8;
}

[data-theme="dark"] .pill-post {
  background: rgba(255, 215, 64, 0.12);
  color: #ffd740;
}

[data-theme="dark"] .pill-put {
  background: rgba(64, 196, 255, 0.12);
  color: #40c4ff;
}

[data-theme="dark"] .pill-delete {
  background: rgba(232, 99, 42, 0.12);
  color: #e8632a;
}

/* Dark header name gradient */
[data-theme="dark"] .header-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, #3ecfcf 55%, #e8632a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Theme Toggle Button ────────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--col-teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  outline: none;
}

.theme-toggle:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

/* Light mode shows moon, dark mode shows sun */
.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #3ecfcf, #1aafaf);
  color: #0a1f28;
}