/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Inter, sans-serif; overflow: hidden; color: #1d1d1f; }
.hidden { display: none !important; }

/* ── CSS Variables ── */
:root {
  --bg:      #f5f5f7;
  --bg-card: #ffffff;
  --bdr:     rgba(0,0,0,.08);
  --bdr-s:   rgba(0,0,0,.13);
  --shd:     0 2px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shd-h:   0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --t1:      #1d1d1f;
  --t2:      #6e6e73;
  --t3:      #aeaeb2;
  --sw:      220px;
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    18px;
  --r-xl:    22px;
  --ease:    all .2s cubic-bezier(.4,0,.2,1);
  --acc:     #0071e3;
}

/* ── Background ── */
body { background: var(--bg); }
.bg-wrap { display: none; }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 5% 10%,  rgba(0,122,255,.18)  0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 95% 85%,  rgba(255,59,48,.14)  0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 5%,   rgba(0,160,255,.12)  0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 15% 90%,  rgba(255,100,80,.10) 0%, transparent 55%);
}

.app { position: relative; z-index: 1; }


/* ── App Shell ── */
.app { position: relative; z-index: 1; display: flex; height: 100vh; overflow: hidden; }

/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.sidebar {
  width: var(--sw); flex-shrink: 0;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--bdr);
  padding: 22px 0; overflow-y: auto;
}

.brand {
  display: flex; align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 18px;
}

.sidenav { padding: 0 10px; flex: 1; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--t3); padding: 0 10px; margin-bottom: 6px; text-transform: uppercase;
}
.nav-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-md); border: none;
  background: transparent; color: var(--t2);
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: var(--ease); margin-bottom: 2px; text-align: left;
}
.nav-btn:hover  { background: rgba(0,0,0,.05); color: var(--t1); }
.nav-btn.active { background: rgba(0,0,0,.07); color: var(--t1); font-weight: 600; }
.nav-btn svg { opacity: .55; }
.nav-btn.active svg { opacity: 1; }

.sidebar-foot { padding: 16px 20px 0; margin-top: auto; }
.foot-tag { font-size: 11px; color: var(--t3); }

/* ════════════════════════════════════
   MAIN
════════════════════════════════════ */
.main { flex: 1; overflow-y: auto; padding: 40px 44px; background: transparent; }

.page { display: block; animation: pgIn .28s ease; }
.page.hidden { display: none; }
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Page Header ── */
.page-hdr { display: flex; align-items: flex-start; margin-bottom: 32px; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 4px; color: var(--t1); }
.page-sub   { font-size: 14px; color: var(--t2); }

/* ── Cards ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  box-shadow: var(--shd);
}

/* ════════════════════════════════════
   PORTFOLIO GRID
════════════════════════════════════ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.port-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  box-shadow: var(--shd);
  cursor: pointer;
  transition: var(--ease);
  position: relative;
  display: block;
  text-decoration: none;
  width: 100%;
}
.port-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shd-h);
  border-color: var(--bdr-s);
}
.port-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter .3s ease;
}
.port-card:hover img { filter: brightness(.97); }

.port-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  opacity: 0; transition: opacity .25s ease;
  padding: 14px 16px; display: flex; align-items: flex-end;
}
.port-card:hover .port-card-overlay { opacity: 1; }
.port-card-title { font-size: 13px; font-weight: 600; color: white; }

/* ── Skeleton Loaders ── */
.port-skeleton {
  border-radius: var(--r-lg);
  height: 200px;
  background: linear-gradient(90deg,
    rgba(0,0,0,.04) 25%,
    rgba(0,0,0,.07) 50%,
    rgba(0,0,0,.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border: 1px solid var(--bdr);
}
@keyframes shimmer { to { background-position: -200% center; } }

/* ── Empty State ── */
.port-empty { padding: 80px 20px; text-align: center; display: flex; justify-content: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state p { font-size: 15px; color: var(--t2); }

/* ════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════ */
.about-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 740px; }

.about-hero {
  padding: 44px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  box-shadow: var(--shd);
}
.about-logo {
  width: 60px; height: 60px; border-radius: var(--r-lg);
  background: #1d1d1f;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.about-title   { font-size: 26px; font-weight: 700; letter-spacing: -.4px; color: var(--t1); }
.about-tagline { font-size: 15px; color: var(--t2); max-width: 380px; line-height: 1.65; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-card {
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  box-shadow: var(--shd);
}
.about-card-icon { font-size: 22px; }
.about-card h3  { font-size: 14px; font-weight: 650; color: var(--t1); }
.about-card p   { font-size: 13px; color: var(--t2); line-height: 1.65; }

.about-contact {
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  box-shadow: var(--shd);
}
.about-contact h3 { font-size: 16px; font-weight: 650; color: var(--t1); }
.about-contact p  { font-size: 13px; color: var(--t2); }
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 10px 20px; border-radius: var(--r-md);
  background: var(--acc); border: none;
  color: white; font-family: inherit; font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: var(--ease); align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,113,227,.28);
}
.contact-btn:hover { background: #0077ed; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,113,227,.35); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .port-grid  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
  :root { --sw: 60px; }
  .brand-name, .nav-btn > span, .nav-label, .sidebar-foot { display: none; }
  .nav-btn { justify-content: center; padding: 10px; }
  .main { padding: 24px 18px; }
}
