html {
    scroll-behavior: smooth;
    overflow-y : auto;
}

header {
    position: fixed;
    background-color: #051F30;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 999;
    opacity: 0.9;
    justify-content: space-between;
    display: flex;
    transition: background-color 0.3s ease-in-out;
}

.link-header {
    display: flex;
    align-items: center;
    margin: 0.5rem 2.5rem;
    color: #14B8A6;
    text-decoration: none;
}

.link-header:hover {
    background: linear-gradient(45deg, #14B8A6, #2980b9, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-header {
    font-weight: 700;
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .link-header {
        margin-bottom: 0;
        margin-top: 0;
    }
}

img.header {
    border-radius: 10px;
    max-height: 50px;
    max-width: 100px;
    margin-top: 1.4rem;
    margin-left: 2.5rem;
}

nav {
    background-color: #051F30;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: background-color 0.3s ease-in-out;
}

nav ul {
    display: flex;
    list-style: none;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    margin-right: 2rem;
    top: 4rem;
    right: 1rem;
}

nav li {
    margin-right: 2rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 2px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #14B8A6;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: -25%;
    width: 150%;
    height: 2px; 
    background-color: #14B8A6;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
    transform: scaleX(1);
}

.hamburger-menu {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 3rem;
    cursor: pointer;
    z-index: 999;
}

.bar {
    width: 35px;
    height: 2px;
    background-color: white;
    margin: 10px 0;
    transition: 0.4s;
}

.vertical-menu {
    display: none;
    position: fixed;
    top: 80px; 
    right: 40px;
    background-color: #172F3F;
    list-style-type: none;
    padding: 0;
    z-index: 999;
    border: 1px solid; 
    border-radius: 12px; 
    border-style: hidden;
    transition: background-color 0.5s ease-in-out;
}

.vertical-menu li {
    text-align: center; 
    padding: 10px 40px; 
    font-size: 14px;
} 

.vertical-menu li a {
    color: white;
    text-decoration: none;
    transition: 0.4s;
}

.vertical-menu.active {
    display: block;
}

.vertical-menu a:hover {
    color: #14B8A6; 
}

.vertical-menu a::after {
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 100%;
    height: 2px; 
    background-color: #14B8A6; 
    transform: scaleX(0); 
    transform-origin: center;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-2px, 15px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-2px, -15px);
}

@media (max-width: 768px) {
  nav ul{
      display: none;
  }

  .hamburger-menu {
      display: block;
  }

  .vertical-menu {
      display: none;
  }
}

body {
    position: relative;
    background-color: #051F30;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin-left: 2rem;
    margin-right: 2rem;
}

.page {
    min-height: 100vw; 
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
    text-align: center;
    background: #051F30;
    transition: transform 0.5s ease-in-out;
}

#home {
    padding-top: 100px;
    font-family:  sans-serif
}

.imghome {
    max-width: 100%; 
    height: auto; 
    width: 250px; 
    height: 250px; 
    border-radius: 50px;
    object-fit: cover;
    object-position: 100% 0;
}

.columnhome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7vw;
    margin-right: 5vw;
    margin-bottom: 5vw;
    margin-left: 10vw;
    font-size: 1.2vw; 
    columns: 250px 2;
    column-gap: 7vw;
    color: #FFFFFF;
}

.titlehome {
    text-align: left;
    color: #14B8A6;
    font-size: 2.5vw;
    margin-top: 1vw;
}

.titlehome h3 {
    margin: 0;
}

.titlehome span {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.texthome {
    margin-left: 7vw;
    margin-bottom: -2vw;
    font-size: 1.5vw;
    text-align: left;
}

#about {
    padding-top: 125px;
    font-family: sans-serif;
}

.titleabout {
    text-align: left;
    color: #14B8A6;
    flex: 1;
    margin-right: 1.5vw;
    margin-left: 4vw;
    font-size: 2vw; 
    margin-bottom: 1vw;
}

.columnabout .textabout {
    flex: 1;
    margin-right: 1vw;
    font-size: 1.2vw; 
    columns: 250px 2;
    column-gap: 7vw;
    color: #FFFFFF;
}

.left_about1 {
    margin-top: 0vw;
    text-align: left;
}

.left_about2 {
    text-align: left;
}

.left_about3 {
    font-size: 1.2vw;
    text-align: left;
}

.right_about1 {
    margin-top: 5vw;
    text-align: center;
}

.right_about2 {
    text-align: center;
    margin-bottom: 2.8vw;
}
  
