.portblo{
    background-color: rgb(7, 107, 127);
    height: 100vh;
    position: relative;
     display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.portblo img {
  position: absolute;
  bottom: 0;

  width: 600px;
  height: auto;
}

.portblo div {
  color: white;
  text-align: center;
  position: absolute;
  top: 40%;
  transform: translate(0%, -50%);
  text-transform: uppercase;
  animation: fadeUp 1.5s ease-out forwards;
  opacity: 0;
}

/* Individual headings can have slight delays for staggered animation */
.portblo div h3 {
  font-size: 5rem;
  font-weight: normal;
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.portblo div h1 {
  font-size: 9rem;
  font-weight: normal;
  margin-top: -20px;
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.portblo div h4 {
  font-size: 2rem;
  font-weight: normal;
  margin-top: -20px;
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Keyframes for upward fade animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mini-icecream {
  background-color: #601cbd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  height: 100vh;
  color: white;
  padding: 100px 20px;
}

.mini-icecream h3 {
  font-size: 5rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 100;
  max-width: 1150px;
  line-height: 1;
  color: aqua;
  opacity: 0;
  transform: translateY(100px);
}

.mini-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.mini-cards .mini-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
  opacity: 0;
  transform: translateY(100px);
}

.mini-cards .mini-img img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.mini-img h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mini-img p {
  font-size: 19px;
  text-align: center;
  line-height: 1.4;
  font-family: sans-serif;
  font-weight: 400;
  color: #fff;
}



.installation{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #e31c79;
    color: white;
    padding: 30px;
    height: 100vh;
    margin: -50px 0;
     overflow: hidden;
}

.installation img, .serving img{
    height: 600px;
    width: 650px;
}

.installation .install-text, .serving-text{
    max-width: 450px;
}

.install-text h4 , .serving-text h4{
   font-size: 29px;
   font-weight: 100;
   letter-spacing: 3px;
}

.install-text h2, .serving-text h2{
  font-size: 4rem;
  font-weight: 100;
  color: aqua ;
  text-transform: uppercase;
  line-height:1;
  margin-bottom: 20px;
}

.install-text p, .serving-text p{
  font-family: sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 1.2px;
}


.install-text {
  transform: translateX(-100px);
  opacity: 0;
}

.installation img {
  transform: translateX(100px);
  opacity: 0;
}



.serving{
  background-color: #601cbd;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px; 
  padding-right: 40px;
  margin-top: -100px;
  height: 100vh;
  color: white;
   overflow: hidden;
    transform: translateY(100px);
   
}

.serving-text button{
    background-color: #00cfcf;
    border-radius: 20px;
    border: none;
    padding: 10px 20px;
    width: 230px;
    font-size: 16px;
    color: white;
    font-weight: 550;
    margin-top: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.serving-text button:hover{
    background-color: rgb(125, 7, 88);
}

.serving img {
  transform: translateX(-100px);
  opacity: 0;
}

.serving-text {
  transform: translateX(100px);
  opacity: 0;
}

.feature-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 115vh;
  position: relative;
}

.feature-left {
  position: relative;
  width: 300px;
  height: 450px; /* match circle height */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  transform: translateY(-20px);
}

.feature-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ccc;
}

/* Text Label */
.feature-tab .label {
  font-size: 20px;
  text-transform: uppercase;
  transition: 0.3s ease;
  font-weight: 100;
  letter-spacing: 1.8px;
}

/* Dot */
.feature-tab .dot {
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s ease;
}

/* Active State */
.feature-tab.active .label {
  color: #601cbd;
}
.feature-tab.active .dot {
  background: #601cbd;
  transform: scale(1.2);
}

/* Curved Positioning - visually mimic arc */
.feature-tab:nth-child(1) {
  transform: translateY(0) translateX(50px);
}
.feature-tab:nth-child(2) {
  transform: translateY(10px) translateX(10px);
}
.feature-tab:nth-child(3) {
  transform: translateY(20px) translateX(-20px);
}
.feature-tab:nth-child(4) {
  transform: translateY(30px) translateX(5px);
}
.feature-tab:nth-child(5) {
  transform: translateY(40px) translateX(30px);
}


.feature-image {
  width: 450px;
  height: 450px;
  border-radius: 50%;
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  object-fit: cover;

}

.feature-image img {
  width: 100%;
  height: 100%;
    border-radius: 50%;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-text {
  max-width: 500px;
}

.feature-text h4 {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 5px;
  font-weight: 100;
}

.feature-text h1 {
  font-size: 48px;
  color: #601cbd;
  margin: 10px 0;
  transition: 0.4s ease;
  font-weight: 100;
  line-height: 1.2;
}

.feature-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  transition: 0.4s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif  ;
  line-height: 1.3;
  font-weight: 400;
}

.feature-text h4,
.feature-text h1,
.feature-text p {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  transform: translateY(10px);
}

.feature-wrapper:hover .feature-text h4,
.feature-wrapper:hover .feature-text h1,
.feature-wrapper:hover .feature-text p {
  opacity: 1;
  transform: translateY(0);
}


.ecosystem-section {
  background-image: url("../images/portbello-bg.jpg");
  color: white;
  padding: 60px 20px;
  height: 100vh;

}

.ecosystem-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  /* margin: auto; */
  flex-wrap: wrap;
    margin-top: 100px;
    margin-left: 150px;
}

.eco-left {
  flex: 1 1 30%;
  padding-right: 20px;
}

.eco-left h5 {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: white;
  font-weight: 100;
}

.eco-left h1 {
  font-size: 60px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 20px;
  font-weight: 100;
}

.eco-left p {
  font-size: 20px;
  line-height: 1.6;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: normal;
  line-height: 1.1;
}

.eco-center {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
}

.eco-center img {
  width: 300px;
  height: auto;
}

.eco-right {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 20px;
}

.eco-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.eco-feature img {
  width: 40px;
  height: 40px;
  margin-top: 4px;
}

.eco-feature strong {
  font-size: 18px;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
}

.eco-feature span {
  font-size: 14px;
  color: #e6dfdf;
  font-family: sans-serif;
  font-weight: bold;
}


/* Animation for left side */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.eco-left {
  view-timeline-name: --eco-left;
  animation-timeline: --eco-left;
  animation-name: fadeUp;
  animation-fill-mode: both;
  animation-range: entry 20% cover 40%;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}

/* Animation for each right feature */
.eco-feature {
  opacity: 0;
  transform: translateY(50px);
  animation-name: fadeUp;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  animation-duration: 0.8s;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
}

/* Add delays for staggered effect */
.eco-feature:nth-child(1) {
  animation-delay: 0.2s;
}
.eco-feature:nth-child(2) {
  animation-delay: 0.5s;
}
.eco-feature:nth-child(3) {
  animation-delay: 0.8s;
}


.business-section {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.business-section h2 {
  font-size: 60px;
  font-weight: 100;
  color: #601cbd; /* Purple */
  line-height: 1.3;
  margin-bottom: 50px;
}

.business-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.business-card {
  position: relative;
  width: 280px;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.business-card:hover {
  transform: scale(1.08);
  overflow:inherit;
}

.business-card img {
  width: 290px;
  height: 250px;
  display: block;
  border-radius: 20px;
}

.card-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-weight: 900;
  font-size: 24px;
  font-family: 'Museo Sans', sans-serif;
  line-height: 1.2;
  z-index: 2;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Colored vertical bars */
.business-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 90px;
  z-index: 1;
}

.business-card.purple::before {
  background-color: #6e00a2;
}
.business-card.yellow::before {
  background-color: #fdb813;
}
.business-card.pink::before {
  background-color: #ff3399;
}
.business-card.teal::before {
  background-color: #00d2b3;
}


/* ========== MEDIA QUERIES FOR RESPONSIVENESS ========== */

/* Extra large screens (desktops, 1200px and up) */
@media (max-width: 1400px) {
  .ecosystem-container {
    margin-left: 60px;
  }
}

/* Large screens (desktops, 992px to 1199px) */
@media (max-width: 1199px) {
  .feature-wrapper {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 40px 20px;
  }

  .feature-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
  }

  .feature-image {
    margin: 30px 0;
  }

  .ecosystem-container {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .eco-left,
  .eco-right,
  .eco-center {
    flex: 1 1 100%;
    text-align: center;
  }

  .eco-center img {
    width: 250px;
    margin: 20px 0;
  }

  .business-cards {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Medium screens (tablets, 768px to 991px) */
@media (max-width: 991px) {

  

  .mini-icecream h3 {
    font-size: 2.4rem;
    padding: 0 20px;
  }

  .mini-cards {
    gap: 30px;
  }

  .installation,
  .serving {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .installation img,
  .serving img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-top: 30px;
  }
}

/* Small screens (phones, 576px to 767px) */
@media (max-width: 767px) {
  .portblo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .portblo img {
    width: 220px;
  }

  .feature-text h1 {
    font-size: 32px;
  }

  .eco-left h1 {
    font-size: 36px;
  }

  .eco-left p,
  .eco-feature strong,
  .eco-feature span {
    font-size: 16px;
  }

  .business-card {
    width: 90%;
    margin-bottom: 20px;
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
  .feature-tab .label {
    font-size: 14px;
  }

  .mini-cards {
    flex-direction: column;
    align-items: center;
  }

  .mini-img {
    max-width: 100%;
  }

  .eco-left h1 {
    font-size: 28px;
  }

  .business-section h2 {
    font-size: 24px;
    text-align: center;
    padding: 0 10px;
  }

  .business-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* General Responsive Adjustments */
@media (max-width: 768px) {
  h1, h2, h3, h4 {
    line-height: 1.3;
  }

    .portblo div{
      line-height: 1.5;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .feature-left{
      display: none;
    }

    .feature-image{
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .ecosystem-section{
      height: auto;
    }

    .feature-image img{
      height: 350px;
      width: 350px;
     
    }


  .portblo div h3{
    font-size: 20px;
  }

  .portblo div h1{
    font-size: 45px;
  }



  .installation .install-text,
  .serving .serving-text {
    max-width: 100%;
  }
}
