:root{
  --bg: #0b1020;

  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.08);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);

  --border: rgba(255,255,255,0.10);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);

  /* ✅ New Theme Colors */
  --accent: #3b82f6;     /* Bright Blue */
  --accent-2: #8b5cf6;   /* Purple */

  --radius: 18px;
  --max: 1120px;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

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

  /* ✅ Smooth blue/purple with a soft center blend (no hard seam) */
  background-image:
    radial-gradient(120% 90% at 12% 8%,
      rgba(59,130,246,0.18),
      transparent 62%),
    radial-gradient(110% 85% at 88% 12%,
      rgba(139,92,246,0.16),
      transparent 64%),
    radial-gradient(120% 120% at 50% 0%,
      rgba(110, 140, 255, 0.06),
      transparent 70%);

  background-repeat: no-repeat;
  background-size: 140% 120%, 140% 120%, 180% 140%;
  background-position: 12% 8%, 88% 12%, 50% 0%;
}

a{
  color: inherit;
}

.container{
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* ============================= */
/* ✅ HEADER + NAV */
/* ============================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;

  backdrop-filter: blur(12px);
  background: rgba(11,16,32,0.75);

  border-bottom: 1px solid var(--border);
}

.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-text{
  font-size: 1.05rem;
}

/* ✅ Logo image support */
.brand-logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link{
  text-decoration:none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-link:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.nav-link.active{
  color: var(--text);
  background: rgba(255,255,255,0.10);
}

/* ✅ CTA Button */
.nav-cta{
  text-decoration:none;
  padding: 9px 12px;
  border-radius: 12px;

  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(139,92,246,0.35);
}

.nav-cta:hover{
  background: rgba(139,92,246,0.22);
}

/* ============================= */
/* ✅ HERO */
/* ============================= */

.hero{
  position: relative;
  padding: 64px 0 36px;
  overflow: hidden;
}

.glow{
  position:absolute;
  inset:-200px -200px auto -200px;
  height: 520px;

  background: radial-gradient(
    closest-side,
    rgba(59,130,246,0.16),
    transparent 70%
  );

  pointer-events:none;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
}

@media (max-width: 860px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
}

.eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
}

.lead{
  margin: 0 0 18px;
  font-size: 1.08rem;
}

.actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

/* ✅ Buttons */
.btn{
  text-decoration:none;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.06);
  font-weight: 650;
}

.btn:hover{
  background: rgba(255,255,255,0.09);
}

.btn.primary{
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.40);
}

.btn.primary:hover{
  background: rgba(139,92,246,0.28);
}

.btn.ghost{
  background: rgba(255,255,255,0.04);
}

/* ============================= */
/* ✅ STATS */
/* ============================= */

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

@media (max-width: 860px){
  .stats{
    grid-template-columns: 1fr;
  }
}

.stat{
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.stat-num{
  font-weight: 800;
}

.stat-label{
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
}

/* ============================= */
/* ✅ CARDS */
/* ============================= */

.section{
  padding: 44px 0;
}

.section-head h2{
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

@media (max-width: 980px){
  .cards{
    grid-template-columns: 1fr;
  }
}

.card{
  padding: 18px;
  border-radius: var(--radius);

  background: var(--panel);
  border: 1px solid var(--border);
}

.card h3{
  margin: 0 0 8px;
}

.card p{
  margin: 0;
  color: var(--muted);
}

/* ✅ Tag Pills */
.tag{
  font-size: .78rem;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.28);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ✅ Links */
.text-link{
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.text-link:hover{
  border-bottom-color: rgba(59,130,246,0.65);
}

/* ============================= */
/* ✅ CONTACT CARDS */
/* ============================= */

.contact-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

@media (max-width: 860px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}

.contact-card{
  text-decoration:none;
  padding: 14px;
  border-radius: var(--radius);

  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.contact-card:hover{
  background: rgba(255,255,255,0.09);
}

.contact-title{
  font-weight: 750;
  margin-bottom: 4px;
}

/* ============================= */
/* ✅ FOOTER */
/* ============================= */

.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 30px;
  background: rgba(11,16,32,0.65);
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links{
  display:flex;
  gap: 12px;
}

.muted{
  color: var(--muted);
}

/* ============================= */
/* ✅ PAGE HEADER SPACING (Projects/About) */
/* ============================= */

.page-hero{
  padding: 70px 0 30px;   /* Matches index hero buffer */
}

.page-hero h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.page-hero .lead{
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
}
