/**
 * @file assets/css/styles.css
 * @description Master design system and layout engine for Ankita Sharma's personal portfolio.
 * @author Ankita Sharma
 * @version 1.1.0
 * @license MIT
 */

/* ==========================================================================
   01. SCROLLBAR CONFIGURATION & BASE RESETS
   ========================================================================== */
html, body {
  /* Hide scrollbars for Firefox */
  scrollbar-width: none;
  /* Hide scrollbars for IE/Edge */
  -ms-overflow-style: none;
}

/* Hide scrollbars for Chrome, Safari, and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color System */
  --color-bg-base: #fdfbf7;
  --color-text-primary: #3d2721;
  --color-text-secondary: #5c453f;
  --color-text-muted: #8c736c;
  --color-surface-dark: #3d2721;
  --color-surface-white: #ffffff;
  
  /* Brand & Accent Palette */
  --color-brand-pink: #f4a7b9;
  --color-brand-pink-hover: #e895a8;
  --color-brand-pink-locked: #f8c9d4;
  --color-border-dark: #3d2721;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(61, 39, 33, 0.04);
  --shadow-md: 0 8px 24px rgba(61, 39, 33, 0.08);
  --shadow-lg: 0 14px 40px rgba(61, 39, 33, 0.14);

  /* Layout Constants */
  --max-width-content: 1180px;
  --max-width-text: 760px;
  --nav-height: 75px;
  --radius-sm: 4px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Common Container Utility */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

/* ==========================================================================
   02. GLASSMORPHIC NAVBAR (CRISP CONTRAST OVER VIDEO)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: background 0.3s ease;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.nav-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-pink);
  transform: translateY(-1px);
}

/* Subpage Navbar (For light backgrounds like Blogs and Projects) */
.subpage-header {
  background: rgba(253, 251, 247, 0.85); /* Cream tint glass */
  border-bottom: 1px solid rgba(61, 39, 33, 0.08);
}

.subpage-header .nav-brand {
  color: var(--color-text-primary); /* Dark brown */
  text-shadow: none;
}

.subpage-header .nav-link {
  color: var(--color-text-primary); /* Dark brown */
  text-shadow: none;
}

.subpage-header .nav-link:hover,
.subpage-header .nav-link.active {
  color: #d81b60; /* Brand accent */
}

/* ==========================================================================
   03. HERO SECTION (VIDEO BACKGROUND & EMBLAZONED TITLE)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.08) 0%, rgba(30, 15, 10, 0.32) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-emblem {
  width: 50px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.hero-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 10px;
  text-transform: uppercase;
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   04. INTRO SECTION & GROUNDED STAGE COMPOSITION
   ========================================================================== */
