/*
Theme Name: Rose Ann Portfolio
Author: Rose Ann Abing
*/

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.post-title a:hover {
  color: #6366f1;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.post-excerpt {
  margin-bottom: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.read-more {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: #5855eb;
}

.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s;
}

.pagination a:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.pagination .current {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.no-posts {
  text-align: center;
  padding: 4rem 0;
}

/* Continue with existing CSS... */

@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .result-card {
    height: 100%;
    min-height: 320px;
    /* You can adjust min-height as needed for your content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .results-grid {
    align-items: stretch;
  }
}

/* Ensure all .result-card have the same height in all grid rows */
.results-grid {
  align-items: stretch;
}

.result-card {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-icon.teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --card-color: #14b8a6;
  color: #fff;
}

.result-icon.red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --card-color: #ef4444;
  color: #fff;
}

.result-number.teal {
  color: #14b8a6;
  -webkit-text-fill-color: initial;
}

.result-number.red {
  color: #ef4444;
  -webkit-text-fill-color: initial;
}

.result-label,
.result-number {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.slash-visible {
  color: #fff;
  font-weight: bold;
  font-size: 1.5em;
  padding: 0 2px;
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 1px 2px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 1rem 0;
}

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

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #333;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
/* Hide hamburger by default on desktop */
.hamburger {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #6366f1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #5855eb;
}

.btn-secondary {
  background: #f1f5f9;
  color: #6366f1;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-avatar {
  margin-bottom: 2rem;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.stat-icon.blue {
  background: #6366f1;
}

.stat-icon.green {
  background: #10b981;
}

.stat-icon.orange {
  background: #f59e0b;
}

/*.stat-number {*/
/*  font-size: 2.5rem;*/
/*  font-weight: 700;*/
/*  color: #005A87;*/
/*  margin-bottom: 0.5rem;*/
/*}*/

.stat-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #1a202c;
  color: #fff;
  padding: 0;
  font-size: 1rem;
  margin-top: 0;
}
.footer-main {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 0 1.5rem 0;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.footer-col.about h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.footer-col.about p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.footer-email a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding: 1.2rem 0 0.7rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  margin-top: 0.5rem;
  gap: 1rem;
  text-align: center;
}
.footer-links {
  color: #a0aec0;
}
.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  margin: 0 0.2rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #a5b4fc;
}
.footer-fun {
  color: #a5b4fc;
  margin-left: 0.5rem;
  font-style: italic;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0 1.2rem 0;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-main {
    padding: 1.5rem 0 0.7rem 0;
  }
  .footer-col {
    min-width: 0;
    max-width: 100%;
    padding: 0 10px;
  }
  .footer-bottom {
    padding: 1rem 0 0.5rem 0;
    font-size: 0.95rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

/* Single Post Styles */
.single-post {
  /* padding: 2rem 0; */
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.post-header .post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 0.95rem;
}

.post-featured-image {
  margin-bottom: 3rem;
  text-align: center;
}

.post-featured-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

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

.post-tags {
  max-width: 800px;
  margin: 3rem auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-navigation {
  max-width: 800px;
  margin: 3rem auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-navigation a {
  flex: 1;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  transition: background-color 0.3s;
}

.post-navigation a:hover {
  background: #e2e8f0;
}

/* Page Styles */
.page-content .page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin: 0;
}

.page-body {
  padding: 4rem 0;
}

.page-content-inner {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .post-header .post-title {
    font-size: 2rem;
  }

  .post-header .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-navigation .nav-links {
    flex-direction: column;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Portfolio Archive Styles */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.portfolio-archive {
  padding: 4rem 0;
}

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

.portfolio-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  margin-bottom: 0.5rem;
}

.portfolio-content h3 a {
  text-decoration: none;
  color: #333;
}

.portfolio-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.tech-stack {
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  color: #6366f1;
}

/* Single Portfolio Styles */
.project-hero {
  background: #1a202c;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.project-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.project-meta span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.project-content {
  padding: 4rem 0;
}

.project-image {
  margin-bottom: 3rem;
  text-align: center;
}

.project-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.project-link {
  text-align: center;
}

.hero-content > * {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.3s;
}

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

/* Enhanced Results Section */
.results-section {
  padding: 6rem 0;
  background: #f8fafc;
  position: relative;
}

.results-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.02) 0%,
    rgba(168, 85, 247, 0.02) 100%
  );
}

.results-section .container {
  position: relative;
  z-index: 1;
}

.results-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.results-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.results-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.result-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #e5e7eb);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.result-card:hover::before {
  height: 6px;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  position: relative;
}

.result-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, currentColor, currentColor);
  opacity: 0.1;
  z-index: -1;
}

