/* ============================================================
   GitHub Stats Strip
   ============================================================ */

.github-strip {
  background: var(--secondry-bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.github-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.github-strip-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.github-strip-label i { font-size: 1rem; color: var(--text-color); }

.github-strip-imgs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.github-stat-img {
  height: 80px;
  border-radius: 0.75rem;
  object-fit: contain;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  background: var(--primary-bg-color);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
}

/* Dark mode — slightly different bg */
.dark-mode .github-stat-img {
  filter: invert(0) brightness(1);
  background: #0d1117;
}

@media (max-width: 600px) {
  .github-strip-inner { flex-direction: column; align-items: flex-start; }
  .github-stat-img { max-width: 100%; height: auto; }
}

/* ============================================================
   Scroll-down indicator on hero
   ============================================================ */

.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-hint span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-scroll-hint .scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  animation: scroll-bounce 1.4s ease-in-out infinite;
}

.hero-scroll-hint .scroll-arrow:nth-child(3) { animation-delay: 0.2s; }

@keyframes scroll-bounce {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50%       { opacity: 1;   transform: rotate(45deg) translateY(5px); }
}

/* ============================================================
   PHASE 2 — Hero Section Redesign (replaces GitHub stat images)
   ============================================================ */

/* Hero CTA buttons row */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--main-color);
  color: var(--secondry-bg-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3rem;
  border: 2px solid var(--main-color);
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(8, 232, 222, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: transparent;
  color: var(--main-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3rem;
  border: 2px solid var(--main-color);
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--main-color);
  color: var(--secondry-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(8, 232, 222, 0.35);
}

/* Hero availability pill */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 232, 222, 0.1);
  border: 1px solid rgba(8, 232, 222, 0.3);
  border-radius: 3rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero micro-stat strip */
.hero-mini-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-mini-stat .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--main-color);
  font-family: "Doto", monospace;
  line-height: 1;
}

.hero-mini-stat .lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
  font-weight: 600;
}

/* Hero right: profile card */
.hero-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.hero-profile-img-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.hero-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 40px rgba(8, 232, 222, 0.25);
  transition: box-shadow 0.4s ease;
  user-select: none;
  pointer-events: none;
}

.hero-profile-img-wrap:hover img {
  box-shadow: 0 0 60px rgba(8, 232, 222, 0.5);
}

/* Floating tech badges around image */
.tech-badge {
  position: absolute;
  background: var(--secondry-bg-color);
  border: 1px solid rgba(8, 232, 222, 0.3);
  border-radius: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.tech-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tech-badge:nth-child(2) { top: -10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.tech-badge:nth-child(3) { top: 30px; right: -30px; animation-delay: 0.5s; }
.tech-badge:nth-child(4) { bottom: 30px; right: -30px; animation-delay: 1s; }
.tech-badge:nth-child(5) { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.tech-badge:nth-child(6) { top: 30px; left: -30px; animation-delay: 2s; }
.tech-badge:nth-child(7) { bottom: 30px; left: -30px; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50% { transform: translateY(-6px) translateX(var(--tx, 0)); }
}

.tech-badge:nth-child(2),
.tech-badge:nth-child(5) {
  --tx: -50%;
}

/* Social icons in hero (override existing home a styling) */
.hero-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-social-row a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  font-size: 1.25rem !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 2px solid var(--main-color) !important;
  color: var(--main-color) !important;
  text-decoration: none;
  transition: all 0.3s ease !important;
}

.hero-social-row a:hover {
  background: var(--main-color) !important;
  color: var(--secondry-bg-color) !important;
  transform: translateY(-3px) scale(1) !important;
  box-shadow: 0 4px 15px rgba(8, 232, 222, 0.4) !important;
}

/* Light mode overrides */
.light-mode .hero-availability {
  background: rgba(220, 20, 60, 0.08);
  border-color: rgba(220, 20, 60, 0.2);
  color: crimson;
}
.light-mode .hero-mini-stat .lbl {
  color: rgba(0, 0, 0, 0.5);
}
.light-mode .tech-badge {
  background: rgba(255,255,255,0.9);
  border-color: rgba(220, 20, 60, 0.2);
  color: #333;
}

/* ============================================================
   PHASE 2 — About Section Redesign
   ============================================================ */

/* Why work with me cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}



/* ============================================================
   PHASE 3 — Projects Section Filter Tabs
   ============================================================ */

.project-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  border: 2px solid rgba(8, 232, 222, 0.25);
  background: transparent;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-tab:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.filter-tab.active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--secondry-bg-color);
  font-weight: 600;
}

