/*
  === Global Heading System ===
  - All heading styles (h1-h4) use CSS variables for font size, weight, and spacing.
  - To override, use a utility class (e.g., .hero-title) or section-specific class only when necessary.
*/
:root {
  /* === Typography System === */
  --h1-size: 2.5em;
  --h2-size: 2em;
  --h3-size: 1.2em;
  --h4-size: 1em;
  --h1-weight: 800;
  --h2-weight: 700;
  --h3-weight: 700;
  --h4-weight: 600;
  --h1-line-height: 1.1;
  --h2-line-height: 1.15;
  --h3-line-height: 1.2;
  --h4-line-height: 1.2;
  --heading-margin-bottom: 0.5em;
  
  /* === Color System === */
  --color-primary: #111;
  --color-primary-hover: #444;
  --color-text: #222;
  --color-text-light: #444;
  --color-text-lighter: #666;
  --color-background: #fff;
  --color-background-light: #fafafa;
  --color-border: #eee;
  --color-border-light: #eaeaea;
  --color-accent: #0077ff;
  
  /* === Spacing System === */
  --spacing-xs: 0.5em;
  --spacing-sm: 1em;
  --spacing-md: 1.5em;
  --spacing-lg: 2em;
  --spacing-xl: 3em;
  --spacing-xxl: 4em;
  
  /* === Layout System === */
  --container-max-width: 1100px;
  --container-padding: 2em;
  --container-padding-mobile: 1em;
  --section-max-width: 900px;
  --border-radius: 0.5em;
  --border-radius-large: 0.7em;
  --border-radius-small: 0.5em;
  
  /* === Animation System === */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  
  /* === Shadow System === */
  --shadow-light: 0 1px 6px rgba(0,0,0,0.03);
  --shadow-normal: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-heavy: 0 4px 24px rgba(0,0,0,0.08);
  
  /* === Defensive Design System === */
  --z-index-base: 1;
  --z-index-dropdown: 10;
  --z-index-sticky: 100;
  --z-index-modal: 1000;
  --z-index-tooltip: 10000;
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  margin-bottom: var(--heading-margin-bottom);
  line-height: var(--h1-line-height);
}
h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  margin-bottom: var(--heading-margin-bottom);
  line-height: var(--h2-line-height);
}
h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  margin-bottom: var(--heading-margin-bottom);
  line-height: var(--h3-line-height);
}
h4 {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  margin-bottom: var(--heading-margin-bottom);
  line-height: var(--h4-line-height);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}

#header-include, #footer-include {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  /* Prevent layout shift */
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading for images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-background);
  padding: 0.75em var(--spacing-lg);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: var(--spacing-sm);
  transition: background var(--transition-fast);
}
.btn:hover {
  background: var(--color-primary-hover);
}

/* Header Styles */
.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-xs) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}
.logo {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  list-style: none;
}
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color var(--transition-fast);
}
.main-nav a:hover {
  color: var(--color-accent);
}
.book-btn {
  background: var(--color-primary);
  color: var(--color-background) !important;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: 1em;
}
.book-btn:hover {
  background: var(--color-primary-hover);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: #111;
  border-radius: 2px;
}

@media (max-width: 800px) {
  .main-nav ul {
    display: none;
    position: absolute;
    top: 60px;
    right: 1em;
    background: #fff;
    flex-direction: column;
    gap: 1em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 1.5em 2em;
    border-radius: 1em;
          z-index: var(--z-index-dropdown);
  }
  .main-nav.open ul {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
  background: var(--color-background-light);
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  gap: var(--spacing-lg);
}
.hero-img {
  width: 400px;
  height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--spacing-sm);
  box-shadow: var(--shadow-heavy);
}
.hero-text {
  flex: 1;
  min-width: 250px;
}
.hero-text h1 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 0.2em;
}
.hero-text h2 {
  font-size: 1.3em;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.5em;
}
.hero-text p {
  margin-bottom: 0.5em;
  color: var(--color-text);
}

/* Logo Bar */
.logo-bar { 
  padding: 2em 0;
}
.logo-row {
  width: 100%;
  position: relative;
  min-height: 100px;
  /* border: 2px solid red !important; */ /* Debug border removed */
}
.logo-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.logo-carousel img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.1);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
  flex: 0 0 auto;
}
.logo-carousel img:hover {
  filter: grayscale(0) brightness(1.2);
  opacity: 1;
}
@media (max-width: 900px) {
  .logo-carousel {
    gap: 0em;
  }
}
@media (max-width: 700px) {
  .logo-carousel {
    gap: 0em;
    justify-content: center;
  }
  .logo-carousel img {
    height: 80px;
  }
}

/* Skills/Expertise Section */
.skills {
  padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
  background: var(--color-background);
  max-width: var(--section-max-width);
  margin: 0 auto;
}
.skills h2 {
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.skills h1 span {
  font-style: italic;
  color: #111;
}
.skills-subhead {
  font-size: 1em;
  color: #444;
}
.skills-top-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2.5em;
}
.skills-headlines {
  flex: 1 1 50px;
  min-width: 220px;
}
.skills-icons-row {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  gap: 2em;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 0;
}
.skills-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-icon,
.skills-card-icon {
  background: none !important;
  height: 50px;
  width: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}
