/* developer2.css — new layout for the developer page (loaded after developer.css) */
* { justify-content: initial; }

body {
  min-height: 100vh;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #b9bccb;
  -webkit-font-smoothing: antialiased;
}

/* ---- Back button: round glass pill, fixed top-left ---- */
.back-button {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  width: auto;
  height: auto;
  padding: 8px 14px 8px 10px;
  gap: 6px;
  border-radius: 999px;
  border: 2px solid transparent;
  border-image: none;
  /* inner fill + spinning RGB ring (same colours as the card) */
  background:
    linear-gradient(#1c1f2b, #1c1f2b) padding-box,
    conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545) border-box;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  animation: 3s spin linear infinite;
}
.back-button::before { display: none; }
.back-button:hover {
  background:
    linear-gradient(#262a3a, #262a3a) padding-box,
    conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545) border-box;
  transform: translateX(-2px);
}

/* ---- Page + card ---- */
.dev-page {
  padding: 84px 20px 60px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 880px;
  margin: 0;
  padding: 40px 44px 36px;
  border-radius: 22px;
  text-align: left;
}
.card::after,
.card::before { border-radius: 24px; }

/* ---- Header: photo + name side by side on desktop ---- */
.dev-head {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.box {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  left: 0;
}

.dev-id h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff, #c9d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dev-role {
  margin-top: 8px;
  font-size: 1.05rem;
  color: #9fe7c8;
}

.dev-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dev-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dev-contact a:hover {
  background: rgba(0, 255, 153, 0.12);
  border-color: rgba(0, 255, 153, 0.5);
}

