html {
    scroll-behavior: smooth;
}

body {
    margin: auto;
    max-width: 1200px;
    padding: 50px;
    font-family: "Host Grotesk", sans-serif;
    color: #134d8c;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: flex-end;
    gap: 20px;
}

nav a {
    color: #134d8c;
    font-weight: 400;
    text-decoration: none;
    font-size: 18px;
}

header {
    align-items: center;
    display: flex;
    height: 60vh;
    justify-content: center;
    padding: 10vh 0 10vh;
    text-align: right;
}

.header-text {

    font-style: normal;
    color: #134d8c;
    display: flex;
    flex-direction: column;
    /* Ensure items are stacked vertically */
    gap: 20px;
    /* Add a gap between flex items */
}

.header-text h1 {
    font-family: "Trirong", serif;
    font-weight: 900;
    font-size: 70px;
    line-height: 70px;
}

.header-text h2 {
    font-family: "Trirong", serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 25px;
}

/*Hover underline animation*/
a {
    display: inline-block;
    position: relative;
}

.animated-link {
    display: inline-block;
    position: relative;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #134d8c;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
}

.animated-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a:hover::after {
    transform-origin: bottom left;
}
/*Hover underline animation end*/

a {
    color: #134d8c;
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    width: fit-content;
}

h3 {
    font-family: "Trirong", serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 22px;
    transition: color 0.3s ease;
}

/* Title link hover color */
h3:hover {
  color: #328cee;
}


p {
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
}


#main {
    display: flex;
    flex-direction: column;
    /* Ensure items are stacked vertically */
    gap: 40px;
    /* Add a gap between flex items */
    align-items: center;
    margin: 0 0 80px 0;
}

#main h2 {
    font-family: "Trirong", serif;
    font-size: 25px;
    line-height: 25px;
    font-weight: 900;
}

#projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project a {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    background-color: #d3d3d3;
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

.project img:hover {
  transform: scale(1.03);
}

footer {
    border-top: solid 1px #134d8c;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding-top: 80px;
}

footer .footer-links {
    display: flex;
    gap:5px;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    line-height: 18px;
    font-size: 13px;
    font-weight: 400;
}

footer p {
    font-size: 13px;
    line-height: 15px;
    font-weight: 400;
}


/*--Heading Text Animation Begin--*/
.animate__animated.animate__fadeIn {
    --animate-duration: 2s;
}

.animate__animated.animate__fadeInUp {
    --animate-duration: 2s;
}

/*--Heading Text Animation End--*/




/*--Media Queries Begin--*/
@media (max-width: 769px) {
    #main {
        padding-top: 40px;
    }

    #projects {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 426px) {
    body {
        padding: 40px;
    }

    nav {
        justify-content: flex-start;
    }

    header {
        text-align: left;
    }

    .header-text h1 {
        font-size: 55px;
        line-height: 55px;
    }

    .header-text h2 {
        font-size: 20px;
        line-height: 20px;
    }
    #main h2 {
        font-size: 20px;
        line-height: 20px;
    }
    #main {
        align-items: flex-start;
    }
    header {
        height: 50vh;
    }
    
}

/*--Media Queries End--*/