.result-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --card-color: #10b981;
}

.result-icon.blue {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --card-color: #6366f1;
}

.result-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --card-color: #f59e0b;
}

.result-icon.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --card-color: #8b5cf6;
}

.result-card:nth-child(1) {
  --card-color: #10b981;
}

.result-card:nth-child(2) {
  --card-color: #6366f1;
}

.result-card:nth-child(3) {
  --card-color: #f59e0b;
}

.result-card:nth-child(4) {
  --card-color: #8b5cf6;
}

.result-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--card-color), var(--card-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-number.green {
  color: #10b981;
}

.result-number.blue {
  color: #6366f1;
}

.result-number.orange {
  color: #f59e0b;
}

.result-number.purple {
  color: #8b5cf6;
}

.result-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.result-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Animation for numbers */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  animation: countUp 0.6s ease-out forwards;
  opacity: 0;
}

.result-card:nth-child(1) {
  animation-delay: 0.1s;
}
.result-card:nth-child(2) {
  animation-delay: 0.2s;
}
.result-card:nth-child(3) {
  animation-delay: 0.3s;
}
.result-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .results-section {
    padding: 4rem 0;
  }

  .results-title {
    font-size: 2rem;
  }

  .results-subtitle {
    font-size: 1rem;
  }

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

  .result-card {
    padding: 2rem 1.5rem;
  }

  .result-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .results-header {
    margin-bottom: 3rem;
  }

  .results-title {
    font-size: 1.75rem;
  }

  .result-icon {
    width: 56px;
    height: 56px;
  }

  .result-number {
    font-size: 2.25rem;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

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

/* Brand Styles */
.nav-brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand a:hover {
  color: #007cba;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.current-menu-item {
  color: #007cba;
}

.nav-links li a:hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #007cba;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: #007cba;
  color: white;
}

