@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 16px;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#main {
    height: 100%;
    width: 100%;
}

#hero {
    /* position: relative; */
    width: 100%;
    height: 100vh;
    margin-bottom: 4rem; /* Add some space between hero and next section */
}

.video-hero {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    padding: 0 0 4% 4%;
}

.video-overlay h1 {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
    max-width: 80%;
}

.cta-button {
    border: 1px solid #fff;
    border-radius: 50rem;
    background-color: transparent;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#about {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 9.375rem;
    background-color: #ffffff;
    z-index: 10;
    position: relative;
}

#about > #about-us-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#about > #about-us-text-content > h5 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
}

#about > #about-us-text-content > h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.15rem;
    margin-top: 2.5rem;
    color: #cecece;
    overflow: hidden;
}

.animate-words {
    display: inline-block;
    white-space: pre-wrap;
}

.animate-words {
    display: inline-block;
    white-space: pre-wrap;
    opacity: 1;
}

.animate-words span {
    display: inline-block;
    white-space: nowrap;
    color: #cecece;
    opacity: 0.5;
    will-change: opacity, color;
}

.animate-words.animate-in span {
    animation: fadeInWord 0.8s ease-out forwards;
    animation-delay: calc(0.07s * var(--word-index));
}

@keyframes fadeInWord {
    from {
        opacity: 0.5;
        color: #cecece;
    }
    to {
        opacity: 1;
        color: #000000;
    }
}

@media (max-width: 430px) {
    #about {
        height: fit-content;
        display: flex;
        justify-content: flex-start;
        margin-top: 5rem;
        padding: 0 1.8rem;
    }

    #about > #about-us-text-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
    }
    
    #about > #about-us-text-content > h5 {
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: -0.09rem;
        color: #000;
        border: 1px solid #a1a1a1;
        padding: 0.75rem 1.5rem;
        border-radius: 50rem;
    }
    
    #about > #about-us-text-content > h2 {
        text-align: left;
        font-size: 1.8rem;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: -0.1rem;
        margin-top: 2.5rem;
        color: #cecece;
        overflow: hidden;
    }
    
}

#benefits {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#benefits > img {
    flex: 1;
    object-fit: cover;
    height: 100%;
    max-width: 50%;
}

#benefit-text-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 3.75rem;
}

#benefit-text-content > h5 {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000000;
    padding: 0.8rem 1.5rem;
    border-radius: 50rem;
    border: 1px solid #b4b4b4;
    margin-bottom: 1.5rem;
}

#benefit-text-content > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    color: #000000;
}

#benefit-text-content > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1.8rem;
}

#benefit-text-content > button {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 500;
    background-color: #000;
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 50rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

#benefit-text-content > button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#benefit-text-content > button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#our-experience {
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 7.75rem 9.375rem;
    background-color: #ffffff;
    z-index: 10;
    position: relative;
    gap: 2rem;
}

#our-experience > #text > h5 {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
}

#our-experience > #text {
    flex: 1;
}

#our-experience > #text > h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.12rem;
    color: #000;
    margin-top: 2rem;
}

#our-experience > #metrics {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

#our-experience > #metrics > .metric-item > h5 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.12rem;
    color: #000;
}

#our-experience > #metrics > .metric-item > p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #8d8d8d;
    margin-top: 0.2rem;
}

#services {
    padding: 9.375rem;
    height: fit-content;
    width: 100%;
    background-color: #fafafa;
}

#services > #services-text {
    text-align: center;
}

#services > #services-text > h5 {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
}

#services > #services-text > h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.12rem;
    color: #000;
    margin-top: 2rem;
}

#service-cards {
    margin-top: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    min-height: 200px;
    width: 350px;
    padding: 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 
                0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.service-card > i {
    font-size: 2rem;
    font-weight: 200;
    color: #000;
    background-color: #f3f3f3;
    padding: 1rem;
    border-radius: 10%;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

/* Different pastel colors for each card icon on hover */
.service-card:nth-child(1):hover > i {
    background-color: #ffd6e0; /* Light pink */
}

.service-card:nth-child(2):hover > i {
    background-color: #d0f0fd; /* Light blue */
}

.service-card:nth-child(3):hover > i {
    background-color: #d4f8e8; /* Light mint */
}

.service-card:nth-child(4):hover > i {
    background-color: #fff2cc; /* Light yellow */
}

.service-card:nth-child(5):hover > i {
    background-color: #e6e6fa; /* Lavender */
}

.service-card:nth-child(6):hover > i {
    background-color: #ffecf1; /* Soft pink */
}

.service-card:nth-child(7):hover > i {
    background-color: #e0f7fa; /* Light cyan */
}

.service-card:nth-child(8):hover > i {
    background-color: #f3e5f5; /* Light purple */
}

.service-card:nth-child(9):hover > i {
    background-color: #e8f5e9; /* Light green */
}

.service-card > h5 {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.03rem;
    color: #000;
    margin: 0;
    word-wrap: break-word;
    max-width: 100%;
}

#projects {
    height: fit-content;
    width: 100%;
    padding: 12rem 9.375rem;
}

