@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Schoolbell&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #0f172a;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

.container {
    width: 1170px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.hero {
    position: relative;
    width: 100%;
    height: 1114px;
    overflow: hidden;
    background-color: #08546c;
    background-image: url("images/hero-pattern.png");
    background-repeat: repeat;
    color: #ffffff;
}

.navbar {
    position: relative;
    z-index: 20;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.logo img {
    height: 35.62px;
    width: auto;
    display: block;
}

.logo span {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-links a {
    color: #a1b5ba;
    font-size: 14px;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-button {
    width: 140px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #145e76;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 964px;
}

.hero-text {
    position: absolute;
    top: 145px;
    left: 0;
    width: 600px;
    z-index: 10;
}

.hello {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin-bottom: 38px;
    border-radius: 30px;
    background: #094556;
    color: #ffffff;
    font-family: "Schoolbell", cursive;
    font-size: 20px;
}

.hero-title {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-description {
    margin-bottom: 38px;
    color: #849da4;
    font-size: 14px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hire-button {
    min-width: 125px;
    height: 55px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #ffa63a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.work-button {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.hero-image {
    position: absolute;
    top: -14px;
    right: 0;
    width: 599px;
    height: 730px;
    z-index: 5;
}

.hero-image img {
    width: 599px;
    height: 730px;
    object-fit: contain;
}

.statistics {
    position: relative;
    width: 100%;
    height: 400px;
    background: #ffffff;
}

.statistics-card {
    position: relative;
    z-index: 30;
    top: -160px;
    width: 1170px;
    max-width: calc(100% - 40px);
    height: 323px;
    margin: 0 auto;
    padding: 60px 70px 50px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.09);
}

.statistics-card h2 {
    margin-bottom: 65px;
    text-align: center;
    color: #08546c;
    font-size: 18px;
    font-weight: 600;
}

.statistics-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.stat-item strong {
    color: #08546c;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
}

.stat-item span {
    color: #08546c;
    font-size: 12px;
}

.services {
    padding: 30px 0 150px;
    background: #ffffff;
}

.services-heading {
    margin-bottom: 75px;
    text-align: center;
}

.services-label {
    display: inline-block;
    margin-bottom: 28px;
    color: #08546c;
    font-family: "Schoolbell", cursive;
    font-weight: 400;
    font-size: 24px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.services-heading h2 {
    color: #08546c;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
}

.services-grid {
    width: 1170px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    height: 250px;
    padding: 32px 26px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
}

.service-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #f1f7f8;
}

.service-icon img {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
}

.service-card h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    max-width: 220px;
    color: #696969;
    font-size: 12px;
    line-height: 1.65;
}

.service-card.active {
    background: #08546c;
}

.service-card.active .service-icon {
    background: transparent;
}

.service-card.active .service-icon img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.service-card.active h3 {
    color: #ffffff;
}

.service-card.active p {
    color: #b2c6cb;
}

.portfolio {
    padding: 0 0 160px;
    background: #ffffff;
}

.portfolio-heading {
    margin-bottom: 70px;
    text-align: center;
}

.portfolio-heading h2 {
    margin-bottom: 18px;
    color: #08546c;
    font-size: 42px;
    font-weight: 600;
}

.portfolio-heading p {
    width: 650px;
    max-width: 100%;
    margin: 0 auto;
    color: #757575;
    font-size: 13px;
    line-height: 1.65;
}

.portfolio-grid {
    width: 1170px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 110px;
    row-gap: 80px;
}

.portfolio-item {
    min-width: 0;
}

.portfolio-item img {
    width: 100%;
    height: 386px;
    margin-bottom: 24px;
    object-fit: cover;
}

.portfolio-item h3 {
    margin-bottom: 12px;
    color: #08546c;
    font-size: 24px;
    font-weight: 600;
}

.portfolio-item p {
    margin-bottom: 18px;
    color: #757575;
    font-size: 12px;
    line-height: 1.6;
}

.portfolio-item a {
    color: #08546c;
    font-size: 14px;
    font-weight: 500;
}

.portfolio-item a span {
    margin-left: 12px;
    font-size: 20px;
}

.portfolio-item .orange-link {
    color: #ffa800;
}

.testimonial {
    width: 100%;
    overflow: hidden;
    background-color: #08546c;
    background-image: url("images/hero-pattern.png");
    background-repeat: repeat;
}

.testimonial-stage {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1920 / 730;
    container-type: inline-size;
}

.testimonial-visual {
    position: absolute;
    left: 13.75%;
    top: 13.9726%;
    width: 34.5833%;
    height: 72.0548%;
}

.testimonial-arch {
    position: absolute;
    left: 15.9639%;
    bottom: 0;
    width: 61.3464%;
    height: 95.4373%;
    object-fit: fill;
    z-index: 1;
}

.testimonial-person {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
    z-index: 2;
}

.testimonial-content {
    position: absolute;
    left: 50%;
    top: 26%;
    width: 25.9%;
    color: #ffffff;
}

.quote {
    margin-bottom: 1.35cqw;
}

.quote img {
    width: 2.605cqw;
    height: auto;
    display: block;
}

.testimonial-text {
    margin-bottom: 1.05cqw;
    color: #ffffff;
    font-size: 0.833cqw;
    font-weight: 400;
    line-height: 1.85;
}

.testimonial-author {
    color: #a7c1ca;
    font-size: 0.833cqw;
    font-weight: 400;
}

.footer {
    width: 100%;
    height: 344px;
    background: #ffffff;
}

.footer-container {
    width: 1162px;
    max-width: calc(100% - 60px);
    height: 100%;
    margin: 0 auto;
    padding-top: 65px;
    display: grid;
    grid-template-columns: 344px 73px 113px 208px;
    justify-content: space-between;
}

.footer-about {
    width: 344px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: #08546c;
    font-size: 26px;
    font-weight: 700;
}

.footer-logo-mark {
    height: 35.62px;
    width: auto;
    flex: none;
    display: block;
}

.footer-about > p {
    width: 344px;
    margin-bottom: 28px;
    color: #757575;
    font-size: 14px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
}

.social-links a img {
    display: block;
    height: auto;
    object-fit: contain;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: #08546c;
    font-size: 18px;
    font-weight: 500;
}

.footer-column a {
    margin-bottom: 12px;
    color: #787878;
    font-size: 14px;
}

.footer-contact {
    width: 208px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: #787878;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .container {
        width: calc(100% - 60px);
        max-width: none;
    }
    .hero-text {
        width: 50%;
    }
    .hero-title {
        font-size: 54px;
    }
    .hero-image {
        right: -40px;
    }
    .statistics-card {
        width: calc(100% - 100px);
    }
}

@media (max-width: 1000px) {
    .testimonial {
        padding: 80px 0;
    }
    .testimonial-stage {
        max-width: none;
        aspect-ratio: auto;
        container-type: normal;
        width: calc(100% - 60px);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 55px;
    }
    .testimonial-visual {
        position: relative;
        left: auto;
        top: auto;
        width: 440px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 664 / 526;
    }
    .testimonial-content {
        position: relative;
        left: auto;
        top: auto;
        width: 560px;
        max-width: 100%;
    }
    .quote {
        margin-bottom: 14px;
        font-size: 56px;
    }
    .testimonial-text {
        margin-bottom: 24px;
        font-size: 16px;
    }
    .testimonial-author {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 900px;
    }
    .navbar {
        height: 120px;
    }
    .hero-content {
        height: 780px;
    }
    .hero-text {
        top: 100px;
    }
    .hero-title {
        font-size: 46px;
    }
    .hero-image {
        width: 420px;
        height: auto;
        top: 100px;
        right: -30px;
    }
    .hero-image img {
        width: 100%;
        height: auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        column-gap: 40px;
    }
    .footer {
        height: auto;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        padding: 60px 0;
    }
}

@media (max-width: 750px) {
    .container {
        width: calc(100% - 32px);
    }
    .navbar {
        height: 85px;
    }
    .nav-links {
        display: none;
    }
    .contact-button {
        width: 95px;
        height: 42px;
    }
    .hero {
        height: auto;
    }
    .hero-content {
        height: auto;
        padding-top: 60px;
    }
    .hero-text {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero-description br {
        display: none;
    }
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 360px;
        max-width: 100%;
        height: auto;
        margin: 50px auto 0;
    }
    .hero-image img {
        width: 100%;
        height: auto;
    }
    .statistics {
        height: auto;
    }
    .statistics-card {
        top: 0;
        width: calc(100% - 32px);
        height: auto;
        margin: 30px auto 80px;
        padding: 40px 20px;
    }
    .statistics-card h2 {
        margin-bottom: 40px;
    }
    .statistics-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    .stat-item strong {
        font-size: 34px;
    }
    .services {
        padding-top: 20px;
    }
    .services-heading h2 {
        font-size: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        height: auto;
        min-height: 220px;
    }
    .portfolio-heading h2 {
        font-size: 32px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .portfolio-item img {
        height: auto;
    }
    .testimonial {
        padding: 60px 0;
    }
    .testimonial-stage {
        width: calc(100% - 32px);
    }
    .testimonial-visual {
        width: 100%;
    }
    .testimonial-text {
        font-size: 14px;
    }
    .footer-container {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
    }
    .footer-about,
    .footer-about > p {
        width: 100%;
    }
}
