/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f4f4f4;
}

.header2 {
  background-image: url('handshake.jpg'); /* Change this to any desired background image */
  background-size: cover;
  background-position: center;
  height: 600px;
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header2 .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.header2 h1 {
  font-size: 4rem;
  animation: fadeInText 1.5s ease-in-out forwards;
}

.header2 p {
  font-size: 1.8rem;
  margin-top: 20px;
  animation: fadeInText 1.5s ease-in-out forwards;
  animation-delay: 1s;
}

/* Animations */
@keyframes backgroundZoom {
  0% { background-size: 100%; }
  50% { background-size: 105%; }
  100% { background-size: 100%; }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer Styles */
.portfolio-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    width: 100%;
    bottom: 0;
    position: relative;
}

/* Header */
.portfolio-header {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    margin-top: 250px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 100px;
}

.portfolio-header p {
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 800px;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 10px;
}

.nav-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #555;
}

/* Industry Section */
.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    flex: 1;
}

.industry-group {
    display: none;
    text-align: center;
}

.industry-group.active {
    display: block;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 30px;
    max-width: 100%;
}

.logo-box {
    width: 150px;
    height: 150px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* View More Button */
.view-more-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #555;
}

/* Hidden class to hide extra logos initially */
.hidden {
    display: none;
}

/* Fade In/Out and Slide Animations for Next/Previous */

/* Fade-In and Slide-In from Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(100%); /* Start from the right */
    animation: slideInRight 0.7s forwards; /* Make the animation more obvious */
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%); /* From the right */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Final position */
    }
}

/* Fade-In and Slide-In from Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100%); /* Start from the left */
    animation: slideInLeft 0.7s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade-Out and Slide-Out to the Left */
.slide-out-left {
    opacity: 1;
    transform: translateX(0); /* Start from the current position */
    animation: slideOutLeft 0.5s forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%); /* Move to the left */
    }
}

/* Fade-Out and Slide-Out to the Right */
.slide-out-right {
    opacity: 1;
    transform: translateX(0);
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%); /* Move to the right */
    }
}

/* Slide-In Animation for View More with a more obvious effect */
@keyframes slideIn {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-30px); /* Start with a bigger upward offset */
    }
    to {
        max-height: 300px; /* Adjust as needed */
        opacity: 1;
        transform: translateY(0); /* Slide into view */
    }
}

.slide-in {
    animation: slideIn 0.8s ease forwards; /* Increased animation duration */
    max-height: 300px;
    opacity: 1;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .logo-grid {
        grid-template-columns: repeat(4, 1fr); /* Show 4 columns on smaller screens */
    }
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr); /* Show 3 columns on medium screens */
    }

    .logo-box {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr); /* Show 2 columns on small screens */
    }

    .logo-box {
        width: 100px;
        height: 100px;
    }
  }

  @media only screen and (max-width: 768px) {
    .header2 {
      display: none;
    }
  }

  .footer {
      background-color: #333;
      color: white;
      text-align: center;
      padding: 20px;
  }
