/* End of hero section */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slides img.active {
  opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    text-align: -webkit-center;
}


.hero-content h1 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 55%;
}

.hero-content p {
  font-size: 1.2rem;
}
/* End of hero section */

/* Collaboration Section */
.collaboration {
    width: 75%;
    margin: -100px auto 0 auto; /* pull it up over hero and keep centered */
    background: #fff;
    padding: 2.5% 1%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.collaboration h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.collaboration h2 .highlight {
    color: var(--bs-purple); 
    font-weight: 700;
}

.collaboration .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7%; /* space between logos */
    flex-wrap: wrap;
}

.collaboration .logos img {
    max-height: 40px; /* adjust size as needed */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.collaboration .logos img:hover {
    transform: scale(1.1); /* subtle hover effect */
}


/* Services area section */
.service-area_section .highlight {
    color: var(--bs-purple); 
    font-weight: 600;
    font-size: 1.5rem;
}

.service-area_section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
    text-transform: uppercase;
}

.services {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.services_item {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    transition: transform 0.4s ease, border 0.4s ease;
    border: 3px solid transparent; /* no border initially */
}

.services_item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Overlay base */
.services_item_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: rgba(64, 0, 166, 0.3); 
    display: flex;
    justify-content: flex-start;
    align-items: end;
    transition: height 0.4s ease, background 0.4s ease;
}

.service-item_label {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    width: 60%;
    background: rgba(64, 0, 166, 0.5); 
    transition: background 0.4s ease;
}

/* Hover effects */
.services_item:hover {
    transform: scale(1.2); /* enlarge whole box */
    border-color: var(--bs-warning); 
}

.services_item:hover .services_item_overlay {
    height: 25%; /* overlay shrinks */
    background: var(--bs-warning); /* overlay color changes */
}

.services_item:hover .service-item_label {
    background: transparent; 
}
/* End Services area section */


/* Objectives section */
.objectives {
    padding: 80px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.images-col {
    flex: 1;
    display: flex;
    gap: 20px;
    position: relative;
}

.image-wrapper {
    overflow: hidden;
    transition: flex 1s ease, transform 1s ease;
}

.image-wrapper.right {
    position: absolute;
    right: 0;
}

.image-wrapper.right img {
    width: 100%;
}

.image-wrapper.left img {
    position: relative;
    left: -1.5em;
    top: -1.5em;
}

.image-wrapper img {
    object-fit: cover;
    object-position: top;
    transition: transform 1s ease;
}

.img_overlay {
    background: rgba(64, 0, 166, 0.3); 
    position: absolute;
    bottom: 0;
    left: 0; 
    width: 100%;
    height: 100%;
}

/* Purple rectangles */
.decor {
    background: var(--bs-purple);
    transition: all 1s ease;
}

.decor.top {
    width: 12rem;
    height: 4rem;
    position: relative;
    top: -1em;
}

.decor.bottom {
    width: 12rem;
    height: 4rem;
    position: relative;
    left: -10px;
}

.text-col {
    flex: 1;
    padding: 20px 40px;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
}

.subtitle {
    font-weight: 600;
    font-size: 22px;
    line-height: 36px;
    color: var(--bs-purple);
}



.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0 20px;
}
/* End objectives section */


/* Skills section */
.skills-title {
    color: #fff;
    background: var(--bs-purple);
}

.soft-skills_title h1,
.hard-skills_title h1,
.combined-skills_title h1 {
    font-weight: 600;
    color: var(--bs-purple);
}

.soft-skills_text p,
.hard-skills_text p, 
.combined-skills_text p {
    font-weight: 400;
    font-size: 1.3rem;
}

.soft-skills_content,
.hard-skills_content, 
.combined-skills_content {
    width: 60%;
}

.soft-skills_grid_item,
.hard-skills_grid_item {
    width: 225px;
    height: 175px;
    background: #fff;
    color: var(--bs-purple);
    margin-right: 15px;
    margin-bottom: 20px;
}

.combined-skills_grid_item {
    width: 335px;
    height: 175px;
    background: #fff;
    color: var(--bs-purple);
    margin-right: 30px;
    margin-bottom: 20px;
}

.soft-skills_grid_item.tag-2,
.soft-skills_grid_item.tag-4,
.hard-skills_grid_item.tag-2,
.hard-skills_grid_item.tag-4, 
.combined-skills_grid_item.tag-2, 
.combined-skills_grid_item.tag-3 {
    background: var(--bs-purple);
    color: #fff;
}

.soft-skills_grid_item.tag-6,
.hard-skills_grid_item.tag-6 {
    position: relative;
    overflow: hidden;      
}

.soft-skills_grid_item.tag-6 img, 
.hard-skills_grid_item.tag-6 img {
    display: block;
    width: 100%;            
    height: auto;           
    object-fit: cover;
    transform: scale(1.5);  /* zoom in 10% */
}

.soft-skills_image,
.hard-skills_image,
.combined-skills_image {
    position: relative;
    overflow: hidden;       
    display: inline-block;
}

