/* Ensure SVGs in two-column sections are visible and columns are equal width */
.ai-build-text,
.ai-build-image {
  flex: 1 1 0;
  min-width: 0;
}
.how-we-roll-text,
.how-we-roll-image {
  flex: 1 1 0;
  min-width: 0;
}
.ai-build-image svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.how-we-roll-image svg {
  width: 80%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Pre-title and section title area for consistent left alignment and max width */
.section-title-area {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  width: 100%;
}
.pre-title {
  color: #0074d9;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
  display: block;
  text-align: left;
}
.section-title-area h2 {
  margin-top: 0;
  margin-bottom: 1.2em;
  text-align: left;
  font-size: 36px;
}
body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 100px; /* Account for fixed navbar */
}

/* Global paragraph styles */
p {
  font-size: 16px;
  color: #666;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

h2 {
  color: #2a324b;
}

.navbar {
  background-color: #fff;
  color: #333;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1000;
}

/* Better visual alignment with content containers */
.navbar .logo {
  width: 80px;
  height: 40px;
  margin-left: -5px; /* Slight optical adjustment for better alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
}

.navbar .logo img {
  width: 80px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
}

.navbar a {
  color: #666;
  text-decoration: none;
  margin: 0 15px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar a:hover {
  color: #000;
  transform: translateY(-1px);
}

.navbar a:active {
  transform: translateY(0);
  color: #000;
}

.navbar a:focus {
  outline: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

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

/* Mobile Styles */
@media screen and (max-width: 768px) {
  body {
    padding-top: 0; /* No padding needed since navbar is not fixed */
  }

  /* Hero section mobile improvements */
  .hero {
    min-height: 70vh;
  }

  .hero-svg-background {
    width: 150vw;
    height: 150vh;
    opacity: 1;
  }

  .hero-content {
    padding: 30px 5%;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
  }

  .hero-button {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Team grid mobile improvements */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-member {
    text-align: center;
  }

  /* Partners mobile improvements */
  .partners-logos {
    flex-direction: column;
    gap: 40px;
  }

  .partner-logo img {
    max-height: 60px;
  }

  /* Thought leadership, How We Roll, and AI Build mobile improvements */
  .thought-leadership-container,
  .how-we-roll-container,
  .ai-build {
    flex-direction: column;
  }

  .thought-leadership-image,
  .how-we-roll-image,
  .ai-build-image {
    order: -1;
    margin-bottom: 20px;
  }

  .thought-leadership-text,
  .how-we-roll-text,
  .ai-build-text {
    order: 1;
    padding-right: 0;
  }

  /* Journey animation mobile */
  .journey-content h2 {
    font-size: 28px;
    text-align: left;
    margin-bottom: 15px;
  }

  /* Reduce padding on mobile for better space usage */
  .hero-content,
  .thought-leadership-container,
  .ai-build-container,
  .how-we-roll-container,
  .beautiful-grind {
    padding: 30px 5%;
  }

  /* Journey animation mobile padding */
  .journey-content {
    padding: 30px 5%;
  }

  .navbar {
    padding: 8px 5%;
    /* position: relative;
    top: auto;
    left: auto;
    right: auto; */
  }

  .navbar .logo {
    width: 140px;
    height: 70px;
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 70px;
  }

  .navbar .logo img {
    width: 140px;
    height: 70px;
    object-fit: contain;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 20px 0;
    font-size: 24px;
    text-align: center;
    padding: 15px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #666;
  }

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

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .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 screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    padding: 40px 5%;
  }

  .hero-content h1 {
    font-size: 50px;
  }

  .hero-svg-background {
    width: 130vw;
    height: 130vh;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .thought-leadership-container,
  .how-we-roll-container {
    padding: 40px 5%;
  }

  .beautiful-grind {
    padding: 40px 5%;
  }
}

/* On larger screens, add more margin */
@media screen and (min-width: 1400px) {
  .navbar,
  .hero-content,
  .thought-leadership-container,
  .how-we-roll-container,
  .beautiful-grind,
  .meet-team-container,
  .footer {
    max-width: 1400px;
    margin: 0 auto;
  }

  .hero-content,
  .thought-leadership-container,
  .ai-build-container,
  .how-we-roll-container,
  .beautiful-grind {
    padding: 50px 8%;
  }

  .journey-content {
    padding: 50px 8%;
  }

  .meet-team-container {
    padding: 50px 8%;
  }

  .navbar {
    padding: 12px 8%;
  }

  .footer {
    padding: 40px 8%;
  }
}

.hero {
  background-color: #f4f4f4;
  width: 100%;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-svg-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw;
  height: 120vh;
  z-index: 1;
  opacity: 1;
}

.hero-svg-background svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 5%;
}

.hero-content h1 {
  font-size: 70px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.1;
}

.hero-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-bottom: 40px;
}

.hero-button:hover {
  background-color: #0056b3;
}

/* Mobile typography and interaction improvements */
@media screen and (max-width: 768px) {
  /* Improve button touch targets */
  .hero button {
    padding: 15px 30px;
    font-size: 18px;
    min-height: 44px; /* Apple's recommended minimum touch target */
    border-radius: 5px;
  }

  /* Improve link touch targets in navigation */
  .nav-links a {
    padding: 15px 20px;
    display: block;
  }

  /* Better text sizing for readability */
  p {
    line-height: 1.6;
  }

  h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 22px;
    line-height: 1.4;
  }

  h4 {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Improve footer on mobile */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 30px 5%;
  }

  .footer-right {
    text-align: center;
  }

  .footer p {
    margin: 10px 0;
  }
}

