/* color palette  */
:root {
    --color-one: #ffffff ;
    --color-two: #000000 ;
    --color-three: #b88767;
    --color-four: #fcf7f4;
    --color-five: #a89b87;
    --font-one: "Outfit", sans-serif;
    --font-two: "Inter", sans-serif;
}


/* common  */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}
html {
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
}
li {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-one);
    line-height: 1.5;
}
p, li, a {
    font-family: var(--font-two);
    line-height: 1.5;
}

.df {
    display: flex;
}
.aic {
    align-items: center;
}
.jcc {
    justify-content: center;
}
.gap50 {
    gap: 50px;
}
.w50 {
    width: 50%;
}
.img-cd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-1 {
    display: inline-block;
    margin-top: 20px;
}
.btn-1 a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--color-five);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
section {
    padding: 80px 0;
    overflow: hidden;
}
.title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.line {
    height: 1px;
    width: 60px;
    background: var(--color-three);
}
.title-line h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-three);
    font-weight: 400;
}
.section-title h2 {
    font-size: 32px;
    color: var(--color-two);
    padding: 10px 0 30px 0;
}


/* navigation  */
nav {
    background: rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
}
nav.scrolled {
    background-color: var(--color-three);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
#logo a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#logo {
    max-width: 250px;
}
#logo a {
    display: flex;
    color: var(--color-one);
    font-size: 20px;
}
#menu {
    display: flex;
    gap: 30px;
}
#menu a {
    color: var(--color-one);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding: 0 3px;
}
nav.scrolled #menu a {
    color: var(--color-one);
}
#menu a:hover {
    opacity: .5;
}
#menuToggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--color-one);
}

@media only screen and (min-width: 768px) {

    #menu {
        display: flex !important;
    }
}

@media only screen and (max-width: 767px) {
    nav {
        padding-top: 5px;
    }
    #menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: var(--color-three);
        z-index: 1;
        height: 100vh;
        padding-top: 10px;
    }
    #menu a {
        padding: 10px 30px;
    }
    #menuToggle {
        display: block;
    }
    #menuToggle.open {
        display: none;
    }
    #menuToggle.closed {
        display: block;
    }
    #menu a.active {
        border-bottom: none;
        color: var(--color-three);
    }
}


/* hero-section  */
.hero-section {
    background-image: linear-gradient(180deg, rgba(50, 129, 204, 0) 25%, rgba(0, 0, 0, 0.5) 80%),
    url(../img/hero-img3.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hero-content h1 {
    font-size: 45px;
    color: var(--color-one);
}
.hero-content p {
    font-size: 18px;
    color: var(--color-one);
    width: 50%;
}


/* about  */
.about-section {
    padding-bottom: 0;
}
.about-right {
    position: relative;
    height: 100%;
}
.about-img1 {
    padding-right: 20%;
}
.about-img1 img {
    max-height: 580px;
}
.about-img2 {
    position: absolute;
    bottom: -80px;
    right: 0;
}
.about-img2 img {
    max-height: 450px;
    border: 8px solid var(--color-one);
}


/* milestone  */
.milestone-section {
    background-image: url(../img/milestone-bg4.avif);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -4px;
}
.milestone-wrapper{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.outlined-number {
    font-size: 120px; /* Adjust the size as needed */
    color: transparent;
    -webkit-text-stroke: 1px var(--color-five); /* Outline width and color */
}
.com-number {
    gap: 10px;
    margin-left: -50px;
}
.com-number h3 {
    font-size: 75px;
    color: var(--color-two);
}
.com-number p {
    text-transform: uppercase;
    color: var(--color-two);
}


/* services  */
.service-section .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.service-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.service-card {
    position: relative;
    padding: 25px;
    background-color: black;
    border: 1px solid #ddd;
    border-bottom: 5px solid var(--color-three);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    cursor: pointer;
}
.service-card h2 {
    font-size: 17px;
}
.service-card .content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}
.hover-bg {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1;
    transform: translateY(100%);
}
.service-card:hover {
    color: white;
}
.service-img i {
    font-size: 20px;
    color: var(--color-three);
}
.service-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fae2d2;
}
.read-more-btn {
    color: var(--color-two);
    display: flex;
    align-items: center;
    gap: 5px;
}
.read-more-btn span {
    height: 1px;
    width: 30px;
    background: var(--color-two);
}
.service-card:hover a {
    color: var(--color-one);
}
.service-card a:hover {
    color: var(--color-three);
}
.service-card:hover a span {
    background: var(--color-one);
}



/* portfolio  */
.portfolio-card {
    position: relative;
    height: 400px;
}
.portfolio-img {
    height: 400px;
}
.project-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    padding: 20px;
    background: var(--color-four);
    width: 70%;
    margin: 0 auto;
    display: none;
}
.project-name h2 {
    text-align: center;
    color: var(--color-two);
    font-size: 24px;
}
.portfolio-card:hover .project-name {
    display: block;
}
.portfolio-slider .splide__pagination {
    bottom: -2.5em;
}
.portfolio-slider .splide__pagination__page {
    background: var(--color-three);
}
.portfolio-slider .splide__pagination__page.is-active {
    width: 16px;
    border-radius: 5px;
}


