.about-page {
    background-color: var(--light-background);
}

/* About Hero */

.about-hero {
    padding: 100px 1% 80px;
    text-align: center;
}

.about-hero h1 {
    position: relative;
    z-index: 2;
    margin-bottom: -80px;
    color: var(--dark-color);
    font-size: 68px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -3px;
}

.about-hero h1 .about-hero-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--white-color);
}

/* Hero h1 effect starts */

.about-hero-word {
    display: inline-block;
    opacity: 0;
    filter: blur(7px);
    transform: translateY(55px) rotateX(-55deg);
    transform-origin: bottom;
}

.about-hero h1.about-hero-title-visible .about-hero-word {
    animation: aboutHeroWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
    animation-delay: calc(0.15s + var(--word) * 0.12s);
}

@keyframes aboutHeroWordIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) rotateX(0);
    }
}

.water-filter-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.about-hero-outline {
    display: inline-block;
    overflow: visible;
    filter: url("#about-water-text");
}

@media (prefers-reduced-motion: reduce) {
    .about-hero-outline {
        filter: none;
    }
}

/* Hero h1 effect ends */

.about-hero-image {
    width: 100%;
    height: 570px;
    border-radius: 25px;
    background-image: url("images/about/hero-image.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

/* Hero image effect starts */

    position: relative;
    overflow: hidden;
}

.about-hero-image canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero image effect starts */

/* About overview */

.about-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: 90px;
    padding: 50px 7% 80px;
    position: relative;
    overflow: hidden;
}

.about-background-watermark {
    position: absolute;
    top: 20px;
    left: -130px;
    width: 560px;
    height: 450px;
    color: var(--white-color);
    fill: currentColor;
    pointer-events: none;

/* Overview content effect starts */

    opacity: 0;
    transform: translateX(-100px) scale(0.8);
    transition:
        opacity 0.9s ease,
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);

}

.about-overview-content,
.about-overview-image {
    position: relative;
    z-index: 1;
}

.about-page-label {
    margin-bottom: 25px;
    color: var(--dark-color);
    font-size: 15px;

    opacity: 0;
    transform: translateY(25px);
}

.about-overview-word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-45px);
}

.about-overview.overview-visible
    .about-background-watermark {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.about-overview.overview-visible
    .about-page-label {
    animation: overviewLabelIn 0.55s ease 0.2s forwards;
}

.about-overview.overview-visible
    .about-overview-word {
    animation: overviewWordIn 0.55s ease forwards;
    animation-delay: calc(0.25s + var(--word) * 0.07s);
}

@keyframes overviewLabelIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overviewWordIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-overview-content #about-tab-text {
    min-height: 120px;
}

/* Overview content effect ends */

.about-page-label span {
    color: #0093e9;
}

.about-overview-content h2 {
    color: var(--dark-color);
    font-size: 46px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -2px;
}

.about-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    margin: 50px 0 35px;
}

.about-overview-content .about-tabs,
.about-overview-content .about-tab-content > p {
    opacity: 1;
    transform: none;
    animation: none;
}

.about-page-tabs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    -webkit-text-stroke: 1px var(--dark-color);
    font: inherit;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
}

.about-page-tabs button.active,
.about-page-tabs button:hover {
    color: var(--dark-color);
    -webkit-text-stroke: 0;
}

#about-page-tab-text {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.7;
}

.about-overview-image {
    position: relative;
    overflow: visible;
    border-radius: 25px;
}

.about-overview-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-overview-image > img {
    border-radius: 25px;

/* about overview image and badge effect starts */

    opacity: 0;
    clip-path: inset(0 0 0 100% round 25px);
    transform: scale(1.1);
}

.about-page-badge {
    position: absolute;
    top: 50%;
    left: -75px;
    width: 150px;
    height: 150px;
    border: 1px solid var(--dark-color);
    border-radius: 50%;
    background-color: var(--white-color);
    transform: translateY(-50%);

    opacity: 0;
    transform: translateY(-50%) scale(0.3) rotate(-90deg);
}

.about-overview.overview-visible
    .about-overview-image > img {
    animation: overviewImageReveal 1s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.5s forwards;
}

.about-overview.overview-visible
    .about-page-badge {
    animation: overviewBadgeIn 0.8s
        cubic-bezier(0.34, 1.56, 0.64, 1)
        1s forwards;
}

@keyframes overviewImageReveal {
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0 round 25px);
        transform: scale(1);
    }
}

@keyframes overviewBadgeIn {
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0);
    }
}

/* About overview image and badge effect ends */

.about-page-badge .badge-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-page-badge .badge-ring text {
    fill: var(--dark-color);
    font-size: 7.5px;
    font-weight: 600;
}

.about-badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    color: #0093e9;
    transform: translate(-50%, -50%);
}

/* Company History */

.company-history {
    padding: 100px 7% 140px;
    background-color: var(--white-color);
}