/* Mobile performance optimizations */
@media screen and (max-width: 768px) {
  /* Optimize SVG animations for mobile */
  .journey-animation {
    padding: 30px 5%;
  }

  .journey-svg-container {
    height: 300px; /* Reduce height on mobile */
  }

  .journey-svg-container svg {
    width: 100%;
    height: 100%;
    max-width: none;
  }

  /* Optimize images for mobile */
  .team-member-image img,
  .bullet-image img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
  }

  /* Ensure team member images are properly sized on mobile */
  .team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 10px;
  }

  /* Optimize bullet items for mobile touch */
  .bullet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .bullet-image {
    flex-shrink: 0;
    margin-right: 15px;
    width: 40px;
    height: 40px;
  }

  .bullet-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* Additional mobile enhancements */
@media screen and (max-width: 768px) {
  /* Improve scrolling performance */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Optimize text selection on mobile */
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Improve button interactions */
  button,
  .hero button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
  }

  button:active,
  .hero button:active {
    transform: scale(0.98);
  }

  /* Optimize link interactions */
  a {
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
  }

  /* Loading animation styling */
  .journey-loading {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #666;
  }

  /* Improve image loading */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Better focus indicators for accessibility */
  *:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }

  /* Prevent horizontal scrolling issues */
  .hero-content,
  .thought-leadership-container,
  .how-we-roll-container,
  .meet-team-container,
  .beautiful-grind {
    overflow-x: hidden;
  }
}

.ai-build {
  /* full-bleed background so the grey extends the full viewport width */
  background-color: #f4f4f4;
  width: 100%;
}

.ai-build-container {
  /* inner centered container that keeps content constrained */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.ai-build-text h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 0px;
  color: #2a324b;
}

.ai-build-text p {
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
}

.ai-build-image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-we-roll {
  background-color: #f4f4f4;
  width: 100%;
}

.how-we-roll-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.how-we-roll-image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.how-we-roll-text h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 0px;
  color: #2a324b;
}

.how-we-roll-text p {
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
}

.meet-team {
  background-color: #f4f4f4;
  text-align: center;
  width: 100%;
}

