/* ============================================================
   Miguel Joie S. Polines — Portfolio Stylesheet
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-hover: rgba(255, 255, 255, 0.10);
  --pink: #f472b6;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --gold: #fbbf24;
  --text: #f1f5f9;
  --muted: #94a3b8;
}

/* ── RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #050508;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100%;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── AURORA BACKGROUND ── */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  animation: drift linear infinite;
}

.orb1 { width:650px; height:650px; background:radial-gradient(circle,#7c3aed,transparent); top:-220px; left:-220px; animation-duration:25s; }
.orb2 { width:550px; height:550px; background:radial-gradient(circle,#db2777,transparent); bottom:-180px; right:-180px; animation-duration:30s; animation-direction:reverse; }
.orb3 { width:420px; height:420px; background:radial-gradient(circle,#0891b2,transparent); top:30%; left:40%; animation-duration:20s; }
.orb4 { width:320px; height:320px; background:radial-gradient(circle,#d97706,transparent); bottom:20%; left:10%; animation-duration:35s; animation-direction:reverse; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(70px, -55px) rotate(120deg); }
  66%  { transform: translate(-55px, 70px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* ── SCROLL SNAP SECTIONS ── */
.snap-section {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  white-space: nowrap;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 18px; }

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  cursor: pointer;
}

.nav-links a:hover { color: white; }

/* ── DROPDOWN MENU ── */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 300;
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* ── SECTION DOT NAV ── */
#dot-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: 1.5px solid transparent;
}

.dot.active {
  background: var(--violet);
  border-color: rgba(167, 139, 250, 0.5);
  transform: scale(1.4);
}

.dot:hover { background: rgba(255, 255, 255, 0.5); }

/* ── HERO SECTION ── */
#hero { padding: 100px 24px 60px; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--violet);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-eyebrow {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 12px;
  animation: fadeUp 0.8s ease 0.1s both;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.h1-line1 { display: block; color: white; }

.h1-line2 {
  display: block;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: fadeUp 0.8s ease 0.2s both, gradshift 4s ease infinite 1s;
}

@keyframes gradshift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 520px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 52px;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.4s both;
  margin-bottom: 56px;
}

/* ── PILL BUTTONS ── */
.pill-btn {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 13px 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--glass-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-btn .btn-icon { font-size: 17px; transition: transform 0.3s; }
.pill-btn:hover .btn-icon { transform: rotate(15deg) scale(1.2); }

.pill-btn.primary {
  background: linear-gradient(135deg, rgba(244,114,182,0.2), rgba(167,139,250,0.2));
  border-color: rgba(244, 114, 182, 0.35);
}

/* Shimmer sweep */
.pill-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}
.pill-btn:hover::before { left: 150%; }

/* ── SCROLL HINT ── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease 0.6s both;
  opacity: 0.38;
}

.scroll-hint span { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; }

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, white, transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 0.2; }
}

/* ── SECTION HEADERS ── */
.sec-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0;
}

/* ── PROJECTS SECTION ── */
#projects { padding: 100px 32px 60px; }
.projects-container { width: 100%; max-width: 1100px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.34, 1.56, .64, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.01);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
}

.project-thumb {
  width: 100%;
  height: 155px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: absolute;
  inset: 0;
}

.project-card:hover .project-thumb img { transform: scale(1.09); }

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  z-index: 0;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.55));
  pointer-events: none;
  z-index: 1;
}

.project-body { padding: 15px; }
.project-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.project-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 100px; letter-spacing: 0.2px; }

.project-cta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--violet);
  font-weight: 500;
  transition: gap 0.2s;
}

.project-card:hover .project-cta { gap: 9px; }

.project-year {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  z-index: 10;
}

/* ── SEE MORE PROJECTS BUTTON ── */
.see-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.see-more-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.see-more-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--glass-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
}

.see-more-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.see-more-btn:hover::before { left: 150%; }

/* ── TABBED PROJECTS MODAL ── */
.modal-fixed-header {
  flex-shrink: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

.modal.tabbed {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden; /* header + tabs stay fixed; only body scrolls */
  padding: 0;
}

.modal.tabbed .modal-fixed-header {
  padding: 32px 38px 0;
}

.tab-bar {
  display: flex;
  gap: 4px;
  padding: 16px 38px 0;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: white;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.tab-btn.active {
  color: white;
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.35);
}

.tab-btn .tab-icon { font-size: 15px; }

.tab-count {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  transition: all 0.25s;
}

.tab-btn.active .tab-count {
  background: rgba(167,139,250,0.3);
  color: var(--violet);
}

.tab-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 38px;
  flex-shrink: 0;
}

