/* styles.css (REPLACE ENTIRE FILE WITH THIS) */
:root{
  --bg: #0b0f16;
  --panel: #0f1622;
  --panel2:#0c1320;
  --text: #e7ecf3;
  --muted:#aab4c2;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #17233a 0%, var(--bg) 55%),
              radial-gradient(900px 600px at 90% 10%, #0f2a26 0%, var(--bg) 55%);
  color: var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }

.container{
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.container-wide{
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* A readable text column that stays LEFT-aligned inside the wide container */
.text-rail{
  max-width: 1100px;
}

.site-header{ padding: 42px 0 26px; }

.topline{
  display:flex; gap:18px; align-items:flex-start; justify-content:space-between;
  flex-wrap:wrap;
}

h1{ margin:0; font-size: 40px; letter-spacing: -0.02em; }
.subtitle{ margin:8px 0 0; color: var(--muted); }

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav a:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.hero{ margin-top: 20px; padding: 18px 0 6px; }
.hero-text{ max-width: 70ch; color: var(--text); opacity:0.92; font-size: 18px; }
.hero-buttons{ display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.btn:hover{ background: rgba(255,255,255,0.10); }
.btn-ghost{ background: transparent; }

.section{ padding: 34px 0; }
.section-alt{ background: rgba(0,0,0,0.18); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
}

h2{ margin:0 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.muted{ color: var(--muted); margin:0; }

.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.card-img{
  width: 100%;
  aspect-ratio: 16 / 10;
  display:block;
  object-fit: cover;
}

.card-body{ padding: 14px 14px 16px; }
.card-title{ font-weight: 650; font-size: 16px; margin: 0 0 8px; }
.card-desc{ margin: 10px 0 0; color: var(--muted); }

.card-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size: 12px;
  color: var(--text);
  opacity:0.85;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.about{ max-width: 80ch; color: var(--text); opacity:0.92; }

.contact-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.pill:hover{ background: rgba(255,255,255,0.08); }

.footer{
  padding: 22px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }

  .container,
  .container-wide{
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }
  h1{ font-size: 34px; }

  .container,
  .container-wide{
    padding-left: 20px;
    padding-right: 20px;
  }
}
