@font-face {
    font-family: 'Zen Maru Gothic';
    src: url(asset/Font/ZenMaruGothic-Regular.ttf);
}

@font-face {
    font-family: 'Zen Maru Gothic Bold';
    src: url(asset/Font/ZenMaruGothic-Bold.ttf);
}

@font-face {
    font-family: 'Anton Regular';
    src: url(asset/Font/Anton-Regular.ttf);
}

@font-face {
    font-family: 'Bernard';
    src: url(asset/Font/bernhc.ttf);
}

* {
    box-sizing: border-box;
}

body {
    font-size: 1em;
    color: #ffffff;
    padding: 0;
    margin: 0;
    font-family: 'Zen Maru Gothic';
    background-color: #000000;
}

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.header-home {
    position: fixed;
    z-index: 1000;
    width: 100%;
}

.header-home .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00bbfa;
    margin: 0;
    padding: 10px 0px 10px 45px;
}

.content .logo-wrap {
    display: flex;
    gap: 20px;
    font-weight: bold;
}

.navigation a {
    font-size: 1.4em;
    padding-bottom: 3px;
    color: #ffffff;
    font-family: 'Zen Maru Gothic Bold';
}

.navigation a:hover {
    color: #082e3b;
    font-weight: bold;
}

.navigation a:hover>ul {
    visibility: visible;
    opacity: 1;
}

.navigation .nav-container {
    position: relative;
    display: flex;
    gap: 100px;
    margin: 0 40px 0 0;
}

.navigation .nav-container a {
    text-decoration: none;
}

.header-home .content p {
    font-family: 'Zen Maru Gothic Bold';
}

/* Top Section */
.ml11 {
    font-weight: 700;
    font-size: 11em;
    margin-top: 0;
    margin-left: 60px;
    padding-top: 80px;
    display: flex;
    justify-content: left;
    color: #ffffff;
    font-family: 'Bernard';

}

.ml11 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-right: 0.05em;
    padding-bottom: 0.15em;
}

.ml11 .line {
    opacity: 0;
    position: absolute;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: #ffffff;
    transform-origin: 0 50%;
}

.ml11 .line1 {
    top: 0;
    left: 0;
}

.ml11 .letters {
    display: inline-block;
    line-height: 1em;
}

.top-section {
    width: 100%;
    height: 1047px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url(asset/Background/LandingPageNormal.jpg);
    background-size: cover;
    background-position: right 5px;
    background-repeat: no-repeat;
}

.quotes {
    width: 100%;
    height: 400px;
    margin-bottom: 100px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* border: 2px solid white; */
}

.quotes .grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quotes h1 {
    font-size: 5em;
    margin-bottom: 0;
}

.quotes h2 {
    font-size: 1em;
}

.aboutme .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    margin-top: 10px;
}

.aboutme .container .title {
    margin-left: 280px;
}

.aboutme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-image: url(asset/Background/layar_2.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 1000px;
}

.aboutme .container .grid {
    width: 100%;
}