.skills-icon-label {
  text-align: center;
  font-size: 0.95em;
  color: #222;
}
.skills-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-bottom: 2em;
}
.skill-card {
  background: var(--color-background-light);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-normal);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
}
.skill-card h3 {
  font-size: 1.15em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.skill-card p {
  font-size: 1em;
  color: #333;
}
.skills-bottom-headline {
  margin-top: 1.5em;
  font-size: 1em;
  color: #222;
}

/* Secondary Image Section */
.secondary-image {
  padding: 2em 1em;
  max-width: 900px;
  margin: 0 auto;
}
.secondary-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}
@media (max-width: 700px) {
  .secondary-image {
    padding: 1em;
  }
  .secondary-image img {
    height: 300px;
  }
}

/* Consultation/Offer Section */
.consultation {
  background: #fff;
  padding: 3em 1em 0em 1em;
  max-width: 900px;
  margin: 0 auto 0 auto;
}
.consultation-main-row {
  display: flex;
  gap: 2em;
  align-items: center;
  margin-bottom: 2.5em;
}
.consultation-main-left {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.consultation-main-left h1 {
  margin-bottom: 0.5em;
}
.consultation-desc {
  font-size: 1em;
  color: #333;
  margin-bottom: 1.2em;
}
.consultation-bullets {
  margin-bottom: 1.2em;
  margin-left: 1.2em;
  color: #222;
  font-size: 1em;
}
.consultation-bullets li {
  margin-bottom: 0.5em;
}

.consultation-note {
  font-size: 0.95em;
  color: #444;
  margin-top: 0.7em;
  font-style: italic;
  text-align: center;
}
.consultation-main-right {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.consultation-img-main {
  max-width: 430px;
  width: 100%;
  border-radius: 0.7em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.consultation-who-row {
  display: flex;
  gap: 2em;
  margin-top: 2em;
}
.consultation-who-block {
  flex: 1 1 220px;
  background: #fafafa;
  border-radius: 0.7em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.5em 1.2em 1.2em 1.2em;
}
.consultation-who-block h2 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.7em;
}
.consultation-who-block ul {
  margin-left: 1.2em;
  font-size: 1em;
  color: #222;
}
.consultation-who-block li {
  margin-bottom: 0.5em;
}

/* How I Work Section */
.how-i-work {
  background: #fff;
  padding: 3em 1em 2em 1em;
  max-width: 900px;
  margin: 0 auto 2em auto;
}
.howiwork-top-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2.5em;
}
.howiwork-headlines {
  flex: 1 1 50px;
}
.howiwork-icons-row {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  gap: 2em;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 0;
}
.howiwork-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.howiwork-icon,
.howiwork-card-icon {
  background: none !important;
  margin-bottom: 1.5em;
  height: 50px;
  width: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}
.howiwork-icon-label {
  text-align: center;
  font-size: 0.95em;
  color: #222;
}
.howiwork-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-bottom: 2em;
}
.howiwork-card {
  background: #fafafa;
  border-radius: 0.7em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
}
.howiwork-card h3 {
  font-size: 1.15em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.howiwork-card p {
  font-size: 1em;
  color: #333;
}
.howiwork-emoji {
  font-size: 1.1em;
  margin-right: 0.2em;
}
.howiwork-bottom-headline {
  margin-top: 1.5em;
  font-size: 1em;
  color: #222;
}

/* Testimonials Section */
.testimonials {
  background: #fff;
  padding: 3em 1em 2em 1em;
  max-width: 1100px;
  margin: 0 auto 2em auto;
  text-align: center;
}
.testimonials h1 {
  margin-bottom: 0.5em;
}
.testimonials-subhead {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 2.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-top: 1em;
}
.testimonial-card {
  background: #fafafa;
  border-radius: 0.7em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  text-align: left;
  position: relative;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1em;
}
.testimonial-name {
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 0.2em;
}
.testimonial-title {
  font-size: 1em;
  color: #555;
  margin-bottom: 0.7em;
}
.testimonial-text {
  font-size: 1em;
  color: #222;
}
.testimonial-linkedin {
  position: absolute;
  top: 1.2em;
  right: 1.2em;
  width: 32px;
  height: 32px;
  display: block;
  z-index: 2;
}
.testimonial-linkedin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px #ddd;
  transition: box-shadow 0.2s;
}
.testimonial-linkedin:hover img {
  box-shadow: 0 0 0 2px #0077b5;
}
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}

