/* Variables */

:root {
    --primaryColor: #1a1a1a;
}

/* General Styles */

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    position: relative;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.5;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a,
button {
    display: inline-block;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

img,
svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
    padding: 2.5rem 0 0.625rem;
    min-height: calc(100vh - 50px);
    overflow: hidden;
}

main {
    padding-left: 270px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.project-page .container {
    max-width: 100%;
}

.top-scroller {
    position: fixed;
    right: 32px;
    bottom: 50px;
    opacity: 0;
    visibility: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    fill: #000;
    padding: 0.5rem;
    border: 1px solid #000;
    width: 36px;
    height: 36px;
    background-color: #fff;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    pointer-events: none;
    z-index: 99999;
}

.top-scroller.show {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

/* Typography */

h2,
h3,
h4,
h5,
p {
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

h3 {
    font-size: 1.625rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

h5 {
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

p {
    font-size: 0.875rem;
}

/* Navigation Bar */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    background-color: #fff;
    z-index: 999999;
}

.nav-container {
    position: relative;
    background-color: #fff;
    padding: 2.5rem 1rem 2.5rem 2rem;
}

header .container {
    padding: 0;
}

nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2.25rem;
}

.logo {
    width: 170px;
}

.nav-menu-container > .social-list {
    display: none;
}

.nav-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.nav-link {
    font-size: 1rem;
    color: #107896;
    padding: 0;
    letter-spacing: 0.15px;
    -webkit-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
    -webkit-transform: translateY(2px);
    -ms-transform: translateY(2px);
    transform: translateY(2px);
    background-color: transparent;
    border: none;
}

.nav-link:hover,
.nav-list li.active > .nav-link,
.nav-menu.active {
    color: #0e6b85;
    font-weight: 600;
}

.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.nav-menu span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    -webkit-transform-origin: 4px 12px;
    -ms-transform-origin: 4px 12px;
    transform-origin: 4px 12px;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-transition: -webkit-transform 0.25s ease;
    transition: -webkit-transform 0.25s ease;
    -o-transition: transform 0.25s ease;
    transition: transform 0.25s ease;
    transition: transform 0.25s ease, -webkit-transform 0.25s ease;
}

.nav-menu.active span {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.nav-menu.active + .sub-menu {
    display: block;
}

.sub-menu {
    display: none;
    padding: 0.5rem 0 0 0.75rem;
}

.sub-menu .nav-link {
    font-size: 14px;
}

.sub-menu li:not(:first-child) {
    margin-top: 0.625rem;
}

/* Hamburger Styles */

.hamburger {
    display: none;
}

.hamburger {
    width: 28px;
    height: 32px;
    margin-top: 10px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primaryColor);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

header.open .hamburger span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

header.open .hamburger span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

header.open .hamburger span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

header.open .hamburger span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

/* About Section */

.about {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 2rem;
}

.about > .about-img {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 35%;
    flex: 1 1 35%;
}

.about > .about-text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 65%;
    flex: 1 1 65%;
    padding-right: 5rem;
}

.about-text > div {
    margin-bottom: 2.5rem;
}

/* News Section */

.news {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 3rem 2rem;
}

.news.hidden > div {
    display: none;
}

.news > div {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(50% - 2rem);
    flex: 1 1 calc(50% - 2rem);
    min-width: 320px;
    text-align: center;
}

.post-img {
    aspect-ratio: 16/9;
    margin: 1rem auto 1.125rem;
    overflow: hidden;
}

.post.full-post .post-img {
    aspect-ratio: unset;
    overflow: visible;
}

.post.post.full-post .post-img img {
    width: auto;
    max-height: calc(100vh - 150px);
    margin: 0 auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.post-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.post-text {
    max-width: 992px;
    margin: 0 auto;
}

.post h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.post .post-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
    overflow: hidden;
}

.post .post-description p {
    display: inline;
}

.post .post-description p::after {
    content: " \A\A";
    white-space: pre;
}

.post-date {
    color: #7a7a7a;
    margin-bottom: 0.75rem;
}

.news.hidden .post.full-post {
    display: block;
}

.post.full-post .post-description,
.post.post.full-post h3 {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.post button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: #107896;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    border: none;
    background-color: transparent;
    -webkit-transition: color 0.25s ease;
    -o-transition: color 0.25s ease;
    transition: color 0.25s ease;
}

.post button:hover {
    color: #0a4a5c;
}

.post button span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* Project Section */

.project-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.project {
    background-color: #fff;
}

.project p {
    font-size: 14px;
    margin-bottom: 0;
    padding-bottom: 5px;
}

.project-caption {
    position: fixed;
    top: 350px;
    left: 0;
    max-width: 260px;
    padding: 2rem;
    padding-right: 1rem;
    z-index: 9999;
}

.project-caption h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-caption h6 {
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.project-caption > div p:last-child {
    margin-bottom: 0;
}

.project-caption.active {
    position: relative;
    margin: 0 auto;
    top: unset;
    left: unset;
    max-width: 992px;
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.project-caption.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200px;
    height: 1px;
    background-color: #cccccc;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.project-caption.active + .project-section {
    padding-top: 2rem;
}

.project-caption > div {
    font-size: 14px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 14;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-caption > div p {
    display: inline;
}

.project-caption > div p::after {
    content: " \A\A";
    white-space: pre;
}

@media (max-height: 840px) {
    .project-caption > div {
        -webkit-line-clamp: 9;
    }
}

@media (max-height: 740px) {
    .project-caption > div {
        -webkit-line-clamp: 5;
    }
}

@media (max-height: 680px) {
    .project-caption > div {
        -webkit-line-clamp: 3;
    }
}

.project-caption.active > div {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.project-caption.active button {
    display: none;
}

.project-caption button {
    text-align: left;
    color: #107896;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
    margin: 1rem 0;
    border: none;
    background-color: transparent;
    -webkit-transition: color 0.25s ease;
    -o-transition: color 0.25s ease;
    transition: color 0.25s ease;
}

.project-caption button:hover {
    color: #0a4a5c;
}

.projects {
    position: relative;
    padding: 0 2rem;
    text-align: center;
}

.project-img {
    position: relative;
    margin-bottom: 1rem;
}

.project-img img {
    width: auto;
    margin: 0 auto;
    /* max-height: 95vh; */
}

.project-text {
    max-width: 992px;
    margin: 0 auto;
    background-color: #fff;
    z-index: 99999;
}

.project-navs {
    width: 100%;
    height: 100%;
}

.project-prev,
.project-next {
    position: absolute;
    top: 0;
    width: 35%;
    height: 100%;
    z-index: 999;
}

.project-prev {
    cursor: url("../images/prev.svg") 26 26, auto;
}

.project-next {
    cursor: url("../images/next.svg") 26 26, auto;
}

.project-view {
    position: absolute;
    top: 0;
    left: 35%;
    width: 30%;
    height: 100%;
    cursor: url("../images/down.svg") 24 24, auto;
    z-index: 9999;
}

.project-prev {
    left: 0;
}

.project-next {
    right: 0;
}

.projects .swiper-slide {
    background-color: #fff;
}

.projects .swiper-slide .project {
    opacity: 0;
    -webkit-transition: opacity 0s ease;
    -o-transition: opacity 0s ease;
    transition: opacity 0s ease;
    -webkit-transition-delay: 0.4s;
    -o-transition-delay: 0.4s;
    transition-delay: 0.4s;
}

.projects .swiper-slide-active .project {
    opacity: 1;
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
}

.vertical-view .swiper-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.vertical-view .swiper-wrapper .swiper-slide {
    margin-bottom: 4rem;
    opacity: 1;
}

.vertical-view .swiper-wrapper .swiper-slide .project {
    opacity: 1;
}

.vertical-view .project-prev,
.vertical-view .project-next {
    display: none;
}

.vertical-view .project-view {
    left: 0;
    width: 100%;
    cursor: url("../images/up.svg") 24 24, auto;
}

.project-img:hover .share-project {
    opacity: 1;
}

.share-container {
    position: absolute;
    left: 50%;
    bottom: 10px;
    margin: 0 auto;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 99999999;
}

.share-project {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border: none;
    border-radius: 10px;
    opacity: 0;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    cursor: pointer;
    font-weight: 600;
    -webkit-transition: 0.25s ease;
    -o-transition: 0.25s ease;
    transition: 0.25s ease;
    -webkit-transition-delay: 0;
    -o-transition-delay: 0;
    transition-delay: 0;
}

.share-project svg {
    width: 18px;
}

.share-project + .share-menu {
    width: 100%;
}

.share-project + .share-menu li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border: none;
    border-radius: 10px;
    z-index: 99999999;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    cursor: pointer;
    font-weight: 600;
}

.share-project + .share-menu li svg {
    width: 22px;
}

.share-project p {
    font-size: 0.875rem;
    padding: 0;
    margin-bottom: 0;
}

.share-project:hover {
    -webkit-transition-delay: 0.25s;
    -o-transition-delay: 0.25s;
    transition-delay: 0.25s;
    font-weight: 700;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    width: 24px;
    max-height: 0;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    overflow: hidden;
    -webkit-transition: max-height 0.25s ease;
    -o-transition: max-height 0.25s ease;
    transition: max-height 0.25s ease;
    z-index: 9999999;
}

.share-menu.disable {
    pointer-events: none;
}

.share-site:hover + .share-menu,
.share-site:focus + .share-menu,
.share-project:hover + .share-menu,
.share-project:focus + .share-menu,
.share-menu:hover {
    max-height: 300px;
}

.share-menu li {
    cursor: pointer;
}

.share-menu li:last-child {
    margin-bottom: 0.75rem;
}

/* Footer */

footer {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    background-color: #fff;
    left: 0;
    bottom: 0;
    padding: 0.5rem 2rem;
    height: 50px;
    z-index: 999999;
}

.footer-content {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.social-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
}

.social-list li {
    position: relative;
    -ms-flex-negative: 0;
    width: 26px;
    flex-shrink: 0;
}

.social-list button {
    background-color: transparent;
    border: none;
    padding: 0;
}

.social-list li svg {
    width: 26px;
    height: auto;
}

.copyright {
    font-size: 14px;
    color: #333333;
}

.copyright p {
    margin-bottom: 0;
}

/* Media Queries */

@media (max-width: 1200px) {
    main {
        padding-top: 75px;
        padding-left: 0;
        min-height: calc(100vh - 140px);
    }

    section {
        padding: 2rem 0;
        min-height: auto;
    }

    /* Navigation Bar */

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .logo {
        width: 180px;
    }

    .nav-container {
        position: relative;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid #cccccc;
    }

    nav {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 3rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu-container {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 300px;
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
        padding: 3.75rem 0 2rem;
        border-bottom: 1px solid #cccccc;
        border-left: 1px solid #cccccc;
        background-color: #ededed;
        -webkit-transition: 0.5s ease;
        -o-transition: 0.5s ease;
        transition: 0.5s ease;
        -webkit-box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        z-index: -1;
        overflow: hidden;
    }

    header.open .nav-menu-container {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }

    .nav-list {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .nav-list > li {
        padding: 0 1.25rem;
    }

    .nav-menu-container > .social-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        padding: 12em 1.25rem 0;
    }

    /* Project Section */

    .project-caption {
        position: relative;
        margin: 0 auto;
        top: unset;
        left: unset;
        max-width: 100%;
        text-align: center;
        padding: 1rem 1rem 2rem;
    }

    .project-caption > div {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .project-caption::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 200px;
        height: 1px;
        background-color: #cccccc;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    .project-caption button {
        display: none;
    }
}

@media (max-width: 992px) {
    h3 {
        font-size: 1.25rem;
    }

    /* About Section */

    .about {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .about > .about-text {
        padding-right: 1rem;
    }

    /* Project Section */

    .project-navs,
    .project-view {
        display: none;
    }
}

@media (max-width: 576px) {
    /* Navigation Bar */

    h4 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .projects {
        padding: 0;
    }

    .footer-content {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .social-list {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    footer .social-list {
        display: none;
    }
}
