/* ===== Hero Section Styles ===== */
.about-hero {
  position: relative;
  height: 60vh;
  background: linear-gradient(135deg, #0a0f1f, #142850);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}

.about-hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('/assets/img/case_study.svg') center/cover no-repeat;
  opacity: 0.3;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-content h2 {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #ffffff;
}

.down-arrow {
  display: inline-block;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

@media (max-width: 1024px) {
  .about-hero {
    height: auto;
    padding: 80px 20px;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

/* Mobile (landscape) */
@media (max-width: 768px) {

  .hero-content h2 {
    margin-top: 60px;
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Mobile (portrait, very small screens) */
@media (max-width: 480px) {
  .about-hero {
    padding: 60px 15px;
  }

  .hero-content h2 {
    margin-top: 40px;
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}


.case-studies {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.case-studies h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.filter-buttons {
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 25px;
  border: 3px solid var(--button-color);
  cursor: pointer;
  border-radius: 12px;
  background: #fff;
  transition: 0.3s ease;
  width: 200px;
  font-size: 1.1rem;
}

.filter-btn.active {
  background: var(--button-color);
  color: #000;
}

.project-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 30px auto;
  max-width: 1200px;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease;  
}

.project-card.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.project-image {
  flex: 1; 
  max-width: 50%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.project-content {
  flex: 1; 
  max-width: 60%;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #37517e;
  font-weight: 600;
}

.project-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: 0.4px;
  margin: 10px 0;
  color: #000;
}

.platform-icon {
  width: 36px;
  height: 36px;
  margin-left: 10px;
  vertical-align: middle;
}

.case-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 12px;
  background: var(--button-color);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  width: fit-content;
}

.case-btn:hover {
  background: var(--button-hover-color);
  color: #000;
}


/* ---------------------- */
/* Responsive Media Queries */
/* ---------------------- */

@media (max-width: 1024px) {
  .project-card {
    flex-direction: column; 
    max-width: 90%;
  }

  .project-image,
  .project-content {
    max-width: 100%;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 1.8rem;
  }

  .project-content p {
    font-size: 1rem;
  }

  .filter-btn {
    margin: 10px;
    width: auto;
    font-size: 1rem;
    padding: 8px 15px;
  }
}

@media (max-width: 767px) {
  .case-studies {
    padding: 40px 15px;
  }

  .project-card {
    flex-direction: column; 
    margin: 20px auto;
  }

  .project-image img {
    height: auto; 
  }

  .project-content {
    padding: 15px;
    text-align: left;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }

  .platform-icon {
    width: 28px;
    height: 28px;
    margin-left: 5px;
  }

  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .filter-btn {
    width: 45%;
    margin: 5px 0;
    font-size: 0.95rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .project-content h3 {
    font-size: 1.3rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .platform-icon {
    width: 24px;
    height: 24px;
    margin-left: 4px;
  }

  .filter-btn {
    width: 100%;
  }
}