.oval-button-about {
    display: inline-block;
    text-align: center;
    padding: 1vw 2.5vw;
    border-radius: 5vw;
    background-color: #14B8A6;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1vw;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 0.1vw 2vw #14B8A6;
}

.oval-button-about:hover {
    background: linear-gradient(45deg,  #14B8A6, #2980b9, #0056b3);
    transform: scale(1.1);
    box-shadow: 0 0.1vw 2vw rgb(255, 255, 255);
}

#portofolio {
    padding-top: 125px;
}

.titleportofolio {
    text-align: center;
    color: #14B8A6;
    flex: 1;
    margin-right: 1.5vw;
    margin-left: 4vw;
    font-size: 2vw; 
    margin-top: -3.5vw;
}

.columnportofolio .textportofolio {
    flex: 1;
    margin-right: 1vw;
    font-size: 1.2vw; 
    color: #FFFFFF;
}

.center_portofolio {
    font-size: 1.2vw;
    text-align: left;
    margin-left: 20vw;
    margin-right: 20vw;
    margin-top: -1vw;
    margin-bottom: 3vw;
    color: #FFFFFF;
}

.container-portofolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
}

.box-portofolio a,
.title-project-portofolio,
.lang-oval-portofolio {
    text-decoration: none; 
}

.box-portofolio {
    flex: 1;
    background-color: #172F3F;
    color: #FFFFFF;
    padding: 0;
    text-align: center;
    margin: 1.5vw;
    margin-top: -1vw;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 15px;
}

.box-portofolio:hover {
    transform: scale(1.05);
}

.top-section-portofolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}
  
.bottom-section-portofolio {
    margin-top: 16px;
    text-align: left;
    padding: 0 10px;
    font-size: 1.1vw;
}

.title-project-portofolio {
    margin-left: 1vw;
    margin-right: 1vw;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFFFF;
    transition: color 0.3s ease-in-out;
}

.box-portofolio:hover .title-project-portofolio {
    color: #14B8A6;
}

.desc-project-portofolio {
    margin-bottom: 10px;
    margin-left: 1vw;
    margin-right: 1vw;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #ffffff;
}

.lang-container-portofolio {
    display: flex;
    margin-top: 1vw;
    margin-bottom: 3vw;
    margin-left: 1vw;
    margin-right: 1vw;
}

.lang-oval-portofolio {
    display: inline-block;
    background-color: #14B8A6;
    color: #FFFFFF;
    border-radius: 10px; 
    padding: 4px 15px 14px 15px; 
    margin-right: 10px;
    max-width: 150px; 
    max-height: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    text-align: center;
    box-shadow: 0 0.1px 2px #FFFFFF;
}

.oval-button-portofolio {
    display: inline-block;
    text-align: center;
    padding: 1vw 2vw;
    border-radius: 5vw;
    background-color: #14B8A6;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1vw;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 0.1vw 2vw #14B8A6;
}

.oval-button-portofolio:hover {
    background: linear-gradient(45deg,  #14B8A6, #2980b9, #0056b3);
    transform: scale(1.1);
    box-shadow: 0 0.1vw 2vw rgb(255, 255, 255);
}

#post {
    padding-top: 125px;
}

.titlepost {
    text-align: center;
    color: #14B8A6;
    flex: 1;
    margin-right: 1.5vw;
    margin-left: 4vw;
    font-size: 2vw; 
    margin-top: -3.5vw;
}

.columnpost .textpost {
    flex: 1;
    margin-right: 1vw;
    font-size: 1.2vw; 
    color: #FFFFFF;
}

.center_post {
    font-size: 1.2vw;
    text-align: left;
    margin-left: 20vw;
    margin-right: 20vw;
    margin-top: -1vw;
    margin-bottom: 3vw;
    color: #FFFFFF;
}

.container-post {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; 
    padding: 16px;
}

.box-post {
    flex: 1;
    background-color: #051F30;
    color: #FFFFFF;
    padding: 0;
    text-align: center;
    margin: 1.5vw;
    margin-top: -1vw;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 15px;
}

.box-post:hover {
    transform: scale(1.01);
}

.top-section-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}
  
.bottom-section-post {
    margin-top: 16px;
    text-align: left;
    padding: 0 10px;
    font-size: 1.1vw;
}

.title-project-post {
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFFFF;
    transition: color 0.3s ease-in-out;
}

.box-post a {
    text-decoration: none; 
  }
  
.title-project-post,
.lang-oval-post {
    text-decoration: none; 
  }

.box-post:hover .title-project-post {
    color: #14B8A6;
}

.desc-project-post {
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #FFFFFF;
}

.lang-container-post {
    display: flex;
    margin-top: 1.5vw;
    margin-bottom: 1.5vw;
}

