:root{
  --brand:#0078D4;
  --brand-2:#00B294;

  --ink:#0f172a;
  --muted:#334155;

  --bg:#0b1220;
  --card:#101826;
  --card-border:#1f2937;

  --text-primary:#e2e8f0;
  --text-secondary:#cbd5e1;
  --text-muted:#94a3b8;

  --shadow-md:0 10px 40px rgba(0,0,0,.35);
  --shadow-lg:0 20px 60px rgba(0,0,0,.35);

  --card-accent:linear-gradient(
    135deg,
    rgba(0,120,212,.25),
    rgba(0,178,148,.15)
  );
}

/* Reset */
*,*::before,*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text-primary);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
  line-height:1.5;
}

a{
  color:var(--brand);
  text-decoration:none;
}
a:hover{text-decoration:underline}

/* Layout */
.container{
  max-width:1080px;
  margin:0 auto;
  padding:2rem;
}

/* Navigation */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:#0e1726;
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid var(--card-border);
}

.nav .brand{
  display:flex;
  gap:.75rem;
  align-items:center;
}

.nav img{
  width:40px;
  height:40px;
  border-radius:6px;
}

.nav .links a{
  margin-left:1rem;
  color:#e5e7eb;
}

/* Hero */
.hero{
  padding:5rem 2rem;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(0,120,212,.35), transparent),
    radial-gradient(800px 600px at 100% 0, rgba(0,178,148,.25), transparent);
}

.hero .content{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2rem;
  align-items:center;
}

.hero h1{
  font-size:clamp(2rem,4vw,3rem);
  margin:0 0 .5rem;
}

.hero p{color:var(--text-secondary)}

.hero img{
  width:100%;
  border-radius:12px;
  box-shadow:var(--shadow-lg);
}

/* Sections */
.section{
  padding:3rem 2rem;
}

/* Generic grids */
.grid{
  display:grid;
  gap:1.25rem;
}

.grid.cards{
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

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

.card .p{
  padding:1rem;
}

/* UI */
.badge{
  display:inline-block;
  padding:.25rem .5rem;
  background:#0b4b74;
  border:1px solid #3b82f6;
  color:#cfe7ff;
  border-radius:999px;
  font-size:.75rem;
}

.button{
  display:inline-block;
  margin-top:1rem;
  background:var(--brand);
  color:#fff;
  padding:.6rem 1rem;
  border-radius:8px;
  transition:transform .12s ease, filter .12s ease;
}

.button:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.button.alt{
  background:transparent;
  border:1px solid var(--brand);
  color:#cfe7ff;
}

/* Footer */
.footer{
  padding:2rem;
  text-align:center;
  border-top:1px solid var(--card-border);
  color:var(--text-muted);
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:8px;
}

.gallery img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
}

/* Post */
.post{
  max-width:820px;
  margin:0 auto;
}

.post h1{margin-top:0}

.post img{
  width:100%;
  border-radius:12px;
  box-shadow:var(--shadow-md);
}

/* Inline code */
.kbd{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:#0b2942;
  color:#e5f1ff;
  padding:.15rem .35rem;
  border:1px solid #1e3a8a;
  border-radius:4px;
}

.small{
  font-size:.9rem;
  color:var(--text-muted);
}

/* =========================
   SKILLS GRID (TIDIED + 2× ICON)
   ========================= */

.skills-grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  margin:32px 0;
}

.skill-card{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto 1fr;
  column-gap:20px;
  row-gap:10px;

  background:
    var(--card-accent),
    var(--card);

  border:1px solid var(--card-border);
  padding:22px;
  border-radius:14px;

  box-shadow:0 12px 30px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}

.skill-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 55px rgba(0,120,212,.28);
}

/* DOUBLE SIZE ICON */
.skill-icon{
  width:128px;
  height:128px;
  grid-row:1 / span 3;

  object-fit:contain;
  border-radius:12px;
  background:#0e1726;
  border:1px solid var(--card-border);
  padding:14px;
}

/* Text */
.skill-card h2{
  margin:0;
  font-size:1.15rem;
  line-height:1.25;
  color:#f8fafc;
}

.skill-card ul{
  margin:0;
  padding-left:1.1rem;
  font-size:.95rem;
  color:var(--text-secondary);
}

/* Mobile */
@media (max-width:640px){
  .hero .content{
    grid-template-columns:1fr;
  }

  .skill-card{
    grid-template-columns:1fr;
  }

  .skill-icon{
    width:96px;
    height:96px;
    margin-bottom:6px;
  }
}