.history-heading {
    margin-bottom: 90px;
    text-align: center;
}

.history-heading > p {
    margin-bottom: 25px;
    color: var(--dark-color);
    font-size: 16px;
}

.history-heading > p span,
.history-label {
    color: #0093e9;
}

.history-heading h2 {
    color: var(--dark-color);
    font-size: 50px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -2px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 25px;
    gap: 35px;
}

.history-card {
    min-width: 0;

/* History card effect, history-label, h3 and history-description starts */

    opacity: 0;
    transform: translateY(55px) scale(0.9);
    transform-origin: center;
    overflow: hidden;
    transition:
        opacity 0.7s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.company-history.history-visible .history-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.company-history.history-visible .history-card:nth-child(2) {
    transition-delay: 0.15s;
}

.company-history.history-visible .history-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Inner content reveal */

.history-label,
.history-card h3,
.history-description {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        color 0.3s ease;
}

.history-visible .history-label,
.history-visible .history-card h3,
.history-visible .history-description {
    opacity: 1;
    transform: translateY(0);
}

.history-visible .history-label {
    transition-delay: 0.1s;
}

.history-visible .history-card h3 {
    transition-delay: 0.15s;
}

.history-visible .history-description {
    transition-delay: 0.15s;
}

/* Hover effects */

.history-card img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.history-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: #0093e9;
    box-shadow:
        0 0 0 14px var(--white-color),
        0px 22px 50px 22px rgba(0, 147, 233, 0.14);
}

.history-card:hover img {
    transform: scale(1.07);
}

.history-card:hover .history-label {
    color: var(--dark-color);
}

.history-card:hover h3,
.history-card:hover .history-description {
    color: #0093e9;
}

/* History card effect, history-label, h3 and history-description ends */

.history-card img {
    display: block;
    width: 100%;
    height: 300px;
    margin-bottom: 35px;
    border-radius: 20px;
    object-fit: cover;
}

.history-label {
    margin-bottom: 15px;
    font-size: 15px;
}

.history-card h3 {
    margin-bottom: 35px;
    color: var(--dark-color);
    font-size: 50px;
    font-weight: 600;
}

.history-description {
    padding-top: 30px;
    border-top: 1px solid #dddddd;
    font-size: 16px;
    line-height: 1.7;
}

/* About Video */

.about-video {
    padding: 0 7% 80px;
    background-color: var(--white-color);
}

