/*
Theme Name: Anke de Sagher Theme
Theme URI: https://ankedesagher.be/
Description: Custom theme to replicate the Next.js site design for Anke de Sagher.
Version: 1.0
Author: AntiGravity
Author URI: https://github.com/google-deepmind
Text Domain: ankedesagher-theme
*/

:root {
  --bg-color: oklch(96% 0.01 85); /* Soft creamy sand */
  --bg-color-alt: oklch(92% 0.02 90); /* Slightly darker sand */
  --text-color: oklch(30% 0.02 50); /* Deep espresso brown */
  --text-muted: oklch(45% 0.02 50); /* Softer brown */
  --primary-accent: oklch(65% 0.1 140); /* Muted moss/sage green */
  --primary-accent-hover: oklch(55% 0.1 140);

  --border-radius-sm: 12px;
  --border-radius-md: 24px;
  --border-radius-lg: 40px;
  --border-radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--text-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-accent);
}

/* Base Layout Backgrounds */
.heroImageBleedWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.heroImageBleed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: center;
  animation: slowZoomBleed 60s ease-in-out infinite alternate;
}

.heroHalfBleedWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65vh;
  min-height: 550px;
  z-index: -1;
  overflow: hidden;
}

.heroHalfBleed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform-origin: center;
  animation: slowZoomHalf 60s ease-in-out infinite alternate;
}

@keyframes slowZoomBleed {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -0.5%);
  }
  100% {
    transform: scale(1.10) translate(0.5%, 0.5%);
  }
}

@keyframes slowZoomHalf {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(0.5%, -0.5%);
  }
  100% {
    transform: scale(1.08) translate(-0.5%, 0.5%);
  }
}

.heroOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.mainContent {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* --- NAVBAR STYLES --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-fast);
  background: transparent;
}

.header.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition-fast);
}

.header.scrolled .navbar {
  padding: 1rem 2rem;
}