/* FAQ Section */
.faq {
  background: #fff;
  padding: 3em 1em 2em 1em;
  max-width: 1100px;
  margin: 0 auto 2em auto;
}
.faq-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2em;
}
.faq-left {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.faq-icon {
  display: block;
  text-align: center;
  margin-bottom: 0.5em;
}
.faq-icon img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 1em auto;
}
.faq-left h1 {
  margin-bottom: 0.5em;
}
.faq-subhead {
  font-size: 1em;
  color: #444;
  margin-bottom: 0;
}
.faq-right {
  flex: 2 1 400px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
.faq-qa {
  margin-bottom: 0.5em;
}
.faq-q {
  font-weight: 700;
  font-size: 1.08em;
  margin-bottom: 0.2em;
}
.faq-a {
  font-size: 1em;
  color: #222;
}
@media (max-width: 900px) {
  .consultation-main-row {
    flex-direction: column;
    gap: 1.2em;
    align-items: stretch;
  }
  .consultation-main-left {
    justify-content: flex-start;
    align-items: center;
  }
  .faq-row {
    flex-direction: column;
    gap: 1.5em;
  }
  .faq-left, .faq-right {
    min-width: 0;
    width: 100%;
  }
  .faq-left {
    display: block;
    text-align: center;
  }
  .faq-icon {
    margin-bottom: 0.5em;
  }
}

/* Contact/CTA Section */
.contact-cta {
  background: #fff;
  color: #111;
  padding: 3em 1em 2em 1em;
  max-width: 1100px;
  margin: 0 auto 2em auto;
  text-align: left;
}
.contact-cta-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2em;
  justify-content: flex-start;
}
.contact-cta-left {
  min-width: 220px;
  display: flex;
  align-items: flex-start;
}
.contact-cta-left h1 {
  font-size: 2.3em;
  font-weight: 800;
  line-height: 1.1;
}
.contact-cta-right {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-cta-subhead {
  font-size: 1.08em;
  margin-bottom: 0.7em;
}
.contact-cta-list {
  margin-bottom: 1.2em;
  margin-left: 1.2em;
  font-size: 1em;
  color: #222;
}
.contact-cta-list li {
  margin-bottom: 0.5em;
}
.contact-cta .btn {
  max-width: 300px;
  box-sizing: border-box;
  margin-top: 0.5em;
}
@media (max-width: 900px) {
  .contact-cta-row {
    flex-direction: column;
    gap: 1.5em;
  }
  .contact-cta-left, .contact-cta-right {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
}

/* Footer Styles */
.site-footer {
  background: #111;
  color: #fff;
  padding: 7em 2em 7em 2em;
  margin-top: 3em;
  font-size: 1em;
}
.footer-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2em;
}
.footer-col {
  flex: 1 1 0;
  min-width: 180px;
}
.footer-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2em;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1em;
}
.footer-icon {
  width: 24px;
  height: 24px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
}
.footer-terms {
  margin-top: 0.5em;
}
.footer-terms a {
  color: #bbb;
  text-decoration: none;
  margin-right: 1.2em;
  font-size: 0.95em;
  transition: color 0.2s;
}
.footer-terms a:last-child {
  margin-right: 0;
}
.footer-terms a:hover {
  color: #fff;
}
.footer-col-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
}
.footer-nav-title {
  margin-bottom: 0.2em;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #0077ff;
}
.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
}
.footer-connect-title {
  margin-bottom: 0.2em;
}
.footer-connect-text {
  font-size: 0.97em;
  color: #bbb;
  margin-bottom: 0.5em;
}
.footer-social-icons {
  display: flex;
  gap: 0.7em;
}
.footer-social-icon {
  width: 24px;
  height: 24px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.2s;
}
.footer-social-icon:hover {
  background: #fff;
}
.footer-favicon {
  width: 28px;
  height: 28px;
  margin-right: 0.5em;
  vertical-align: middle;
}
.footer-social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px #ddd;
  transition: box-shadow 0.2s;
}
.footer-social-link:hover img {
  box-shadow: 0 0 0 2px #0077b5;
}
@media (max-width: 900px) {
  .footer-row {
    flex-direction: column;
    gap: 1.5em;
    align-items: flex-start;
  }
  .footer-col {
    width: 100%;
    min-width: 0;
  }
}

/* Responsive Styles */
@media (max-width: 900px) {
  .skills-cards,
  .work-cards,
  .testimonial-grid,
  .faq-list,
  .consultation-main-row,
  .consultation-who-row {
    flex-direction: column;
    align-items: stretch;
  }
  .logo-row span {
    margin: 0 0.7em;
  }
  .skills-top-row {
    flex-direction: column;
    gap: 1.5em;
  }
  .skills-icons-row {
    justify-content: flex-start;
    margin-top: 1em;
    flex:0px;
  }
  .consultation-main-row, .consultation-who-row {
    flex-direction: column;
    gap: 1.2em;
  }
  .consultation-main-right {
    justify-content: center;
    margin-top: 1em;
  }
  .howiwork-top-row {
    flex-direction: column;
    gap: 1.5em;
  }
  .howiwork-icons-row {
    justify-content: flex-start;
    margin-top: 1em;
    flex:0px;
  }
  .howiwork-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-img,
  .secondary-image img {
    width: 100%;
    height: 300px;
    object-position: center top;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .skills-icons-row,
  .howiwork-icons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em 1.2em;
    align-items: start;
    justify-items: center;
    width: 100%;
  }
  .skills-icon-block,
  .howiwork-icon-block {
    width: 100%;
    margin-bottom: 0;
  }
  .skills-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
  .consultation-bullets {
    text-align: left;
    margin-left: 0;
    padding-left: 1.2em;
  }
}

