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

body {
  font-family: "Caveat", sans-serif;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cbd5e1 0%, #e4e4e7 50%, #94a3b8 100%);
  padding: 1rem;
}

/* hide all scrollbars */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════
   PAGE SHELL
═══════════════════════════════════════ */
.page-shell {
  width: 100%;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════
   TOP HEADER
═══════════════════════════════════════ */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  animation: headerDrop 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-spacer { width: 56px; flex-shrink: 0; }

/* nav pill */
.nav-pill {
  display: flex;
  gap: 0.2rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 0.28rem 0.35rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.nav-btn {
  font-family: "Caveat", cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #374151;
  padding: 0.38rem 1.05rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease;
  white-space: nowrap;
}

.nav-btn:hover:not(.active) {
  background: rgba(255,255,255,0.72);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-btn.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   DESKTOP ORB
═══════════════════════════════════════ */
.header-orb {
  display: none;
  width: 56px; height: 56px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .header-orb { display: flex; } }

.orb-inner {
  position: relative;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 4px 20px rgba(249,115,22,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: orbSpin linear infinite;
}
.orb-ring.r1 { width: 38px; height: 38px; border-top-color: #f97316; border-right-color: rgba(249,115,22,0.3); animation-duration: 2.2s; }
.orb-ring.r2 { width: 28px; height: 28px; border-bottom-color: #0ea5e9; border-left-color: rgba(14,165,233,0.3); animation-duration: 1.6s; animation-direction: reverse; }
.orb-ring.r3 { width: 20px; height: 20px; border-top-color: #14b8a6; border-right-color: rgba(20,184,166,0.2); animation-duration: 3s; }

@keyframes orbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orb-core {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #f97316, #ea580c);
  box-shadow: 0 0 8px 3px rgba(249,115,22,0.5);
  animation: orbPulse 1.8s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1);   box-shadow: 0 0 8px 3px rgba(249,115,22,0.5); }
  50%      { transform: scale(1.4); box-shadow: 0 0 14px 6px rgba(249,115,22,0.7); }
}

/* ═══════════════════════════════════════
   MAIN CARD
═══════════════════════════════════════ */
.main-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
  animation: cardRise 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1024px) {
  .main-card {
    flex-direction: row;
    height: calc(90svh - 56px - 0.75rem - 2rem);
    padding: 2rem 2.5rem;
  }
}

/* ═══════════════════════════════════════
   PROFILE SIDEBAR
═══════════════════════════════════════ */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
@media (min-width: 1024px) {
  .profile-sidebar {
    width: 22%;
    flex-shrink: 0;
    padding-bottom: 0;
    padding-right: 2rem;
    border-bottom: none;
    border-right: 1px solid rgba(0,0,0,0.08);
  }
}

/* profile ring — gradient border on hover only */
.profile-ring-wrap {
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255,255,255,0.2);
  transition: box-shadow 0.4s ease;
  cursor: default;
}
.profile-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #f97316, #0ea5e9, #14b8a6, #f59e0b, #ec4899, #f97316);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.profile-ring-wrap:hover::before {
  opacity: 1;
  animation: ringRotate 2s linear infinite;
}
.profile-ring-wrap:hover {
  box-shadow: 0 0 22px 4px rgba(249,115,22,0.28), 0 0 40px 8px rgba(14,165,233,0.15);
}
@keyframes ringRotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

.profile-img {
  display: block;
  width: 8rem; height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
@media (min-width: 640px)  { .profile-img { width: 9rem;  height: 9rem;  } }
@media (min-width: 1024px) { .profile-img { width: 10rem; height: 10rem; } }

.profile-info { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.profile-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.03em; color: #111827; }
.profile-role { font-size: 0.9rem; color: #4b5563; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.chip {
  font-size: 0.78rem;
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 0.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.chip-teal   { background: #0d9488; }
.chip-orange { background: #ea580c; }
.chip-sky    { background: #0284c7; }

.age-chip { cursor: pointer; }
.age-val  { transition: opacity 0.3s ease; }
.age-val.hidden { opacity: 0; }

.socials { display: flex; gap: 1rem; justify-content: center; }
.social-link {
  font-size: 1.25rem; color: #374151;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.social-link:hover { color: #ea580c; transform: scale(1.2) translateY(-2px); }

/* ═══════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════ */
.content-area { flex: 1; overflow-y: auto; position: relative; }

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: sectionReveal 0.45s cubic-bezier(0.22,1,0.36,1) both;
  height: 100%;
}
.section-panel.active { display: flex; }

@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.about-line {
  opacity: 0;
  transform: translateX(-16px);
  animation: slideIn 0.45s ease forwards;
}
.about-line:nth-child(1) { animation-delay: 0.04s; }
.about-line:nth-child(2) { animation-delay: 0.11s; }
.about-line:nth-child(3) { animation-delay: 0.18s; }
.about-line:nth-child(4) { animation-delay: 0.25s; }
.about-line:nth-child(5) { animation-delay: 0.32s; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

.section-title {
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #111827;
}
.body-lg { font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: #374151; line-height: 1.65; }
.body-sm { font-size: clamp(0.85rem, 1.5vw, 1rem);  color: #4b5563; line-height: 1.65; }

.pills-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b7280; font-weight: 700; margin-bottom: 0.5rem; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-pill {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid;
  opacity: 0;
  animation: pillPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.skill-pill:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
@keyframes pillPop {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1); }
}

.stat-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat-card {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 1rem;
  padding: 0.75rem 1.2rem;
  text-align: center;
  min-width: 72px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.stat-num { font-size: 1.5rem; font-weight: 900; }
.stat-lbl { font-size: 0.68rem; color: #6b7280; margin-top: 2px; }
.clr-orange { color: #ea580c; }
.clr-teal   { color: #0d9488; }
.clr-sky    { color: #0284c7; }

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  /* border-radius: 1.1rem; */
  opacity: 0;
  transform: translateY(14px);
  animation: floatUp 0.45s ease forwards;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.edu-card:hover { transform: translateY(-4px) !important; box-shadow: 0 6px 12px rgba(0,0,0,0.12) !important; }
.edu-card:nth-child(2) { animation-delay: 0.08s; }
.edu-card:nth-child(3) { animation-delay: 0.16s; }
.edu-card:nth-child(4) { animation-delay: 0.24s; }
@keyframes floatUp { to { opacity: 1; transform: translateY(0); } }

.edu-icon   { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.edu-deg    { font-weight: 800; color: #111827; font-size: 1rem; }
.edu-school { font-weight: 700; font-size: 0.85rem; }
.edu-yr     { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.edu-desc   { font-size: 0.85rem; color: #4b5563; margin-top: 0.4rem; line-height: 1.55; }

/* .glass-card {
  background: rgba(255,255,255,0.32); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.55);
} */

/* ═══════════════════════════════════════
   PROJECTS — PHONE MOCKUP LAYOUT
═══════════════════════════════════════ */
.projects-layout {
  flex-direction: row !important;
  align-items: flex-end;
  gap: 1.5rem;
  height: 100%;
  overflow: hidden;
}

/* ── Primary phone ── */
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.phone-frame {
  position: relative;
  width: 200px;
  height: 400px;
  border-radius: 2.5rem;
  background: #1a1a1a;
  border: 2px solid #2e2e2e;
  box-shadow:
    0 0 0 1px #111,
    0 24px 64px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.phone-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 0 0 1px #111, 0 36px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* slightly larger on wider screens */
@media (min-width: 640px)  { .phone-frame { width: 230px; height: 470px; } }
@media (min-width: 1024px) { .phone-frame { width: 240px; height: 500px; } }

/* Status bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1.1rem 0;
  color: #fff;
  font-size: 0.62rem;
  font-family: "Caveat", cursive;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}
.status-time { letter-spacing: 0.04em; }
.status-icons { display: flex; gap: 4px; align-items: center; }

/* Dynamic Island style notch */
.phone-notch {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0;
  flex-shrink: 0;
  z-index: 10;
}
.notch-pill {
  width: 72px; height: 20px;
  background: #000;
  border-radius: 999px;
}

/* Screen — image fills here */
.phone-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

/* Home indicator */
.phone-home-bar {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-home-bar::after {
  content: '';
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 99px;
}

/* Stacked image cards inside screen */
.phone-screen .img-card {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* Project title below phone */
.project-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  letter-spacing: 3px;
  color: #111827;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-align: center;
  animation: wobble 3s ease-in-out infinite;
  max-width: 260px;
}

/* ── Small peek phone ── */
.preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.phone-peek {
  /* Peek effect: slightly smaller, translated right */
  transform: translateY(24px);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}
.phone-peek:hover { transform: translateY(12px); opacity: 1; }

.phone-frame-sm {
  width: 140px !important;
  height: 290px !important;
  border-radius: 1.8rem !important;
}
@media (min-width: 640px)  { .phone-frame-sm { width: 160px !important; height: 330px !important; } }
@media (min-width: 1024px) { .phone-frame-sm { width: 170px !important; height: 350px !important; } }

/* The image inside preview phone */
.phone-frame-sm .phone-screen {
  background-size: cover !important;
  background-position: center !important;
  transition: background-image 0.4s ease, opacity 0.35s ease;
}

/* ── Shuffle button ── */
.shuffle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(249,115,22,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, filter 0.25s ease;
}
.shuffle-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(249,115,22,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.08);
}
.shuffle-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}
.shuffle-btn svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.shuffle-btn:hover svg { transform: rotate(180deg); }

/* Wobble + lora utilities */
.wobble { animation: wobble 3s ease-in-out infinite; }
@keyframes wobble {
  0%,100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}
.lora-font { font-family: "Lora", serif; font-weight: 700; }
.animateTitle { animation: titlePop 0.5s ease; }
@keyframes titlePop {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Responsive stacking on very small screens ── */
@media (max-width: 480px) {
  .projects-layout {
    flex-direction: column !important;
    align-items: center;
  }
  .preview-col { flex-direction: row; gap: 1rem; align-items: flex-end; }
}