body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
  }body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  @media (max-width: 768px) {
    .example-class {
      margin: 0;
    }
  }


/*------------------------------Main Row----------------------------*/
.s-col-2 {
    width: 95%;
    flex-direction: column;
}


.portfolio{
    background-image: url('../images/portfoliobg.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 600px;
    width:100%;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.portfolio h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.portfolio p {
    font-size: 1rem;
    max-width: 80%;
    font-weight: bold;
    line-height: 1.6;
    color: rgb(82, 12, 55);
}
/*-------------------------------CARDS------------------------------------*/

    .card-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 70px;
        width: 98%;
        max-width: 1200px;
        margin-left: 5%;
      }

  .card {
    background-color: #f7f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  .card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .card:hover img {
    transform: scale(1.1);
  }

  .card-content {
    padding: 15px;
    text-align: center;
  }

  .card-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
    transition: color 0.3s ease;
  }

  .card:hover .card-heading {
    color: #c52b6e; /* Highlight color on hover */
  }

  .card-heading-icon {
    margin-right: 10px;
    color: #c52b6e;
    font-size: 1.8rem;
  }

  .card-subheading {
    font-size: 1.3rem;
    color: #585555;
  }
 
/*----------------------------templates-------------------------------*/

.temp-col{
display: flex;
flex-direction: column;
}

.temp-row{
display: flex;
flex-direction: row;
width: 95%;
}

.temp-col1{
    display: flex;
    flex-direction: column;
    width: 50%;
    place-items: center;
    margin-left: 3%;
}
.temp-col2{
    display: flex;
    flex-direction: column;
    width: 50%;
    place-items: center;
    margin-left: 3%;
}
.temp-col1 h3{
    margin-top: 0.1px;
}
.temp-col2 h3{
    margin-top: 0.1px;
}
/*--------------------------Project -----------------------*/
.proj {
    background-image: url('../images/project.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.proj-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
}

.proj-content h2 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.proj-content p {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/*------------------------RESPONSIVENESS----------------RESPONSIVENESS----------------------RESPONSIVENESS----------------*/

@media screen and (max-width: 1199px) and (min-width: 768px) {
    .temp-row {
        align-items: center;
        width: 100%;
    }
    .portfolio {
        height: 500px;
    }
    .proj {
        height: 350px;
    }
    .s-col-2 {
        width: 95%;
        flex-direction: column;
    }
    .portfolio h1 {
        font-size: 2.5rem;}
    .portfolio p {
            font-size: 1.2rem;}
    .proj-content p {
        font-size: 1.2rem;}
     .card img {
      height: 300px;
    }
  
    .card-heading {
      font-size: 1.3rem; 
    }
  
    .card-subheading {
      font-size: 0.9rem; 
    }
    
}
@media (max-width: 768px) {
    .col-1{
        border-radius: 10px;
        width: 7%;
    }
    .temp-row {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio {
        height: 300px;
        margin-bottom: 2rem;
    }
    .proj {
        height: 200px;
        background-image: url('../images/contact.jpeg');
    }
    .temp-col1{
        width: 90%;
    }
    .temp-col2{
        width: 90%;
    }
    .temp-col1 h3, .temp-col2 h3 {
        text-align: center;
    }
     .portfolio h1 {
        font-size: 2rem;}
    .portfolio p {
            font-size: 0.8rem;}
    .proj-content p {
        font-size: 1.2rem;}
    .proj-content h2 {
        font-size: 2rem;}
    .s-col-2 {
        width: 93%;
        flex-direction: column;
    }
     .card-container {
      grid-template-columns: 1fr; 
      gap: 15px; 
      width: 90%; 
      margin-left: 5%;
    }
  
    .card img {
      height: 250px; 
    }
  
    .card-heading {
      font-size: 1.2rem; 
    }
  
    .card-subheading {
      font-size: 0.85rem; 
    }
    

}