.aboutme .container .inner {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.aboutme .container .education {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0;
}

.aboutme .container .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.aboutme .title h1 {
    font-size: 4em;
}

.aboutme .text-container {
    display: flex;
    flex-direction: column;
    width: 600px;
    text-align: left;
    gap: 30px;
}

.aboutme .inner-education{
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.aboutme .education h1{
    margin-top: 0;
}

.aboutme .inner-education img{
    width: 280px;
    height: 200px;
}

.aboutme .text h2 {
    text-align: left;
    margin-top: 0;
}

.aboutme .container .image img {
    width: 400px;
    height: 400px;
}

.skills .container .cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 300px;
}

.skills .container {
    margin: 10px 20px 10px 20px;
    display: flex;
    justify-content: space-around;
}

.skills .grid {
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: white;
    color: black;

}

.skills .container .cards img {
    width: 100px;
    height: 100px;
}

.skills {
    margin-top: -5px;
    padding: 0 0 0 0;
    background-color: #ffffff;
}

.skills h1 {
    font-size: 1.5em;
    font-family: 'Zen Maru Gothic Bold';
}

.skills h2 {
    font-size: 3em;
    margin-top: 0;
}

svg {
    background-color: white;
    margin: 0;
    padding: 0;
}

.curveUpColor1 {
    margin-bottom: 20px;
    padding-top: 30px;
}

.curveUpColor2,
.curveDownColor2 {
    background-color: #000000;
    fill: #ffffff;
}

.filter-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.filter-btn {
    padding: 5px 20px 10px 20px;
    color: #ffffff;
    background-color: transparent;
    transition: ease-out 0.3s;
    box-shadow: inset 0 0 0 0 #f3f3f3;
    position: relative;
    box-sizing: border-box;
    border-radius: 10px;
    border-color: #ffffff;
    font-size: 25px;
    font-family: 'Zen Maru Gothic', sans-serif;
    overflow: hidden;
    margin: 30px 0 0 0;
}

.filter-btn:hover {
    background-color: #7ed3f7;
    box-shadow: inset 250px 0 0 0 #7ed3f7;
    border-color: #7ed3f7;
    color: #ffffff;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #00bbfa;
    color: #ffffff;
    border-color: #00bbfa;
}

.filter-btn:focus {
    outline: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 30px 0 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    box-shadow: 0px 10px 30px 10px rgba(0, 55, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.6);

}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.portfolio-item h4 {
    position: absolute;
    top: 0;
    left: 10%;
    transform: translateY(-100%);
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
    color: #fff;
    padding: 0.5rem 1rem;
    opacity: 0;
    font-size: 1.5vw;
    text-align: center;
    width: 80%;
    max-width: 250px;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.portfolio-item:hover h4 {
    opacity: 1;
    transform: translateY(0);
}

.images .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    /* Adjust spacing */
}

.images .portfolio-section h1 {
    font-size: 3em;
    margin: 30px 0 20px 0;
}

.images .container .row a .portfolio-item {
    width: 320px;
    height: 320px;
    border-radius: 20px;
}

.images .container .row {
    margin-top: 80px;
}

@media (max-width: 768px) {
    .portfolio-item h4 {
        font-size: 3vw;
        /* Adjust title size on small screens */
    }
}


@media (min-width: 768px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        /* Responsive grid */
        gap: 20px;
    }
}

.contact {
    background-color: #ffffff;
    margin-top: -15px;
    padding: 0;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact h1 {
    font-size: 3.5em;
    font-family: 'Zen Maru Gothic Bold';
    color: black;
}

.contact .grid {
    display: flex;
    margin-bottom: 50px;
}

.contact .detail img {
    width: 50px;
    height: 50px;
}

.contact .detail p {
    margin: 0;
    width: 150px;
    height: 30px;
    margin: 10px 0 10px 0;
}

.contact .detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 250px;
}

.contact .detail a {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-decoration: none;
    text-align: left;
    color: #000000;
    font-weight: bold;
}

.contact .detail a:hover p {
    color: blue;
}

