@font-face {
    font-family: 'Dongle';
    src: url('../fonts/Dongle-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Dongle';
    src: url('../fonts/Dongle-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Dongle';
    src: url('../fonts/Dongle-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Dongle', sans-serif;
    background-color: #f4f4f4;
    height: 100vh;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F9C938, #F5854F);
    border: 0.5px solid #333;
    border-radius: 15px;
}

::-webkit-scrollbar-track {
    background-color: #333;
}


header {
    background: linear-gradient(90deg, #e86f52, #e8965e);
    color: #fff;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: 'Dongle', sans-serif;
    padding: 0 75px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999999;
}

header nav {
    width: fit-content;
    display: flex;
    gap: 40px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    white-space: nowrap;
}

header nav a:hover {
    text-decoration: underline;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    width: 100%;
}

section {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

#main-section {
    background: url(../bg/homepage.jpg) no-repeat center;
    background-size: cover;
    height: 200%;
}

.main-section--left,
.main-section--right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-section--right img {
    width: 100%;
    pointer-events: none;
    user-select: none;
    object-fit: cover;
    animation: right-slide-in 2s ease-out forwards;
}

.main-section--left-content {
    max-width: 414px;
}

.main-section--left-content-title {
    font-size: 80px;
    font-weight: normal;
    display: block;
    color: #fff;
    line-height: 50px;
    user-select: none;
    pointer-events: none;
    text-transform: uppercase;
}

.main-section--left-content-slogan {
    font-size: 36px;
    font-weight: 300;
    display: block;
    color: #fff;
    line-height: 28px;
    margin-top: 5px;
    user-select: none;
    pointer-events: none;
}

.main-section--left-content a {
    padding: 10px 19px;
    background-color: #FFFFFF;
    border-radius: 27px;
    text-decoration: none;
    display: block;
    width: 175px;
    margin-top: 19px;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(to bottom, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 28px;
    font-size: 30px;
    font-family: 'Dongle', sans-serif !important;
}

.main-section--part-1,
.main-section--part-2 {
    width: 100%;
    height: 50%;
    display: flex;
}

.main-section--part-2 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#luyen-nghe {
    text-decoration: none;
    background-color: #fff;
    height: 89px;
    width: 262px;
    border-radius: 89px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#phat-trien-ngon-ngu {
    text-decoration: none;
    height: 89px;
    width: 262px;
    border-radius: 89px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #e9c069, #E76F51);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(255, 100, 50, 0.5);
    transition: all 0.3s ease;
    margin-top: 160px;
}

#phat-trien-ngon-ngu:hover {
    box-shadow: 0px 0px 20px rgba(255, 100, 50, 0.8);
}

.page-2-container {
    background: url(../bg/bg-page2.svg) no-repeat center;
    background-size: cover;
    height: calc(100% - 80px);
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
}

.space-div-80px {
    height: 80px;
    width: 100%;
    display: block;
    position: relative;
}

#page-2-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    cursor: default;
    animation: left-slide-in 2s ease-out forwards;
}

#page-2-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.page-2-item-container {
    width: fit-content;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.page-2-right-item {
    width: 195px;
    height: 126px;
    border-radius: 40px;
    font-size: 35px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 0 21px;
    cursor: pointer;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

#page-2-right-item-1 {
    border-bottom-right-radius: 0;
}

#page-2-right-item-2 {
    border-bottom-left-radius: 0;
}

#page-2-right-item-3 {
    border-top-right-radius: 0;
}

#page-2-right-item-4 {
    border-top-left-radius: 0;
}

.page-2-right-item:hover {
    background: linear-gradient(to bottom, #E8965D, #E76F51);
}

.page-2-right-item:hover>.gradient-text {
    background: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #fff;
}

@keyframes right-slide-in {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes left-slide-in {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1000px) {
    .main-section--right {
        display: none;
    }

    .main-section--left {
        flex: 1;
    }

    .main-section--left-content {
        width: 100%;
        padding: 20px;
    }

    .main-section--left-content-title {
        font-size: 60px;
    }

    .main-section--left-content-slogan {
        font-size: 30px;
    }

}

@media (min-width: 1919px) {
    #phat-trien-ngon-ngu {
        margin-top: 270px;
    }
}

@media (max-width: 1365px) {
    header {
        padding: 0 20px;
        height: 50px;
    }

    #nav-menu.hidden {
        display: none;
    }

    #nav-menu {
        flex-direction: column;
        background: linear-gradient(90deg, #e86f52, #e8965e);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 20px;
    }

    header nav {
        gap: 20px;
    }

    #nav-toggle {
        display: block;
    }
    header nav a {
        font-size: 25px;
        line-height: 25px;
    }
    .space-div-80px {
        height: 50px;
    }
    .page-2-container {
        height: calc(100% - 50px);
    }
}

@media (max-width: 767px) {
    #page-2-left {
        display: none;
    }
    .page-2-container {
        display: flex;
        grid-template-columns: unset;
        justify-content: center;
        align-items: center;
    }
    .page-2-right-item {
        width: 140px;
        height: 80px;
        border-radius: 15px;
    }
    .gradient-text {
        font-size: 23px;
    }
}