/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Primary Palette — "Warm Sunset" */
  /* --primary: #ff6b35; */
  --primary: rgb(250, 95, 46);
  --primary-hover: #e85a2a;
  --primary-light: rgba(255, 107, 53, 0.1);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.1);

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8fa;
  --bg-tertiary: #f0f0f5;
  --bg-header: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #64648c;
  --text-inverse: #ffffff;

  /* Borders & Surfaces */
  --border: #e8e8f0;
  --shadow-color: rgba(0, 0, 0, 0.06);
  --shadow-lg: rgba(0, 0, 0, 0.08);

  /* Status */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.7);

  /* Layout */
  --container-width: 1200px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Dark Mode Overrides */
[data-theme='dark'] {
  --primary: #ff8a5c;
  --primary-hover: #ff6b35;
  --primary-light: rgba(255, 138, 92, 0.12);
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129, 140, 248, 0.12);

  --bg-primary: #0f0f14;
  --bg-secondary: #1a1a24;
  --bg-tertiary: #24242e;
  --bg-header: rgba(15, 15, 20, 0.85);

  --text-primary: #f0f0f5;
  --text-secondary: #9898b8;
  --text-inverse: #0f0f14;

  --border: #2a2a3a;
  --shadow-color: rgba(0, 0, 0, 0.25);
  --shadow-lg: rgba(0, 0, 0, 0.4);

  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.7);
}

/* ============================================
   RESET & BASE (Mobile-first)
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.3s,
    color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

/* Scroll Reveal — elements hidden until visible */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s,
    border-color 0.3s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -1px;
  transition: color 0.2s;
}

.logo span {
  color: var(--primary);
}

/* Nav Links — hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav Actions (toggle + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 20px;
  height: 20px;
}

/* Hide moon by default (light mode shows sun) */
.theme-toggle .icon-moon {
  display: none;
}
.theme-toggle .icon-sun {
  display: block;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}