/* ---- Skills: two columns on desktop ---- */
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-group {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.skill-group:hover {
  border-color: rgba(0, 106, 255, 0.45);
  transform: translateY(-2px);
}

/* the long language list spans both columns */
.skill-group:nth-child(-n+3) { grid-column: 1 / -1; }

.skill-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.skill-group .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b0d15;
  background: linear-gradient(135deg, #00ff99, #006aff);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #dfe2ec;
  background: #262a3a;
  border: 1px solid #333849;
}

/* ---- Signature (now part of the card, no fixed position) ---- */
.signature { display: none; }

.dev-sign {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dev-sign p {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d8296;
}

.dev-sign img {
  display: block;
  width: 340px;
  max-width: 85%;
  height: auto;
  margin: 6px auto 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.dev-sign small { font-size: 0.8rem; color: #7d8296; }

.spacer_bottom { display: none; }

/* ---- Tablets ---- */
@media (max-width: 820px) {
  .card { padding: 32px 26px 28px; }
  .box { flex-basis: 150px; width: 150px; height: 150px; }
  .dev-head { gap: 22px; }
}

/* ---- Phones: everything in one centred column ---- */
@media (max-width: 600px) {
  .dev-page { padding: 70px 12px 40px; }
  .card { padding: 26px 16px 24px; border-radius: 18px; }
  .card::after, .card::before { border-radius: 20px; }

  .dev-head {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 20px;
  }

  .box { flex-basis: auto; width: 150px; height: 150px; }
  .dev-role { font-size: 0.95rem; }
  .dev-contact { justify-content: center; }
  .dev-contact a { font-size: 0.85rem; }

  .skills { grid-template-columns: 1fr; gap: 12px; }
  .skill-group { padding: 14px; }
  .chips { gap: 6px; }
  .chips li { font-size: 0.8rem; padding: 5px 10px; }
}

/* ===================================================================
   Extras: settings bar, actions, about, stats, animations, light mode
   =================================================================== */
:root { --rgb: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545); }

/* ---- settings bar (top-right) ---- */
.dev-settings {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

#dev-lang {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 30px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 31, 43, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aab'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #e6e8f0;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.dev-theme {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 31, 43, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dev-theme button {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cfd3df;
  cursor: pointer;
}
.dev-theme svg { width: 16px; height: 16px; }
.dev-theme button.selected { background: #ffffff; color: #1c1f2b; }

/* ---- role typing caret ---- */
.dev-role { min-height: 1.6em; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---- photo ring: soft breathing glow ---- */
.box { border-radius: 50%; animation: ringGlow 3s ease-in-out infinite; }
@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 255, 153, 0.25); }
  50%      { box-shadow: 0 0 34px rgba(255, 0, 149, 0.45); }
}

/* ---- copy buttons next to phone / email ---- */
.dev-contact .copy {
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cfd3df;
  font-size: 0.95rem;
  cursor: pointer;
}
.dev-contact .copy:hover { border-color: rgba(0, 255, 153, 0.5); color: #ffffff; }

/* ---- action buttons ---- */
.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #262a3a;
  color: #e6e8f0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.act:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }

/* primary button gets the spinning RGB border */
.act.primary {
  border: 2px solid transparent;
  background: linear-gradient(#1c1f2b, #1c1f2b) padding-box, var(--rgb) border-box;
  animation: 3s spin linear infinite;
}

/* ---- about + stats ---- */
.dev-about {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.dev-about h2 { margin: 0 0 8px; font-size: 1.05rem; color: #ffffff; }
.dev-about p { line-height: 1.75; font-size: 0.95rem; }

.dev-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 16px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.stat b {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  background: linear-gradient(90deg, #00ff99, #006aff, #ff0095);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 4px; font-size: 0.8rem; color: #9ca1b3; }

/* ---- chips light up in RGB on hover ---- */
.chips li { transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease; }
.chips li:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(#262a3a, #262a3a) padding-box, var(--rgb) border-box;
  animation: 3s spin linear infinite;
}

/* ---- fade/slide in on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- toast ---- */
#dev-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #00c27a;
  color: #04110b;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#dev-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---- phones ---- */
@media (max-width: 600px) {
  .dev-settings { top: 14px; right: 12px; gap: 6px; }
  #dev-lang { padding: 7px 26px 7px 10px; font-size: 0.8rem; }
  .dev-theme button { width: 28px; height: 28px; }
  .dev-actions { justify-content: center; }
  .act { padding: 9px 13px; font-size: 0.85rem; }
  .dev-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat b { font-size: 1.7rem; }
  .dev-about { padding: 16px; }
}

/* ===================== LIGHT APPEARANCE ===================== */
html[data-theme="light"] body { background: #eef1f7; color: #4a5060; }
html[data-theme="light"] .card { background: #ffffff; }
html[data-theme="light"] .card::before { opacity: 0.35; }
html[data-theme="light"] .dev-id h1 {
  background: linear-gradient(90deg, #1c1f2b, #3b4a7a);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="light"] .dev-role { color: #078a5c; }
html[data-theme="light"] .dev-head,
html[data-theme="light"] .dev-sign { border-color: #e6e9f0; }
html[data-theme="light"] .dev-contact a,
html[data-theme="light"] .dev-contact .copy,
html[data-theme="light"] .act { background: #f3f5fa; border-color: #dde2ec; color: #2b2f3b; }
html[data-theme="light"] .act.primary { background: linear-gradient(#ffffff, #ffffff) padding-box, var(--rgb) border-box; border-color: transparent; }
html[data-theme="light"] .skill-group,
html[data-theme="light"] .dev-about,
html[data-theme="light"] .stat { background: #f7f8fc; border-color: #e3e7ef; }
html[data-theme="light"] .skill-group h2,
html[data-theme="light"] .dev-about h2 { color: #1c1f2b; }
html[data-theme="light"] .dev-about p { color: #4a5060; }
html[data-theme="light"] .stat span { color: #6b7285; }
html[data-theme="light"] .chips li { background: #ffffff; border-color: #dfe3ec; color: #2b2f3b; }
html[data-theme="light"] .chips li:hover { background: linear-gradient(#ffffff, #ffffff) padding-box, var(--rgb) border-box; color: #000000; }
html[data-theme="light"] .dev-sign img { filter: invert(1); }
html[data-theme="light"] .back-button,
html[data-theme="light"] #dev-lang,
html[data-theme="light"] .dev-theme { background-color: rgba(255, 255, 255, 0.85); color: #2b2f3b; border-color: #d6dbe6; }
html[data-theme="light"] .back-button {
  background: linear-gradient(#ffffff, #ffffff) padding-box, var(--rgb) border-box;
  border-color: transparent;
}
html[data-theme="light"] .dev-theme button { color: #4a5060; }
html[data-theme="light"] .dev-theme button.selected { background: #1c1f2b; color: #ffffff; }
