:root{
  --bg: #0b0d12;
  --panel: rgba(18, 22, 32, 0.80);
  --panel-solid: #121620;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.50);
  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.16);
  --accent: #8b5cf6;
  --shadow: 0 16px 50px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(139,92,246,0.18), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(34,197,94,0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   TOPBAR
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, 0.65);
  border-bottom: 1px solid var(--stroke);
}

.topbar-inner{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.30);
}

.nav{
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-btn{
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.nav-btn:hover{ background: rgba(255,255,255,0.08); }
.nav-btn:active{ transform: translateY(1px); }

.nav-btn-primary{
  border-color: rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.18);
}

/* =========================
   HERO (left content + right cutout image)
   ========================= */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 36px 0 46px;
  display: grid;
  align-items: start;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url("Passets/Phero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05) brightness(0.75);
  transform: scale(1.02);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(139,92,246,0.22), transparent 60%),
    linear-gradient(to bottom, rgba(11,13,18,0.35), rgba(11,13,18,0.92));
}

.hero-content{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;

  /* reserve space on the right so the person can overlap */
  padding-right: 22vw;
}

.hero-left{ max-width: 640px; }

.hero-hello{
  margin: 0;
  font-size: clamp(54px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: -1px;
}

.hero-intro{
  margin: 10px 0 18px;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: -0.6px;
}

/* Keyword cards */
.keyword-cards{
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 14px;
}

.keyword-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(18, 22, 32, 0.55);
  border: 1px solid var(--stroke2);
  backdrop-filter: blur(10px);
}

.keyword-card + .keyword-card{
  margin-top: 10px; /* extra vertical breathing room */
}

.keyword-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.30);
}

.keyword-title{ font-weight: 800; }
.keyword-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Big person image */
.hero-person{
  position: absolute;
  left: 58%;
  transform: translateX(-50%);
  bottom: 0;

  /* adjust these two to size the person */
  height: 62vh;
  max-height: 620px;

  width: auto;
  object-fit: contain;

  z-index: 1;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,0.65));
  pointer-events: none;
  user-select: none;
}

/* =========================
   SECTIONS / CARDS
   ========================= */
.main{ padding: 30px 0 40px; }
.section{ padding: 38px 0; }

.section-head h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.card{
  background: rgba(18, 22, 32, 0.55);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

/* =========================
   ABOUT
   ========================= */
.about-centered{ text-align: center; }

.about-grid{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card h3,
.about-highlight h3{ margin: 0 0 10px; }

.about-card p{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.about-bullets{ display: grid; gap: 12px; }

.about-bullet{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}

.dot{
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(139,92,246,0.85);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.15);
}

.bullet-title{ font-weight: 800; }
.bullet-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.snapshot{ margin-top: 8px; display: grid; gap: 12px; }

.snap-row{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}

.snap-label{ color: var(--muted2); font-weight: 700; }
.snap-value{ color: var(--text); font-weight: 700; text-align: right; }

/* =========================
   EXPERIENCE GRID
   ========================= */
.exp-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.exp-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke2);
  background: rgba(18, 22, 32, 0.45);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.exp-card:hover{
  transform: translateY(-2px);
  border-color: rgba(139,92,246,0.35);
  background: rgba(18, 22, 32, 0.60);
}

.exp-card:focus{
  outline: 2px solid rgba(139,92,246,0.45);
  outline-offset: 3px;
}

.exp-thumb{
  padding: 14px;
  background: rgba(0,0,0,0.25);
}

.exp-thumb img{
  width: 100%;
  height: auto;          /* natural height */
  object-fit: contain;  /* never crop */
  display: block;
  border-radius: 14px;
  background: #000;
}

.exp-meta{ padding: 14px 14px 16px; }
.exp-title{ font-weight: 900; letter-spacing: -0.2px; }
.exp-dates{ margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 13px; }

/* =========================
   CONTACT
   ========================= */
.contact-card{ margin-top: 18px; padding: 16px; }

.contact-row{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}

.contact-row + .contact-row{ margin-top: 12px; }

.contact-label{ color: var(--muted2); font-weight: 800; }

.contact-value{
  color: rgba(255,255,255,0.90);
  font-weight: 800;
  text-decoration: none;
}

.contact-value:hover{ text-decoration: underline; }

/* =========================
   FOOTER
   ========================= */
.footer{
  padding: 22px 0 40px;
  color: var(--muted2);
  border-top: 1px solid var(--stroke);
}

/* =========================
   MODAL
   ========================= */
.modal{ position: fixed; inset: 0; display: none; z-index: 60; }
.modal.is-open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.modal-panel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 26px));
  max-height: min(84vh, 760px);
  border-radius: 22px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.modal-title{ font-weight: 950; letter-spacing: -0.3px; font-size: 18px; }
.modal-sub{ color: var(--muted); font-weight: 700; margin-top: 2px; font-size: 13px; }

.modal-close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.modal-close:hover{ background: rgba(255,255,255,0.10); }

.modal-body{ overflow: auto; padding: 16px 18px 18px; }

.modal-hero{
  border-radius: 0;              /* removes inner pill effect */
  overflow: hidden;
  background: transparent;
  margin: 0 -18px;               /* BREAKS OUT of modal padding */
}

.modal-hero img{
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #000;              /* black instead of gray */
}

/* Tags + gallery disabled (you removed tags and want inline images) */
.modal-tags{ display: none !important; }
.modal-gallery{ display: none !important; }

.modal-text{
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 10px;
}

.modal-text h3,
.modal-text h4,
.modal-text h5{
  color: var(--text);
  margin: 16px 0 8px;
  letter-spacing: -0.2px;
}

.modal-text ul{
  margin: 8px 0 14px 18px;
}

.modal-text p{
  margin: 8px 0 12px;
}

/* Inline images inside modal description (NO CROPPING) */
.inline-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.inline-gallery img{
  width: 100%;
  height: auto;
  object-fit: contain; /* prevents cropping */
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .topbar-inner{ height: auto; padding: 12px 0; }
  .nav{ flex-wrap: wrap; }

  .hero-content{ padding-right: 0; }
  .hero-person{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 420px;
    max-height: none;
    margin-top: 18px;
  }

  .exp-grid{ grid-template-columns: repeat(2, 1fr); }
  .modal-hero img{ height: 240px; }
}

@media (max-width: 520px){
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-grid{ grid-template-columns: 1fr; }
  .hero-person{ height: 340px; }
  .modal-hero img{ height: 220px; }
}

/* Disable modal hero image for all projects */
.modal-hero {
  display: none !important;
}