.intro-section {
  padding: 3rem 0 0 0; /* Minimized vertical whitespace */
  background-color: var(--color-bg-base);
  position: relative;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.intro-text-col {
  padding-bottom: 3.5rem; /* Keeps text centered relative to the stage */
}

.intro-headline {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.intro-flower-icon {
  width: 36px;
  height: auto;
}

.intro-bio {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.intro-bio strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

/* Interactive CTA Buttons */
.cta-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  padding: 0.8rem 0;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-border-dark);
  border: 1.8px solid var(--color-border-dark);
}

.btn-outline:hover {
  background-color: var(--color-border-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(61, 39, 33, 0.18);
  transform: translateY(-2px);
}

.btn-solid {
  background-color: var(--color-border-dark);
  color: #ffffff;
  border: 1.8px solid var(--color-border-dark);
}

.btn-solid:hover {
  background-color: #55362e;
  border-color: #55362e;
  box-shadow: 0 4px 14px rgba(61, 39, 33, 0.25);
  transform: translateY(-2px);
}

/* Visual Canvas Stage - Flush to the bottom border */
.visual-stage {
  position: relative;
  width: 520px;
  height: 480px;
  margin: 0 auto;
  align-self: end; /* Grounds container to bottom */
}

.visual-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 1. Base Branch Anchor: Grounded directly to the bottom line */
.box-branch-bottom {
  position: absolute;
  bottom: 0;
  right: -30px;
  width: 460px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* 2. Center Profile Disc */
.box-profile {
  position: absolute;
  top: 42%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 255px;
  height: 255px;
  border-radius: 50%;
  background-color: #3d2721;
  padding: 10px;
  box-shadow: 0 14px 40px rgba(61, 39, 33, 0.18);
  z-index: 3;
}

.box-profile img {
  border-radius: 50%;
  object-fit: cover;
}

/* 3. Scaled-up Canada Map */
.box-map-canada {
  position: absolute;
  top: 10px;
  right: -10px;
  width: 125px; /* Increased scale */
  height: auto;
  opacity: 0.8;
  z-index: 1;
}

/* 4. Scaled-up India Map */
.box-map-india {
  position: absolute;
  bottom: 60px;
  left: 10px;
  width: 105px; /* Increased scale */
  height: auto;
  opacity: 0.8;
  z-index: 1;
}

/* 5. Amazon Logo Badge */
.box-badge-amazon {
  position: absolute;
  top: 40px;
  left: 165px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* 6. Cloud Icon Badge */
.box-badge-cloud {
  position: absolute;
  bottom: 65px;
  right: 50px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   05. 3D PROJECT SHOWCASE (HOMEPAGE CARDS)
   ========================================================================== */
.section-dark {
  background-color: var(--color-surface-dark);
  color: var(--color-surface-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card-3d {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card-3d:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-pink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-visual-wrapper {
  width: 100%;
  height: 220px;
  background: #241613;
  overflow: hidden;
}

.card-visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card-3d:hover .card-visual-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-date {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-brand-pink);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.88rem;
  color: #d1c7c4;
  line-height: 1.5;
}

/* ==========================================================================
   06. WORK EXPERIENCE TIMELINE & ILLUSTRATION COMPOSITION
   ========================================================================== */
.experience-section {
  padding: 5.5rem 0 6rem 0;
  background-color: var(--color-bg-base);
}

.section-heading-clean {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  margin-bottom: 3rem;
}

.experience-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Individual Experience Rows */
.exp-entry {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: baseline;
  justify-content: space-between;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(61, 39, 33, 0.12);
}

.exp-entry:first-of-type {
  border-top: 1px solid rgba(61, 39, 33, 0.12);
}

.exp-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.3rem;
}

.exp-org {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
}

.exp-summary {
  font-size: 0.92rem;
  color: #6e5851;
  line-height: 1.6;
  max-width: 480px;
}

/* Location and Dates (Right Aligned) */
.exp-meta-info {
  text-align: right;
}

.exp-place {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.exp-duration {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8c736c;
}

/* Center Floating Illustration */
.exp-illustration-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: auto;
  z-index: 5;
  pointer-events: none;
  background: var(--color-bg-base);
  padding: 8px 12px;
  border-radius: 50%;
}

.exp-girl-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustment for screens under 850px */
@media (max-width: 850px) {
  .exp-entry {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.8rem 0;
  }

  .exp-meta-info {
    text-align: left;
  }

  .exp-illustration-wrapper {
    display: none; /* gracefully collapse on mobile */
  }
}

/* ==========================================================================
   07. FOOTER PLATFORM HUB (AMBIENT LIGHTING & BALANCED COMPOSITION)
   ========================================================================== */
.footer-platforms {
  background-color: var(--color-surface-dark);
  color: var(--color-surface-white);
  padding: 6.5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Left Column */
.footer-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-subtitle {
  font-size: 0.98rem;
  color: #d1c5c2;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Two-column layout for link groups to balance dead space */
.footer-nav-columns {
  display: flex;
  gap: 3.5rem;
}

.footer-links-group {
  margin-bottom: 1.5rem;
}

.footer-group-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-brand-pink);
  margin-bottom: 1rem;
}

.platform-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.platform-nav-list a .arrow {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.platform-nav-list a:hover {
  color: var(--color-brand-pink);
  transform: translateX(4px);
}

.platform-nav-list a:hover .arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Right Stage: Wheel, Lighting & Petals */
.footer-visual-stage {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Radial Glow */
.wheel-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(244, 167, 185, 0.18) 0%, rgba(61, 39, 33, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Circular Mask Disc with Elevated Rim Shadow */
.footer-wheel-disc {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(244, 167, 185, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-wheel-disc:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 
              0 0 35px rgba(244, 167, 185, 0.25);
}

.footer-wheel-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Top Branch */
.footer-decor-branch-top {
  position: absolute;
  top: -25px;
  right: -30px;
  width: 175px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

/* Floating Flower Petal with Subtle Floating Animation */
.footer-decor-flower-bottom {
  position: absolute;
  bottom: 10px;
  right: 25px;
  width: 44px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  animation: gentleFloat 4s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(4deg); }
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #a3908a;
}

/* Responsive */
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-nav-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   08. STANDALONE SUBPAGES (PROJECTS & BLOGS)
   ========================================================================== */
.page-header {
  padding-top: 9rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.page-title-main {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.page-lead-copy {
  max-width: var(--max-width-text);
  margin: 0 auto 1.5rem auto;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.author-signature {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Projects Stack */
.projects-deck {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 6rem;
}

.project-card-full {
  background-color: var(--color-surface-dark);
  color: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.project-card-full:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.project-heading {
  font-size: 1.45rem;
  font-weight: 700;
}

.project-date-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-pink);
}

.project-summary {
  font-size: 0.95rem;
  color: #e3dad7;
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.tech-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  background-color: var(--color-surface-white);
  color: var(--color-surface-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
}

/* Blogs Dynamic Deck */
.blogs-deck {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 6rem;
}

.blog-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 2.2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.blog-row-item.status-active {
  background-color: var(--color-brand-pink);
}

.blog-row-item.status-active:hover {
  transform: translateX(6px);
  background-color: var(--color-brand-pink-hover);
  box-shadow: var(--shadow-md);
}

.blog-row-item.status-locked {
  background-color: var(--color-brand-pink-locked);
  opacity: 0.65;
  cursor: not-allowed;
}

.blog-date-status {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Article Reading View */
.article-container {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding-bottom: 6rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 2.5rem 0 1rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--color-brand-pink);
  padding-left: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
  color: var(--color-text-primary);
}

/* Subpage Bottom Footer Bar */
.site-footer-subpage {
  width: 100%;
  padding: 2rem 0;
  margin-top: 5rem;
  border-top: 1.5px solid rgba(61, 39, 33, 0.25); /* Crisp divider line */
  text-align: center;
  background-color: var(--color-bg-base);
}

.site-footer-subpage p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.3px;
  margin: 0 auto;
}

/* Card Bottom Row with Flex Spacing */
.project-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

/* Dedicated GitHub Button Pill */
.btn-github-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--color-brand-pink);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-github-pill .github-icon {
  fill: var(--color-brand-pink);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.btn-github-pill:hover {
  background-color: var(--color-brand-pink);
  color: var(--color-surface-dark);
  box-shadow: 0 4px 15px rgba(244, 167, 185, 0.35);
  transform: translateY(-2px);
}

.btn-github-pill:hover .github-icon {
  fill: var(--color-surface-dark);
  transform: rotate(6deg);
}

/* Responsive collapse for small screens */
@media (max-width: 600px) {
  .project-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ARTICLE / BLOG POST REFINED EDITORIAL LAYOUT
   ========================================================================== */
.article-wrapper {
  max-width: 960px; /* Widened for balanced widescreen proportion */
  margin: 0 auto;
  padding: 8rem 2rem 2.5rem 2rem; /* Reduced bottom padding */
}

/* Breadcrumb & Navigation */
.article-back-nav {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: #d81b60;
  transform: translateX(-4px);
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1.5px solid rgba(61, 39, 33, 0.15);
  padding-bottom: 2rem;
}

.article-category {
  display: inline-block;
  background-color: var(--color-brand-pink);
  color: var(--color-surface-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.article-main-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--color-text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Article Content & Typography */
.article-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.article-body p {
  margin-bottom: 1.6rem;
}

.article-body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 2.8rem 0 1rem 0;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 2rem 0 0.8rem 0;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 1.8rem;
  padding-left: 1.8rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-brand-pink);
  padding: 1.2rem 1.8rem;
  margin: 2.2rem 0;
  background: rgba(244, 167, 185, 0.12);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-primary);
}

.article-body a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-pink);
  text-underline-offset: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.article-body a:hover {
  color: #d81b60;
  text-decoration-color: #d81b60;
}

/* Author Sign-Off Card - Anchored & Polished */
.article-author-card {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding: 1.8rem 2.2rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(61, 39, 33, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.author-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-brand-pink);
}

.author-card-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
}

.author-card-info p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Subpage Bottom Footer Bar - Tight & Grounded */
.site-footer-subpage {
  width: 100%;
  padding: 2.2rem 0;
  margin-top: 1.5rem; /* Tightened gap above footer */
  border-top: 1.5px solid rgba(61, 39, 33, 0.15); /* Clean horizontal divider */
  text-align: center;
  background-color: var(--color-bg-base);
}

.site-footer-subpage p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.3px;
  margin: 0 auto;
}

/* Responsive viewports */
@media (max-width: 768px) {
  .article-wrapper {
    padding: 7rem 1.2rem 2rem 1.2rem;
  }

  .article-main-title {
    font-size: 2.2rem;
  }

  .article-author-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   09. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .intro-grid,
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .experience-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .exp-location-meta {
    text-align: left;
  }

  .site-header {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 6px;
  }

  .visual-stage {
    width: 360px;
    height: 360px;
  }

  .box-profile {
    width: 190px;
    height: 190px;
  }
}