
/* =========================
   THEME
========================= */
:root{
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #a5b4c7;
  --primary: #60a5fa;
  --accent: #22c55e;

  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(96,165,250,0.22);

  --shadow: 0 14px 30px rgba(0,0,0,.28);
  --radius: 16px;

  /* image heights */
  --img-h: 220px;
  --img-h-md: 200px;
  --img-h-sm: 160px;
}

*{ box-sizing: border-box; }

html, body{
  width: 100%;
  overflow-x: hidden;
}

body{
  font-family: "Open Sans", sans-serif, Arial, Helvetica;
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(34,197,94,.12), transparent 55%),
    var(--bg);
}

/* =========================
   LINKS / LISTS / CONTAINER
========================= */
a{ color: var(--primary); text-decoration: none; }
a:hover{ color: var(--accent); }

ul{ margin: 10px 0; }
ul li{ margin-left: 20px; }

.container{
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================
   BANNER / HERO
========================= */
#banner{ padding: 8px 0; }

#banner-content.row{
  padding: 32px 0 28px;
  margin: 0;
}

#banner h1{
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

#banner h2{
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 14px;
}

#banner p{
  color: rgba(229,231,235,0.92);
  line-height: 1.7;
  max-width: 820px;
}

/* Button */
.button{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0b1220;
  background: var(--primary);
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 999px;
  padding: 12px 18px;
  margin-top: 22px;
  transition: .15s ease;
}
.button:hover{
  background: var(--accent);
  transform: translateY(-1px);
}

/* =========================
   SECTIONS
========================= */
section{ margin-top: 32px; }

section h2{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* =========================
   GRID SYSTEM
========================= */
#publications .row,
#featured-projects .row,
#automation-delivery .row,
#data-analytics .row{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
}

@media (max-width: 520px){
  #publications .row,
  #featured-projects .row,
  #automation-delivery .row,
  #data-analytics .row{
    grid-template-columns: 1fr;
  }
}

/* Neutralize bootstrap columns */
#publications .col-lg-4,
#featured-projects .col-lg-4,
#automation-delivery .col-lg-4,
#data-analytics .col-lg-4,
#publications .col-md-6,
#featured-projects .col-md-6,
#automation-delivery .col-md-6,
#data-analytics .col-md-6{
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* =========================
   PORTFOLIO CARD
========================= */
.portfolio-container{
  display: flex;
  flex-direction: column;
}

.portfolio-card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .15s ease;
}

.portfolio-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* IMAGE — SAME SIZE EVERYWHERE */
.portfolio-card-img{
  width: 100%;
  height: var(--img-h);
  object-fit: cover;
  display: block;
  background: #0b1220;
}

@media (max-width: 992px){
  .portfolio-card-img{ height: var(--img-h-md); }
}
@media (max-width: 576px){
  .portfolio-card-img{ height: var(--img-h-sm); }
}

/* =========================
   CARD BODY
========================= */
.portfolio-card-body{
  padding: 16px 18px;
}

.pm-thumb-kicker{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pm-thumb-title{
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.pm-thumb-meta{
  font-size: 13px;
  color: rgba(165,180,199,0.9);
  margin-top: 6px;
}

/* =========================
   DESCRIPTION (UNDER CARD)
========================= */
.portfolio-box-description{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(96,165,250,.95);

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-box-description strong{
  color: var(--text);
}

/* =========================
   FOOTER
========================= */
#landing-footer{
  margin-top: 28px;
  padding-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
#landing-footer a:hover{ color: var(--text); }

/* =========================
   MOBILE TWEAKS
========================= */
@media (max-width: 576px){
  #banner h1{ font-size: 30px; }
  section h2{ font-size: 18px; }
}