/* team  */
.team-section {
    background: var(--color-four);
}
.team-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.team-card {
    position: relative;
    height: 350px;
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: width 0.3s ease-in-out;
}
.team-img {
    height: 350px;
}
.team-name {
    position: absolute;
    left: 15px;
    bottom: 15px;
    z-index: 2;
    opacity: 0;
}
.team-social {
    position: absolute;
    left: 15px;
    bottom: 75px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 210;
    opacity: 0;
}
.team-social i {
    color: var(--color-one);
}
.team-social a i:hover {
    color: var(--color-three);
}
.team-name h4 {
    color: var(--color-three);
    text-transform: uppercase;
    font-size: 12px;
    padding-bottom: 5px;
}
.team-name h2 {
    color: var(--color-one);
    font-size: 18px;
    font-weight: 500;
}
.team-card:hover .team-name {
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}
.team-card:hover .team-social {
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}


/* footer  */
footer {
    background: var(--color-three);
    padding: 60px 0;
}
.footer-content-top, .footer-content-bottom {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}
.footer-logo a {
    font-size: 30px;
    font-weight: 600;
}
.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}
.footer-social i:hover {
    opacity: .5;
    transition: all 0.2s linear;
}
.footer-social i {
    color: var(--color-one);
    font-size: 25px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer-left, .footer-right {
    display: flex;
    gap: 25px;
}
footer a {
    color: var(--color-one);
}
footer a:hover {
    opacity: .5;
    transition: all 0.2s linear;
}


/* copyright  */
.copyright-section {
    background: var(--color-three); 
    padding: 10px 0;
}
.copyright-section .container {
    border-top: 1px solid var(--color-four);
}
.copyright p {
    padding: 20px 0;
    text-align: center;
    color: var(--color-one);
    font-size: 14px;
}
.ft-site-name {
    color: var(--color-one);
}



@media screen and (max-width:767px) {
    
    .container {
        padding: 0 15px;
    }
    .w50 {
        width: 100%;
    }
    section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 30px;
    }

    /* hero  */
    .hero-section {
        height: 100%;
        padding: 170px 0 100px 0;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content p {
        width: 80%;
    }

    /* about  */
    .about-section {
        padding-bottom: 20px;
    }
    .about-content {
        flex-direction: column;
    }
    .about-img2 img {
        max-height: 350px;
    }

    /* milestone  */
    .milestone-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .milestone-card {
        justify-content: center;
    }

    /* service  */
    .service-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    /* team  */
    .team-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    /* footer  */
    .footer-content-top {
        flex-direction: column;
    }
    .footer-left {
        flex-wrap: wrap;
    }
}


@media screen and (max-width:991px) and (min-width:768px) {
    
    /* milestone  */
    .milestone-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    /* service  */
    .service-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    /* team  */
    .team-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}