.modal-scrollable-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 38px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.modal-scrollable-body::-webkit-scrollbar { width: 5px; }
.modal-scrollable-body::-webkit-scrollbar-track { background: transparent; }
.modal-scrollable-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.tab-empty-icon { font-size: 40px; margin-bottom: 12px; }
.tab-empty-text { font-size: 14px; line-height: 1.6; }
.tab-empty-hint { font-size: 12px; margin-top: 8px; opacity: 0.6; }

.tab-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) { .tab-projects-grid { grid-template-columns: 1fr; } }

/* ── ACHIEVEMENTS SECTION ── */
#achievements { padding: 100px 32px 60px; }
.ach-container { width: 100%; max-width: 860px; }

.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}

.carousel-slide { min-width: 100%; position: relative; }

.carousel-img { width: 100%; height: 400px; object-fit: cover; display: block; }

.carousel-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 64px;
  position: relative;
}

.placeholder-label {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
  padding: 44px 28px 24px;
}

.caption-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.3);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: var(--violet);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.caption-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: white; margin-bottom: 4px; }
.caption-sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }

.cdot {
  width: 7px; height: 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.cdot.active { background: var(--violet); width: 24px; }

/* ── RESUME BUTTON ── */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 100px;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
}

.resume-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.6);
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s;
}

.resume-btn:hover::before { left: 150%; }

.resume-icon {
  font-size: 20px;
  animation: floatDown 2s ease infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* ── MODALS ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: rgba(12, 12, 22, 0.88);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 40px 80px rgba(0,0,0,0.7);
  animation: modalIn 0.4s cubic-bezier(.34, 1.56, .64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

/* ── ABOUT MODAL ── */
.profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.profile-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.profile-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; }
.profile-role { font-size: 13px; color: var(--muted); }
.bio { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-list { display: flex; flex-direction: column; gap: 7px; }

.info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.2s;
}

.info-card:hover { background: rgba(255,255,255,0.07); }
.info-card-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.info-card-sub { font-size: 12px; color: var(--muted); }
.personal-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── SKILLS MODAL ── */
.highlights-box {
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.highlights-box ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.highlights-box li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.highlights-box li::before { content: '▸'; position: absolute; left: 0; color: var(--violet); }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 11px;
}

.skill-bars { display: flex; flex-direction: column; gap: 10px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.skill-name { font-size: 13px; font-weight: 500; }
.skill-pct { font-size: 12px; color: var(--muted); }

.bar-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(.34, 1.56, .64, 1);
}

.bar-fill.animated { transform: scaleX(1); }

.stats-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  padding: 16px;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.stat-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 13px;
  text-align: center;
}

.stat-num { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: white; }
.stat-label { font-size: 10px; color: var(--muted); }

.certs-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 9px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}

.cert-org { color: var(--muted); font-size: 11px; text-align: right; flex-shrink: 0; margin-left: 12px; }

/* ── PROJECTS MODAL (legacy, kept for reference) ── */
.projects-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .projects-modal-grid { grid-template-columns: 1fr; } }

.pm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  text-decoration: none;
  color: inherit;
}

.pm-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}

.pm-thumb { width: 100%; height: 90px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { padding: 12px; }
.pm-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.pm-desc { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.pm-cta { font-size: 11px; color: var(--violet); font-weight: 500; }

/* ── CONNECT MODAL ── */
.connect-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 13px;
  border: 3px solid rgba(255,255,255,0.1);
}

.connect-tagline { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.connect-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.connect-link {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 13px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.connect-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.connect-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.connect-link-name { font-size: 13px; font-weight: 600; }
.connect-link-sub { font-size: 12px; color: var(--muted); }
.connect-arrow { margin-left: auto; color: var(--muted); font-size: 16px; transition: transform 0.2s; }
.connect-link:hover .connect-arrow { transform: translateX(4px); }

.location-box,
.avail-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 9px;
}

.avail-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.avail-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.avail-tag { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }

/* ── SHARED ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
footer {
  scroll-snap-align: start;
  text-align: center;
  padding: 60px 24px;
  color: rgba(255,255,255,0.18);
  font-size: 13px;
  position: relative;
  z-index: 2;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
