/* =========================
   Simple Portfolio Styles
   ========================= */

:root{
  --bg: #0b0f17;
  --panel: #0f1624;
  --panel-2: #0d1320;
  --text: #e8edf7;
  --muted: rgba(232, 237, 247, 0.72);
  --line: rgba(232, 237, 247, 0.12);
  --accent: #7c5cff;
  --accent-2: #24d18b;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}


a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 0.15em 0.35em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,0.65);
  border-bottom: 1px solid var(--line);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(124,92,255,0.12);
}

.nav{
  display: flex;
  gap: 18px;
  font-weight: 500;
  color: var(--muted);
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.nav-toggle{
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle-bars{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 99px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}
.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }

.mobile-nav{
  border-top: 1px solid var(--line);
  background: rgba(11,15,23,0.85);
}
.mobile-nav-inner{
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}
.mobile-nav a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.mobile-nav a:hover{ color: var(--text); }

.hero{
  padding: 72px 0 42px;
}
.hero-inner{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: calc(var(--radius) + 10px);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-title{
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle{
  margin: 14px 0 18px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.btn.primary{
  border-color: rgba(124,92,255,0.55);
  background: rgba(124,92,255,0.14);
}
.btn.small{ padding: 10px 12px; border-radius: 12px; font-weight: 600; }

.hero-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.chip:hover{ color: var(--text); background: rgba(255,255,255,0.05); }

.section{
  padding: 54px 0;
}
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 60%);
  border-top: 1px solid rgba(232,237,247,0.06);
  border-bottom: 1px solid rgba(232,237,247,0.06);
}
.section-head{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
}
.muted{ color: var(--muted); }

.grid{
  display: grid;
  gap: 14px;
}
.projects-grid{
  grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  overflow: hidden;

  display: flex;
  flex-direction: column;
}
.card:hover{
  background: rgba(255,255,255,0.05);
}
.card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card h3{
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.card p{
  margin: 10px 0 12px;
  color: var(--muted);
}
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag{
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  margin-bottom: 10px;
}
.links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto; /* 👈 key line */
}
.link{
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(232,237,247,0.25);
}
.link:hover{
  border-bottom-color: rgba(232,237,247,0.55);
}

.thumb{
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid rgba(232,237,247,0.12);
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(36,209,139,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,237,247,0.85);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-grid{
  grid-template-columns: repeat(12, 1fr);
}
.art-item{
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.art-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
}
.art-thumb{
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.03);
}
.art-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-meta{
  padding: 12px 14px 14px;
}
.art-meta h3{
  margin: 0 0 6px;
  font-size: 1rem;
}
.art-meta p{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-label{
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}
.contact-link{
  font-weight: 700;
  border-bottom: 1px solid rgba(232,237,247,0.25);
}
.contact-link:hover{ border-bottom-color: rgba(232,237,247,0.6); }
.contact-text{ margin: 0; color: var(--text); font-weight: 600; }

.footer{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(232,237,247,0.10);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 100;
}
.modal{
  width: min(980px, 100%);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(232,237,247,0.18);
  background: rgba(15,22,36,0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-close{
  position: absolute;
  margin: 12px;
  right: 0;
  top: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.modal-body{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
}
.modal-body img{
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(0,0,0,0.25);
}
.modal-meta{
  padding: 18px;
  border-left: 1px solid rgba(232,237,247,0.10);
}
.modal-meta h3{
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.modal-meta .tags{
  margin-top: 12px;
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 900px){
  .card{ grid-column: span 12; }
  .art-item{ grid-column: span 6; }
  .contact-card{ grid-template-columns: 1fr; }
  .modal-body{ grid-template-columns: 1fr; }
  .modal-meta{ border-left: none; border-top: 1px solid rgba(232,237,247,0.10); }
}
@media (max-width: 720px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .hero{ padding: 56px 0 30px; }
  .hero-inner{ padding: 26px 20px; }
  .art-item{ grid-column: span 12; }
}