.logoContainer {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.logoSubtitle {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.navLinks {
  display: flex;
  gap: 3rem;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.navItem:hover {
  color: #fff;
  transform: translateY(-1px);
}

.languageSwitcher {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.langBtn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.langBtn:hover {
  color: #fff;
}

.langActive {
  color: #fff !important;
  font-weight: bold;
}

.langDivider {
  font-size: 0.85rem;
  opacity: 0.5;
  color: #fff;
}

.header.scrolled .logo,
.header.scrolled .navItem,
.header.scrolled .langBtn {
  color: #1a1a1a;
}

.header.scrolled .langActive {
  color: var(--primary-accent) !important;
}

.header.scrolled .logoSubtitle {
  color: rgba(0, 0, 0, 0.6);
}

.header.scrolled .navItem:hover,
.header.scrolled .langBtn:hover {
  color: var(--primary-accent);
}

.mobileMenuBtn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 101;
  transition: color var(--transition-fast);
}

.scrolledText {
  color: #1a1a1a !important;
}

.mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobileMenuOpen {
  opacity: 1;
  pointer-events: auto;
}

.mobileNavLinks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.mobileNavItem {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobileNavItem:hover {
  color: #fff;
  transform: translateY(-2px);
}

.mobileLanguageSwitcher {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.mobileLangBtn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.mobileLangActive {
  color: #fff;
  font-weight: 500;
}

.mobileLangDivider {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .navLinks, .languageSwitcher { display: none; }
  .mobileMenuBtn { display: block; }
  .navbar { padding: 1.5rem 2rem; }
  .header.scrolled .navbar { padding: 1rem 2rem; }
  .logoContainer { position: relative; z-index: 101; }
}

/* --- FOOTER STYLES --- */
.footer {
  background-color: transparent;
  color: #1a1a1a;
  padding: 2rem 2rem 2rem;
  margin-top: 1rem;
}

.footerInner {
  max-width: 1200px;
  margin: 0 auto;
}

.footerTop {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.brandName {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.brandSubtitle {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
  transition: all var(--transition-fast);
  background: transparent;
}

.socialLink:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
}

.infoSection {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1rem;
  color: #1a1a1a;
}

.infoBlock {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.infoBlock.addressBlock {
  align-items: flex-start;
}

.infoIconWrapper {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addressBlock .infoIconWrapper {
  margin-top: 1px;
}

.infoIcon {
  color: #1a1a1a;
}

.infoText {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.infoText p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: #1a1a1a;
  font-size: 1rem;
}

.mailLink {
  transition: color var(--transition-fast);
  color: #1a1a1a;
  text-decoration: underline;
  line-height: 1.4;
  font-size: 1rem;
}

.mailLink:hover {
  color: var(--primary-accent);
}

.formBlock {
  background: transparent;
  padding: 0;
  color: #1a1a1a;
}

.formTitle {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input, .textarea {
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.input::placeholder, .textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: #000000;
}

.submitBtn {
  margin-top: 0.5rem;
  padding: 1rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.submitBtn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.footerBottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #1a1a1a;
}

@media (max-width: 968px) {
  .footerTop { grid-template-columns: 1fr; gap: 3rem; }
}

/* --- PAGES GENERAL --- */
.container {
  min-height: 100vh;
  padding-bottom: 4rem;
  background: transparent;
  padding-top: 2rem;
}

.pageHeader {
  padding: 10rem 2rem 0;
  background: transparent;
  text-align: center;
}

.headerContent {
  max-width: 800px;
  margin: 0 auto;
}

.title {
  font-size: 4rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: pre-line;
}

.subtitle {
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: pre-line;
}

@media (max-width: 768px) {
  .pageHeader { padding: 7rem 1.5rem 0; }
  .title { font-size: 3rem; }
}

/* --- HOMEPAGE SPECIFIC --- */
.heroFullBleed {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4rem 8rem 12rem 8rem;
  overflow: hidden;
}

.heroContentBleed {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.heroTitleBleed {
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.heroSubtitleBleed {
  font-size: 1.35rem;
  color: #ffffff;
  max-width: 750px;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ctaGroupBleed {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.primaryBtnBleed {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #000000;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.primaryBtnBleed:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.secondaryBtnBleed {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.2);
}

.secondaryBtnBleed:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.aboutSection {
  max-width: 1200px;
  margin: 4rem auto 1rem;
  padding: 0 2rem;
  text-align: left;
}

.aboutContent {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.aboutTitleColumn {
  display: flex;
}

.sectionTitle {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.aboutTextColumn {
  display: flex;
  flex-direction: column;
}

.bodyText {
  font-size: 1.25rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .heroFullBleed { padding: 8rem 1.5rem 3rem 1.5rem; min-height: 100svh; }
  .heroContentBleed { padding: 0; }
  .heroTitleBleed { font-size: 3.25rem; }
  .heroSubtitleBleed { font-size: 1.15rem; }
  .ctaGroupBleed { flex-direction: column; width: 100%; gap: 1rem; align-items: stretch; }
  .primaryBtnBleed, .secondaryBtnBleed { width: 100%; justify-content: center; }
  .aboutContent { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- DIENSTEN / SERVICES --- */
.servicesSection {
  margin: 2rem auto 6rem;
  padding: 0 2rem;
}

.servicesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 3rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .servicesGrid { grid-template-columns: 1fr; }
}

.serviceCard {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.05);
}

.serviceCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.serviceHeader {
  padding: 2.5rem 2.5rem 1rem 2.5rem;
}

.serviceTitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.serviceSubtitle {
  color: #6a6a6a;
  font-size: 1rem;
}

.serviceBody {
  padding: 0 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.serviceDesc {
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.featuresList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 0;
}

.featureItem {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.checkIcon {
  color: var(--primary-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
  margin-bottom: 2rem;
}

.metaRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metaCol {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metaLabel {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a6a6a;
}

.metaValue {
  font-weight: 500;
  color: #1a1a1a;
}

.bookBtn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: #000000;
  color: #ffffff;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.bookBtn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

/* --- ERVARING / EXPERIENCE --- */
.experienceSection {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experienceCard {
  border-radius: var(--border-radius-md);
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.experienceCardLink {
  display: grid;
  grid-template-columns: 380px 1fr;
  color: inherit;
  text-decoration: none;
}

.experienceCard:hover {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.cardHeader {
  display: flex;
  flex-direction: column;
  padding: 4rem 3rem;
  position: relative;
  background-color: #f8f9fa;
  background-size: cover;
  background-position: center;
  border-right: 1px solid #f0f0f0;
}

.cardHeaderOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.cardHeaderContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.logoWrapper {
  width: 250px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.orgLogo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all var(--transition-smooth);
}

.experienceCard:hover .orgLogo {
  filter: grayscale(0%);
  opacity: 1;
}

.hasBackground .orgLogo {
  filter: brightness(0) invert(1) opacity(0.9);
}

.platformTitle {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.hasBackground .platformTitle {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cardContent {
  display: flex;
  flex-direction: column;
  padding: 4rem 3rem;
}

.platformDesc, .richTextOutput {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
}

.richTextOutput p {
  margin-bottom: 1.25rem;
}

.richTextOutput strong {
  font-weight: 600;
  color: #1a1a1a;
}

@media (max-width: 1024px) {
  .experienceCardLink { grid-template-columns: 280px 1fr; }
  .cardContent, .cardHeader { padding: 3rem 2.5rem; }
}

@media (max-width: 768px) {
  .experienceCardLink { grid-template-columns: 1fr; }
  .cardHeader { border-bottom: 1px solid #eee; border-right: none; width: 100%; }
  .cardContent { padding: 3rem 2rem; }
  .logoWrapper { width: 200px; height: 100px; }
}

/* --- PORTFOLIO PAGE GRID & FILTERS --- */
.filterContainer {
  margin-bottom: 4rem;
}

.filterTabs {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.filterTab {
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.filterTab.active {
  color: #ffffff;
  font-weight: 500;
}

.filterTab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
}

.filterOptions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filterOption {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.filterOption:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filterOption.active {
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 500;
}

.platformDescription {
  color: #ffffff;
  margin: 0 auto 3rem;
  max-width: 800px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.articlesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 3rem;
  justify-content: center;
}

.articleCard {
  background: rgba(252, 252, 252, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.articleCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.imageWrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.articleImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.articleImagePortrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.8s ease;
}

.articleCard:hover .articleImage,
.articleCard:hover .articleImagePortrait {
  transform: scale(1.05);
}

.categoryBadgeWrapper {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badgeWrapper {
  margin-bottom: 1.5rem;
  display: flex;
}

.articleContent {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.metaInfo {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.metaItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.articleTitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.articleSubtitle {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tagsGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .articlesGrid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- SINGLE PORTFOLIO / ARTICLE --- */
.backBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  margin-bottom: 3rem;
}

.backBtn:hover {
  color: #fff;
}

.articleHeader {
  margin-bottom: 3rem;
  text-align: center;
}

.articleHeader .metaInfo {
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.articleHeader .metaItem {
  color: inherit;
}

.articleHeader .title {
  font-size: 3.5rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.articleHeader .subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 300;
}

.contentWrapper {
  background-color: #fcfcfc;
  width: 100%;
  min-height: 50vh;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
}

.contentContainer {
  max-width: 800px;
  margin: 0 auto;
}

.articleBody {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.articleBody p {
  margin-bottom: 1.5rem;
}

.articleBody img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
}

.articleBody a {
  color: var(--primary-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.articleBody a:hover {
  color: var(--primary-accent-hover);
}

.articleBody strong, .articleBody b {
  font-weight: 600;
  color: #1a1a1a;
}

.downloadSection {
  margin-top: 5rem;
  padding: 3rem;
  background: rgba(250, 250, 250, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.downloadTitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1a1a1a;
}

.downloadText {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.downloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.downloadBtn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.externalLinkSection {
  margin-top: 5rem;
  padding: 3.5rem 2rem;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.externalLinkTitle {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.externalLinkText {
  color: #555;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.externalLinkBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  color: #ffffff;
  padding: 1.1rem 2.8rem;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.externalLinkBtn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- TESTIMONIALS --- */
.testimonialsSection {
  max-width: 1400px;
  margin: 2rem auto 6rem;
  padding: 0 2rem;
}

.testimonialsGrid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.testimonialCard {
  background: rgba(250, 250, 250, 0.95);
  padding: 3rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-smooth);
}

.testimonialCard:hover {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.quoteIcon {
  color: var(--primary-accent);
  opacity: 0.3;
}

.testimonialText {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1a1a1a;
  font-style: italic;
}

.testimonialText p {
  margin-bottom: 1rem;
}

.testimonialText p:last-child {
  margin-bottom: 0;
}

.testimonialAuthor {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.authorImg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.authorName {
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
}

.authorRole {
  font-size: 0.85rem;
  color: #6a6a6a;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonialCard {
    padding: 2rem 1.5rem;
    gap: 1rem;
  }
  .testimonialsSection {
    padding: 0 1rem;
    margin: 1.5rem auto 4rem;
  }
}

/* --- CONTACT PAGE --- */
.contactSection {
  max-width: 1200px;
  margin: 2rem auto 8rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contactCard {
  background: rgba(250, 250, 250, 0.95);
  padding: 4rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.contactInfo h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.infoDesc {
  margin-bottom: 2.5rem;
  color: #4a4a4a;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.infoBlock h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

.infoBlock p, .link {
  color: #4a4a4a;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--primary-accent);
}

.socials h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.socialLinks {
  display: flex;
  gap: 1rem;
}

.contactFormWrapper {
  padding: 0;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.successMessage, .errorMessage {
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.successMessage {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.errorMessage {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inputGroup label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

@media (max-width: 968px) {
  .contactSection { grid-template-columns: 1fr; gap: 2rem; }
  .contactCard { padding: 2.5rem; }
}

@media (max-width: 768px) {
  .contactSection { padding: 0 1rem; margin: 1.5rem auto 4rem; gap: 1rem; }
  .contactCard { padding: 2rem 1.5rem; }
  .contactInfo h2 { font-size: 1.75rem; }
  .infoDesc {
  margin-bottom: 2.5rem; font-size: 1rem; margin-bottom: 2rem; }
  .infoBlock { gap: 1rem; margin-bottom: 1.5rem; }
  .socialLink { width: 42px; height: 42px; }
}

.articleBody, .articleBody p, .articleHeader .title, .articleHeader .subtitle, .contentContainer { overflow-wrap: anywhere !important; word-break: break-word !important; white-space: normal !important; }
