/* ================================
🌐 Global Theme Variables
================================= */
:root {
  --bg: #050506;
  --panel: #0b0c0d;
  --muted: #9aa9a3;
  --accent: #00ffcc;
  --accent-2: #00c2a6;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #030303 0%, #070707 100%);
  color: #dffbf2;
  line-height: 1.6;
}

/* ================================
🧭 Header Section
================================= */
header {
  text-align: center;
  padding: 30px 10px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.08);
}

/* Top section with image + name */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.6);
}

h1 {
  font-size: 40px;
  color: var(--accent);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 255, 200, 0.06);
}

p.lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* Navigation Bar */
nav {
  margin-top: 16px;
}

nav a {
  color: var(--accent);
  margin: 0 14px;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent-2);
}

/* Responsive header */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
  }

  .header-pic {
    width: 70px;
    height: 70px;
  }

  h1 {
    font-size: 32px;
  }
}

/* ================================
📦 Main Container
================================= */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 18px;
}

h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
  color: #e9fff9;
  letter-spacing: 1px;
}

/* ================================
👨‍💻 Welcome / Intro Section (Glowing Card Style)
================================= */
.intro-box {
  max-width: 950px;
  margin: 50px auto;
  padding: 40px;
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.05), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(0, 255, 200, 0.25);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 255, 200, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.intro-box h2 {
  text-align: center;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
}

.intro-box p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #dffbf2;
}

.intro-box strong {
  color: var(--accent);
  font-weight: 800;
}

.intro-box em {
  color: #ff4e85;
  font-style: normal;
  font-weight: bold;
}

.intro-box span.highlight {
  color: #ffb84d;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 184, 77, 0.6);
}

/* ================================
🧪 Research / Blog Cards
================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(0, 255, 200, 0.05);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 60px rgba(0, 255, 200, 0.12);
  border-color: rgba(0, 255, 200, 0.25);
}

.thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.card-body {
  padding: 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.title {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 10px;
  font-size: 18px;
}

.desc {
  color: #9fbfb1;
  flex: 1 1 auto;
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 200, 0.3);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  color: #051010;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
}

/* ================================
📜 Footer
================================= */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

/* ================================
✨ Extras (scrollbar & focus)
================================= */
a, button {
  cursor: pointer;
}

a:focus, button:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}
