/* Site-wide page sync polish (loaded after per-page inline styles) */

:root {
  --surface-glass-dark: rgba(255, 255, 255, 0.05);
  --surface-glass-light: rgba(255, 255, 255, 0.9);
}

/* smoother rhythm and readability */
main {
  overflow-x: clip;
}

section {
  scroll-margin-top: 100px;
}

/* consistent page hero spacing */
.about-hero,
.contact-hero,
.blog-hero,
.faq-hero,
.post-header {
  padding-top: clamp(110px, 12vw, 150px);
}

.about-hero h1,
.contact-hero h1,
.blog-hero h1,
.faq-hero h1,
.post-header h1 {
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* shared card depth/hover language */
.blog-card,
.contact-item,
.stat-item,
.value-card,
.timeline-content,
.faq-item,
.contact-form,
.highlight-card {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover,
.contact-item:hover,
.value-card:hover,
.timeline-content:hover,
.faq-item:hover,
.stat-item:hover {
  box-shadow: 0 18px 38px rgba(127, 90, 240, 0.22);
}

/* nav consistency on non-home pages */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar .nav-link.active {
  font-weight: 700;
}

/* footer consistency */
.footer-links {
  gap: 10px 24px;
}

.footer-links a {
  padding: 2px 0;
}

/* improve article readability */
article {
  max-width: 860px;
  padding-left: 16px;
  padding-right: 16px;
}

article p,
article li {
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.85;
}

article h2,
article h3 {
  letter-spacing: -0.01em;
}

/* compact cookie banner on mobile */
@media (max-width: 768px) {
  .cookie-consent-content {
    gap: 12px;
  }

  .cookie-consent-text p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .cookie-consent-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cookie-consent-buttons button {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .values-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-form,
  .contact-item,
  .highlight-card,
  .value-card,
  .faq-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .about-hero h1,
  .contact-hero h1,
  .blog-hero h1,
  .faq-hero h1,
  .post-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
  }

  .meta-info {
    gap: 12px;
  }

  .footer-social {
    gap: 14px;
  }
}
