/* ========== THEME TOKENS ========== */
:root{
  --color-primary:#004080;
  --color-accent:#14c6cc;
  --color-text:#333;
  --color-surface:#fff;
    --color-teal:#0ac7c7;
  --color-slate:#334155;
  --color-highlight:#ffe66d;
  --color-bg-soft:#f4f7fb;
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px;
  --shadow-1:0 4px 12px rgba(0,0,0,.1);
  --shadow-2:0 6px 18px rgba(0,0,0,.08);
  --container:900px; --container-lg:1100px;
}

/* ========== BASE ========== */
/* Visually hide skip link until focused (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 3px #14c6cc;
  z-index: 1000;
  overflow: visible;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; line-height:1.65; color:var(--color-text);
  background:var(--color-bg-soft);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
}
:focus-visible{outline:3px solid #ffdd66; outline-offset:3px; border-radius:4px}
a{color:#1d4ed8; text-decoration:none; transition:color .2s ease}
a:hover{color:#0b3a82}
.container{max-width:var(--container); margin:0 auto; padding:1rem}

/* Headings */
/* Headings */
h1,h2,h3,h4{
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing:.01em;
}

h2{
  font-size:1.7rem;
  line-height:1.2;
  margin:0 0 .75rem;
  color:#0b3a82;
}

h3{
  font-size:1.3rem;
  margin-top:2rem;
  border-bottom:2px solid var(--color-primary);
  padding-bottom:.4rem;
  color:var(--color-slate);
}

h4{
  font-size:1.05rem;
  margin-top:1.25rem;
  color:var(--color-primary);
  display:inline-block;
}


/* ========== HEADER / NAV ========== */
.site-header{
  position:sticky; top:0; z-index:1000; color:#fff; background:var(--color-primary);
  box-shadow:0 2px 8px rgba(0,0,0,.08)
}
.site-header .container{
  max-width: 1100px;      /* keeps content from stretching too wide */
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:0.25rem 1.25rem;  /* less vertical padding = shorter header */
}

