
/* ======= PROJECTS SHOWCASE STYLING ======= */
.projects-showcase-section {
  padding: 80px 60px;
  background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 50%, #0a0a2a 100%);
  position: relative;
  overflow: hidden;
}

.projects-showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.projects-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.projects-showcase-section .section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00f0ff, #00ff99, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.projects-showcase-section .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #d0d0d0;
  font-weight: 300;
  line-height: 1.6;
}

/* 3-Column Grid for 2 Rows (6 items total) */
/* 4-Column Grid for 2 Rows (8 items total) */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

/* All projects grid (shown when Read More clicked) */
.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-showcase-card {
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}



/* desktop circle size */
.project-showcase-logo{
  width:105px;
  height:105px;
  padding:12px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}


.company-logo {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.project-showcase-card:hover .company-logo {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Remove the gradient background for logos */
.project-showcase-logo::before {
  display: none;
}


.project-showcase-logo span {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.project-showcase-card:hover .project-showcase-logo{
  background: linear-gradient(135deg,#ff9dff,#b97bff); /* slightly more intense */
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255,0,255,0.5);
}


.project-showcase-client {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00f0ff;
  margin-bottom: 8px;
}

.project-showcase-category {
  font-size: 0.9rem;
  color: #d0d0d0;
  margin-bottom: 10px;
}

.project-showcase-click {
  font-size: 0.8rem;
  color: #00ff99;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-showcase-card:hover .project-showcase-click {
  opacity: 1;
}

/* Read More Button */
.read-more-container,
.view-less-container {
  text-align: center;
  margin-top: 40px;
}

.read-more-btn,
.view-less-btn {
  background: transparent;
  border: none;
  color: #00f0ff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 30px;
  position: relative;
  transition: all 0.3s ease;
}

.read-more-btn:hover,
.view-less-btn:hover {
  color: #00ff99;
  transform: translateY(-2px);
}

.underline {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #00ff99);
  transition: width 0.3s ease;
}

.read-more-btn:hover .underline,
.view-less-btn:hover .underline {
  width: 80%;
}

.loading-projects, .no-projects {
  text-align: center;
  color: #00f0ff;
  font-style: italic;
  padding: 40px;
  grid-column: 1 / -1;
}

/* Responsive */
/* Responsive */

/* force 4 columns always - even in mobile */


/* optional: smaller gap so 4 fits nicely */
@media (max-width: 480px) {
  .projects-showcase-grid,
  .all-projects-grid {
    gap: 12px !important;
  }
}



@media (max-width: 768px) {
  .projects-showcase-section {
    padding: 60px 20px;
  }
  
  .projects-showcase-section .section-title {
    font-size: 2.2rem;
  }
  
  
}

@media (max-width: 480px) {
  .projects-showcase-section .section-title {
    font-size: 1.8rem;
  }
  
  .project-showcase-card {
    padding: 20px 15px;
    min-height: 180px;
  }
  

}
.project-showcase-logo {
  background: linear-gradient(135deg,#eef7ff,#f4e9ff) !important;
}
.company-logo {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}


.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding:10px;
  transform: scale(1) !important;
  min-width:auto !important;
  min-height:auto !important;
}


/* ----- MOBILE VIEW: 3 COLUMNS + SMALL CIRCLES ----- */
@media (max-width:768px){

  .projects-showcase-grid,
  .all-projects-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap:14px !important;
  }

  .project-showcase-card{
    padding:12px 5px !important;
    min-height:140px !important;
  }

  .project-showcase-logo{
    width:65px !important;
    height:65px !important;
    padding:4px !important;
  }

  .company-logo{
    padding:0 !important;
    transform:scale(1) !important;
  }

  .project-showcase-client{
    font-size:0.75rem !important;
  }

  .project-showcase-category{
    font-size:0.65rem !important;
  }
}

/* ---- SMALL BUTTON STYLE ---- */
.read-more-btn,
.view-less-btn{
  font-size:0.8rem !important;
  padding:6px 14px !important;
  border:1px solid #00f0ff;
  border-radius:6px;
}

/* ---- MOBILE place button below last logo ---- */
@media(max-width:768px){

  .read-more-container,
  .view-less-container{
    margin-top:10px !important;
    text-align:right !important;
  }
}
/* FINAL FIX – FORCE MOBILE 3 COLUMNS */
@media (max-width:768px){
  .projects-showcase-grid,
  .all-projects-grid{
    grid-template-columns: repeat(3,1fr) !important;
    gap:14px !important;
  }
}
/* prevent stretched / broken column after view more */
#allProjectsContainer{
  display:block;
  width:100% !important;
}
@media(max-width:768px){
  .project-showcase-client{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    display:block !important;
  }

  .project-showcase-category{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    display:block !important;
  }

  .project-showcase-card{
    min-height:160px !important;
  }
}
/* MOBILE: FORCE 2 COLUMNS */
@media(max-width:768px){
  .projects-showcase-grid,
  .all-projects-grid{
    grid-template-columns: repeat(2,1fr) !important;
    gap:20px !important;
  }

  .project-showcase-card{
    min-height:170px !important;
  }
}
