/* ─── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f6fa;
  --bg2:         #eef0f7;
  --bg3:         #e4e7f2;
  --surface:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-mid:  rgba(0,0,0,0.13);
  --text:        #0f1117;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --accent:      #4f46e5;
  --accent-h:    #4338ca;
  --accent2:     #f97316;
  --accent3:     #16a34a;
  --accent4:     #db2777;
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.13);
  --radius:      16px;
  --radius-sm:   10px;
  --font-head:   'Work Sans', sans-serif;
  --font-body:   'Inter', sans-serif;
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 40px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: var(--transition); letter-spacing: -0.01em;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.28); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 13px 28px; border-radius: 40px;
  border: 1.5px solid var(--border-mid);
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,70,229,0.05); }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.navbar.scrolled {
  background: rgba(245,246,250,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  display: block; box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
}
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 16px; border-radius: 40px; font-weight: 500; font-size: 14px;
  color: var(--text-muted); transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }
.btn-hire {
  background: var(--accent); color: #fff; padding: 10px 22px;
  border-radius: 40px; font-weight: 600; font-size: 14px;
  font-family: var(--font-head); transition: var(--transition); white-space: nowrap;
}
.btn-hire:hover { background: var(--accent-h); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 20px;
  background: rgba(245,246,250,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-muted); }
.mobile-menu a:hover { color: var(--text); background: var(--bg2); }
.btn-hire-mobile { background: var(--accent) !important; color: #fff !important; text-align: center; margin-top: 8px; border-radius: 40px !important; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px; max-width: 1240px; margin: 0 auto;
  position: relative; overflow: hidden; gap: 60px;
}
.hero-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.22; }
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #c7d2fe, #818cf8); top: -200px; left: -100px; animation: drift1 20s ease-in-out infinite; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #fbcfe8, #f9a8d4); top: 200px; right: -150px; animation: drift2 25s ease-in-out infinite; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, #bbf7d0, #86efac); bottom: -100px; left: 40%; animation: drift3 18s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(60px,-40px) scale(1.1)} 66%{transform:translate(-30px,60px) scale(0.95)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-50px,30px) scale(1.05)} 66%{transform:translate(40px,-50px) scale(1.1)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-30px) scale(1.08)} }

.hero-content { flex: 1; min-width: 0; animation: fadeUp 0.8s ease forwards; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,70,229,0.08); border: 1px solid rgba(79,70,229,0.22);
  color: var(--accent); padding: 8px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px; font-family: var(--font-body);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent3); position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(22,163,74,0.3); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(2);opacity:0} }

.hero-title {
  font-size: clamp(36px, 5vw, 68px); font-weight: 800;
  line-height: 1.06; margin-bottom: 20px; letter-spacing: -0.035em; color: var(--text);
}
.hero-title .grad {
  background: linear-gradient(130deg, var(--accent) 0%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: clamp(15px,1.8vw,18px); color: var(--text-muted); max-width: 480px; margin-bottom: 36px; line-height: 1.75; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat span { display: block; font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.stat p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-mid); }

/* ─── Mockup Devices ──────────────────────────────────────────────────────── */
.hero-mockup { flex: 0 0 auto; width: 420px; height: 420px; position: relative; animation: fadeUp 0.8s 0.2s ease both; }
.mockup-desktop { position: absolute; top: 0; left: 0; width: 340px; filter: drop-shadow(var(--shadow-lg)); }
.mockup-desktop .mockup-screen { background: #fff; border-radius: 10px 10px 0 0; border: 1.5px solid var(--border-mid); overflow: hidden; }
.mockup-bar { background: var(--bg2); padding: 8px 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 8px; height: 8px; border-radius: 50%; }
.mockup-bar span:nth-child(1){ background:#ff5f57; }
.mockup-bar span:nth-child(2){ background:#febc2e; }
.mockup-bar span:nth-child(3){ background:#28c840; }
.mockup-content { height: 180px; overflow: hidden; }
.mockup-content img { width: 100%; height: 100%; object-fit: cover; }
.mockup-base { height: 14px; background: var(--bg3); border-radius: 0 0 4px 4px; border: 1.5px solid var(--border-mid); border-top: none; }
.mockup-stand { width: 70px; height: 20px; background: var(--bg3); margin: 0 auto; border-radius: 0 0 8px 8px; border: 1.5px solid var(--border-mid); border-top: none; }
.mockup-tablet { position: absolute; bottom: 30px; right: -20px; width: 120px; background: #fff; border-radius: 10px; padding: 6px; border: 1.5px solid var(--border-mid); box-shadow: var(--shadow-md); }
.mockup-tablet .mockup-screen { background: var(--bg2); border-radius: 6px; overflow: hidden; height: 160px; }
.mockup-phone { position: absolute; bottom: 0; right: -60px; width: 70px; background: #fff; border-radius: 12px; padding: 4px; border: 1.5px solid var(--border-mid); box-shadow: var(--shadow-md); }
.mockup-notch { width: 28px; height: 6px; background: var(--bg3); border-radius: 3px; margin: 0 auto 4px; }
.mockup-phone .mockup-screen { background: var(--bg2); border-radius: 8px; overflow: hidden; height: 110px; }
.mockup-home-btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-mid); margin: 6px auto 0; }

.mockup-placeholder { padding: 8px; height: 100%; }
.ph-nav  { height: 12px; background: var(--bg3); border-radius: 4px; margin-bottom: 8px; }
.ph-hero { height: 60px; background: rgba(79,70,229,0.12); border-radius: 6px; margin-bottom: 8px; }
.ph-hero.sm { height: 40px; }
.ph-hero.xs { height: 30px; }
.ph-grid { display: flex; gap: 6px; }
.ph-grid.two span { flex: 1; }
.ph-grid span { flex: 1; height: 30px; background: var(--bg3); border-radius: 4px; }
.ph-card { height: 40px; background: var(--bg3); border-radius: 6px; }
.ph-nav.mini { height: 8px; }

/* ─── Section Headers ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 12px; font-family: var(--font-body); }
.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin-bottom: 16px; color: var(--text); letter-spacing: -0.03em; }
.section-title em { font-style: normal; color: var(--accent); }
.section-desc { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; justify-content: center; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 40px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body); box-shadow: var(--shadow);
}
.filter-btn:hover { border-color: var(--cat-color, var(--accent)); color: var(--cat-color, var(--accent)); background: #fff; }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.25); }

/* ─── Projects ────────────────────────────────────────────────────────────── */
.projects-section { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }

.project-card { background: var(--surface); border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow); }
.project-card:hover { border-color: rgba(79,70,229,0.3); box-shadow: 0 0 0 1px rgba(79,70,229,0.1), var(--shadow-lg); transform: translateY(-5px); }
.project-card.hidden { display: none; }

.card-mockup-wrap { position: relative; background: var(--bg2); height: 220px; overflow: hidden; border-bottom: 1.5px solid var(--border); }
.card-device { position: absolute; border-radius: 8px; overflow: hidden; }
.card-desktop { top: 20px; left: 20px; right: 70px; bottom: 0; background: #fff; border: 1.5px solid var(--border-mid); }
.card-desktop .cd-bar { display: flex; align-items: center; gap: 5px; padding: 6px 8px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.card-desktop .cd-bar span { width: 6px; height: 6px; border-radius: 50%; }
.card-desktop .cd-bar span:nth-child(1){ background:#ff5f57; }
.card-desktop .cd-bar span:nth-child(2){ background:#febc2e; }
.card-desktop .cd-bar span:nth-child(3){ background:#28c840; }
.card-phone { width: 56px; bottom: 14px; right: 12px; top: 50px; background: #fff; border: 1.5px solid var(--border-mid); border-radius: 10px; }
.cp-notch { width: 20px; height: 5px; background: var(--bg3); border-radius: 3px; margin: 4px auto; }
.cd-screen { flex: 1; overflow: hidden; height: 100%; position: relative; }
.cd-screen img { width: 100%; height: 100%; object-fit: cover; }
.cd-placeholder { width: 100%; height: 100%; padding: 8px; background: linear-gradient(135deg, var(--bg2) 0%, rgba(79,70,229,0.04) 100%); }
.cdp-nav { height: 10px; background: var(--bg3); border-radius: 4px; margin-bottom: 6px; }
.cdp-nav.mini { height: 6px; }
.cdp-hero { height: 50px; background: color-mix(in srgb, var(--acc) 15%, white); border-radius: 5px; margin-bottom: 6px; }
.cdp-hero.xs { height: 30px; }
.cdp-row { display: flex; gap: 5px; }
.cdp-row span { flex: 1; height: 24px; background: var(--bg3); border-radius: 4px; }
.cdp-card { height: 35px; background: var(--bg3); border-radius: 4px; }

.card-info { padding: 22px 24px 24px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 40px; }
.card-featured { font-size: 11px; color: #d97706; display: flex; align-items: center; gap: 4px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); letter-spacing: -0.02em; }
.card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tech-tags span { font-size: 11px; padding: 4px 10px; border-radius: 40px; background: var(--bg2); color: var(--text-muted); border: 1px solid var(--border); font-family: var(--font-body); }
.more-tag { color: var(--accent); border-color: rgba(79,70,229,0.25); background: rgba(79,70,229,0.05); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 40px; font-size: 13px; font-weight: 500; transition: var(--transition); border: 1.5px solid transparent; }
.ca-btn-primary { background: var(--accent); color: #fff; }
.ca-btn-primary:hover { background: var(--accent-h); }
.ca-btn-ghost { border-color: var(--border-mid); color: var(--text-muted); }
.ca-btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,70,229,0.05); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 40px; color: var(--text-muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 16px; }

/* ─── About ───────────────────────────────────────────────────────────────── */
.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 420px; }
.about-card-stack { position: absolute; inset: 0; z-index: 1; }
.about-card { position: absolute; background: #fff; border: 1.5px solid var(--border); padding: 14px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-md); animation: float 4s ease-in-out infinite; color: var(--text); }
.about-card i { font-size: 20px; color: var(--accent); }
.ac-1 { top: 20px;    left: 20px;  animation-delay: 0s; }
.ac-2 { top: 20px;    right: 0;    animation-delay: 0.5s; }
.ac-3 { bottom: 100px;left: 0;     animation-delay: 1s; }
.ac-4 { bottom: 100px;right: 30px; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.device-stack { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 16px; }
.ds-monitor { width: 200px; }
.ds-monitor .ds-screen { background: #fff; border: 1.5px solid var(--border-mid); border-radius: 8px 8px 0 0; height: 130px; padding: 10px; overflow: hidden; }
.ds-base { height: 10px; background: var(--bg3); border-radius: 0 0 4px 4px; border: 1.5px solid var(--border-mid); border-top: none; width: 50px; margin: 0 auto; }
.ds-phone { width: 50px; height: 90px; background: #fff; border: 1.5px solid var(--border-mid); border-radius: 8px; padding: 4px; }
.ds-phone .ds-screen { height: 100%; }
.ds-ph { display: flex; flex-direction: column; gap: 5px; }
.ds-ph div { height: 12px; background: var(--bg3); border-radius: 3px; }
.ds-ph div:first-child { background: rgba(79,70,229,0.2); }
.ds-ph.sm div { height: 8px; }

.about-text .section-label { display: block; margin-bottom: 12px; }
.about-text .section-title { margin-bottom: 20px; text-align: left; }
.about-text > p { color: var(--text-muted); margin-bottom: 36px; }
.skill-bars { display: flex; flex-direction: column; gap: 20px; }
.sb-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.sb-label span:last-child { color: var(--text-muted); }
.sb-track { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 3px; background: var(--c, var(--accent)); transform-origin: left; animation: fillBar 1.5s ease forwards; }
@keyframes fillBar { from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ─── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.ci-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0; background: rgba(79,70,229,0.08); border: 1.5px solid rgba(79,70,229,0.15); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); }
.ci-item > div span { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); }
.ci-item > div a, .ci-item > div p { font-weight: 500; color: var(--text); }
.ci-item > div a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.form-group label span { color: var(--accent4); }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: var(--transition); outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: rgba(22,163,74,0.08); border: 1.5px solid rgba(22,163,74,0.25); color: #15803d; }
.alert-error   { background: rgba(220,38,38,0.08); border: 1.5px solid rgba(220,38,38,0.25); color: #b91c1c; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1.5px solid var(--border); padding: 48px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.admin-link { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; transition: var(--transition); }
.admin-link:hover { color: var(--accent); }

/* ─── Project Detail ──────────────────────────────────────────────────────── */
.project-detail { padding: 120px 0 80px; }
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.pd-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pd-breadcrumb a { color: var(--accent); }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-title { font-size: clamp(24px,4vw,44px); font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.03em; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.pd-meta-item { font-size: 13px; color: var(--text-muted); }
.pd-meta-item strong { color: var(--text); display: block; font-size: 14px; }
.pd-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-mockup-wrap { position: relative; height: 340px; }
.pd-desktop { position: absolute; top: 0; left: 0; right: 60px; background: #fff; border: 1.5px solid var(--border-mid); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pd-desktop .mockup-bar { padding: 8px 12px; }
.pd-desktop-screen { height: 240px; overflow: hidden; }
.pd-desktop-screen img { width: 100%; height: 100%; object-fit: cover; }
.pd-phone { position: absolute; bottom: 0; right: 0; width: 80px; background: #fff; border: 1.5px solid var(--border-mid); border-radius: 14px; overflow: hidden; padding: 4px; box-shadow: var(--shadow-lg); }
.pd-phone-notch { width: 28px; height: 6px; background: var(--bg3); border-radius: 3px; margin: 2px auto 4px; }
.pd-phone-screen { height: 120px; overflow: hidden; border-radius: 8px; }
.pd-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.pd-section { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); }
.pd-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.pd-long-desc { color: var(--text-muted); line-height: 1.8; white-space: pre-wrap; }
.pd-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-stack span { padding: 6px 14px; border-radius: 40px; font-size: 13px; font-weight: 500; background: rgba(79,70,229,0.08); border: 1.5px solid rgba(79,70,229,0.2); color: var(--accent); }

/* ─── Admin Layout ────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--surface); border-right: 1.5px solid var(--border); position: fixed; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 100; }
.sidebar-logo { padding: 28px 24px 20px; border-bottom: 1.5px solid var(--border); font-family: var(--font-head); font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); letter-spacing: -0.02em; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; transition: var(--transition); margin-bottom: 2px; }
.sidebar-nav a:hover { background: var(--bg2); color: var(--text); }
.sidebar-nav a.active { background: rgba(79,70,229,0.1); color: var(--accent); }
.sidebar-nav a i { font-size: 16px; }
.sidebar-footer { padding: 16px 12px; border-top: 1.5px solid var(--border); }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.sidebar-footer a:hover { color: #dc2626; background: rgba(220,38,38,0.07); }
.admin-main { margin-left: 240px; flex: 1; padding: 32px 36px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-topbar h1 { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.admin-topbar .breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-card-info span { display: block; font-size: 28px; font-weight: 800; font-family: var(--font-head); letter-spacing: -0.03em; }
.stat-card-info p { font-size: 13px; color: var(--text-muted); }

.admin-table-wrap { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.admin-table-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1.5px solid var(--border); flex-wrap: wrap; gap: 12px; }
.admin-table-header h2 { font-size: 17px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 16px; background: var(--bg); color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1.5px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 40px; font-size: 11px; font-weight: 600; }
.badge-new      { background: rgba(22,163,74,0.1);  color: #15803d; }
.badge-read     { background: rgba(79,70,229,0.1);  color: var(--accent); }
.badge-replied  { background: rgba(249,115,22,0.1); color: #c2410c; }
.badge-archived { background: var(--bg2);           color: var(--text-muted); }
.badge-active   { background: rgba(22,163,74,0.1);  color: #15803d; }
.badge-inactive { background: var(--bg2);           color: var(--text-muted); }
.badge-featured { background: rgba(217,119,6,0.1);  color: #b45309; }

.tbl-actions { display: flex; align-items: center; gap: 8px; }
.tbl-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: var(--transition); text-decoration: none; }
.tbl-btn:hover { background: var(--bg2); color: var(--text); border-color: var(--border-mid); }
.tbl-btn.danger:hover { border-color: #dc2626; color: #dc2626; background: rgba(220,38,38,0.07); }
.tbl-btn.success:hover { border-color: #16a34a; color: #16a34a; }

.admin-form-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 800px; box-shadow: var(--shadow); }
.admin-form-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1.5px solid var(--border); letter-spacing: -0.02em; }

/* ─── Login ───────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); position: relative; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.login-card .brand { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.03em; }
.login-card > p { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.login-card h2 { font-size: 22px; margin-bottom: 24px; letter-spacing: -0.02em; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: 120px; }
  .hero-mockup { width: 100%; height: 260px; }
  .mockup-desktop { width: 260px; }
  .mockup-desktop .mockup-content { height: 130px; }
  .mockup-tablet { width: 90px; bottom: 10px; right: 0; }
  .mockup-tablet .mockup-screen { height: 120px; }
  .mockup-phone { width: 55px; right: -30px; }
  .mockup-phone .mockup-screen { height: 80px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .pd-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .btn-hire { display: none; }
  .hamburger { display: flex; }
  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px; }
  .hero-mockup { display: none; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
}