/* Utility/override classes for special cases */
.hero-title {
  font-size: 2.7em;
  font-weight: 900;
}

/* --- FAQ Accordion Styles --- */
.faq-accordion {
  width: 100%;
}
.faq-accordion-item {
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius);
  background: var(--color-background-light);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}
.faq-accordion-title {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.08em;
  font-weight: 700;
  padding: var(--spacing-sm) 1.2em;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--color-primary);
}
.faq-accordion-title[aria-expanded="true"] {
  background: var(--color-border-light);
}
.faq-accordion-content {
  display: none;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-sm) var(--spacing-lg);
  font-size: 1em;
  color: var(--color-text);
  animation: fadeIn var(--transition-fast);
}
.faq-accordion-item.active .faq-accordion-content {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Section Container Standardization --- */
.section {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
@media (max-width: 700px) {
  .section {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}

/* --- Mobile Drawer Menu Styles --- */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.15);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 2em 1.5em 1.5em 1.5em;
}
.nav-drawer[aria-hidden="false"] {
  transform: translateX(0);
}
.nav-drawer-close {
  background: none;
  border: none;
  font-size: 2em;
  color: #111;
  align-self: flex-end;
  margin-bottom: 1em;
  cursor: pointer;
}
.nav-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.nav-drawer-menu a {
  color: #111;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  padding: 0.3em 0;
  transition: color 0.2s;
}
.nav-drawer-menu a:hover {
  color: #0077ff;
}
.nav-drawer-menu .btn.book-btn {
  background: #111;
  color: #fff;
  border-radius: .5em;
  font-size: 1.1em;
  padding: 0.7em 0;
  text-align: center;
  margin-top: 1em;
}
.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.nav-drawer[aria-hidden="false"] ~ .nav-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 801px) {
  .nav-drawer, .nav-drawer-overlay {
    display: none !important;
  }
}

/* --- Nav Drawer Header (Logo + Name) --- */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.2em;
}
.nav-drawer-logo-name {
  display: flex;
  align-items: center;
  font-size: 1.15em;
  font-weight: 800;
  color: #111;
  gap: 0.5em;
}

/* --- Nav Drawer CTA Section --- */
.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0em 0 1.5em 0;
  padding: 0em 0em 1.2em 0em;
  background: #fafafa;
  border-radius: 0.7em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  font-size: 0.95em;
}
.nav-drawer-cta-title {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.3em;
  text-align: left;
}
.nav-drawer-cta-desc {
  font-size: 0.95em;
  color: #333;
  text-align: left;
  margin-bottom: 1em;
}
.nav-drawer-menu .btn.book-btn {
  width: 100%;
  max-width: none;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* --- Nav Drawer Menu Compact --- */
.nav-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 1.5em;
}
.nav-drawer-menu a {
  color: #111;
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 600;
  padding: 0.2em 0;
  transition: color 0.2s;
}

