/* MindLabz Dark Portfolio Theme */
:root{
  --bg:#0b0c10;
  --panel:#111319;
  --soft:#161922;
  --text:#e7e9ee;
  --muted:#a8adbb;
  --accent:#e02424; /* Red accent */
  --accent-2:#f05252;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a{color:var(--text); text-decoration:none}
.container{width:100%; max-width:1200px; margin:0 auto; padding:0 20px}

/* Nav */
nav{
  position:sticky; top:0; backdrop-filter: blur(8px);
  background:rgba(11,12,16,.6); border-bottom:1px solid rgba(255,255,255,.06);
  z-index:10;
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; font-weight:700}
.brand img{width:36px; height:36px; border-radius:999px}

/* Align nav items and button */
nav ul{
  display:flex;
  align-items:center; /* centers all items vertically */
  gap:18px;
  list-style:none;
  padding:0;
  margin:0;
}
nav ul li{
  display:flex;
  align-items:center;
}
nav a:hover{color:var(--accent)}

/* Buttons */
.btn{
  display:inline-block; padding:10px 16px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(224,36,36,.12), rgba(224,36,36,.05));
  transition:all .2s ease; color:var(--text)
}
.btn:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
  box-shadow:0 6px 18px rgba(224,36,36,.25);
}
.btn-solid{
  background:var(--accent); border-color:transparent; color:white; font-weight:600;
}
.btn-solid:hover{background:var(--accent-2)}

/* Responsive Navbar (Hamburger) */
.menu-toggle{
  display:none;
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:transparent;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  background:#e7e9ee;
  border-radius:1px;
  transition:all .3s ease;
}
.menu-toggle.open span:nth-child(1){
  transform:rotate(45deg) translate(4px, 4px);
}
.menu-toggle.open span:nth-child(2){
  opacity:0;
}
.menu-toggle.open span:nth-child(3){
  transform:rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 820px) {
  .brand span { display: none; }
  .menu-toggle { display: flex; }

  .nav-inner { justify-content: space-between; }

  .nav-right {
    position: fixed;
    top: 60px;
    left: 16px;
    right: 16px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-direction: column;   /* ✅ stack items vertically */
    align-items: stretch;     /* ✅ full width buttons/links */
    gap: 12px;
  }

  .nav-right.open { display: flex; }

  .nav-right .btn-solid {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  nav ul {
    display: flex;
    flex-direction: column;   /* ✅ make nav links vertical */
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  nav ul a {
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
  }

  nav ul a:hover {
    background: rgba(255,255,255,.04);
  }
}


/* Hero */
section.hero{
  padding:90px 0 70px;
  background:
    radial-gradient(1000px 400px at 20% -10%, rgba(224,36,36,.25), transparent 60%),
    radial-gradient(900px 380px at 80% 0%, rgba(240,82,82,.18), transparent 65%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.hero .grid{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center}
.hero h1{font-size:48px; line-height:1.15; margin:0 0 12px}
.hero p.lead{color:var(--muted); font-size:18px; margin:0 0 22px}
.hero .actions{display:flex; gap:12px; flex-wrap:wrap}
.hero .logo{width:120px; height:120px; border-radius:999px; background:#00000055; display:flex; align-items:center; justify-content:center; margin-bottom:14px}
.hero .panel{
  background:var(--panel); border:1px solid rgba(255,255,255,.06); border-radius:var(--radius);
  padding:24px;
}

/* Sections */
section{padding:72px 0}
.section-title{font-size:28px; margin:0 0 8px}
.section-sub{color:var(--muted); margin:0 0 24px}

/* Cards */
.grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px}
.grid-2{display:grid; grid-template-columns:repeat(2, 1fr); gap:20px}
.card{
  background:var(--soft); border:1px solid rgba(255,255,255,.06); border-radius:var(--radius);
  padding:18px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.35); border-color:rgba(224,36,36,.35)}
.card .thumb{
  aspect-ratio:16/9; border-radius:12px; background:
    linear-gradient(180deg, rgba(224,36,36,.22), rgba(240,82,82,.12)),
    linear-gradient(45deg,#1d2029,#12141c); display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:600; letter-spacing:.3px; margin-bottom:12px;
}
.badge{display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14); color:var(--muted); font-size:12px; margin-right:6px}

/* Footer */
footer{padding:40px 0; border-top:1px solid rgba(255,255,255,.06); color:var(--muted)}
footer .row{display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap}
.social a{margin-right:12px; color:var(--muted)}
.social a:hover{color:var(--accent)}

/* Responsive cards */
@media (max-width: 960px){
  .hero .grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .grid-3, .grid-2{grid-template-columns:1fr}
  .hero h1{font-size:38px}
}
