* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend", sans-serif;
  line-height: 1.6;
  color: #333;
}

.portfolio-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Content */
.portfolio-main-content {
  padding: 60px 0;
  background: #fafafa;
}

.portfolio-section {
  /* text-align: center; */
  margin-bottom: 60px;
}

.portfolio-main-heading {
  font-size: 34px;
  font-weight: bold;
  color: #170644;
  margin-bottom: 15px;
  line-height: 1.2;
}

.portfolio-main-description {
  font-size: 16px;
  color: #666;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.projects-grid a {
  text-decoration: none;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 400px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.project-image img:hover {
  transform: scale(1.05);
}

.project-title {
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on small screens */
  margin-bottom: 10px;
  gap: 10px; /* adds space between wrapped items */
}

/* Responsive: Adjust font and layout for tablets and below */
@media (max-width: 768px) {
  .project-title {
    font-size: 20px;
    flex-direction: column;
    /* align-items: flex-start; */
  }
}

/* Responsive: Smaller devices (like phones) */
@media (max-width: 480px) {
  .project-title {
    font-size: 18px;
    padding: 15px;
  }
}

/* Single Project */
.single-project {
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive Breakpoints */

/* Tablet */
@media (max-width: 1024px) {
  .portfolio-main-heading {
    font-size: 28px;
  }

  .project-image {
    height: 320px;
  }

  .project-title {
    font-size: 20px;
  }

  .projects-grid {
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .portfolio-main-content {
    padding: 40px 0;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-main-heading {
    font-size: 30px;
    /* text-align: center; */
  }

  .portfolio-main-description {
    font-size: 15px;
    /* text-align: center; */
  }

  .project-title {
    font-size: 18px;
    text-align: center;
  }

  .project-image {
    height: 280px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .portfolio-main-heading {
    font-size: 22px;
  }

  .portfolio-main-description {
    font-size: 14px;
  }

  .project-image {
    height: 220px;
  }
}

/* Custom VIEW cursor */
.case-study-image {
  cursor: none;
  position: relative;
}

.view-cursor {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: #000000;
  /* background-color: #07ffca;
  color: #e8f9bb; */
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
  display: none;
}

.portfolio-view-btn {
  padding: 10px 20px;
  background-color: #f80035;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 1px;
  text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 0px;
  transform: scale(1);
  transition: all 0.3s ease;
}

.portfolio-view-btn:hover {
  color: #170644;
}

/* Tablet */
@media (max-width: 768px) {
  .portfolio-view-btn {
    font-size: 11px;
    padding: 9px 30px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .portfolio-view-btn {
    font-size: 10px;
    padding: 5px 30px;
    display: block;
    width: 100%;
    text-align: center;
  }
}