.copyright {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.copyright h1 {
    font-size: 1em;
    color: #000000;
}

/* Big screens (Ipad) */
@media (max-width: 1024px) {
    .header-home .content .logo-wrap img {
        width: 50px;
        height: 50px;
    }

    .header-home .navigation a {
        font-size: 1.2em;
    }

    .header-home .navigation .nav-container {
        gap: 80px;
    }

    .ml11 {
        font-size: 6em;
        margin-left: 30px;
    }

    .aboutme {
        height: 1700px;
    }

    .aboutme .text-container {
        display: flex;
        justify-content: space-around;
        width: 100%;
        gap: 50px;
    }

    .aboutme .text {
        width: 400px;
        text-align: center;
    }

    .aboutme .text p {
        width: 400px;
        text-align: justify;
    }

    .aboutme .education {
        width: 400px;
    }

    .aboutme .inner-education{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .aboutme .inner-education img{
        width: 400px;
        height: 280px;
    }

    .aboutme .container .title {
        margin-left: 0;
        width: 100%;
    }

    .aboutme .container .title h1 {
        width: 100%;
    }

    .aboutme .grid .inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .aboutme .text-container {
        display: flex;
        flex-direction: column;
    }

    .aboutme .text,
    .aboutme .education {
        width: 400px;
    }

    .aboutme .text {
        margin-top: 40px;
    }

    .aboutme .text p,
    .aboutme .text h2 {
        width: 400px;
    }

    .aboutme .education p,
    .aboutme .education h1 {
        width: 400px;
    }

    .skills .title {
        width: 100%;
    }

    .skills h2 {
        font-size: 2.5em;
        width: 100%;
    }

    .skills h1 {
        font-size: 1.8em;
    }

    .project {
        padding: 10px 0 50px 0;
    }

    .project .container .title {
        width: 100%;
    }

    .project .container .title h1 {
        font-size: 2.5em;
        margin: 0;
        width: 100%;
    }
}

/* Big screens (Ipad) */
@media (max-width:825px) {
    .header-home .content .logo-wrap img {
        width: 50px;
        height: 50px;
    }

    .header-home .navigation a {
        font-size: 1em;
    }

    .header-home .navigation .nav-container {
        gap: 60px;
    }

    /* Top Section */
    .ml11 {
        font-size: 5em;
        margin-left: 80px;
    }

    .top-section {
        width: 100%;
        background-image: url(asset/Background/Landing_Page_825.jpg);
    }

    .aboutme button {
        padding: 5px 15px 8px 15px;
    }

    .aboutme .title {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .aboutme .title h1 {
        font-size: 3em;
    }

    .aboutme .text,
    .aboutme .education {
        width: 100%;
    }

    .aboutme .text p,
    .aboutme .education p,
    .aboutme .education h1 {
        width: 400px;
    }

    .skills .container {
        display: flex;
    }

    .skills .container .cards {
        width: 250px;
    }

    .skills .container .cards img {
        width: 100px;
        height: 100px;
    }

    .skills h2 {
        font-size: 2em;
    }

    .skills h1 {
        font-size: 1.5em;
    }

    .skills p {
        font-size: 0.9em;
    }

    .project {
        padding: 10px 0 40px 0;
    }

    .project h1 {
        font-size: 2em;
        margin: 0
    }

    .project .project-container .cards1 {
        width: 300px;
        height: 300px;
    }

    .project .project-container .cards2 {
        width: 300px;
        height: 300px;
    }

    .project .project-container .cards3 {
        width: 300px;
        height: 300px;
    }

    .contact h1 {
        font-size: 2em;
    }

    .contact h2 {
        font-size: 1.3em;
    }

    .contact p {
        font-size: 0.9em;
    }
}

/* Small screens (phones) */
@media (max-width: 480px) {
    * {
        max-width: 480px;
    }

    .header-home .content .logo-wrap img {
        width: 30px;
        height: 30px;
    }

    .header-home .content .logo-wrap p {
        margin: 0;
        padding: 0;
    }

    .header-home .nav-container {
        display: none;
    }

    .top-section {
        background-image: url(asset/Background/Landing_Page_480.jpg);
    }

    .ml11 {
        font-size: 3em;
    }

    .aboutme{
        height: 1600px;
    }

    .aboutme button {
        font-size: 15px;
        padding: 3px 7px 5px 7px;
    }

    .aboutme .text-container {
        display: flex;
        flex-direction: column;
    }

    .aboutme .inner-education img{
        width: 350px;
        height: 220px;
    }

    .skills .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .project .project-container .horizontal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        font-size: 10px;
        margin: 10px 0 0 0;
    }
}