.nav-drawer-taglines {
  margin-top: 2em;
  text-align: left;
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

/* --- Legal Pages Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.legal-content h1 {
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.5rem;
}

.legal-content h2 {
  color: #495057;
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.legal-content h3 {
  color: #6c757d;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: #333;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: #333;
}

.legal-content a {
  color: #000000;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Construction Notice Styling */
.construction-notice {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.construction-notice h2 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.construction-notice p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.construction-notice a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.construction-notice a:hover {
  text-decoration: underline;
}

/* --- Book Button Vertical Alignment Fix --- */
.nav-book-btn {
  display: flex;
  align-items: center;
}
.book-btn {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

/* ===== BLOG PAGE STYLES ===== */

/* Blog Page Container */
.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-header h1 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.blog-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Controls */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Search Bar */
.blog-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.blog-search input:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

/* Removed duplicate magnifier icon - now in placeholder text */

/* Filter Controls */
.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #0077ff;
  color: #0077ff;
}

.filter-btn.active {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  margin: 3rem 0rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
  position: relative;
  display: block;
}

.blog-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

.blog-card-image:hover img {
  transform: scale(1.05);
}

.blog-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-category {
  background: #f8f9fa;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-card-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.blog-card-read-more {
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-card-read-more:hover {
  color: #0056b3;
}

.blog-card-share {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.share-btn:hover {
  background: #f8f9fa;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn:hover {
  border-color: #0077ff;
  color: #0077ff;
}

.pagination-btn.active {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blog Stats */
.blog-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

.blog-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.blog-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  border-top-color: #0077ff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results */
.blog-no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.blog-no-results h3 {
  margin-bottom: 1rem;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-page {
    padding: 1rem;
  }
  
  .blog-header {
    padding: 1.5rem 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .blog-search {
    min-width: auto;
  }
  
  .blog-filters {
    justify-content: center;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .blog-pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card-title {
    font-size: 1.1rem;
  }
  
  .blog-card-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .blog-card-share {
    justify-content: center;
  }
}

/* Blog Card Animations */
.blog-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Animation */
.filter-btn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Search Focus Effect */
.blog-search input:focus + .search-suggestions {
  display: block;
}

/* Blog Card Hover Effects - Removed conflicting transform */
/* .blog-card:hover .blog-card-image transforms are handled by .blog-card-image:hover img instead */

/* Accessibility */
.blog-card:focus-within {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}

.filter-btn:focus {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .blog-card {
    border: 2px solid #000;
  }
  
  .filter-btn {
    border: 2px solid #000;
  }
  
  .blog-search input {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .filter-btn,
  .blog-card:hover,
  .blog-card-image {
    transition: none;
    animation: none;
  }
}

/* ===== PORTFOLIO PAGE STYLES ===== */

/* Portfolio Page Container */
.portfolio-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Portfolio Header */
.portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-header h1 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.portfolio-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Portfolio Statistics */
.portfolio-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0077ff;
}

.portfolio-stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Portfolio Controls */
.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Portfolio Search */
.portfolio-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.portfolio-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.portfolio-search input:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.portfolio-search::before {
  content: "🔍";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #666;
}

/* Portfolio Filter Controls */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-filter-btn:hover {
  border-color: #0077ff;
  color: #0077ff;
}

.portfolio-filter-btn.active {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 0.25rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.view-toggle-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  color: #333;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-toggle-btn:hover {
  background: #f8f9fa;
}

.view-toggle-btn.active {
  background: #0077ff;
  color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Portfolio Card */
.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portfolio-card-content {
  padding: 1.5rem;
}

.portfolio-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.portfolio-card-category {
  background: #f8f9fa;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-card-client {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #0077ff;
  font-weight: 500;
}

.portfolio-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.portfolio-card-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portfolio-card-tech {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portfolio-card-service {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.portfolio-card-view {
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.portfolio-card-view:hover {
  color: #0056b3;
}

.portfolio-card-share {
  display: flex;
  gap: 0.5rem;
}

/* Portfolio List View */
.portfolio-list-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-list-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portfolio-list-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portfolio-list-content {
  flex: 1;
}

.portfolio-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.portfolio-list-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.portfolio-list-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* Technology and Services Clouds */
.portfolio-clouds {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-cloud {
  flex: 1;
  min-width: 300px;
}

.portfolio-cloud-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

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

.portfolio-cloud-tag {
  background: #f8f9fa;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.portfolio-cloud-tag:hover {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

.portfolio-cloud-tag.active {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

/* Portfolio Loading State */
.portfolio-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.portfolio-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  border-top-color: #0077ff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

/* Portfolio No Results */
.portfolio-no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.portfolio-no-results h3 {
  margin-bottom: 1rem;
  color: #333;
}

/* Portfolio Card Animations */
.portfolio-card,
.portfolio-list-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Portfolio Filter Animation */
.portfolio-filter-btn,
.portfolio-cloud-tag {
  animation: fadeIn 0.3s ease-out;
}

/* Portfolio Card Hover Effects */
.portfolio-card:hover .portfolio-card-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Portfolio Accessibility */
.portfolio-card:focus-within,
.portfolio-list-item:focus-within {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}

.portfolio-filter-btn:focus,
.portfolio-cloud-tag:focus {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}

/* Portfolio High Contrast Mode */
@media (prefers-contrast: high) {
  .portfolio-card,
  .portfolio-list-item {
    border: 2px solid #000;
  }
  
  .portfolio-filter-btn,
  .portfolio-cloud-tag {
    border: 2px solid #000;
  }
  
  .portfolio-search input {
    border: 2px solid #000;
  }
}

/* Portfolio Responsive Design */
@media (max-width: 768px) {
  .portfolio-page {
    padding: 1rem;
  }
  
  .portfolio-header {
    padding: 1.5rem 1rem;
  }
  
  .portfolio-header h1 {
    font-size: 2rem;
  }
  
  .portfolio-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .portfolio-search {
    min-width: auto;
  }
  
  .portfolio-filters {
    justify-content: center;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .portfolio-clouds {
    flex-direction: column;
    gap: 1rem;
  }
  
  .portfolio-cloud {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .portfolio-card-content {
    padding: 1rem;
  }
  
  .portfolio-card-title {
    font-size: 1.2rem;
  }
  
  .portfolio-card-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .portfolio-card-share {
    justify-content: center;
  }
  
  .portfolio-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .portfolio-list-image {
    width: 100%;
    height: 200px;
  }
}

/* Portfolio Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-list-item,
  .portfolio-filter-btn,
  .portfolio-cloud-tag,
  .portfolio-card:hover,
  .portfolio-card-image {
    transition: none;
    animation: none;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Critical CSS - Above the fold styles */
/* Optimize for First Contentful Paint (FCP) */
.hero,
.hero-content,
.hero-text,
.hero-img,
.site-header,
.logo,
.main-nav {
  will-change: transform;
}

/* Image optimization */
img {
  max-width: 100%;
  display: block;
  height: auto;
  /* Prevent layout shift */
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading for images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: no-preference) {
  .blog-card,
  .portfolio-card,
  .portfolio-list-item {
    will-change: transform;
  }
  
  .blog-card:hover,
  .portfolio-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Optimize font loading */
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
}

/* Optimize critical rendering path */
.hero-content,
.blog-header,
.portfolio-header {
  contain: layout style paint;
}

/* Optimize for Core Web Vitals */
/* Largest Contentful Paint (LCP) optimization */
.hero-img {
  priority: high;
  fetchpriority: high;
}

/* Cumulative Layout Shift (CLS) prevention */
.hero-content,
.blog-grid,
.portfolio-grid {
  contain: layout;
}

/* First Input Delay (FID) optimization */
.btn,
.filter-btn,
.portfolio-filter-btn,
.view-toggle-btn {
  touch-action: manipulation;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus indicators for better accessibility */
*:focus {
  outline: 2px solid #0077ff;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0077ff;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .filter-btn,
  .portfolio-filter-btn {
    border: 2px solid currentColor;
  }
  
  .blog-card,
  .portfolio-card {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== SEO ENHANCEMENTS ===== */

/* Semantic HTML support */
main {
  display: block;
}

section {
  display: block;
}

article {
  display: block;
}

aside {
  display: block;
}

/* Structured data visual indicators */
[itemtype] {
  /* Visual indicator for structured data */
}

/* Schema.org markup support */
[itemscope] {
  /* Support for microdata */
}

/* ===== MOBILE PERFORMANCE ===== */

/* Optimize for mobile devices */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .blog-card:hover,
  .portfolio-card:hover {
    transform: none;
  }
  
  /* Optimize touch targets */
  .btn,
  .filter-btn,
  .portfolio-filter-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Reduce layout shifts on mobile */
  .hero-content {
    min-height: 60vh;
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .site-header,
  .site-footer,
  .blog-controls,
  .portfolio-controls,
  .nav-drawer,
  .nav-drawer-overlay {
    display: none !important;
  }
  
  .blog-card,
  .portfolio-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ===== SECURITY ENHANCEMENTS ===== */

/* Content Security Policy support */
/* Note: CSP headers should be set on the server */

/* ===== ANALYTICS OPTIMIZATION ===== */

/* Optimize for analytics tracking */
[data-analytics] {
  /* Support for analytics tracking */
}

/* ===== CACHING OPTIMIZATIONS ===== */

/* Cache-friendly selectors */
.blog-card,
.portfolio-card,
.filter-btn,
.portfolio-filter-btn {
  /* Use stable class names for caching */
}

/* ===== ERROR HANDLING ===== */

/* Graceful degradation for missing images */
img[src*="placeholder"] {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

/* Loading state improvements */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0077ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== BROWSER COMPATIBILITY ===== */

/* Modern CSS with fallbacks */
.blog-grid {
  display: grid;
  display: -ms-grid; /* IE fallback */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  -ms-grid-columns: 1fr 1fr; /* IE fallback */
}

/* ===== PERFORMANCE MONITORING ===== */

/* Performance marks for monitoring */
.performance-mark {
  /* Support for performance monitoring */
}

/* ===== END PERFORMANCE OPTIMIZATIONS ===== */

/* ===== DEFENSIVE DESIGN PATTERNS ===== */

/* === Component Isolation === */
/* Prevent styles from leaking between components */
.hero,
.skills,
.consultation,
.how-i-work,
.testimonials,
.faq,
.contact-cta {
  /* Contain layout and paint to prevent interference */
  contain: layout style paint;
  /* Create new stacking context */
  position: relative;
  z-index: var(--z-index-base);
}

/* === Reset Inheritance for Critical Components === */
/* Ensure components have predictable styling regardless of parent */
.hero *,
.skills *,
.consultation *,
.how-i-work *,
.testimonials *,
.faq *,
.contact-cta * {
  /* Prevent unexpected font inheritance */
  font-family: inherit;
  /* Prevent color inheritance issues */
  color: inherit;
  /* Prevent line-height inheritance issues */
  line-height: inherit;
}

/* === Button Defensive Patterns === */
/* Ensure buttons always look correct regardless of context */
.btn,
.book-btn,
.faq-accordion-title {
  /* Force consistent box model */
  box-sizing: border-box !important;
  /* Prevent text decoration inheritance */
  text-decoration: none !important;
  /* Prevent outline inheritance */
  outline: none;
  /* Prevent border inheritance */
  border: none;
  /* Force display type */
  display: inline-block;
  /* Prevent transform inheritance */
  transform: none;
  /* Create new stacking context */
  position: relative;
  z-index: var(--z-index-base);
}

/* === Form Element Defensive Patterns === */
/* Ensure form elements are always styled consistently */
input,
textarea,
select,
button {
  /* Force consistent font */
  font-family: 'Inter', Arial, sans-serif;
  /* Force consistent box model */
  box-sizing: border-box;
  /* Prevent appearance inheritance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Prevent outline inheritance */
  outline: none;
  /* Prevent border inheritance */
  border: 1px solid var(--color-border);
  /* Force consistent background */
  background: var(--color-background);
  /* Force consistent text color */
  color: var(--color-text);
}

/* === Image Defensive Patterns === */
/* Ensure images never break layout */
img {
  /* Force consistent display */
  display: block;
  /* Prevent overflow */
  max-width: 100%;
  height: auto;
  /* Prevent layout shift */
  aspect-ratio: attr(width) / attr(height);
  /* Force box model */
  box-sizing: border-box;
  /* Prevent image dragging */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* === Typography Defensive Patterns === */
/* Ensure headings are always consistent */
h1, h2, h3, h4, h5, h6 {
  /* Force consistent font family */
  font-family: 'Inter', Arial, sans-serif;
  /* Force consistent line height */
  line-height: 1.2;
  /* Prevent margin collapse */
  margin-top: 0;
  /* Force consistent color */
  color: var(--color-text);
  /* Prevent text transform inheritance */
  text-transform: none;
  /* Prevent letter spacing inheritance */
  letter-spacing: normal;
}

/* === Link Defensive Patterns === */
/* Ensure links are always styled correctly */
a {
  /* Force consistent color */
  color: var(--color-accent);
  /* Prevent outline inheritance */
  outline: none;
  /* Force consistent transition */
  transition: color var(--transition-fast);
  /* Prevent transform inheritance */
  transform: none;
}

a:hover {
  /* Force consistent hover color */
  color: var(--color-primary);
}

/* === List Defensive Patterns === */
/* Ensure lists are always styled consistently */
ul, ol {
  /* Force consistent margins */
  margin: 0;
  padding: 0;
  /* Force consistent list style */
  list-style-position: inside;
}

li {
  /* Force consistent margins */
  margin: 0;
  /* Force consistent color */
  color: var(--color-text);
}

/* === Z-Index Management === */
/* Ensure proper stacking order */
.site-header {
  z-index: var(--z-index-sticky);
}

.nav-drawer,
.nav-drawer-overlay {
  z-index: var(--z-index-modal);
}

.main-nav ul {
  z-index: var(--z-index-dropdown);
}

/* === Accessibility Defensive Patterns === */
/* Ensure accessibility features are never broken */
.skip-link {
  /* Force position */
  position: absolute !important;
  /* Force z-index */
  z-index: var(--z-index-tooltip) !important;
  /* Force visibility when focused */
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
}

.skip-link:focus {
  /* Force visibility */
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 8px !important;
  /* Force positioning */
  top: 6px !important;
  left: 6px !important;
  /* Force styling */
  background: var(--color-accent) !important;
  color: var(--color-background) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
}

/* === Animation Defensive Patterns === */
/* Respect user preferences for motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* Disable all animations */
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Print Defensive Patterns === */
/* Ensure site prints correctly */
@media print {
  /* Force consistent colors */
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Hide interactive elements */
  .nav-drawer,
  .nav-toggle,
  .skip-link,
  script,
  .faq-accordion-title[aria-expanded="false"] + .faq-accordion-content {
    display: none !important;
  }
  
  /* Show all FAQ content */
  .faq-accordion-content {
    display: block !important;
  }
}

/* === Error Recovery Patterns === */
/* Graceful degradation for missing resources */
.hero-img[src=""],
.hero-img:not([src]),
img[src=""],
img:not([src]) {
  /* Fallback styling for missing images */
  background: var(--color-background-light);
  border: 2px dashed var(--color-border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img[src=""]:before,
.hero-img:not([src]):before,
img[src=""]:before,
img:not([src]):before {
  content: "Image not found";
  color: var(--color-text-light);
  font-style: italic;
}

/* === Browser Compatibility Defensive Patterns === */
/* Ensure compatibility across browsers */
* {
  /* Force consistent box model */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Force consistent font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === Content Security Patterns === */
/* Prevent content overflow issues */
.hero-content,
.skills-cards-grid,
.testimonials-grid,
.consultation-main-row {
  /* Contain content */
  overflow: hidden;
  /* Prevent content from breaking layout */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== END DEFENSIVE DESIGN PATTERNS ===== */

/* ===== INDIVIDUAL ENTRY PAGES STYLES ===== */

/* Individual Entry Pages Styles */
.blog-post-main,
.portfolio-item-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.breadcrumb-nav {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-nav a {
  color: #0077ff;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #999;
}

.current {
  color: #333;
  font-weight: 500;
}

/* Blog Post Styles */
.blog-post-header {
  margin-bottom: 3rem;
  text-align: center;
}

.blog-post-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.post-date,
.post-reading-time,
.post-author {
  color: #666;
}

.post-separator {
  margin: 0 0.5rem;
  color: #999;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #111;
}

.blog-post-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-post-tags .tag {
  background: #f0f0f0;
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-post-featured-image {
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1; /* Ensure visibility */
  max-height: none; /* Remove any height restrictions */
}

.blog-post-content {
  margin-bottom: 4rem;
}

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-post-body h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.blog-post-body h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111;
}

.blog-post-body p {
  margin-bottom: 1.5rem;
}

.blog-post-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
}

.blog-post-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.blog-post-share h3 {
  margin-bottom: 1rem;
  color: #111;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

.share-button:hover {
  background: #e0e0e0;
}

.share-icon {
  font-size: 1.2rem;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin-bottom: 0.5rem;
  color: #111;
}

.author-info p {
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 1rem;
}

.author-social a {
  color: #0077ff;
  text-decoration: none;
  font-weight: 500;
}

.author-social a:hover {
  text-decoration: underline;
}

/* Blog Post CTA */
.blog-post-cta {
  text-align: center;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.blog-post-cta h3 {
  margin-bottom: 0.5rem;
  color: #111;
}

.blog-post-cta p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Portfolio Item Styles */
.portfolio-item-header {
  margin-bottom: 3rem;
}

.portfolio-item-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.portfolio-category,
.portfolio-date,
.portfolio-duration {
  color: #666;
}

.portfolio-separator {
  margin: 0 0.5rem;
  color: #999;
}

.portfolio-item-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #111;
}

.portfolio-item-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.portfolio-item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.portfolio-detail h3 {
  margin-bottom: 0.5rem;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
}

.portfolio-detail p {
  color: #666;
  margin-bottom: 0.5rem;
}

.tech-tags,
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag,
.service-tag {
  background: #f0f0f0;
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-item-featured-image {
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.portfolio-item-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-item-content {
  margin-bottom: 4rem;
}

.portfolio-item-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.portfolio-item-body h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.portfolio-item-body h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111;
}

.portfolio-item-body p {
  margin-bottom: 1.5rem;
}

.portfolio-item-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.portfolio-item-body li {
  margin-bottom: 0.5rem;
}

/* Portfolio Testimonial */
.portfolio-testimonial {
  margin: 3rem 0;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  border-left: 4px solid #0077ff;
}

.testimonial-content blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.6;
}

.testimonial-content cite {
  display: block;
  font-style: normal;
}

.testimonial-content cite strong {
  display: block;
  color: #111;
  font-weight: 600;
}

.testimonial-content cite span {
  color: #666;
  font-size: 0.9rem;
}

/* Portfolio Actions */
.portfolio-item-actions {
  margin: 2rem 0;
  text-align: center;
}

.portfolio-item-actions .btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.portfolio-item-actions .btn:hover {
  background: #333;
}

/* Portfolio Navigation */
.portfolio-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.portfolio-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.portfolio-nav-link:hover {
  color: #0077ff;
}

.nav-direction {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.nav-title {
  font-weight: 600;
}

.portfolio-nav-all .btn {
  background: #f0f0f0;
  color: #333;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.portfolio-nav-all .btn:hover {
  background: #e0e0e0;
}

/* Portfolio Item CTA */
.portfolio-item-cta {
  text-align: center;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.portfolio-item-cta h3 {
  margin-bottom: 0.5rem;
  color: #111;
}

.portfolio-item-cta p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 3rem 1rem;
}

.error-message h2 {
  margin-bottom: 1rem;
  color: #d32f2f;
}

.error-message p {
  margin-bottom: 2rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post-main,
  .portfolio-item-main {
    padding: 1rem;
  }
  
  .blog-post-title,
  .portfolio-item-title {
    font-size: 2rem;
  }
  
  .blog-post-description,
  .portfolio-item-description {
    font-size: 1.1rem;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .portfolio-item-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .blog-post-title,
  .portfolio-item-title {
    font-size: 1.8rem;
  }
  
  .blog-post-body,
  .portfolio-item-body {
    font-size: 1rem;
  }
  
  .blog-post-meta,
  .portfolio-item-meta {
    font-size: 0.8rem;
  }
}

/* ===== TIMELINE STYLES ===== */

.timeline-section {
  background: #ffffff;
  color: #333333;
  padding: 4rem 0;
  margin: 0;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeline-badge-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 0.875rem;
}

.timeline-badge-text {
  color: #6366f1;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #333333;
  line-height: 1.1;
}

.timeline-intro {
  font-size: 1.125rem;
  color: #666666;
  margin: 0 0 3rem 0;
  text-align: left;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  background: #ffffff;
  border-radius: 50%;
  border: 4px solid #6366f1;
  z-index: 10;
}

.timeline-headline {
  font-size: 1.875rem;
  font-weight: 600;
  color: #333333;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.timeline-subheadline {
  font-size: 1.125rem;
  color: #666666;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.timeline-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: block;
}

.timeline-cta {
  margin-top: 2rem;
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
}

.timeline-cta-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
  margin: 0 0 0.5rem 0;
}

.timeline-cta-text {
  color: #666666;
  margin: 0 0 1rem 0;
}

.timeline-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6366f1;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.timeline-cta-button:hover {
  background: #4f46e5;
  color: #ffffff;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Responsive Design */
@media (max-width: 768px) {
  .timeline-container {
    padding: 0 1rem;
  }
  
  .timeline-title {
    font-size: 2rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .timeline-dot {
    left: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .timeline-headline {
    font-size: 1.5rem;
  }
  
  .timeline-subheadline {
    font-size: 1rem;
  }
  
  .timeline-image {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .timeline-section {
    padding: 2rem 0;
  }
  
  .timeline-header {
    margin-bottom: 2rem;
  }
  
  .timeline-title {
    font-size: 1.75rem;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  .timeline-image {
    aspect-ratio: 1 / 1;
  }
  
  .timeline-cta {
    padding: 1rem;
  }
}

/* Timeline Print Styles */
@media print {
  .timeline-section {
    background: #fff;
    color: #000;
  }
  
  .timeline-title,
  .timeline-headline {
    color: #000;
  }
  
  .timeline-subheadline {
    color: #666;
  }
}


