/* Google font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* =============================
   THEME VARIABLES
   ============================= */
:root {
  --brand:   #6c5ce7;   /* violet/indigo */
  --brand-2: #4f46e5;   /* deeper indigo */
  --accent:  #10b981;   /* emerald */
  --ink:     #0f172a;   /* slate-900 */
  --muted:   #6b7280;   /* slate-500 */

  --card-bg: #ffffff;
  --page-bg: #f8fafc;
}

/* =============================
   BASE STYLES
   ============================= */
* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #eef2ff 0%, transparent 60%),
    radial-gradient(1200px 600px at 100% 10%, #f0fdf4 0%, transparent 55%),
    var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
}

/* make images responsive everywhere */
img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =============================
   NAVBAR
   ============================= */
.bg-brand {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.navbar-brand {
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  opacity: 0.9;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  opacity: 1;
}

.navbar .nav-link.active {
  font-weight: 600;
}

/* better focus outlines for a11y */
.navbar .nav-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =============================
   HERO (HOME PAGE)
   ============================= */
.hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.25), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    0 24px 60px -30px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(148, 163, 184, 0.35);
}

/* animated border glow */
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 210deg,
    #4f46e5,
    #06b6d4,
    #22c55e,
    #f97316,
    #4f46e5
  );
  opacity: 0.35;
  z-index: -2;
}

/* inner mask so glow is only around edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(239, 246, 255, 0.9), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(240, 253, 250, 0.85), transparent 55%),
    rgba(255, 255, 255, 0.96);
  z-index: -1;
}

/* keep hero content above glow layers */
.hero > .row {
  position: relative;
  z-index: 1;
}

/* =============================
   CARDS
   ============================= */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background-color: var(--card-bg);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow:
    0 18px 40px -22px rgba(15, 23, 42, 0.6);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* make top images on cards feel nicer */
.card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  object-fit: cover;
}

/* =============================
   BUTTONS
   ============================= */
.btn-primary,
.btn-outline-primary {
  --bs-btn-border-radius: 0.75rem;
}

.btn-outline-primary {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--brand);
  color: #fff;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-brand:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.btn-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 0 0,
    rgba(248, 250, 252, 0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 140ms ease;
}

.btn-brand:hover::after {
  opacity: 1;
}

/* =============================
   UTILITIES
   ============================= */
.text-muted {
  color: var(--muted) !important;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-soft {
  box-shadow: 0 10px 25px -12px rgba(2, 6, 23, 0.18);
}

/* limit paragraph width on big screens for better reading */
main.container p {
  max-width: 60rem;
}

/* =============================
   ORIGINAL DEMO CLASS
   ============================= */
.myDivClass {
  width: 50px;
  height: 50px;
  background-color: tomato;
  border: 2px dotted green;
  margin-left: 12em;
  padding: 4px;
}

/* =============================
   ACHIEVEMENTS PAGE
   ============================= */

/* center achievement cards on the page */
.achievement-card {
  max-width: 760px;
  margin: 0 auto 2rem auto; /* top 0, sides auto, bottom 2rem */
}

/* center and size certificate images */
.achievement-img {
  display: block;
  margin: 1rem auto 1.5rem auto;
  max-width: 700px;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

/* =============================
   HOME PAGE EXTRAS
   ============================= */

.home-section {
  margin-bottom: 2.7rem;
}

/* soft pill tags (hero badges) */
.badge-pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.8rem;
  color: var(--ink);
  gap: 0.25rem;
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

/* tiny glowing dot used in hero snapshot list */
.dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

/* mini side panel in hero */
.mini-panel {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
}

.mini-panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
}

/* tech chips (right column list) */
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(224, 231, 255, 0.95);
  font-size: 0.78rem;
  color: #4338ca;
  border: 1px solid rgba(165, 180, 252, 0.9);
}

/* mini cards in Featured work section */
.mini-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem 1.1rem;
  box-shadow:
    0 14px 38px -18px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.mini-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow:
    0 18px 46px -22px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(129, 140, 248, 0.8);
}

.mini-card a.small {
  color: var(--brand-2);
}

.mini-card a.small:hover {
  text-decoration: underline;
}

/* =============================
   PROJECTS PAGE – SEARCH
   ============================= */
#searchInput {
  border-radius: 999px;
  padding-inline: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.45);
}

#searchInput:focus {
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px rgba(129, 140, 248, 0.35),
    0 18px 40px -24px rgba(15, 23, 42, 0.7);
}

/* =============================
   PAGE HEADERS (Projects / Blog / etc.)
   ============================= */
header.container .display-6 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--muted);
}

header.container .display-6 + .text-muted,
header.container p.text-muted {
  max-width: 52rem;
}

/* =============================
   RESOURCES LIST
   ============================= */
.list-group-item-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.list-group-item-action::after {
  content: "↗";
  font-size: 0.85rem;
  opacity: 0.55;
  transition: opacity 120ms ease, transform 120ms ease;
}

.list-group-item-action:hover::after {
  opacity: 1;
  transform: translateY(-1px);
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}