/* =========================
   Modern Sleek Portfolio
   HTML + CSS only (no JS)
   ========================= */

/* Optional: Uncomment for Inter from Google Fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); */

:root{
  --bg: #0b0f17;
  --bg-2: #070a11;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --accent-a: #7c3aed;
  --accent-b: #22d3ee;

  --shadow: 0 20px 70px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);

  /* ✅ ONLY CHANGE: background updated to match the newer look */
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,58,237,.30), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(124,58,237,.18), transparent 65%),
    var(--bg);

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Header + Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11,15,23,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.brand-mark{
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 0 6px rgba(124,58,237,0.12);
}
.brand-text{ font-size: 14px; opacity: 0.95; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a.active{
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Pure CSS mobile menu */
.nav-toggle{ display: none; }

.nav-toggle-btn{
  display: none;
  width: 42px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle-btn span{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  display: block;
  border-radius: 2px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(34,211,238,0.90));
  color: rgba(0,0,0,0.92);
  font-weight: 900;
  border: 0;
  box-shadow: 0 18px 55px rgba(34,211,238,0.10);
  transition: transform 140ms ease, filter 140ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.btn:active{ transform: translateY(0px); }

.btn-small{
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

.btn-full{ width: 100%; }

/* Typography */
.eyebrow{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}
.headline{
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.02;
  margin: 0 0 12px;
}
.subhead{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 62ch;
}
.gradient-text{
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tiny{ font-size: 12px; }
.muted{ color: var(--muted); }

/* HERO (back to a cleaner structure + NO stretched card) */
.hero{
  position: relative;
  padding: 64px 0 28px; /* closer to original feel */
  overflow: hidden;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px; /* fixed right column prevents ugly stretching */
  gap: 22px;
  align-items: start;
}

.hero-card{
  justify-self: end;
}

.glass-card{
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.avatar{ padding: 18px 18px 0; }

/* 1x1 portrait, NOT centered inside a huge empty card anymore */
.avatar-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(124,58,237,0.30), transparent 55%),
    radial-gradient(700px 250px at 80% 30%, rgba(34,211,238,0.22), transparent 55%),
    rgba(255,255,255,0.06);
}
.avatar-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card-body{ padding: 14px 18px 18px; }
.card-title{ margin: 6px 0 4px; font-size: 18px; }
.card-subtitle{ margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.pill-row{
  display: flex;
  flex-wrap: wrap; /* back to wrap — no weird scroll bar look */
  gap: 8px;
}
.pill{
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 10px;
  border-radius: 999px;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}

.info-list{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.info-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.info-k{ color: var(--muted); }
.info-v{ color: rgba(255,255,255,0.92); }

/* Decorative glow */
.hero-glow{
  position: absolute;
  inset: -200px -200px auto -200px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.22), transparent 55%),
              radial-gradient(circle at 80% 20%, rgba(34,211,238,0.14), transparent 55%);
  filter: blur(30px);
  pointer-events: none;
}

/* Sections */
.section{ padding: 44px 0; }

.section-head{ margin-bottom: 18px; }
.section-head h2{
  margin: 0 0 6px;
  font-size: 22px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
}

/* Two column content */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel{
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.panel h3{ margin: 0 0 10px; font-size: 16px; }

.checklist{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.checklist li{ margin: 6px 0; }

.focus-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.focus-item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 12px;
}
.focus-title{ font-weight: 900; font-size: 13px; }
.focus-sub{ color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Cards */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.work-card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.11);
  padding: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.30);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.work-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}
.work-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.work-title{ margin: 0; font-size: 16px; line-height: 1.2; }
.badge{
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  white-space: nowrap;
}
.work-desc{ margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tag-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag{
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
}
.work-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.link{
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,0.90);
  opacity: 0.92;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.link:hover{ border-bottom-color: rgba(255,255,255,0.25); }

/* CONTACT: narrower but LEFT-aligned (no centering) */
.contact-wrap{
  max-width: 760px;
}

/* Contact list */
.contact-list{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.contact-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.contact-k{ color: var(--muted); font-size: 13px; }
.contact-v{ font-weight: 900; font-size: 13px; }

/* Footer */
.footer{
  padding: 18px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 26px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card{ justify-self: start; } /* keeps it aligned with content on smaller screens */
  .grid-2{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-toggle-btn{ display: inline-flex; }

  .nav-links{
    position: absolute;
    right: 20px;
    left: 20px;
    top: 62px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8,10,16,0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-toggle:checked ~ .nav-links{
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
  }

  .nav-links a{
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .contact-item{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MEDIA PREVIEWS + THUMBNAILS (Fix aspect ratio + small previews)
   ========================================================= */

/* Video/Link preview (used by YouTube/Facebook video cards) */
.media-preview{
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
}
.media-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlays */
.platform-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}
.play-badge{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 12px 40px rgba(0,0,0,0.65);
}

/* Thumbnail grid: smaller cards for lots of images */
.thumb-grid{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.work-card--thumb{
  padding: 14px;
}

/* Pubmat thumbnails: CONTAIN (no crop) + preserve original aspect ratio */
.media-thumb{
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
}

/* IMPORTANT FIX:
   This makes pubmats follow the image's own aspect ratio (no forced crop),
   while still staying "small" via a fixed preview height. */
.media-thumb--contain{
  height: 200px;         /* small preview height */
  padding: 10px;         /* creates nice letterbox space */
}
.media-thumb--contain img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show whole image */
  object-position: center;
}

/* Frames are always 1x1 */
.media-thumb--square{
  aspect-ratio: 1 / 1;
  padding: 10px;
}
.media-thumb--square img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* =========================================================
   CSS-ONLY LIGHTBOX (Zoom on click)
   ========================================================= */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.lightbox:target{
  display: flex;
}

.lightbox img{
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.04);
}

.lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.lightbox-close:hover{
  background: rgba(255,255,255,0.12);
}
