/* Portfolio — Web3 premium styles
   Place as assets/css/portfolio.css
*/

/* variables */
:root{
 /* --primary:#06163A;   /* brand primary */
  --accent:#D62D30;    /* brand secondary */
  --muted:#f5f5f5;
  --glass-bg: rgba(255,255,255,0.04);
  --card-radius:16px;
  --max-w:1200px;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family:'Lato',system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial; color:#fff;background:#fff;}
a{color:inherit}
.container{width:90%; max-width:var(--max-w); margin:0 auto}

/* header tweaks (reuses your site header) */
.header{position:fixed; left:0; right:0; top:0; z-index:60; padding:16px 0; background:transparent}
.header.scrolled{background:#fff; box-shadow:0 8px 30px rgba(0,0,0,.12); padding:8px 0}

/* HERO */
.portfolio-hero{
  position:relative;
  padding:120px 0 40px;
  overflow:hidden;
}
.hero-gradient{
  position:absolute; inset:0; background: linear-gradient(135deg, #04060b, #0c0d0f, #D62D30); z-index:0; opacity:0.95;
  transform:translateZ(0);
  /*filter: saturate(1.05) blur(18px);*/
}
.hero-inner{position:relative; z-index:2; display:grid; grid-template-columns:1fr 380px; gap:32px; align-items:center}
.hero-title{font-size:36px; margin:0 0 8px; color:var(--muted); font-weight:800}
.hero-sub{margin:0 0 18px; color:rgba(255, 255, 255, 0.9)}

/* filter buttons */
.filters{display:flex; flex-wrap:wrap; gap:12px; margin-top:14px}
.filter-btn{
  background:transparent; border:1px solid rgba(255,255,255,0.12); color:var(--muted); padding:10px 14px; border-radius:999px; cursor:pointer; font-weight:700;
  transition: all .28s ease; backdrop-filter: blur(6px)
}
.filter-btn:hover{transform:translateY(-4px)}
.filter-btn.active{background:rgba(0,0,0,0.18); box-shadow:0 6px 18px rgba(0,0,0,.5); border-color:rgba(255,255,255,0.18)}

/* hero-card on right */
.hero-card{background:var(--glass-bg); border-radius:12px; padding:18px; border:1px solid rgba(255,255,255,0.06); box-shadow:0 10px 30px rgba(0,0,0,.5)}

/* GRID */
.portfolio-grid-section{padding:48px 0 120px; position:relative}
.grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:28px; align-items:stretch; z-index:2; position:relative}

/* project card */
.project-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:var(--card-radius); overflow:hidden; display:flex; flex-direction:column;
  border:1px solid rgba(255,255,255,0.04); box-shadow:0 10px 30px rgba(0,0,0,0.6);
  transform: translateY(20px); opacity:0; transition:all .45s cubic-bezier(.2,.9,.2,1);
}
.project-card.visible{ transform: translateY(0); opacity:1 }

/* thumbnail */
.thumb{height:180px; background-size:cover; background-position:center;}

/* card body */
.card-body{ padding:14px 16px; display:flex; flex-direction:column; gap:8px; flex:1 }
.card-body h4{ margin:0; font-size:18px; color:rgba(0, 0, 0, 0.8);; font-weight:700}
.card-body p.muted{ margin:0; color:rgba(0, 0, 0, 0.8); font-size:14px }

/* actions */
.card-actions{ display:flex; gap:10px; margin-top:auto; align-items:center }
.view-btn{ background:transparent; border:1px solid rgba(35, 34, 34, 0.08); color:rgba(53, 51, 51, 0.85); padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:700 }
.view-btn:hover{ transform:translateY(-4px); background:rgba(255,255,255,0.02) }
.link{ color:rgba(66, 66, 66, 0.85); font-weight:700; text-decoration:underline; font-size:14px }

/* modal */
.modal{ display:none; position:fixed; inset:0; z-index:120; align-items:center; justify-content:center }
.modal.show{ display:flex }
.modal-backdrop{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8)) }
.modal-panel{ position:relative; width:min(1000px,94%); max-height:90vh; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,0.06); display:grid; grid-template-columns: 1fr 360px }
.modal-close{ position:absolute; right:14px; top:12px; z-index:5; background:transparent; border:0; font-size:32px; color:#fff; cursor:pointer }
.modal-media{ background:#111; min-height:320px;background-repeat: no-repeat;box-shadow: inset 0 0 40px rgba(214,45,48,0.15); border-radius: 16px; background-size:contain; background-position:center }
.modal-info{ padding:22px; display:flex; flex-direction:column; gap:10px }
.modal-info .muted{ color:rgba(255,255,255,0.85) }
.modal-actions{ margin-top:auto; display:flex; gap:12px }

/* buttons */
.btn{ display:inline-block; padding:10px 14px; border-radius:10px; text-decoration:none; font-weight:800 }
.btn-outline{ border:1px solid rgba(255,255,255,0.12); background:transparent; color:var(--muted) }
.btn-primary{ background:var(--accent); color:#fff }

/* responsive */
@media (max-width:980px){
  .hero-inner{ grid-template-columns: 1fr; gap:22px }
  .modal-panel{ grid-template-columns: 1fr; }
  .modal-info{ padding:14px }
}
@media (max-width:560px){
  .hero-title{ font-size:28px }
  .thumb{ height:140px }
  .project-card{ border-radius:12px }
}

/* VIDEO SUPPORT (non-conflicting) */
.video-thumb-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover zoom */
.video-thumb-wrapper:hover .video-thumb {
  transform: scale(1.05);
}

/* Play button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #D62D30;
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.9;
  z-index: 2;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Modal video */
.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
 