.btn-primary:hover {
  background: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

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

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

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Large Screen Styles */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

/* === Services Section Styles === */
.services-section {
  background: #f8fafc;
  padding: 6rem 0 4rem 0;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.services-subtitle {
  color: #6b7280;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(60, 72, 88, 0.1);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 16px 40px rgba(60, 72, 88, 0.16);
  transform: translateY(-6px) scale(1.02);
}

.service-icon {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.7rem;
}

.service-description {
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-features li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.7em;
  flex-shrink: 0;
}

.dot.blue {
  background: #6366f1;
}
.dot.green {
  background: #10b981;
}
.dot.orange {
  background: #f59e0b;
}
.dot.purple {
  background: #8b5cf6;
}
.dot.teal {
  background: #14b8a6;
}
.dot.pink {
  background: #ec4899;
}

.service-link {
  margin-top: auto;
  display: inline-block;
  padding: 0.7em 2em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.service-link.blue {
  color: #6366f1;
  border-color: #6366f1;
}
.service-link.blue:hover {
  background: #6366f1;
  color: #fff;
}

.service-link.green {
  color: #10b981;
  border-color: #10b981;
}
.service-link.green:hover {
  background: #10b981;
  color: #fff;
}

.service-link.orange {
  color: #f59e0b;
  border-color: #f59e0b;
}
.service-link.orange:hover {
  background: #f59e0b;
  color: #fff;
}

.service-link.purple {
  color: #8b5cf6;
  border-color: #8b5cf6;
}
.service-link.purple:hover {
  background: #8b5cf6;
  color: #fff;
}

.service-link.teal {
  color: #14b8a6;
  border-color: #14b8a6;
}
.service-link.teal:hover {
  background: #14b8a6;
  color: #fff;
}

.service-link.pink {
  color: #ec4899;
  border-color: #ec4899;
}
.service-link.pink:hover {
  background: #ec4899;
  color: #fff;
}

.services-footer {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
  }
}

/* --- Case Studies & Success Stories Section --- */
.case-studies-section {
  padding: 4rem 0 2rem 0;
  padding: 4rem 0 3rem 0;
  background: #fff;
}
.case-studies-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.case-studies-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.case-studies-subtitle {
  font-size: 1.25rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}
.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.case-study-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  max-width: 370px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-study-card:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.case-study-image-wrap {
  position: relative;
}
.case-study-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}
.case-study-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  color: #fff;
  font-weight: 500;
  z-index: 2;
}
.case-study-badge.ecom {
  background: #6366f1;
}
.case-study-badge.saas {
  background: #10b981;
}
.case-study-badge.healthcare {
  background: #f59e0b;
}
.case-study-content {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.case-study-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.case-study-metric-icon {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.case-study-metric-icon.ecom {
  background: #6366f1;
}
.case-study-metric-icon.saas {
  background: #10b981;
}
.case-study-metric-icon.healthcare {
  background: #f59e0b;
}
.case-study-metric-value {
  font-size: 2.5rem;
  font-weight: 700;
}
.case-study-metric-value.ecom {
  color: #6366f1;
}
.case-study-metric-value.saas {
  color: #10b981;
}
.case-study-metric-value.healthcare {
  color: #f59e0b;
}
.case-study-metric-label {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.case-study-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-align: left;
  align-self: stretch;
}
.case-study-meta {
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 0.25rem;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
}
.case-study-timeline {
  float: right;
}
.case-study-challenge {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 0.5rem;
  align-self: stretch;
}
.case-study-keyresults-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  align-self: stretch;
}
.case-study-keyresults {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
  align-self: stretch;
}
.case-study-keyresults li {
  color: #444;
  margin-bottom: 0.2em;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.dot-green {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  background: #10b981;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
}
.case-study-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 2px solid #6366f1;
  color: #6366f1;
  border-radius: 0.5rem;
  padding: 0.75rem 0;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
  margin-bottom: 0.5rem;
  background: #fff;
}
.case-study-btn.ecom {
  border-color: #6366f1;
  color: #6366f1;
}
.case-study-btn.saas {
  border-color: #10b981;
  color: #10b981;
}
.case-study-btn.healthcare {
  border-color: #f59e0b;
  color: #f59e0b;
}
.case-study-btn:hover {
  background: #6366f1;
  color: #fff;
}
.case-study-btn.saas:hover {
  background: #10b981;
  color: #fff;
}
.case-study-btn.healthcare:hover {
  background: #f59e0b;
  color: #fff;
}
.case-studies-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.case-studies-all-btn {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 0.6rem;
  padding: 0.9rem 2.5rem;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.1);
  text-decoration: none;
  transition: background 0.2s;
}
.case-studies-all-btn:hover {
  background: #5855eb;
}
@media (max-width: 1024px) {
  .case-studies-grid {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .case-study-card {
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .case-studies-section {
    padding: 2rem 0 1rem 0;
  }
  .case-studies-title {
    font-size: 2rem;
  }
  .case-study-content {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}

/* === CTA Section Styles === */
.cta-section {
  background: radial-gradient(ellipse at top left, #232b3a 60%, #1a202c 100%);
  padding: 64px 0 48px 0;
  color: #fff;
  text-align: center;
}

.cta-header {
  margin-bottom: 40px;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-description {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

.cta-options-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cta-option-card {
  background: #232b3a; /* Solid dark background for visibility */
  border: 1.5px solid #3b82f6; /* Brighter border for contrast (blue, or use #444 for neutral) */
  border-radius: 16px;
  padding: 32px 28px 28px 28px;
  width: 320px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff; /* Ensure text is white */
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cta-option-card:hover {
  box-shadow: 0 8px 40px 0 rgba(59, 130, 246, 0.18);
  border-color: #fff; /* Highlight border on hover */
}

.cta-option-icon {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-option-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-option-desc {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.cta-option-input {
  display: block;
  width: 90%;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto;
  color: #222;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
  border: 1.5px solid #e5e7eb;
}

.cta-option-input:hover,
.cta-option-input:focus {
  box-shadow: 0 2px 12px 0 rgba(59, 130, 246, 0.12);
  border: 1.5px solid #3b82f6;
  background: #f0f6ff;
  color: #1d4ed8;
  outline: none;
}

.cta-option-icon.blue svg {
  background: none;
}
.cta-option-icon.green svg {
  background: none;
}
.cta-option-icon.orange svg {
  background: none;
}

.cta-free-audit-box {
  background: rgba(36, 44, 60, 0.85);
  border: 1px solid #3b4252;
  border-radius: 16px;
  margin: 0 auto;
  max-width: 900px;
  padding: 40px 32px 32px 32px;
  text-align: center;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.1);
}

.cta-free-audit-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-free-audit-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.5;
}

.cta-free-audit-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn.btn-warning {
  background: #f59e0b;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.btn.btn-warning:hover {
  background: #d97706;
}

.cta-free-audit-note {
  color: #cbd5e1;
  font-size: 1rem;
  margin-left: 8px;
}

@media (max-width: 1100px) {
  .cta-options-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .cta-option-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 700px) {
  .cta-section {
    padding: 36px 0 24px 0;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-free-audit-box {
    padding: 24px 8px;
  }
}

/* --- Improved Footer Styles --- */
.site-footer {
  background: #1a202c;
  color: #fff;
  padding: 0;
  font-size: 1rem;
  margin-top: 0;
}
.footer-main {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 0 1.5rem 0;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.footer-col.about h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.footer-col.about p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.footer-email a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding: 1.2rem 0 0.7rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  margin-top: 0.5rem;
  gap: 1rem;
  text-align: center;
}
.footer-links {
  color: #a0aec0;
}
.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  margin: 0 0.2rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #a5b4fc;
}
.footer-fun {
  color: #a5b4fc;
  margin-left: 0.5rem;
  font-style: italic;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0 1.2rem 0;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-main {
    padding: 1.5rem 0 0.7rem 0;
  }
  .footer-col {
    min-width: 0;
    max-width: 100%;
    padding: 0 10px;
  }
  .footer-bottom {
    padding: 1rem 0 0.5rem 0;
    font-size: 0.95rem;
  }
}

/* --- Navigation & Hamburger Fixes --- */

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-menu .btn {
    margin: 1rem 2rem 0 2rem;
    text-align: center;
  }
}

.quick-response-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  font-size: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  justify-content: center; /* Center under the box */
}

.quick-response-icon {
  color: #fbbf24;
  font-size: 1.1em;
  vertical-align: middle;
}

.quick-response-label {
  color: #10b981;
  font-weight: 600;
}

.quick-response-text {
  color: #d1fae5;
}

/* Container for the single case study */
.case-study-single-centered {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 32px 16px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover {
  color: #4b47c3;
}

/* Summary Card */
.case-study-summary-card {
  background: #fff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 900px;
  text-align: left;
  position: relative;
  border: none;
  overflow: visible;
  backdrop-filter: none;
}

.case-study-summary-card .summary-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.summary-badge {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 15px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: none;
  border: none;
  backdrop-filter: none;
  transition: background 0.2s, color 0.2s;
}

.summary-badge:hover {
  background: #c7d2fe;
  color: #3730a3;
  box-shadow: none;
  transform: none;
}

.summary-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.2rem 0;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  text-shadow: none;
  color: #4f46e5;
}

.summary-client {
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #6366f1;
  position: relative;
  z-index: 2;
  opacity: 1;
}

.summary-description {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  color: #333;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.summary-description p {
  line-height: 1.7;
  margin-bottom: 1.15em;
  color: #333;
}

.summary-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .case-study-summary-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    border-radius: 12px;
  }
  .summary-title {
    font-size: 1.15rem;
  }
  .summary-meta {
    flex-direction: column;
    gap: 8px;
  }
  .summary-badge {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .case-study-summary-card {
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .summary-title {
    font-size: 1rem;
  }
  .summary-description {
    font-size: 1rem;
  }
}

/* --- Hero/Summary Card --- */
.case-study-single-centered {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 32px 16px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover {
  color: #4b47c3;
}

.case-study-summary-card {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: #fff;
  border-radius: 24px;
  padding: 48px 48px 36px 48px;
  margin-bottom: 48px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
  width: 100%;
  max-width: 900px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.case-study-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.case-study-summary-card .summary-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.summary-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.summary-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.summary-title {
  font-size: 2.2em;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-client {
  font-size: 1.15em;
  font-weight: 500;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

.summary-description {
  margin-top: 20px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.summary-description p {
  line-height: 1.15;
  margin-bottom: 1.15em;
}

.summary-description p:last-child {
  margin-bottom: 0;
}

/* --- Sectioned Content --- */

/* --- Responsive Design --- */
@media (max-width: 700px) {
  .case-study-summary-card {
    padding: 32px 24px 24px 24px;
    border-radius: 20px;
  }

  .summary-title {
    font-size: 1.8em;
  }

  .summary-meta {
    flex-direction: column;
    gap: 8px;
  }

  .summary-badge {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .case-study-summary-card {
    padding: 24px 20px 20px 20px;
  }

  .summary-title {
    font-size: 1.6em;
  }

  .summary-description {
    font-size: 1em;
  }
}

/* Case Study Featured Image Styles */
.case-study-featured-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.case-study-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-archive-card:hover .case-study-featured-image img {
  transform: scale(1.05);
}

.case-study-hero-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.case-study-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.case-study-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments for featured images */
@media (max-width: 768px) {
  .case-study-featured-image {
    aspect-ratio: 4/3;
  }

  .case-study-hero-image {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .case-study-featured-image {
    aspect-ratio: 3/2;
  }
}

.results-label {
  display: block;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.results-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.01em;
}

/* --- Services Page Styles --- */

/* Services Hero Section */
.services-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.services-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.services-hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.6;
}

.services-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
*/

/* Services Overview Section */
.services-overview-section {
  padding: 80px 0;
  background: #f8fafc;
}

.services-overview-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-overview-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.services-overview-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-category-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.service-category-card.seo::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.service-category-card.development::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.service-category-card.consulting::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.service-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-category-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #6b7280;
}

.service-category-card.seo .service-category-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.service-category-card.development .service-category-icon {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #7c3aed;
}

.service-category-card.consulting .service-category-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.service-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-category-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-category-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-category-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-category-link:hover {
  color: #1d4ed8;
}

/* Detailed Services Section */
.detailed-services-section {
  padding: 80px 0;
  background: white;
}

.detailed-services-section.seo-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.detailed-services-section.development-section {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.detailed-services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.detailed-services-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.detailed-services-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.detailed-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.detailed-service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e5e7eb;
}

.detailed-service-card.featured {
  border: 2px solid #fbbf24;
  transform: scale(1.02);
}

.detailed-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.detailed-service-card.featured:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.service-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.service-icon.teal {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.service-icon.pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.service-pricing {
  text-align: right;
}

.price {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

.duration {
  font-size: 0.875rem;
  color: #6b7280;
}

.featured-badge {
  position: absolute;
  top: -1rem;
  right: 1rem;
  background: #fbbf24;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.95rem;
}

.service-deliverables {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.service-deliverables h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-deliverables ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-deliverables li {
  padding: 0.5rem 0;
  color: #6b7280;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.service-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.service-cta.blue {
  background: #3b82f6;
  color: white;
}

.service-cta.blue:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.service-cta.green {
  background: #10b981;
  color: white;
}

.service-cta.green:hover {
  background: #059669;
  transform: translateY(-2px);
}

.service-cta.orange {
  background: #f59e0b;
  color: white;
}

.service-cta.orange:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.service-cta.purple {
  background: #8b5cf6;
  color: white;
}

.service-cta.purple:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}

.service-cta.teal {
  background: #14b8a6;
  color: white;
}

.service-cta.teal:hover {
  background: #0d9488;
  transform: translateY(-2px);
}

.service-cta.pink {
  background: #ec4899;
  color: white;
}

.service-cta.pink:hover {
  background: #db2777;
  transform: translateY(-2px);
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: #f8fafc;
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.process-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.step-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.process-step:hover .step-content {
  transform: translateY(-5px);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.step-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Services CTA Section */
.services-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.services-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.services-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.services-cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

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

/* Responsive Design for Services Page */
@media (max-width: 768px) {
  .services-hero-title {
    font-size: 2.5rem;
  }

  .services-hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .services-overview-grid {
    grid-template-columns: 1fr;
  }

  .detailed-services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .services-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-category-card,
  .detailed-service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-hero-title {
    font-size: 2rem;
  }

  .services-hero-subtitle {
    font-size: 1rem;
  }

  .services-overview-title,
  .detailed-services-title,
  .process-title,
  .services-cta-title {
    font-size: 2rem;
  }

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

/* === New Interactive Portfolio Styles === */

.portfolio-grid {
  perspective: 1500px;
}

.portfolio-item {
  background-color: transparent;
  width: 100%;
  height: 320px;
  border: none;
  box-shadow: none;
}

.portfolio-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.portfolio-item.flipped .portfolio-item-inner {
  transform: rotateY(180deg);
}

.portfolio-card-front,
.portfolio-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-card-front {
  color: white;
}

.portfolio-card-front img,
.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.placeholder-image {
  background: linear-gradient(135deg, #ddd, #bbb);
}

.portfolio-item:hover .portfolio-card-front img {
  transform: scale(1.05);
}

.front-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    transparent 100%
  );
  text-align: left;
}

.front-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #fff;
}

.portfolio-card-back {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.back-content {
  text-align: center;
}

.back-content h3 {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
}

.back-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.back-content .tech-stack {
  margin-bottom: 25px;
}

.back-content .tech-tags {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
}

.portfolio-links .btn {
  background: white;
  color: #667eea;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  margin: 0 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-links .btn:hover {
  background: #ffd700;
  color: #333;
  transform: translateY(-2px);
}

/* === New Interactive Portfolio Styles with Slide-up Overlay === */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #eee;
  height: 320px;
  transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #c7c7c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(16, 21, 40, 0.95) 0%,
    rgba(16, 21, 40, 0.85) 70%,
    transparent 100%
  );
  color: white;
  padding: 60px 30px 30px 30px;
  transform: translateY(75%); /* Start with most of it hidden */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.overlay-content .category-badge {
  position: absolute;
  top: -50px;
  left: 30px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .overlay-content .category-badge {
  transform: translateY(50px);
}

.overlay-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
}

.overlay-content h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.overlay-content h3 a:hover {
  color: #ffd700;
}

.overlay-content p {
  margin: 0 0 20px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  line-height: 1.6;
  color: #eee;
}

.portfolio-item:hover .overlay-content p {
  opacity: 1;
  transform: translateY(0);
}

.btn-details {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s, color 0.3s;
}

.portfolio-item:hover .btn-details {
  opacity: 1;
  transform: translateY(0);
}

.btn-details:hover {
  color: #fff;
}

.btn-details .arrow {
  border: solid #ffd700;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transition: border-color 0.3s;
}

.btn-details:hover .arrow {
  border-color: #fff;
}

.arrow.right {
  transform: rotate(-45deg);
}

/* Ensure grid items don't overflow on small screens */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* === Improved Portfolio Header Styles === */

.portfolio-header {
  background: #111528;
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(
      circle at top left,
      rgba(102, 126, 234, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(118, 75, 162, 0.2),
      transparent 30%
    );
}

.header-content {
  margin-bottom: 50px;
}

.portfolio-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #ccc;
}

.portfolio-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #186185;
  margin-bottom: 10px;
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  color: #ddd;
  font-weight: 500;
}

@media (max-width: 768px) {
  .portfolio-header {
    padding: 60px 0;
  }
  .portfolio-header h1 {
    font-size: 2.8rem;
  }
  .portfolio-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 350px;
  }
}

/* Custom: Force results-grid.single-row to be a single row of cards */
.results-grid.single-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

.results-grid.single-row .result-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 350px;
}

@media (max-width: 1024px) {
  .results-grid.single-row {
    flex-direction: column;
    align-items: center;
  }
  .results-grid.single-row .result-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Newsletter Styles */
.newsletter-signup-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin: 4rem 0 0 0;
  border-radius: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-signup-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.newsletter-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  z-index: 1;
}

.newsletter-desc {
  font-size: clamp(1rem, 3vw, 1.125rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  flex-direction: row;
}

.newsletter-input-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.newsletter-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 1.5rem 1.75rem;
  border: none;
  border-radius: 0;
  font-size: 1.1rem;
  background: transparent;
  color: #1f2937;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.newsletter-form input[type="email"]::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 0.8;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.newsletter-form input[type="email"]::placeholder {
  color: #9ca3af;
  opacity: 0.8;
}

.newsletter-form button {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #5855eb 100%);
  color: white;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  z-index: 2;
  min-width: 120px;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.newsletter-form button:hover::before {
  left: 100%;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #5855eb 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.newsletter-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.newsletter-form button:active {
  transform: translateY(-1px);
}

.newsletter-form button:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  transform: none;
}

.button-text {
  transition: transform 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.button-icon {
  font-size: 1.2em;
  font-weight: 700;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.newsletter-form button:hover .button-text {
  transform: translateX(-2px);
}

.newsletter-form button:hover .button-icon {
  transform: translateX(4px);
  opacity: 1;
}

.newsletter-message {
  padding: 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  margin-top: 1.5rem;
  display: none;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-message.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
  animation: slideInUp 0.3s ease-out;
}

.newsletter-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
  animation: slideInUp 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .newsletter-signup-section {
    padding: 3.5rem 2rem;
    margin: 3rem 0 0 0;
  }

  .newsletter-form {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .newsletter-signup-section {
    padding: 3rem 1.5rem;
    margin: 2.5rem 0 0 0;
    border-radius: 12px;
  }

  .newsletter-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .newsletter-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .newsletter-form {
    max-width: 100%;
    gap: 0.75rem;
  }

  .newsletter-input-group {
    flex-direction: row;
    gap: 0;
    border-radius: 12px;
  }

  .newsletter-form input[type="email"] {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
  }

  .newsletter-form button {
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    justify-content: center;
    font-size: 1rem;
    min-width: 100px;
  }

  .newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .newsletter-signup-section {
    padding: 2.5rem 1rem;
    margin: 2rem 0 0 0;
  }

  .newsletter-title {
    font-size: 1.75rem;
  }

  .newsletter-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .newsletter-input-group {
    border-radius: 10px;
  }

  .newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 10px 0 0 10px;
  }

  .newsletter-form button {
    padding: 1rem 1rem;
    font-size: 0.9rem;
    border-radius: 0 10px 10px 0;
    min-width: 80px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .newsletter-signup-section {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  }

  .newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.95);
  }
}

.case-study-summary-card .wp-block-heading {
  color: #333;
}

.case-study-summary-card .wp-block-heading strong {
  color: #4f46e5;
}

/* Single Post Content - Match Portfolio Layout */
.single-main-content-wrapper .container.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 48px 36px 48px;
}

.single-main-content-wrapper .single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.single-main-content-wrapper .single-meta-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.single-main-content-wrapper .project-image {
  margin-bottom: 2.5rem;
  text-align: center;
}
.single-main-content-wrapper .project-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.single-main-content-wrapper .project-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 0 auto 2.5rem auto;
  max-width: 800px;
}
.single-main-content-wrapper .project-description h1,
.single-main-content-wrapper .project-description h2,
.single-main-content-wrapper .project-description h3,
.single-main-content-wrapper .project-description h4 {
  color: #4f46e5;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.single-main-content-wrapper .project-description p {
  margin-bottom: 1.5rem;
}

.single-main-content-wrapper .single-taxonomy-pills {
  margin: 2.5rem 0 0 0;
  text-align: center;
}

@media (max-width: 700px) {
  .single-main-content-wrapper .container.container-narrow {
    max-width: 100vw;
    width: 100vw;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    box-sizing: border-box;
  }
  .single-main-content-wrapper .single-title {
    font-size: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .single-main-content-wrapper .single-meta-row {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    align-items: center;
    text-align: center;
  }
  .single-main-content-wrapper .project-image {
    margin-bottom: 1rem;
  }
  .single-main-content-wrapper .project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .single-main-content-wrapper .project-description {
    font-size: 0.97rem;
    padding: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .single-main-content-wrapper .project-description ul,
  .single-main-content-wrapper .project-description ol {
    margin-left: 0.5em;
    padding-left: 0.5em;
    font-size: 1em;
  }
  .single-main-content-wrapper .single-taxonomy-pills {
    margin: 1.2rem 0 0 0;
    text-align: center;
  }
  .author-bio-card,
  .related-articles-section,
  .newsletter-signup-section {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: -0.2rem;
  }
}
@media (max-width: 480px) {
  .single-main-content-wrapper .container.container-narrow {
    max-width: 100vw;
    width: 100vw;
    padding: 0.3rem 0.1rem 0.3rem 0.1rem;
    box-sizing: border-box;
  }
  .single-main-content-wrapper .single-title {
    font-size: 1rem;
  }
  .single-main-content-wrapper .project-description {
    font-size: 0.92rem;
    padding: 0;
  }
  .single-main-content-wrapper .project-description ul,
  .single-main-content-wrapper .project-description ol {
    margin-left: 0.2em;
    padding-left: 0.2em;
    font-size: 0.98em;
  }
  .author-bio-card,
  .related-articles-section,
  .newsletter-signup-section {
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: -0.1rem;
  }
}

.single-main-content-wrapper .project-description ul,
.single-main-content-wrapper .project-description ol {
  margin: 1.5em 0 1.5em 2em;
  padding-left: 1.2em;
  font-size: 1.08em;
  line-height: 1.7;
}
.single-main-content-wrapper .project-description ul {
  list-style: disc inside;
}
.single-main-content-wrapper .project-description ul ul {
  list-style-type: circle;
}
.single-main-content-wrapper .project-description ul ul ul {
  list-style-type: square;
}
.single-main-content-wrapper .project-description ol {
  list-style: decimal inside;
}
.single-main-content-wrapper .project-description li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}
.single-main-content-wrapper .project-description li::marker {
  color: #6366f1;
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .single-main-content-wrapper .project-description ul,
  .single-main-content-wrapper .project-description ol {
    margin-left: 1em;
    padding-left: 0.8em;
  }
}

/* Breadcrumbs Styles */
.breadcrumbs {
  margin: 1.5rem 0 2.5rem 0;
  background: #f3f4f6;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.04);
}
.breadcrumbs a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: #4338ca;
  text-decoration: underline;
}
.breadcrumbs span {
  color: #6b7280;
  font-weight: 500;
}
@media (max-width: 600px) {
  .breadcrumbs {
    font-size: 0.98em;
    padding: 0.6em 0.7em;
  }
}

/* Category Hero Section Improvements */
.hero-section.blog-hero {
  margin-bottom: 2.5rem;
  background: #f8fafc;
  padding-bottom: 0;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.04);
}
.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
}
.hero-section .hero-title {
  font-size: 2.3rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.2em;
  text-align: center;
  letter-spacing: -1px;
}
.hero-section .hero-description {
  font-size: 1.15rem;
  color: #6b7280;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 0.5em auto;
}
@media (max-width: 600px) {
  .hero-section .hero-title {
    font-size: 1.4rem;
  }
  .hero-section .hero-description {
    font-size: 1em;
  }
}

/* Responsive image fixes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.project-image img,
.post-thumbnail img,
.case-study-featured-image img,
.case-study-hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure images don't overflow containers */
.project-image,
.post-thumbnail,
.case-study-featured-image,
.case-study-hero-image {
  overflow: hidden;
  max-width: 100%;
}

/* Fix for images in content areas */
.project-description img,
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Responsive image containers */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Aspect ratio containers for different screen sizes */
.aspect-ratio-16-9 {
  aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4/3;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3/2;
}

@media (max-width: 768px) {
  .aspect-ratio-16-9 {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .aspect-ratio-16-9,
  .aspect-ratio-4-3 {
    aspect-ratio: 3/2;
  }
}

/* Enhanced mobile responsive image fixes */
@media (max-width: 768px) {
  .aspect-ratio-16-9 {
    aspect-ratio: 4/3;
  }

  /* Ensure all images are properly contained */
  img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Fix for portfolio images */
  .portfolio-image img,
  .portfolio-card-front img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Fix for case study images */
  .case-study-featured-image img,
  .case-study-hero-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Fix for blog post images */
  .post-thumbnail img,
  .featured-post-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Fix for content images */
  .project-description img,
  .post-body img,
  .single-body img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 1rem 0;
  }

  /* Ensure containers don't overflow */
  .portfolio-item,
  .case-study-item,
  .post-item,
  .featured-post-card {
    overflow: hidden;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .aspect-ratio-16-9,
  .aspect-ratio-4-3 {
    aspect-ratio: 3/2;
  }

  /* Additional mobile optimizations */
  img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force all image containers to be responsive */
  .portfolio-image,
  .case-study-featured-image,
  .case-study-hero-image,
  .post-thumbnail,
  .featured-post-image,
  .project-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Ensure text doesn't wrap around images on mobile */
  .project-description img,
  .post-body img,
  .single-body img {
    float: none !important;
    margin: 1rem 0 !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Fix for specific image types that might be causing issues */
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-media-text__media img {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
}

/* Ensure WordPress default image blocks are responsive */
.wp-block-image {
  max-width: 100%;
  overflow: hidden;
}

.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}

/* Fix for any inline images */
img[style*="width"],
img[style*="height"] {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
}

/* Override any inline styles that might break responsiveness */
img[style] {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
}


.quick-response-icon img.emoji,
.quick-response-icon img.wp-smiley {
  width: 1em !important;
  max-width: none !important;
  height: 1em !important;
  display: inline !important;
  vertical-align: -0.1em !important;
  margin: 0 .07em !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Ensure all image containers are responsive */
.portfolio-item img,
.case-study-item img,
.post-item img,
.featured-post-card img,
.project-image img,
.post-thumbnail img,
.case-study-featured-image img,
.case-study-hero-image img {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
  object-fit: cover;
}

/* Ensure background images don't cause overflow */
[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* === MOBILE NAVIGATION - MUST BE AT THE END TO OVERRIDE ALL PREVIOUS RULES === */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-menu .btn {
    margin: 1rem 2rem 0 2rem;
    text-align: center;
  }

  .container {
    padding: 0 15px;
  }

  .nav-brand a {
    font-size: 1.3rem;
  }
}



