/* ================================
   GLOBAL AVATAR
   ================================ */
.avatar {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* ================================
   BLOG GRID
   ================================ */
.blog-grid {
  max-width: 1280px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.blog-title {
  font-size: 36px;
  font-weight: 700;
  margin: 40px 0 10px;
}

.blog-subtitle {
  font-size: 18px;
  color: #586069;
  margin-bottom: 30px;
}

/* ================================
   BLOG CARD
   ================================ */
.app-card {
  display: block;
  text-decoration: none !important;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: box-shadow 0.2s ease;
  color: inherit;
}

.app-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.app-card-body h3 {
  margin: 0 0 10px;
  color: #0366d6;
  font-size: 20px;
  font-weight: 600;
}

.app-card-body p {
  margin: 0;
  font-size: 15px;
  color: #444;
}

.app-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card-footer .date {
  font-size: 14px;
  color: #57606a;
}

/* ================================
   POST PAGE
   ================================ */
.post-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  border-bottom: 1px solid #e1e4e8;
}

.post-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 10px;
}

.post-hero .subtitle {
  font-size: 18px;
  color: #586069;
  margin: 0 0 16px;
}

.post-meta {
  font-size: 14px;
  color: #6a737d;
}

.post-body-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  gap: 40px;
}

.post-content {
  flex: 1;
  max-width: 800px;
  line-height: 1.7;
  font-size: 17px;
}

.post-content h2 {
  margin-top: 32px;
  font-size: 26px;
  font-weight: 600;
}

.post-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid #e1e4e8;
  padding-left: 24px;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h4 {
  font-size: 14px;
  color: #586069;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-section p,
.sidebar-section a {
  font-size: 15px;
  margin: 4px 0;
  display: block;
  color: #0366d6;
}

.sidebar-section p.meta {
  color: #586069;
}

.back-button {
  display: inline-block;
  margin-top: 24px;
  color: #0366d6;
  text-decoration: none;
}

.category-label {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  background: #e1e4e8;
  color: #444;
  margin-bottom: 8px;
}

/* ================================
   BLOG CATEGORY FILTER
   ================================ */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px auto 30px;
  max-width: 1280px;
}

.cat-link {
  background: #fff;
  border: 1px solid #d0d7de;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  color: #444;
  text-decoration: none;
}

.cat-link.active {
  background: #0366d6;
  color: white;
  border-color: #0366d6;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 40px;
  gap: 60px;
}

.hero-robot {
  width: 260px;
}

.hero-text {
  max-width: 650px;
}

.hero-pretitle {
  color: #0366d6;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: #24292e;
}

.hero-subtext {
  font-size: 15px;
  line-height: 1.5;
  color: #586069;
}

.edu-title {
  font-size: 14px;
  font-weight: 600;
  color: #0366d6;
  margin-bottom: 6px;
}

.edu-list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.hero-tagline {
  font-size: 14px;
  color: #24292e;
  font-weight: 600;
  background: #f6f8fa;        /* soft light-gray highlight */
  padding: 10px 16px;
  border-left: 4px solid #08b0d8; 
  margin-bottom: 20px;
}

/* Reduce padding ONLY on the homepage */
.home-page .hero {
  margin-top: 20px !important;   /* was 80px */
  padding-top: 10px !important;  /* was 40px */
}

/* Home page spacing adjustment */
.home-page {
  margin-top: 20px !important;
}


/* ================================
   SOCIAL BAR SPACING
   ================================ */
/* Social bar in hero section (aligned under text) */
.hero-social {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start; /* Align with text */
  gap: 16px;
}

.hero-social img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
  transition: 0.2s ease;
}

.hero-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}


/* ================================
   ICON TOOLTIP (NO JAVASCRIPT)
   ================================ */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%; /* distance above icon */
  left: 50%;
  transform: translateX(-50%);
  background: #24292e;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 999;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* small downward arrow */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: 118%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #24292e transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tooltip:hover::before {
  opacity: 1;
}


/* ================================
    CREDENTIALS SECTION
   ================================ */
.credentials-section {
  text-align: center;
  margin: 40px auto;
  max-width: 1280px;
}

.credentials-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.credentials-subtitle {
  font-size: 17px;
  color: #586069;
  margin-bottom: 40px;
}


/* ================================
   COMPANY CAROUSEL
   ================================ */
.company-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 10px 0;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollCompanies 22s linear infinite;
}

.company-slide {
  min-width: 260px;
  max-width: 260px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e1e4e8;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.company-slide:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.company-logo-wrapper {
  width: 120px;          /* standard logo box */
  height: 120px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;   /* vertically center */
  justify-content: center; /* horizontally center */
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto 14px;   /* center wrapper */
}

.company-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* preserve aspect ratio */
}

.company-slide .role {
  font-size: 14px;
  color: #0366d6;
  margin: 4px 0 8px;
}

.company-slide .work-desc {
  font-size: 15px;
  color: #444;
  max-width: 240px;
  margin: 0 auto 12px;
  line-height: 1.4;
}

@keyframes scrollCompanies {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   CERTIFICATION CAROUSEL
   ================================ */

.cert-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1180px;
  margin: 40px auto;
  padding: 10px 0;
  position: relative;
}

.cert-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scrollCerts 22s linear infinite;
}

.cert-slide {
  min-width: 160px;
  max-width: 160px;
  height: 160px;              /* ensures consistent square slides */
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e1e4e8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.cert-slide:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

.cert-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cert-badge {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* prevents stretching */
  pointer-events: none;    /* keeps click on <a>, not the image */
}

/* Smooth infinite loop */
@keyframes scrollCerts {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   FOOTER
   ================================ */
.footer {
  padding: 40px 20px;
  text-align: center;
  color: #586069;
  margin-top: 60px;
  border-top: 1px solid #e1e4e8;
}

.footer-inner p {
  margin: 6px 0;
  font-size: 15px;
}

.footer a {
  color: #0366d6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}


/* ================================
   PORTFOLIO PAGE
   ================================ */

   /* Center container */
  .portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
  }

  .portfolio-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
  }

  /* GitHub stat cards */
  .github-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }

  .stats-card {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
  }

  /* Portfolio cards */
  .portfolio-list {
    margin-top: 3rem;
    width: 100%;
    max-width: 500px;
    padding: 0;
    list-style: none;
  }

  .portfolio-list li {
    background: #fdbb65;
    color: #23272A;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(88,101,242,0.10);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
  }

  .portfolio-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(88,101,242,0.18);
  }

  .portfolio-list li a {
    text-decoration: none;
    color: inherit;
  }