[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hamburger:hover {
  border-color: var(--primary);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* Desktop Nav */
@media (min-width: 768px) {
  .header {
    padding: 1.5rem 0;
  }

  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

[data-theme='dark'] .btn-primary {
  box-shadow: 0 4px 15px rgba(255, 138, 92, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-full {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
}

.btn .btn-icon {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }
}

/* Nav CTA hidden on small mobile */
.nav-cta {
  display: none;
}

@media (min-width: 480px) {
  .nav-cta {
    display: inline-block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  transform: rotate(10deg);
  transition: transform 0.4s ease;
}

.image-container:hover {
  transform: rotate(0deg);
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px -12px var(--shadow-lg);
  background: #eae5e5;
}

.image-bg-accent {
  position: absolute;
  top: 15px;
  right: -15px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 24px;
  z-index: 1;
  opacity: 0.12;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px), radial-gradient(circle at 1px 1px, var(--primary) 1.5px, transparent 1.5px);
  background-size:
    50px 50px,
    50px 50px,
    25px 25px;
  background-position:
    -1px -1px,
    -1px -1px,
    -1px -1px;
  z-index: -1;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 85%);
}

[data-theme='dark'] .grid-pattern {
  opacity: 0.3;
}

/* Hero — Tablet */
@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .image-container {
    max-width: 400px;
  }

  .hero-image {
    order: 0;
  }

  .grid-pattern {
    background-size:
      80px 80px,
      80px 80px,
      40px 40px;
    opacity: 0.8;
  }
}

/* Hero — Desktop */
@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0 6rem;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
  }

  .hero-title {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .image-container {
    max-width: 520px;
  }

  .profile-img {
    border-radius: 32px;
  }

  .image-bg-accent {
    top: 20px;
    right: -20px;
    border-radius: 32px;
  }
}

/* ============================================
   TRUSTED BY / EXPERTISE
   ============================================ */
.trusted-by {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: background-color 0.3s;
}

.section-tag {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.expertise-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  opacity: 0.7;
}

.expertise-item {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .trusted-by {
    padding: 3rem 0;
  }

  .section-tag {
    font-size: 0.75rem;
    margin-bottom: 2rem;
  }

  .expertise-grid {
    gap: 3rem;
  }

  .expertise-item {
    font-size: 1.25rem;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 4rem 0;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    border-color 0.3s,
    background-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--primary);
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .about {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-cards {
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .about {
    padding: 8rem 0;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .about-text p {
    font-size: 1.1rem;
  }
}

/* ============================================
   BLOG SECTION
   ============================================ */
section.blog {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    border-color 0.3s,
    background-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-color);
  border-color: var(--primary);
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.read-more {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--primary-hover);
}

@media (min-width: 768px) {
  section.blog {
    padding: 6rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .blog-card {
    padding: 2.5rem;
    border-radius: 20px;
  }

  .blog-card h3 {
    font-size: 1.25rem;
  }

  .blog-card p {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  section.blog {
    padding: 8rem 0;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .cta {
    padding: 6rem 0;
  }

  .cta-content h2 {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
  }

  .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .cta {
    padding: 8rem 0;
  }

  .cta-content h2 {
    font-size: 3rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

@media (min-width: 768px) {
  .footer {
    padding: 4rem 0;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .social-links {
    gap: 2rem;
  }
}

/* ============================================
   BLOG PAGE SPECIFIC STYLES
   ============================================ */
.blog-hero {
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.blog-listing {
  padding: 3rem 0 5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.page-link.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-link:last-child {
  width: auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .blog-hero {
    padding: 6rem 0 4rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .blog-listing {
    padding: 4rem 0 8rem;
  }

  .pagination {
    margin-top: 4rem;
  }
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 1.5rem auto 0;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition:
    border-color 0.2s,
    background-color 0.3s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 2rem;
  }
}

/* ============================================
   BLOG POST PAGE SPECIFIC STYLES
   ============================================ */
.post-page {
  background-color: var(--bg-primary);
}

.post-header {
  padding: 4rem 0 2.5rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  transition: background-color 0.3s;
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.post-main-content {
  min-width: 0;
}

.featured-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1.25rem;
  letter-spacing: -0.5px;
}

.content p {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tip {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  transition: background-color 0.3s;
}

@media (min-width: 768px) {
  .post-header {
    padding: 5rem 0 3rem;
  }

  .post-title {
    font-size: 2.75rem;
    letter-spacing: -2px;
  }

  .post-meta {
    font-size: 0.95rem;
    gap: 2rem;
  }

  .content h2 {
    font-size: 1.75rem;
    margin: 3rem 0 1.5rem;
    letter-spacing: -1px;
  }

  .content p {
    font-size: 1.1rem;
  }

  .featured-image {
    border-radius: 24px;
  }

  .tip {
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .post-header {
    padding: 6rem 0 4rem;
  }

  .post-title {
    font-size: 3.5rem;
  }

  .post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 8rem;
  }

  .content h2 {
    font-size: 2rem;
  }

  .content p {
    font-size: 1.15rem;
  }
}

/* Sticky CTA Box */
.post-sidebar {
  position: relative;
}

.sticky-cta-box {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow-color);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.sticky-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sticky-cta-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.sticky-cta-box .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .post-sidebar {
    order: 0;
  }

  .sticky-cta-box {
    position: sticky;
    top: 120px;
    padding: 2.5rem;
    border-radius: 24px;
  }

  .sticky-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .sticky-cta-box p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
}

.cta-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-footer::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--success-glow);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================ */
.about-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-story {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s;
}

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.story-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.story-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.story-stats {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; */
  gap: 1rem;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition:
    transform 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 6rem 0 4rem;
  }

  .about-story {
    padding: 6rem 0;
  }

  .story-content h2 {
    font-size: 2.5rem;
  }

  .story-content p {
    font-size: 1.15rem;
  }

  .story-stats {
    flex-direction: column;
    display: flex;
    gap: 2rem;
  }

  .stat-item {
    padding: 2rem;
    border-radius: 24px;
  }

  .stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .about-hero {
    padding: 8rem 0 4rem;
  }

  .story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
  }
}

/* Tech Stack */
.tech-stack {
  padding: 4rem 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.stack-category {
  padding: 1.75rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    background-color 0.3s;
}

.stack-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stack-category h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.stack-category ul {
  list-style: none;
}

.stack-category li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stack-category li::before {
  content: '→';
  color: var(--primary);
  font-weight: 800;
}

@media (min-width: 768px) {
  .tech-stack {
    padding: 6rem 0;
  }

  .stack-grid {
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .stack-category {
    padding: 2rem;
    border-radius: 20px;
  }

  .stack-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .stack-category li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .tech-stack {
    padding: 8rem 0;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
  }

  .stack-category {
    padding: 2.5rem;
    border-radius: 24px;
  }
}

/* Personal Interests */
.personal-interests {
  padding: 4rem 0 5rem;
}

.interests-box {
  padding: 2.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 24px;
  text-align: center;
  transition: background-color 0.3s;
}

[data-theme='dark'] .interests-box {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.interests-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.interests-box p {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .personal-interests {
    padding: 6rem 0 8rem;
  }

  .interests-box {
    padding: 4rem;
    border-radius: 32px;
  }

  .interests-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .interests-box p {
    font-size: 1.25rem;
  }
}

/* ============================================
   CONTACT PAGE SPECIFIC STYLES
   ============================================ */
.contact-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section {
  padding: 3rem 0 5rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.info-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.info-list {
  list-style: none;
}

.info-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-list a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

.info-list a:hover {
  color: var(--primary-hover);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social-btn {
  padding: 0.8rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.contact-form-container {
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow-color);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    background-color 0.3s;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

@media (min-width: 768px) {
  .contact-hero {
    padding: 6rem 0 4rem;
  }

  .contact-section {
    padding: 4rem 0 8rem;
  }

  .contact-form-container {
    padding: 3rem;
    border-radius: 32px;
  }

  .info-card {
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
  }

  .info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 1rem;
    border-radius: 12px;
  }

  .social-grid {
    gap: 1rem;
  }

  .social-btn {
    padding: 1rem;
  }

  .info-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
  }
}

/* ============================================
   EXPERIENCE PAGE SPECIFIC STYLES
   ============================================ */
.experience-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.experience-timeline {
  padding: 3rem 0 5rem;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--border);
  transition: background-color 0.3s;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 10px;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 2;
  transition: border-color 0.3s;
}

.timeline-content {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    background-color 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.project-header {
  margin-bottom: 1.5rem;
}

.project-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.project-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.project-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.project-body p {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-highlights li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  padding-left: 1.25rem;
  position: relative;
}

.project-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  padding: 0.4rem 0.8rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

@media (min-width: 768px) {
  .experience-hero {
    padding: 6rem 0 4rem;
  }

  .experience-timeline {
    padding: 4rem 0 8rem;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline-dot {
    left: -45px;
    border-width: 4px;
  }

  .timeline-item {
    margin-bottom: 4rem;
  }

  .timeline-content {
    padding: 3rem;
    border-radius: 24px;
  }

  .project-header {
    margin-bottom: 2rem;
  }

  .project-date {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .project-header h2 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .project-role {
    font-size: 1.1rem;
  }

  .project-body p {
    font-size: 1.1rem;
  }

  .project-highlights li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
  }

  .project-tags {
    gap: 0.75rem;
  }

  .project-tags span {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .experience-hero {
    padding: 8rem 0 4rem;
  }
}

/* ============================================
   STATS BAR (Projects Page)
   ============================================ */
.expertise-bar {
  padding: 2rem 0 2rem;
  position: relative;
  z-index: 2;
}

.expertise-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.expertise-bar .expertise-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}

.expertise-bar .expertise-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.expertise-bar .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.expertise-bar .expertise-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .expertise-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .expertise-items {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .expertise-bar .stat-number {
    font-size: 2rem;
  }

  .expertise-bar .expertise-item {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   PROJECTS PAGE SPECIFIC STYLES
   ============================================ */
.project-featured {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s;
}

.featured-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.featured-content .project-role {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.featured-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.project-challenge,
.project-approach {
  margin-bottom: 2rem;
}

.project-challenge h3,
.project-approach h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.project-challenge p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-approach ul {
  list-style: none;
}

.project-approach li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.project-approach li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.project-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .project-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-metric {
  padding: 1.25rem;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition:
    transform 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}

.result-metric:hover {
  transform: translateY(-3px);
}

.metric-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .project-featured {
    padding: 6rem 0;
  }

  .featured-content h2 {
    font-size: 2.5rem;
  }

  .featured-content > p {
    font-size: 1.15rem;
  }

  .project-challenge h3,
  .project-approach h3 {
    font-size: 1.25rem;
  }

  .result-metric {
    padding: 1.5rem;
  }

  .metric-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .project-featured {
    padding: 8rem 0;
  }

  .featured-content {
    max-width: 900px;
  }

  .featured-content h2 {
    font-size: 3rem;
  }

  .project-results {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .result-metric {
    padding: 2rem;
    border-radius: 20px;
  }
}

/* Projects Grid */
.projects-section {
  padding: 4rem 0 5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    border-color 0.3s,
    background-color 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--primary);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -2px;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.project-card {
  position: relative;
}

.project-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.project-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-card .project-highlights {
  margin-bottom: 1.25rem;
}

.project-card .project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 0;
}

.project-card .project-highlights li::before {
  display: none;
}

@media (min-width: 768px) {
  .projects-section {
    padding: 6rem 0 8rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-card {
    padding: 2.5rem;
    border-radius: 20px;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA Section */
.cta-section {
  padding: 4rem 0 5rem;
}

.cta-box {
  padding: 3rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 24px;
  text-align: center;
  transition: background-color 0.3s;
}

[data-theme='dark'] .cta-box {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cta-actions .btn {
  min-width: 200px;
}

[data-theme='dark'] .cta-box .btn-secondary {
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme='dark'] .cta-box .btn-secondary:hover {
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .cta-section {
    padding: 6rem 0 8rem;
  }

  .cta-box {
    padding: 5rem 4rem;
    border-radius: 32px;
  }

  .cta-box h2 {
    font-size: 3rem;
    letter-spacing: -1.5px;
  }

  .cta-box p {
    font-size: 1.2rem;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* ============================================
   FEED PAGE SPECIFIC STYLES
   ============================================ */
.feed-filters {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .filter-bar {
    justify-content: center;
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Feed Timeline */
.feed-section {
  padding: 3rem 0 5rem;
}

.feed-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 20px;
}

.feed-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
  transition: background-color 0.3s;
}

.feed-month-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  padding-left: 1rem;
}

.feed-month-label:first-child {
  margin-top: 0;
}

.feed-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.feed-dot {
  position: absolute;
  left: -19px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 2;
  transition: border-color 0.3s;
}

.feed-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    border-color 0.3s,
    background-color 0.3s;
}

.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--primary);
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.feed-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.feed-category {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

.feed-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.feed-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feed-card .project-tags {
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .feed-section {
    padding: 4rem 0 8rem;
  }

  .feed-timeline {
    padding-left: 30px;
  }

  .feed-timeline::before {
    left: 8px;
  }

  .feed-dot {
    left: -26px;
    width: 12px;
    height: 12px;
  }

  .feed-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .feed-card h3 {
    font-size: 1.3rem;
  }

  .feed-card > p {
    font-size: 0.95rem;
  }

  .feed-item {
    margin-bottom: 2rem;
  }

  .feed-month-label {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
    padding-left: 1.5rem;
  }
}
/* ============================================
   SINGLE PROJECT VIEW STYLES
   ============================================ */
.project-view-hero {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.project-view-hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-hero-content {
  position: relative;
  z-index: 2;
}

.project-hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  background: var(--bg-tertiary);
}

.project-hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.project-meta-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.project-meta-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Impact Bar */
.impact-section {
  padding: 4rem 0;
}

.impact-bar {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 3rem 0;
  margin: 3rem 0; /* Clear vertical spacing */
  position: relative;
  z-index: 3;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .impact-bar {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-item .metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
}

.impact-item .metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Narrative Grid */
.narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.narrative-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Sidebar Wrapper */
.project-view-page .sidebar-sticky-wrapper {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-self: flex-start; /* Ensure sticky works in flex container */
}

/* Force static for children so they move as a unit */
.project-view-page .sidebar-sticky-wrapper .sticky-cta-box,
.project-view-page .sidebar-sticky-wrapper .stack-category {
  position: static !important;
  width: 100%;
}

/* Responsive Overrides */
@media (min-width: 768px) {
  .project-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-view-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
  }

  .project-hero-content {
    order: 0;
  }

  .project-hero-image {
    order: 1;
    border-radius: 32px;
  }

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

  .impact-bar {
    padding: 4rem 0;
    margin: 6rem 0; /* Large separation on desktop */
    border-radius: 32px;
  }

  .impact-item .metric-value {
    font-size: 3.5rem;
  }

  .narrative-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

/* WordPress Pagination (the_posts_pagination) */
.navigation .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.navigation .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.navigation .nav-links .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.navigation .nav-links .page-numbers.current {
  background-color: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.navigation .nav-links .prev,
.navigation .nav-links .next {
  font-weight: 600;
}

/* Admin Bar Offset */
body.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

/* Post Thumbnail / Featured Image */
.featured-image,
.wp-post-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  margin-bottom: 2rem;
}

/* WordPress Alignment Classes */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.alignwide {
  max-width: calc(var(--container-width) + 4rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  width: 100vw;
}

/* WordPress Captions */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  border-radius: 16px;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* WordPress Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* WordPress Block Editor Compatibility */
.wp-block-image img {
  border-radius: 16px;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--bg-secondary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.wp-block-quote p {
  margin-bottom: 0.5rem;
}

.wp-block-quote cite {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 600;
}

.wp-block-code {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.wp-block-code code {
  font-size: 0.9rem;
  line-height: 1.6;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.wp-block-table th {
  background: var(--bg-secondary);
  font-weight: 700;
}

/* Screen Reader Text (accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg-primary);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Blog card link reset */
.blog-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--primary);
}