.lang-oval-post {
    display: inline-block;
    background-color: #14B8A6;
    color: #FFFFFF;
    border-radius: 10px; 
    padding: 4px 15px 14px 15px; 
    margin-right: 10px;
    max-width: 150px; 
    max-height: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px; 
    text-align: center;
    box-shadow: 0 0.1px 2px #FFFFFF;
}

.oval-button-post {
    display: inline-block;
    text-align: center;
    padding: 1vw 2vw;
    border-radius: 5vw;
    background-color: #14B8A6;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1vw;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 0.1vw 2vw #14B8A6;
}

.oval-button-post:hover {
    background: linear-gradient(45deg,  #14B8A6, #2980b9, #0056b3);
    transform: scale(1.1);
    box-shadow: 0 0.1vw 2vw rgb(255, 255, 255);
}

@media (max-width: 768px) {
  header {
    height: 93px;
  }
}

@media (max-width: 768px) {
    .columnhome,
    .imghome,
    .texthome,
    .columnabout .textabout,
    .titleabout,
    .left,
    .right,
    .columnportofolio,
    .columnpost {
        margin-left: 2vw;
        margin-right: 1.5vw;
        flex-direction: column;
    }
}
  
@media (max-width: 768px) {
    .columnhome {
        font-size: 15px;
        text-align: center;
    }
    .imghome {
        max-width: 100%; 
        height: auto; 
        width: 150px; 
        height: 150px; 
        border-radius: 50px;
        margin-bottom: 10vw;
        text-align: center;
    }
    .titlehome {
        font-size: 4vw;
    }
    .texthome {
        font-size: 2.5vw;
    }
    .titleabout {
        margin-top: -7.5vw;
        font-size: 20px;
        text-align: center;
    }
    .titleportofolio,
    .titlepost {
        margin-top: -7.5vw;
        font-size: 20px;
        text-align: center;
    }
    .columnabout .textabout {
        font-size: 15px;
        text-align: left;
    }
    .left_about1 {
        font-size: 20px;
        text-align: center;
        margin-top: 1vw;
    }
    .left_about2 {
        font-size: 2vw;
    }
    .left_about3 {
        font-size: 2vw;
        text-align: center;
    }
    .right_about1 {
        font-size: 20px;
        text-align: center;
    }
    .right_about2 {
        font-size: 2vw;
        text-align: center;
    }
    .box-portofolio,
    .box-post {
        border-radius: 15px;
        margin-bottom: 1vw;
    }
    .oval-button-about,
    .oval-button-portofolio {
        padding: 2vw 3.5vw;
        font-size: 1.5vw;
        border-radius: 5vw;
    }
    .oval-button-post {
        margin-bottom: 215px;
        padding: 2vw 3.5vw;
        font-size: 1.5vw;
        border-radius: 5vw;
    }
    .center_portofolio,
    .center_post {
        margin-left: 0.2vw;
        margin-right: 1vw;
        text-align: left;
        font-size: 2.2vw;
    }
    .container-portofolio{
        grid-template-columns: 1fr;
    }
    .container-post {
        grid-template-columns: 1fr;
    }
    .bottom-section-portofolio,  
    .bottom-section-post{
        font-size: 2vw;
    }
}

footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, #051F30, #051F30 40%, #172F3F 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
}

footer.active {
    background-color: #172F3F;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    width: 40px; 
    height: 40px;
    background: rgba(255, 255, 255, 0); 
}

.social-icon:hover {
    transform: scale(1.2); 
    cursor: pointer; 
}

.social-icon img {
    width: 30px; 
    height: 30px;
    object-fit: cover;
    filter: invert(1);
    transition: filter 0.3s ease-in-out; 
}

.social-icon:hover img {
    filter: invert(0);
}

.social-icon span {
    display: block;
    font-size: 12px;
    margin-top: 5px; 
}

.copyright-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: #64748B;
}

.highlighted-text {
    color: #14B8A6; 
}

@media (max-width: 768px) {
    footer {
      height: 90px;
    }
}

@media (max-width: 768px) {
    .social-icon img {
        margin-top: -1vw;
        width: 27px;
        height: 27px;
    }
    .copyright-text {
        font-size: 14px;
        margin-top: -2vw;
    }
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px; 
}

::-webkit-scrollbar-thumb {
  background-color: #14B8A6;
  border-radius: 5px; 
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #14B8A6, #0056b3, #5400b3); 
}

* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent; 
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-thumb {
  background-color: #14B8A6;
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #14B8A6, #0056b3, #5400b3); 
}