#projects-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#projects-text-content > h5 {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
}

#projects-text-content > h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.12rem;
    color: #000;
    margin-top: 2rem;
}

#projects-text-content > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1.8rem;
    text-align: center;
}

#projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6.5rem;
    padding-top: 6.25rem;
}

.project {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    margin: -2.5rem;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: -2.5rem;
    cursor: pointer;
}

.project > button {
    font-size: 1.2rem;
    font-weight: 600;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2.5rem;
    letter-spacing: -0.08rem;
    color: inherit;
}

.project > button > i {
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.project:hover > button {
    color: #FF4500; /* Orange Red color */
}

.project:hover > button > i {
    margin-left: 1rem;
}

.project > .project-details {
    margin-top: 2rem;
}

.project > .project-details > h4 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.06rem;
}

.project > .project-details > p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    margin-top: 1rem;
}

.project > .project-tag {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.project > .project-tag > p {
    padding: 0.5rem 1rem;
    border: 1px solid #adadad;
    border-radius: 50rem;
}

.project > .project-img {
    height: 25rem;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.project:hover .project-img {
    transform: none;
}

@media (max-width: 768px) {

    #projects {
        padding: 4rem 2rem 2rem 2rem;
    }

    #projects-text-content {
        flex-direction: column;
        gap: 0;
    }
    
    #projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project {
        margin-bottom: 2rem;
    }
    
    #projects > #projects-text-content > #heading {
        order: 1;
        align-items: flex-start;
        text-align: left;
    }
    
    #projects > #projects-text-content > #secondary-text {
        order: 2;
        margin-top: 2rem;
    }

    #projects > #projects-text-content > #heading > h4 {
        font-size: 1.75rem;
        letter-spacing: -0.1rem;
    }
    
    #projects > #projects-text-content > #heading > h2 {
        font-size: 3rem;
    }

    #projects > #projects-text-content > #secondary-text > p {
        font-size: 1.3rem;
        margin-top: 0.5rem;
    }

    #projects > #projects-text-content > #secondary-text {
        margin: 0;
    }

    .project > .project-tag > p {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .project > .project-img {
        height: 20rem;
    }
    
    .project > .project-details > p {
        font-size: 1.1rem;
    }
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3.75rem;
    z-index: 2;
}

.video-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: -1;
}

.video-overlay h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.video-overlay .cta-button {
    position: relative;
    z-index: 2;
}

@media (max-width: 430px) {

    .video-overlay {
        padding: 2rem;
    }
    .video-overlay h1 {
        font-size: 2.8rem;
        letter-spacing: -0.15rem;
    }

    .video-overlay .cta-button {
        margin-top: 1rem;
        padding: 1rem 2rem;
    }

    #benefits {
        flex-direction: column;
        height: fit-content;
    }

    #benefit-text-content {
        margin-top: 2.5rem;
        width: 100%;
        padding: 1.8rem;
    }

    #benefit-text-content > h2 {
        font-size: 2.8rem;
    }

    #benefit-text-content > p {
        font-size: 1.4rem;
    }

    #benefit-text-content > button {
        padding: 1.2rem 1.5rem;
    }

    #our-experience {
        margin-top: 5rem;
        padding: 4rem 1.8rem;
        flex-direction: column;
    }

    #our-experience > #metrics {
        justify-content: space-between;
    }

    #services {
        padding: 4rem 1.8rem;
    }

    #benefits > img {
	margin-top: 3.7rem;
    }

    #projects-text-content {
        align-items: flex-start;
    }

    #projects-text-content > p {
	text-align: left;
    }
}


@media (min-width: 1200px) and (max-width: 1799px) {

    #about > #about-us-text-content > h2 {
	font-size: 2.5rem;
    }

    #benefit-text-content > h2 {
	font-size: 3rem;
    }

    #benefit-text-content > p {
	font-size: 1.4rem;
    }

    #our-experience {
	padding; 7.75rem 7rem;
    }

    #our-experience > #text > h2 {
	font-size: 2.5rem;
    }

    #services {
	padding: 9.375rem 0rem;
    }

    #projects {
	padding: 12rem 5rem;
    }

    .project > .project-img {
	height: 15rem;
    }

    .project > .project-tag > p {
	font-size: 0.8rem;
    }

    .project > .project-details > h4 {
	font-size: 1.8rem;
    }

    #projects-gallery {
	gap: 4.5rem;
    }

}