.meet-team-container {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.meet-team h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.team-member-image {
  width: 100%;
  height: 200px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 24px;
  margin: 10px 0 5px;
}

.team-member h4 {
  font-size: 16px;
  color: #666;
  margin: 5px 0 10px;
}

.team-member p {
  line-height: 1.6;
}

/* Blog Section */
.blog-section {
  background-color: #ffffff;
  text-align: center;
  width: 100%;
  padding: 80px 20px;
}

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* .blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.blog-card-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.blog-card-image.has-image {
  background: none;
  padding: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-placeholder {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.blog-card-content {
  text-align: left;
}

.blog-card-date {
  color: #007bff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.blog-card p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-card .use-case-cta {
  color: #007bff;
  font-weight: 600;
  font-size: 16px;
}

.blog-footer {
  text-align: center;
  margin-top: 30px;
}

/* Blog Header Section */
.blog-header-section {
  background: linear-gradient(135deg, #1a1f2d 0%, #2a3441 100%);
  color: white;
  text-align: center;
  width: 100%;
  padding: 100px 20px 80px;
}

.blog-header-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header-section h1 {
  color: white;
  margin-bottom: 20px;
}

.blog-header-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Blog Grid Expanded */
.blog-grid-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Post Styles */
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
}

.blog-featured-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.blog-image-container {
  margin: 30px 0;
  text-align: center;
}

.blog-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-image-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
  line-height: 1.4;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin: 20px 0 30px 0;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.blog-date,
.blog-author,
.blog-read-time {
  font-weight: 600;
}

.blog-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-tag {
  background-color: #f0f8ff;
  color: #0074d9;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.blog-content {
  font-size: 16px;
  line-height: 1.8;
}

.blog-content h1 {
  margin-bottom: 10px;
}

.blog-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #2a3441;
}

.blog-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2a3441;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #eee;
}

.blog-content a {
  color: #0074d9;
  text-decoration: none;
}

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

.blog-navigation {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

.back-to-blog {
  color: #0074d9;
  text-decoration: none;
  font-weight: 600;
}

.back-to-blog:hover {
  text-decoration: underline;
}

/* Partners Section */
.partners {
  background-color: #fff;
  text-align: center;
  width: 100%;
  padding: 100px 0;
}

.partners-container {
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.partners h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 40px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%);
}

.journey-animation {
  /* full-bleed background like other sections */
  background-color: #f4f4f4;
  width: 100%;
  text-align: center;
}

.journey-content {
  /* inner centered container */
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 5%;
}

.journey-content h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.journey-content p {
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.journey-svg-container {
  max-width: 1200px;
  margin: 10px auto 0;
  overflow: hidden;
}

.journey-svg-container svg {
  width: 100%;
  height: fit-content;
  border: none;
}

/* AI Built to Scale Section */
.ai-scale-section {
  padding: 80px 5%;
  text-align: left;
  background-color: #fff;
  max-width: 1400px;
  margin: 0 auto;
}

.ai-scale-container h2 {
  font-size: 36px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 0px;
  color: #2a324b;
}

.ai-scale-container p {
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.ai-scale-container p:first-child {
  color: #007bff;
  margin-bottom: 0px;
}

.footer {
  background-color: #fff;
  color: #333;
  padding: 70px 15%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-top: 1px solid #e0e0e0; */
}

.footer-left {
  flex: 0 0 auto;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-right {
  text-align: left;
  flex: 0 0 auto;
}

.footer-right p {
  margin: 5px 0;
  line-height: 1.4;
}

.footer a {
  color: #333;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Accessibility improvements - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .journey-animation svg path {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Small mobile devices (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
  body {
    padding-top: 65px; /* Even smaller padding for very small screens */
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero-content,
  .thought-leadership-container,
  .how-we-roll-container,
  .meet-team-container,
  .beautiful-grind {
    padding: 20px 3%;
  }

  .navbar {
    padding: 6px 3%;
  }

  .navbar .logo {
    width: 50px;
    height: 50px;
  }

  /* Make bullet items more readable on very small screens */
  .bullet-item {
    margin-bottom: 25px;
  }

  .bullet-item p {
    line-height: 1.5;
  }
}

/* Use Cases Section */
.use-cases-section {
  padding: 100px 0;
  background-color: #ffffff;
  text-align: center;
}

.use-cases-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.use-cases-header {
  text-align: center;
  margin-bottom: 40px;
}

.use-cases-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.use-cases-tagline {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.use-cases-grid-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.use-case-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
}

.use-case-icon {
  margin-bottom: 15px;
}

.use-case-icon img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.use-case-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.use-case-card p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.use-case-cta {
  color: #007bff;
  font-weight: 600;
  font-size: 16px;
}

.use-cases-footer {
  text-align: center;
}

.explore-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.explore-button:hover {
  background-color: #0056b3;
}

.back-home-button {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.back-home-button:hover {
  background-color: #0056b3;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background-color: #ffffff;
  text-align: center;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2a324b;
}

.services-tagline {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #4a4a4a;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.service-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background-color: #f8f9fa;
  border-radius: 18px;
}

.service-icon img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.service-content {
  flex: 1;
  display: flex;
  margin-left: 15px;
  flex-direction: column;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #007bff;
  font-weight: 600;
}

.service-card p {
  line-height: 1.7;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.modal.show {
  display: block;
  animation-name: modalFadeIn;
}

.modal.hide {
  animation-name: modalFadeOut;
}

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

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

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.modal.show .modal-content {
  animation-name: modalSlideIn;
}

.modal.hide .modal-content {
  animation-name: modalSlideOut;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  top: 15px;
  right: 25px;
}

.close:hover {
  color: #2a324b;
}

#modal-body h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#modal-body p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.modal-image-full {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .use-cases-section {
    padding: 40px 0;
  }

  .use-cases-header h2 {
    font-size: 28px;
  }

  .use-cases-tagline {
    font-size: 16px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .use-cases-grid-expanded {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .use-case-card {
    padding: 20px;
  }

  .use-case-card h3 {
    font-size: 20px;
  }

  .use-case-icon img {
    height: 120px;
  }

  /* Services section mobile styles */
  .services-section {
    padding: 40px 0;
  }

  .services-header h2 {
    font-size: 28px;
  }

  .services-tagline {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 20px 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .service-icon img {
    width: 90px;
    height: 90px;
  }

  .service-content {
    text-align: left;
    margin-left: 0;
  }

  .service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-card p {
    line-height: 1.6;
  }

  .modal-content {
    margin: 5% auto;
    padding: 30px 20px;
    width: 95%;
    max-height: 90vh;
  }

  #modal-body h3 {
    font-size: 1.6rem;
  }

  .modal-image-full {
    max-height: 50vh;
  }

  /* Blog responsive styles */
  .blog-section {
    padding: 40px 10px;
  }

  .blog-header-section {
    padding: 60px 20px 40px;
  }

  .blog-header-section h1 {
    font-size: 28px;
  }

  .blog-header-subtitle {
    font-size: 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-grid-expanded {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    height: auto;
  }

  .blog-card-content {
    height: auto;
  }

  .blog-post-container {
    padding: 20px 15px;
  }

  .blog-content {
    font-size: 15px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 5px;
  }
}