.about-video-banner {
    position: relative;
    overflow: hidden;
    border-radius: 25px;

    clip-path: inset(0 50% round 25px);
    transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-video.video-visible .about-video-banner {
    clip-path: inset(0 round 25px);
}

.about-video-banner > img {
    display: block;
    width: 100%;
    height: 620px;
    object-fit: cover;

    transform: scale(1.14);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-video.video-visible .about-video-banner > img {
    transform: scale(1);
}

.about-video-banner:hover > img {
    transform: scale(1.05);
}

.about-video-button {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--dark-color);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    
    --follow-x: 0px;
    --follow-y: 0px;
    --button-scale: 1;
    
    opacity: 0;
    transform:
        translate(
            var(--follow-x),
            calc(-50% + var(--follow-y))
        )
        scale(var(--button-scale));

    cursor: pointer;
    transition:
        opacity 0.6s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.about-video.video-visible .about-video-button {
    opacity: 1;
    transition-delay: 0.1s;
}

.about-video-button:hover {
    --button-scale: 1.08;
    background-color: #0093e9;
    color: var(--white-color);
    box-shadow: 0 15px 35px rgba(0, 147, 233, 0.3);
}

/* About Stats */

.about-statistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px 5% 100px;
    border-radius: 0 0 25px 25px;
    background-color: var(--white-color);
}

.about-stat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.about-stat strong {
    color: transparent;
    -webkit-text-stroke: 1px #0093e9;
    font-size: 130px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;

    transition:
        color 0.35s ease,
        -webkit-text-stroke-color 0.35s ease;
}

.about-stat span {
    position: absolute;
    color: var(--dark-color);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background-color: var(--white-color);

    transform: translateY(0);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease;
}

.about-stat:hover strong {
    color: #0093e9;
    -webkit-text-stroke-color: #0093e9;
}

.about-stat:hover span {
    transform: translateY(65px);
}

/* About page responsiveness */

@media (max-width: 1200px) {
    .about-hero h1 {
        font-size: 58px;
    }

    .about-overview {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
        gap: 55px;
        padding-inline: 5%;
    }

    .about-overview-content h2,
    .history-heading h2 {
        font-size: 42px;
    }

    .about-page-tabs {
        gap: 30px;
    }

    .history-card img {
        height: 250px;
    }

    .about-video-banner > img {
        height: 520px;
    }

    .about-stat strong {
        font-size: 105px;
    }
}

@media (max-width: 992px) {
    .about-hero {
        padding: 80px 3% 65px;
    }

    .about-hero h1 {
        margin-bottom: 18px;
        font-size: 50px;
        line-height: 1;
    }

    .about-hero h1 br {
        display: none;
    }

    .about-hero h1 .about-hero-outline {
        display: block;
        position: absolute;
        top: calc(100% + 20px);
        left: 50%;
        width: 100%;
        padding: 0;
        transform: translateX(-50%);
    }

    .about-hero-image {
        height: 470px;
    }

    .about-overview {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 60px 6% 80px;
    }

    .about-overview-content {
        max-width: 760px;
    }

    .about-overview-image img {
        height: 280px;
    }

    .about-page-badge {
        left: 22px;
        width: 130px;
        height: 130px;
    }

    .about-background-watermark {
        left: -170px;
        width: 500px;
        height: 400px;
    }

    .company-history {
        padding: 80px 5% 110px;
    }

    .history-heading {
        margin-bottom: 60px;
    }

    .history-grid {
        display: flex;
        gap: 28px;
        padding: 20px 6%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .history-grid::-webkit-scrollbar {
        display: none;
    }

    .history-card {
        flex: 0 0 62%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .about-video {
        padding: 0 5% 70px;
    }

    .about-video-banner > img {
        height: 460px;
    }

    .about-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 65px;
        padding-inline: 7%;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 65px 15px 50px;
    }

    .about-hero h1 {
        margin-bottom: 14px;
        font-size: clamp(38px, 10vw, 48px);
        line-height: 1;
        letter-spacing: -2px;
    }

    .about-hero h1 br {
        display: none;
    }

    .about-hero h1 .about-hero-outline {
        display: block;
        position: absolute;
        top: calc(100% + 16px);
        left: 50%;
        width: 100%;
        padding: 0;
        transform: translateX(-50%);
    }

    .about-hero-image {
        height: 390px;
        border-radius: 20px;
    }

    .about-overview {
        gap: 40px;
        padding: 50px 20px 70px;
    }

    .about-overview-content h2,
    .history-heading h2 {
        font-size: clamp(32px, 8vw, 40px);
        letter-spacing: -1.5px;
    }

    .about-page-tabs {
        gap: 20px;
        margin: 35px 0 25px;
    }

    .about-page-tabs button {
        font-size: 18px;
    }

    .about-overview-content #about-tab-text {
        min-height: 150px;
    }

    .about-overview-image img {
        height: 190px;
    }

    .about-page-badge {
        top: 50%;
        left: 15px;
        width: 110px;
        height: 110px;
    }

    .about-page-badge .badge-ring text {
        font-size: 7px;
    }

    .about-badge-icon {
        width: 34px;
        height: 34px;
    }

    .company-history {
        padding: 70px 15px 90px;
    }

    .history-grid {
        display: flex;
        gap: 22px;
        padding: 20px 8%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .history-grid::-webkit-scrollbar {
        display: none;
    }

    .history-card {
        flex: 0 0 84%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .history-card img {
        height: 280px;
    }

    .history-card h3 {
        margin-bottom: 25px;
        font-size: 44px;
    }

    .about-video {
        padding: 0 15px 60px;
    }

    .about-video-banner,
    .about-video-banner > img {
        border-radius: 20px;
    }

    .about-video-banner > img {
        height: 380px;
    }

    .about-video-button {
        right: 50%;
        width: 85px;
        height: 85px;
        font-size: 13px;
    }

    .about-statistics {
        row-gap: 55px;
        padding: 10px 20px 80px;
    }

    .about-stat strong {
        font-size: 90px;
    }

    .about-stat:hover span {
        transform: translateY(48px);
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        margin-bottom: 10px;
        font-size: 36px;
    }

    .about-hero h1 .about-hero-outline {
        top: calc(100% + 12px);
    }

    .about-hero-image {
        height: 320px;
    }

    .about-overview {
        padding-inline: 15px;
    }

    .about-page-tabs {
        gap: 14px 18px;
    }

    .about-page-tabs button {
        font-size: 16px;
    }

    .about-overview-content #about-tab-text {
        min-height: 190px;
    }

    .about-overview-image img {
        height: 150px;
    }

    .about-page-badge {
        left: 10px;
        width: 90px;
        height: 90px;
    }

    .about-badge-icon {
        width: 28px;
        height: 28px;
    }

    .history-grid {
        padding: 16px 7%;
    }

    .history-card {
        flex-basis: 88%;
    }

    .history-card img {
        height: 230px;
    }

    .about-video-banner > img {
        height: 310px;
    }

    .about-video-button {
        width: 72px;
        height: 72px;
        font-size: 11px;
    }

    .about-statistics {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }

    .about-stat strong {
        font-size: 100px;
    }
}

@media (hover: none), (pointer: coarse) {
    .history-card:hover {
        transform: translateY(0) scale(1);
        box-shadow: none;
    }

    .about-video-banner:hover > img {
        transform: scale(1);
    }
}