.soft-skills_image img,
.hard-skills_image img,
.combined-skills_image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;  
}

.hard-skills_image img {
    transform: scale(1.1);
}

.soft-skills_image img:hover {
  transform: scale(1.2); 
}

.overlay {
  pointer-events: none;
}
/* End of skills section */

/* philosophy card section*/
.philosophy-title {
    color: #fff;
    position: absolute;
    top: -7rem;
}

.philosophy-title__tile {
    width: 45%;
}
/* end philosophy card */

/* testimonials section */
.testemonies-section__card {
    background: #EDEEEE;
    border-top: 10px solid var(--bs-purple);
    margin-right: 30px;
}

.testemonies-section__content {
  display: flex;
  gap: 20px;                
  overflow: hidden;         
  width: 100%;               
}

.testemonies-section__card {
  min-width: 400px;          
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
/* End testimonials section */

/* Impact section */
.impact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 20px;
    display: flex;
    align-items: center;
}

.impact-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #190040 0%, rgba(64, 0, 166, 0) 145.94%);
    z-index: 1;
}

.impact-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-section .content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.impact-section .content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.impact-section .content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.impact-section .content ul li {
    font-weight: bold;
    color: #ffc107; /* yellow for bullets */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.impact-section .content ul li span {
    margin-right: 10px;
}
/* End of impact section */


/* Responsive handling */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .collaboration .logos img {
        max-height: 18px;
    }

    .collaboration h2 {
        font-size: 18px;
    }

    .hero {
        height: 600px;
    }

    .hero-content {
        top: 290px;
    }

    .hero-content h1 {
        width: 75%;
    }

    .services_title .big-title {
        width: 100% !important;
    }

    .services {
        flex-direction: column;
    }

    .service-item_label {
        width: 100%;
    }

    .objectives-wrapper {
        flex-direction: column;
    }

    .images-col {
        width: 62%;
    }

    .services {
        gap: 60px;
        align-items: center;
    }

    .skills-title h1{
        font-size: 30px;
    }

    .soft-skills_grid,
    .hard-skills_grid,
    .combined-skills_grid {
        width: 100% !important;
    }
}

@media (max-width: 991px) {
    .images-col {
        width: 85%;
    }

    .skills-title h1 {
        font-size: 25px;
    }

    .philosophy-title__text {
        font-size: 8px;
    }

    .soft-skills_grid,
    .hard-skills_grid {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

@media (max-width: 1399px) {
    .skills-content_soft, 
    .skills-content_combined {
        flex-direction: column;
    }

    .skills-content_hard {
        flex-direction: column-reverse;
    }
    
    .soft-skills_content,
    .hard-skills_content,
    .combined-skills_content {
        width: 100%;
        align-items: center !important;
    }

    .combined-skills_grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; 
    }

    .combined-skills_grid_item {
        aspect-ratio: 4 / 3;
        width: 100%; 
    }  

    .combined-skills_grid_item h5 {
        font-size: 1rem;
    }

    .soft-skills_grid,
    .hard-skills_grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; 
    }

    .soft-skills_grid_item,
    .hard-skills_grid_item {
        aspect-ratio: 4 / 3;
        width: 100%; 
    }

    .combined-skills_grid {
        width: 100% !important;
    }

    .philosophy-title__tile h1 {
        font-size: 20px;
    }
}

@media (min-width: 1199px) and (max-width: 1399px) {
    .decor.top,
    .decor.bottom {
        width: 10rem;
    } 

    .soft-skills_grid,
    .hard-skills_grid {
        width: 70%;
    }
}

@media (min-width: 1199px) and (max-width: 1467px) {
    .collaboration .logos img {
        max-height: 25px;
    }
}

@media (max-width: 767px) {
    .skills-title h1 {
        font-size: 18px;
    }
}

@media (max-width: 755px) {
    .hero-content h1 {
        width: 100%;
    }
}

@media (max-width: 774px) {
    .collaboration h2 {
        font-size: 15px;
    }

    .collaboration .logos img {
        max-height: 13px;
    }

    .copyright-section {
        flex-direction: column-reverse;
        justify-content: center;
    }

    .copyright p {
        text-align: center;
    }

    .links {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .soft-skills_grid,
    .hard-skills_grid,
    .combined-skills_grid {
        grid-template-columns: repeat(1, 1fr) !important; 
        gap: 20px; 
    }

    .philosophy-title {
        left: 0;
        flex-direction: column;
    }

    .philosophy-title__tile {
        width: 100%;
    }
}

@media (max-width: 581px) {
    .collaboration .logos {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .hard-skills_content,
    .soft-skills_content {
        padding-left: 0 !important;
    }
}

@media (max-width: 566px) {
    .hero {
        height: 700px;
    }
}

@media (max-width: 545px) {
    .hero-btns {
        display: flex;
        flex-direction: column;
        padding: 0 30px;
    }
}

@media (max-width: 450px) {
    .skills-title h1 {
        font-size: 15px;
    }
}