.site-title{margin:0; font-size:1.35rem; white-space:nowrap; flex:0 0 auto}
.site-nav ul{
  list-style:none; margin:0; padding:0; display:flex; gap:1rem; flex-wrap:nowrap; white-space:nowrap
}
.site-nav a{color:#fbf8f8; font-weight:600; font-size:.9rem; position:relative; transition:color .2s ease}

/* Single underline utility reused */
.u-underline::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--color-accent); transition:width .25s ease
}
.u-underline:hover::after{width:100%}
.site-nav a{color:#fff}
.site-nav a.u-underline::after{background:var(--color-accent)}
.site-nav a:hover{color:#fff}

/* ===== BRANDING (LOGO + NAME) ===== */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;       /* spacing between logo and name */
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .brand-logo {
    height: 40px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
}

.big-logo {
  width: 300px !important;
  height: auto !important;
  max-width: none !important;
}



/* ========== HERO / PROFILE ========== */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  gap:2.5rem;
  padding:2.5rem 2rem;
  margin-top:2rem;
  border-radius:20px;
  background:
  radial-gradient(circle at top left, rgba(10,199,199,.32), transparent 55%),
  radial-gradient(circle at bottom right, rgba(243,111,17,.28), transparent 25%),
  linear-gradient(135deg, #1a4da5 0%, #0c57a0 40%, #1a4da5 100%);

  color:#e5e7eb;
  box-shadow:0 18px 45px rgba(15,23,42,.22);
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(120deg, rgba(148,163,184,.25) 1px, transparent 1px),
    linear-gradient(210deg, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size:22px 22px;
  opacity:.3;
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.profile{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:2rem;
  margin-top:0;
}

.profile-photo{
  width:260px;
  height:340px;
  border-radius:24px;                 /* changed from 50% (circle) */
  object-fit:cover;
  object-position:50% 10%;
  display:block;
  border:4px solid rgba(255,255,255,.75);
  box-shadow:0 16px 40px rgba(15,23,42,.7);
  background:#0b1020;
}

.bio{
  max-width:600px;
  background:rgba(15,23,42,.78); /* deep slate glass */
  padding:1.75rem;
  border-radius:18px;
  box-shadow:0 12px 30px rgba(15,23,42,.6);
  border:1px solid rgba(148,163,184,.5);
  color:#e5e7eb;
  backdrop-filter:blur(6px);
}

.bio p {
  color: #e2e8f0; /* soft light gray for paragraphs */
}

.bio a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bio a:hover {
  color: #ffffff;
}


.bio h2 {
  color: #ffffff; /* bright white for your name */
}
/* ========== BUTTONS & CTA ROW ========== */
.button,.button-outline{
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
  height:44px; min-width:180px; padding:0 14px; border-radius:8px; font-weight:700; line-height:1;
  text-decoration:none; transition:background .2s,color .2s,border-color .2s; border:2px solid transparent
}
.button{background:var(--color-primary); color:#fff}
.button:hover{background:#0a57b3; color:#fff}
.button-outline{background:#fff; color:var(--color-primary); border-color:var(--color-primary)}
.button-outline:hover{background:#eff6ff; color:var(--color-primary)}

.cta-row {
  display: flex;
  justify-content: center;   /* centers horizontally */
  margin-top: 1rem;
}





/* ========== SECTIONS ========== */
.section-blue,.section-orange{
  padding:1.5rem; border-radius:var(--radius-lg); margin:2rem auto; box-shadow:var(--shadow-2)
}
.section-blue{
  color:#fff; background:linear-gradient(180deg, var(--color-primary) 0%, #0a50a0 100%)
}
.section-blue h3,.section-blue h4{color:#fff; border-color:rgba(255,255,255,.8)}
.section-blue a{color:#ffd28c}
.section-blue a:hover{color:#ffe1b1}
.section-blue h4 + p{margin-top:.25rem}
.section-orange{background:var(--color-accent); color:#f3f4f6}
.section-orange h3,.section-orange h4{color:#f8f8f8; border-color:rgba(255,255,255,.2)}

/* Links lists share underline utility */
.icon-link{width:20px; height:20px}
.link-list{list-style:none; padding:0; margin:0}
.link-list li{margin:.5rem 0}
.link-list a{display:inline-flex; align-items:center; gap:8px; font-weight:600; color:#1d4ed8; position:relative; transition:color .2s}
.link-list a:hover{color:#0b3a82}
.link-list a.u-underline::after{background:var(--color-accent)}
.email-link{position:relative; font-weight:600}
.email-link.u-underline::after{background:var(--color-accent)}

/* Skills */
.skills-group {
  margin-bottom: 1.2rem;   /* space between groups (adjust as needed) */
}

.skills-group h4 {
  margin: 0 0 .25rem;      /* REDUCE space under the group title */
}

.skills-list{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  list-style:none;
  padding:0;
  margin:.25rem 0 0;
}

.skills-list li{
  /* li just holds the card now, no need for its own background/padding */
  margin:0;
  padding:0;
}

/* New: clickable skill cards */
.skill-card{
  display:inline-block;
  background:#eef2ff;
  color:#0b3a82;
  padding:.4rem .8rem;
  border-radius:6px;
  font-weight:500;
  font-size:.95rem;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;

  /* smooth animation on hover */
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

/* Hover state: “fun but professional” */
.skill-card:hover{
  background:#dbeafe;              /* slightly brighter blue */
  border-color:#0b3a82;            /* add a visible border */
  box-shadow:0 4px 12px rgba(15, 23, 42, 0.12); /* soft shadow */
  transform:translateY(-2px) scale(1.02);       /* tiny lift + grow */
}
.skill-card-static{
  display:inline-block;
  background:#eef2ff;
  color:#0b3a82;
  padding:.4rem .8rem;
  border-radius:6px;
  font-weight:500;
  font-size:.95rem;
  border:1px solid transparent;

  /* keeps cards aligned nicely with clickable ones */
  cursor:default;

  /* optional visual hover effect */
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.skill-card-static:hover{
  background:#e5edff;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(15, 23, 42, 0.12);
}


/* ========== ABOUT IMAGE ========== */
.about-image{text-align:center; margin-top:1.5rem}
.about-image img{max-width:100%; width:125px; height:auto}

/* ========== CONTACT WIDGET ========== */
.contact-widget[hidden]{display:none !important}
.contact-widget{
  position:fixed; right:1rem; bottom:1rem; width:min(92vw,360px);
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  padding:1rem 1rem 1.25rem; box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:transform .18s ease, opacity .18s ease; z-index:1100
}
.contact-close{
  position:absolute; top:.35rem; right:.5rem; border:none; background:transparent;
  font-size:1.25rem; line-height:1; cursor:pointer; color:var(--color-primary)
}
#contactForm{display:grid; gap:.65rem; margin-top:.5rem}
#contactForm label{font-size:.9rem; color:#0b3a82}
#contactForm input,#contactForm textarea{
  width:100%; border:1px solid #cbd5e1; border-radius:10px; padding:.6rem .7rem; font:inherit; outline:none
}
#contactForm input:focus,#contactForm textarea:focus{
  border-color:var(--color-accent); box-shadow:0 0 0 3px rgba(243,111,17,.18)
}
.contact-submit{
  background:var(--color-primary); color:#fff; border:none; border-radius:10px;
  padding:.6rem .9rem; font-weight:600; cursor:pointer
}
.contact-submit:hover{background:#0a57b3}
.contact-status{margin:.5rem 0 0; font-size:.9rem; color:#065f46}

/* ========== FOOTER ========== */
.site-footer{text-align:center; background:#333; color:#fff; padding:1rem 0; margin-top:2rem}
.footer-content{position:relative; text-align:center}
.footer-content p{margin:0}
.footer-seal{
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:120px; height:auto; opacity:.9; transition:opacity .3s ease, transform .3s ease
}
.footer-seal:hover{opacity:1; transform:translateY(-50%) scale(1.05)}

/* ========== UTIL: APPLY UNDERLINE TO TARGETS ========== */
.site-nav a,.link-list a,.email-link{position:relative}
.site-nav a,.link-list a,.email-link{ /* attach utility class via selector list */
  /* keep markup unchanged by simulating the utility */
}
.site-nav a::after,.link-list a::after,.email-link::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--color-accent); transition:width .25s ease
}
.site-nav a:hover::after,.link-list a:hover::after,.email-link:hover::after{width:100%}

/* ========== RESPONSIVE ========== */
@media (max-width:820px){
  .site-header .container{gap:.5rem}
  .site-nav ul{flex-wrap:wrap; justify-content:flex-end; gap:.75rem}
  .site-nav a{font-size:.92rem}
  .hero{flex-direction:column; align-items:flex-start}
  .profile{flex-direction:column; align-items:flex-start}
}
@media (max-width:420px){
  .cta-row{grid-template-columns:1fr}
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}

.help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f36f11;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
  z-index: 9999;
}

.help-button:hover {
  background-color: #d65f0e;
}

/* ========== BLOG LAYOUT ========== */

.blog-layout{
  display:grid;
  grid-template-columns:minmax(0, 2.5fr) minmax(260px, 1fr);
  gap:2rem;
  align-items:flex-start;
}

/* Stack columns on smaller screens */
@media (max-width:880px){
  .blog-layout{
    grid-template-columns:1fr;
  }
}

/* Main column text */
.blog-main h2{
  margin-top:0;
}

.blog-intro{
  max-width:650px;
  margin:.5rem 0 1.5rem;
  color:#475569;
}

/* Blog cards (left column) */
.blog-card{
  background:#ffffff;
  border-radius:14px;
  padding:1.25rem 1.4rem;
  box-shadow:0 8px 22px rgba(15,23,42,.10);
  border:1px solid rgba(148,163,184,.35);
  transition:transform .18s ease, box-shadow .2s ease, border-color .18s ease;
  margin-bottom:1.25rem;
}

.blog-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(15,23,42,.16);
  border-color:var(--color-primary);
}

.blog-card h3{
  margin-top:0;
  margin-bottom:.25rem;
  color:var(--color-primary);
}

.blog-card .date{
  font-size:.85rem;
  color:#6b7280;
  margin-bottom:.5rem;
}

.blog-card .excerpt{
  font-size:.95rem;
  color:#374151;
  margin-bottom:.9rem;
}

/* Optional thumbnail image at top of card */
.blog-thumb{
  width:100%;
  border-radius:10px;
  margin-bottom:.75rem;
  display:block;
}
/* ----- SHARE SECTION ----- */
.share-section {
  text-align: left;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0; /* optional divider */
}

.share-section h3 {
    font-size: 1.2rem;
    color: #0b3a82;
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-section {
  background: #f7f9fc;   /* gently tinted background */
  border: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  margin-top: 3rem;
  margin-bottom: 2rem;
}


/* wrapper for the buttons */
.share-buttons {
  display: flex;
    justify-content: left;
  gap: 1rem;
  margin-top:2rem;
  margin-bottom: 1rem;
}

.share-buttons a {
  border: 1px solid rgba(0, 64, 128, 0.35);
  padding: 0.55rem 1rem;
  min-width: 165px; /* optional */
  font-size: 0.95rem;
  border-radius: 8px;
}

.share-buttons a:hover {
  background: var(--color-primary);  /* your navy */
  color: white;
  transform: translateY(-2px);
}

/* base button design */
.share-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: #f9fafb;
  color: #1f2937;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.share-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* slight color hints for each platform */
.share-x { border-color: #1877f2; }
.share-linkedin { border-color: #1877f2; }
.share-facebook { border-color: #1877f2; }


/* Sidebar styling (right column) */
.blog-sidebar{
  display:flex;
  flex-direction:column;
  gap:1.25rem;
}

.sidebar-box{
  background:#ffffff;
  border-radius:14px;
  padding:1.1rem 1.2rem;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
  border:1px solid rgba(148,163,184,.35);
}

.sidebar-box h3{
  margin-top:0;
  font-size:1.1rem;
}

/* Category/tag pill buttons */
.sidebar-tag-list{
  list-style:none;
  padding:0;
  margin:.5rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}

.sidebar-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.25rem .65rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  font-size:.85rem;
  color:#1f2933;
  background:#f9fafb;
  text-decoration:none;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sidebar-tag:hover{
  background:var(--color-primary);
  color:#ffffff;
  border-color:var(--color-primary);
  transform:translateY(-1px);
}
/* --- BLOG CARD DESIGN --- */
.blog-card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin: 1.2rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* thumbnail image */
.blog-thumb {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

/* text wrapper */
.blog-content {
  flex: 1;
}

.blog-content h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.blog-card .date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.blog-card .excerpt {
  margin-bottom: 0.8rem;
  color: #333;
}
/* Category + meta row */
.blog-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:.4rem;
}

/* Base category pill */
.blog-category{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.15rem .6rem;
  border-radius:999px;
  font-size:.8rem;
  font-weight:600;
  border:1px solid transparent;
}

/* Different color themes per category */
.category-projects{
  background:#ecfdf3;
  color:#166534;
  border-color:rgba(22,101,52,.3);
}

.category-ideas{
  background:#fef9c3;
  color:#854d0e;
  border-color:rgba(133,77,14,.35);
}

.category-reflection{
  background:#eef2ff;
  color:#3730a3;
  border-color:rgba(55,48,163,.35);
}

.category-tech{
  background:#e0f2fe;
  color:#075985;
  border-color:rgba(7,89,133,.35);
}

.category-grants{
  background:#fef3c7;
  color:#92400e;
  border-color:rgba(146,64,14,.35);
}

.blog-filter-label{
  font-size:.9rem;
  color:#4b5563;
  margin-bottom:1rem;
}