/* Project category badges */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
}

.badge-client {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-personal {
  background: rgba(54, 149, 255, 0.15);
  color: #4da6ff;
  border: 1px solid rgba(54, 149, 255, 0.3);
}

.badge-mini {
  background: rgba(150, 150, 150, 0.15);
  color: #aaaaaa;
  border: 1px solid rgba(150, 150, 150, 0.3);
}

/* Project result stat */
.project-result {
  font-size: 0.8rem !important;
  color: var(--main-color) !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Card entrance animation */
.project-card {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
  display: none;
}

/* ============================================================
   PHASE 4 — Testimonials Section
   ============================================================ */

.testimonials-section {
  padding: 0 0 3rem;
  background-color: var(--secondry-bg-color);
}

.testimonials-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0.5rem auto 0;
  padding: 1.5rem;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--primary-bg-color);
  border: 1px solid transparent;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  border-color: var(--main-color);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--main-color);
  opacity: 0.1;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  line-height: 1;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.1rem;
}

.testimonial-author-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  background: var(--secondry-bg-color);
  color: var(--main-color);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.carousel-btn:hover {
  background: var(--main-color);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--main-color-alpha50);
}

.carousel-btn i {
  transition: transform 0.3s ease;
}

#carousel-prev:hover i { transform: translateX(-3px); }
#carousel-next:hover i { transform: translateX(3px); }

/* Dark mode */
.dark-mode .testimonials-section { background-color: var(--primary-bg-color); }
.dark-mode .testimonial-card { background: var(--secondry-bg-color); }

/* ============================================================
   PHASE 5 — Footer
   ============================================================ */

.site-footer {
  background: var(--secondry-bg-color);
  border-top: 1px solid rgba(8, 232, 222, 0.12);
  padding: 2.5rem 2rem 1.5rem;
  color: var(--text-color);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 3rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #25d366;
  font-weight: 600;
}

.footer-available-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  animation: blink 1.5s ease-in-out infinite;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--main-color);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--main-color);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  opacity: 0.7;
}


/* ============================================================
   PHASE 5 — Hire Me nav button + Navbar glass on scroll
   ============================================================ */

.nav-hire-btn {
  display: block;
  margin: 0.5rem 0.5rem 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--main-color);
  color: var(--secondry-bg-color) !important;
  border-radius: 2rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid var(--main-color);
}

.nav-hire-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ============================================================
   PHASE 5 — Scroll reveal animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* ============================================================
   Extra responsiveness for new sections
   ============================================================ */

@media (max-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-profile-img-wrap {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 650px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 0rem);
    padding: 1.5rem 1.25rem;
  }
  .hero-mini-stats {
    gap: 1.25rem;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-profile-img-wrap {
    width: 180px;
    height: 180px;
  }
  .tech-badge {
    display: none;
  }
  .footer-nav {
    gap: 1rem;
  }
  .project-filter-tabs {
    gap: 0.5rem;
  }
  .filter-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
}

/* ============================================================
   PHASE 6 — Collapsible Certifications
   ============================================================ */

.certifications-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.btn-cert-toggle {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-cert-toggle:hover {
  background: var(--primary-bg-color);
  color: var(--main-color);
  border-color: var(--main-color);
}

.btn-cert-toggle i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cert-toggle.active i {
  transform: rotate(180deg);
}

.certifications-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.certifications-collapsible.expanded {
  max-height: 3000px;
  opacity: 1;
  margin-top: 1.5rem;
}
