body h1,h2,h3,h4,h5,h6{
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

body p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #FAFCF2;
}

main {
    background-color: #162023;
}

section [class^="container"] {
    padding: 3rem 3rem;
}

@media screen and (min-width: 1024px) {
     nav [class^="container"] {
        padding: 0 3rem;
    } 
}

/* section:not(:first-of-type) {
    text-align: center;
} */

section:nth-child(2n){
    background: linear-gradient(-45deg, #4D877B, #2A5957, #162023);
}

/*buttons*/

.btn {
    background-color: #FAFCF2;
    color: #0e1213;
    font-weight: bold;
    opacity: 0.9;
    transition: all 1.5s ease-in-out;
}

.btn-outline-dark:hover {
    color: #FAFCF2;
    background-color: #0e1213;
    border-color: #0e1213;
   
}

/*Navbar*/
.navbar {
    background-color: #162023;
    color: #FAFCF2;
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
}


.navbar-brand {
    opacity: 0.8;
    font-size: 1.5rem;
}

.navbar-nav .nav-link{
    color: #FAFCF2;
    font-size: 1.1rem;
}

.navbar-toggler {
    color: #FAFCF2;
}

@media screen and (min-width: 1024px) {
    .navbar-nav .nav-item{
        padding: 0 1rem;
    }
    .navbar-brand {
        font-size: 1.8rem;
    }
    
}


/*Hero section*/
.hero {
    background-image: url("https://images.unsplash.com/photo-1702431816026-11a133899507?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    clip-path: polygon(100% 90%, 50% 100%, 0% 90%, 0% 0%, 100% 0%);
    background-size: cover;
    background-position: center;
    color: #FAFCF2;
    text-align: center;
    height: 600px;
    padding: 100px 0 0 0;
    margin-bottom: 20px;
}

.hero-title{
    background: linear-gradient(-45deg, #4D877B, #2A5957, #162023);
    opacity: 0.8;
    padding: 1.2rem;
    border-radius: 10px;
    max-width: 90%;
    flex: auto;
    animation: fadeInHero 5s;
}



.hero-title h1 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 3rem;
}

.hero-title p {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.2rem;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

@media screen and (max-width: 768px) {
    section.hero {
        text-align: center;
    }
    section.hero img {
        width: 70%;
    }
}

@media screen and (min-width:360px) {
    section.hero .hero-title h1 {
        font-size: 2.8rem;
    }
}

@media screen and (min-width:620px) {
    section.hero .hero-title {
        max-width: 80%;
    }
    section.hero .hero-title h1 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width:1024px) {
    section.hero .hero-title {
        max-width: 60%;
    }
}


/*About section*/
.about {
    text-align: left;
    overflow-x: hidden;
   }



.about .container-lg {
    padding: 2rem 3rem;
  
}


.about-title {
    color: #FAFCF2;
    font-size: 2.5rem;
    opacity: 0.85;
    margin-bottom: 10px;

}

.about-text {
    opacity: 0;
    transform: translateX(300px);
    
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
    color: #FAFCF2;
}

.about-text.show {
    animation: fly-in-right 5s ease-out forwards;
}

@keyframes fly-in-right {
    0% {
        opacity: 0;
        transform: translateX(300px);
    }

    70% {
        opacity: 1;
        transform: translateX(-15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


	
.about-icon {
 align-self: start;
}

@media screen and (min-width:768px) {
    section.about .container {
        width: 60%;
    }
}

.quote-btn {
    opacity: 0;
    transform: translateY(20px);
}

.quote-btn.show {
    animation: fade-up 2s ease-out forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media screen and (max-width: 767px) {
    .about-text {
        transform: translateX(80px);
    }
}

/*Services section*/
.services-grid > [class*="col-"] {
    display: flex;
    flex: 1 1 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-grid > [class*="col-"].show {
    opacity: 1;
    transform: translateY(0);
}

.row.services-grid {
    justify-content: center;
}

.services-grid > [class*="col-"]:nth-child(1) { transition-delay: 0.1s; }
.services-grid > [class*="col-"]:nth-child(2) { transition-delay: 0.25s; }
.services-grid > [class*="col-"]:nth-child(3) { transition-delay: 0.4s; }
.services-grid > [class*="col-"]:nth-child(4) { transition-delay: 0.55s; }

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 10px;
    padding-left: 10px;
}

.services-title {
    opacity: 0;
    color: #FAFCF2;
    font-size: 2.5rem;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-title.show {
    opacity: 0.85;
    transform: translateY(0);
}

.service-card {
    width: 100%;
    height: 100%;
    min-height: 460px;
    position: relative;
    background: rgba(77, 135, 123, 0.16);
    border: 1px solid rgba(250, 252, 242, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 18px;
    color: #FAFCF2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s ease, box-shadow 0.8s ease, border-color 0.8s ease;
}

section.services .card-body {
    padding: 0 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


section.services .service-card i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    margin: 1rem auto 1rem;
    font-size: 3.2rem;
    color: #FAFCF2;
    background: rgba(77, 135, 123, 0.22);
    border: 2px solid rgba(250, 252, 242, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(77, 135, 123, 0.25);
    animation: iconFloatPulse 3s ease-in-out infinite;
}

@keyframes iconFloatPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 12px rgba(77, 135, 123, 0.18);
    }

    50% {
        transform: translateY(-4px) scale(1);
        box-shadow:
            0 0 12px rgba(77, 135, 123, 0.24),
            0 0 20px rgba(77, 135, 123, 0.18);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 12px rgba(77, 135, 123, 0.18);
    }
}

section.services .card-title {
    text-align: center;
    height: 50px;
    align-content: center;
}

section.services .card-text {
    background: rgba(250, 252, 242, 0.92);
    color: #162023;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    text-align: center;
    width: 100%;
    display: block;
    word-wrap: normal;
}

@media screen and (min-width: 980px) {
    .service-card {
        min-height: 520px;
    }
}


/*Clients section*/
section.clients {
    position: relative;
    overflow: hidden;
}

section.clients h2 {
    color: #FAFCF2;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-wrapper {
    position: relative;
}

.projects-slider {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.projects-track {
    display: flex;
    gap: 20px;
    transition: transform 0.7s ease;
    will-change: transform;
}

.project-card {
    flex: 0 0 calc(25% - 15px);
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card a {
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(250, 252, 242, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 1;
}

.project-card:hover img {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    opacity: 1;
}

.project-card h5 {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #FAFCF2;
    margin: 0 0 1rem 0;
    text-align: center;
    letter-spacing: 0.2px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card h5:hover {
    opacity: 0.9;
}

.project-card p {
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    background-color: #162023;
    padding: 10px;
    line-height: 1.6;
    color: #FAFCF2;
    margin-bottom: 0;
    border-radius: 10px;
    text-align: center;
    align-content: center;
    opacity: 0.7;
    height: 100px;
}

.project-card p:hover {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.8;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #FAFCF2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn.prev {
    left: -10px;
}

.slider-btn.next {
    right: -10px;
}

@media screen and (max-width: 1199px) {
    .project-card {
        flex: 0 0 calc(33.333% - 14px);
    }

    .project-card img {
        height: 210px;
    }
}

@media screen and (max-width: 767px) {
    .projects-slider {
        width: 100%;
    }

    .project-card {
        flex: 0 0 100%;
    }

    .project-card img {
        height: 220px;
    }

    .project-card h5 {
        font-size: 1.4rem;
    }

    .project-card p {
        font-size: 0.95rem;
    }

    .slider-btn {
        top: 32%;
        width: 38px;
        height: 38px;
    }

    .slider-btn.prev {
        left: -6px;
    }

    .slider-btn.next {
        right: -6px;
    }
}

/*clients-reveal*/
.clients-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

.clients-reveal.show {
    opacity: 0.85;
    transform: translateY(0);
}

.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.25s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.modal {
    overflow: visible;
}

.project-modal-trigger {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.project-modal-trigger img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(250, 252, 242, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-modal-trigger:hover img {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
/* .modal-backdrop {
    position: fixed;
    height: 100%;
    width: 100%; */
    

/*contact*/
.email {
    margin-bottom: 10px;
    text-wrap: wrap;
}

.contact-title {
    opacity: 0;
    transform: translateY(30px);
    color: #FAFCF2;
    font-size: 2.5rem;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-title.show {
    opacity: 0.9;
    transform: translateY(0);
}

@media screen and (max-width: 767px) {
    .email {
        font-size: 0.9rem;
        padding: 10px 16px;
        width: auto;
        display: inline-block;
    }
}

/* tech stack */
.tech-stack {
    background-color: #162023;
    color: #FAFCF2;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-stack-title {
    opacity: 0;
    transform: translateY(30px);
    color: #FAFCF2;
    font-size: 2.5rem;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tech-stack-title.show {
    opacity: 0.9;
    transform: translateY(0);
}

.tech-stack .card {
    align-items: center;
    background-color: transparent;
    margin: 6px;
    padding: 0.5rem;
    border-radius: 10px;
    border: none;
    text-align: center;
}

.tech-stack .card-body {
    padding:1rem;
}

.tech-stack .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(250, 252, 242, 0.2),
        transparent
    );

    transform: skewX(-20deg);
    pointer-events: none;
}

.tech-stack .card.shimmer::after {
    animation: shimmerSweep 1s ease forwards;
}

@keyframes shimmerSweep {
    from {
        left: -120%;
    }
    to {
        left: 140%;
    }
}

.tech-stack p {
    background-color: #162023;
    color: #FAFCF2;
    font-weight: 500;
    padding: 10px;
    border: 1px #FAFCF2 solid;
    border-radius: 10px;
}

.tech-icons svg {
    height: 40px;
    margin-bottom: 10px;
    margin: 5px;
}

/* footer section */

section footer {
    background-color: #162023;
    color: #FAFCF2;
    font-size: 0.8rem;
    padding-bottom: 20px;
    text-align: center;
}

section footer p{
    padding: 20px;
    margin-bottom: 0;
}

section footer .small {
    padding: 0;
    text-align: center;
}

.small a{
    text-decoration: none;
    color: #FAFCF2;
}



