/*--------------- important styling --------------- */
:root {
    --first-bg-color: #000000;
    --second-bg-color: #141414;
    --main-color: #ffac42;
    --main2-color: #676767;
    --text-color1: #f5f5f5;
    --text-color2: #000000;
    --shadow-color: #9c9c9c;
}

@font-face {
    font-family: Monorama;
    src: url(font/Monorama-Medium.otf);
}

@font-face {
    font-family: Lexa;
    src: url(font/lexa.otf);
}

/*--------------- basic styling --------------- */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Roboto Mono" !important;
    background: var(--first-bg-color) !important;
    color: var(--text-color1) !important;
    cursor: url(img/cursor.png), auto;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: #f5f5f5 #2e2e2e;
}

.whitespace {
    width: 100%;
    height: 100px;
}

@media (max-width: 768px) {
    .whitespace {
        display: none;
    }
}

/* icon */
.tech-icons i {
    margin-right: 15px;
    margin-top: 20px;
}

.tech-icons img {
    margin-right: 15px;
    vertical-align: middle;
}

.underline {
    text-decoration: underline;
}


/*--------------- typewriter effect --------------- */
.line {
    width: 24em;
    top: 50%;
    margin: auto;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
}

.anim-typewriter {
    animation:
        typewriter 4s steps(28) 1s 1 normal both,
        blinkTextCussor 500ms steps(28) infinite normal;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 18em;
    }
}

@media (max-width: 768px) {
    @keyframes typewriter {
        from {
            width: 0;
        }

        to {
            width: 17em;
        }
    }
}

@keyframes blinkTextCussor {
    from {
        border-right-color: rgba(255, 255, 255, 0.75);
    }

    to {
        border-right-color: transparent;
    }
}

/*--------------- navigation --------------- */
nav {
    width: 100%;
    background: var(--first-bg-color);
    height: 80px;
    position: fixed;
    z-index: 1;
    font-family: "Monorama";
}

nav #brand {
    float: left;
    display: block;
    margin-left: 82px;
    line-height: 80px;
    text-decoration: none;
    font-weight: 300;
}

nav #brand a {
    color: var(--text-color1);
    transition: all 0.3s ease-out;
}

nav #brand a:hover {
    text-decoration: none;
}

nav #menu {
    float: left;
    right: 80px;
    position: fixed;
}

nav #menu li {
    padding-left: 40px;
    display: inline-block;
    cursor: pointer;
    font-weight: 300;
    line-height: 80px;
    position: relative;
    transition: all 0.3s ease-out;
    letter-spacing: 2px;
}

nav #menu li span {
    font-weight: 700;
}

nav #menu li a {
    color: var(--text-color1);
    text-decoration: none;
}

nav #menu li a:hover {
    text-decoration: none;
}

#toggle {
    position: absolute;
    right: 30px;
    top: 20px;
    font-weight: 300;
    z-index: 2;
    width: 30px;
    height: 30px;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
}

.close-btn {
    position: absolute;
    right: 16px;
    font-weight: 300;
    z-index: 2;
    cursor: pointer;
    top: -2px;
    line-height: 80px;
}

#resize {
    z-index: 1;
    top: 0px;
    position: fixed;
    background: var(--first-bg-color);
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all 1s ease-out;
}

#resize #menu {
    height: 90px;
    position: absolute;
    left: 45%;
    transform: translateX(-40%);
    text-align: center;
    display: table-cell;
    vertical-align: center;
}

#resize #menu li {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-size: 50px;
    min-height: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

#resize li:nth-child(1) {
    margin-top: 140px;
}

#resize #menu li a {
    color: var(--text-color1);
}

#resize #menu li a:hover {
    text-decoration: none;
}

#resize.active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    #toggle {
        visibility: visible;
        opacity: 1;
        margin-top: 6px;
        margin-right: 4px;
    }

    nav #brand {
        margin-left: 24px;
    }

    #menu a {
        font-size: 20px;
        font-weight: 300;
    }

    #resize li span {
        font-weight: bolder;
    }

    nav #menu {
        display: none;
    }
}

@media (min-width: 768px) {
    #resize {
        visibility: hidden !important;
    }
}

/*--------------- hero section --------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-weight: lighter;
    text-align: center;
    letter-spacing: -2px;
    line-height: 58px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 20px;
    }
}

/*--------------- scroll down icon animation --------------- */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 100px;
    display: block;
    text-align: center;
    font-size: 20px;
    z-index: 0;
    text-decoration: none;
    text-shadow: 0;
    width: 13px;
    height: 13px;
    border-bottom: 3px solid var(--text-color1);
    border-right: 3px solid var(--text-color1);
    -webkit-transform: translate(-50%, 0) rotate(45deg);
    animation: fade_move_down 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes fade_move_down {
    0% {
        transform: translate(0, -20px) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 20px) rotate(45deg);
        opacity: 0;
    }
}

/*--------------- projects section --------------- */
h6 {
    text-align: center;
}

.vertical {
    margin-top: 40px;
    border-left: 2px solid var(--text-color1);
    height: 80px;
    position: absolute;
    left: 50%;
}

.project {
    height: 500px;
    cursor: url(img/clicks.png), auto;
}

.project1 {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/art-1.png") no-repeat 50% 50%;
    background-size: cover;
}

.project1::after {
    content: "NanoSphere | Laundry Projects.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: relative;
    color: var(--text-color1);
    display: block;
    top: 8%;
    left: -60%;
    right: 0;
    bottom: 0;
}

.project2 {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/art-2.png") no-repeat 50% 50%;
    background-size: cover;
}

.project2::after {
    content: "The Peace Gallery | Gallery Projects.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: relative;
    color: var(--text-color1);
    display: block;
    top: 80%;
    left: 90%;
    right: 0;
    bottom: 0;
}

.project3 {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/art-3.png") no-repeat 50% 50%;
    background-size: cover;
}

.project3::after {
    content: "Awwwards Website Clone.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: relative;
    color: var(--text-color1);
    display: block;
    top: 80%;
    left: -50%;
    right: 0;
    bottom: 0;
}

.project4 {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/art-4.png") no-repeat 50% 50%;
    background-size: cover;
}

.project4::after {
    content: "Peace Travel | Frontend Projects";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: relative;
    color: var(--text-color1);
    display: block;
    top: 10%;
    left: 90%;
    right: 0;
    bottom: 0;
}

@media (max-width: 900px) {
    .project {
        width: 90% !important;
        margin: 14px auto;
    }

    .project1::after,
    .project2::after,
    .project3::after,
    .project4::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .project {
        width: 90% !important;
        margin: 14px auto;
    }

    .vertical {
        display: none;
    }

    .project1::after,
    .project2::after,
    .project3::after,
    .project4::after {
        display: none;
    }
}

/*--------------- footer section --------------- */
.collab {
    text-align: right;
}

.collab p {
    font-weight: lighter !important;
    margin-bottom: 20px;
    color: var(--text-color1);
}

.collab .interesting {
    text-decoration: none;
    color: var(--text-color1);
}

.collab .interesting:hover {
    text-decoration: underline;
}

.hr {
    background: rgba(255, 255, 255, 0.2);
    height: 1px;
}

.info h4 {
    font-size: 18px;
    font-weight: lighter;
}

.info p {
    color: var(--main2-color);
    font-weight: lighter;
}

.info a {
    font-weight: lighter;
    color: var(--text-color1);
    font-size: 18px;
    padding-left: 20px;
    text-decoration: none;
}

.info a {
    color: var(--text-color1);
}

.info a:hover {
    color: var(--text-color1);
}

#fb::before {
    display: inline-block;
    content: "";
    border-radius: 100%;
    height: 4px;
    width: 4px;
    margin-right: 6px;
    background: #2b447b;
}

#ig::before {
    display: inline-block;
    content: "";
    border-radius: 100%;
    height: 4px;
    width: 4px;
    margin-right: 6px;
    background: #fcaf45;
}

#tw::before {
    display: inline-block;
    content: "";
    border-radius: 100%;
    height: 4px;
    width: 4px;
    margin-right: 6px;
    background: #61baff;
}

#git::before {
    display: inline-block;
    content: "";
    border-radius: 100%;
    height: 4px;
    width: 4px;
    margin-right: 6px;
    background: #c4302b;
}

#porto::before {
    display: inline-block;
    content: "";
    border-radius: 100%;
    height: 4px;
    width: 4px;
    margin-right: 6px;
    background: #ffffff;
}

#media,
#address {
    text-align: right;
}

#media ul {
    list-style: none;
}

#media ul li {
    display: inline-block;
}

@media (max-width: 900px) {
    .collab,
    #personal,
    #media,
    #media ul li a,
    #address {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .collab,
    #personal,
    #media,
    #address {
        text-align: center;
    }

    .info ul {
        margin: 0 0 0 -22px;
        padding: 0;
    }
}

/*--------------- work page --------------- */

.hero-content {
    margin-left: 0%;
}

.hero-content p {
    font-weight: 300;
    line-height: 36px;
    color: grey;
}

.hero-content h6 {
    text-align: left;
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 50px;
        width: 96%;
        margin: 0 auto;
    }
}

/*---------------blog page --------------- */

.main-blog-content {
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.blog-container {
    width: 100%;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.blog-body {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default to 1 column */
    gap: 10px; /* Menambahkan jarak antar card */
}

.blog-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
}

.blog-body h3,
.blog-body h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.blog-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #dfdfdf;
}

.hr {
    height: 1px;
    background-color: #fff;
    width: 100%;
}

/* Responsive Styling */
@media (min-width: 768px) {
    .blog-body {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
        gap: 10px; /* Jarak antar card untuk layar medium */
    }
}

@media (min-width: 1024px) {
    .blog-body {
        grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
        gap: 10px; /* Jarak antar card untuk layar besar */
    }
}

/*---------------blog_porto page --------------- */
.image-porto {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/blog_porto.png") no-repeat center center;
    background-size: cover;
    height: 100vh;
}

.about-porto {
    height: 500px;
    margin-top: 120px;
}

.blog-porto-title {
    font-size: 2em;
}

.btn-link-blog {
    display: inline-block;
    background-color: #303030;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    margin-right: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-link-blog:hover {
    background-color: #3e3e3e;
}

@media (max-width: 768px) {
    .image-porto {
        display: none;
    }
}

/*---------------blog_nano page --------------- */

.image-nano {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/blog_nano.png") no-repeat center center;
    background-size: cover;
    height: 100vh;
}

.about-nano {
    height: 500px;
    margin-top: 120px;
}

.blog-nano-title {
    font-size: 2em;
}

/*---------------contrustion page --------------- */

.construction-message h2 {
    margin-top: 175px;
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

/*---------------about page --------------- */

.about {
    height: 500px;
    margin-top: 120px;
}

.image {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/about-1.gif") no-repeat center center;
    background-size: cover;
    height: 100vh;
}

@media (max-width: 768px) {
    .image {
        display: none;
    }
}

.about-title {
    font-size: 2.5em;
}

.experiences-section {
    margin-top: 50px;
}

.title-description {
    font-size: 1.25rem;
    font-weight: bold;
    color: #b1b0b0;
    margin-top: 20px;
}

.experiences-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.journey-section span {
    text-decoration: underline;
}

.journey-section h3 {
    margin-top: 30px;
}

.journey-section h4 {
    font-size: 1.5em;
    color: #b1b0b0;
    margin-bottom: 30px;
    margin-top: 20px;
}

.journey-section p {
    font-size: 1.1em;
    line-height: 1.6em;
    margin-bottom: 20px;
}

/*--------------- portfolio 1 --------------- */
.img-portfo-1a {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-1a.png") no-repeat 100% 100%;
    background-size: cover;
    height: 100vh;
}

.img-portfo-2a {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-2a.png") no-repeat 100% 100%;
    background-size: cover;
    height: 100vh;
}

/*--------------- portfolio 2 --------------- */
.img-portfo-1b {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-1b.png") no-repeat 100% 100%;
    background-size: cover;
    width: 100vh;
}

.img-portfo-2b {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-2b.png") no-repeat 100% 100%;
    background-size: cover;
}

/*--------------- portfolio 3 --------------- */
.img-portfo-1c {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-1c.png") no-repeat 100% 100%;
    background-size: cover;
    width: 100vh;
}

.img-portfo-2c {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-2c.png") no-repeat 50% 70%;
    size: 100%;
}

/*--------------- portfolio 4 --------------- */
.img-portfo-1d {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-1d.png") no-repeat 100% 100%;
    background-size: cover;
    width: 100vh;
}

.img-portfo-2d {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0)),
        url("img/porto-2d.png") no-repeat 100% 100%;
    size: 100%;
    background-size: cover;
}

/*--------------- contact form --------------- */

.main-contact-hero-content {
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1000px;
}

/* Container styling */
.contact-container {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Card styling */
.contact-section {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
}

/* Card body heading and paragraph */
.contact-body h3,
.contact-body h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #dfdfdf;
}

.contact-body a {
    text-decoration: none;
    color: #dfdfdf;
}

.contact-body a:hover {
    color: #dfdfdf;
}

/* Button link styling */
.btn-link {
    display: inline-block;
    background-color: #2e2e2e;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    margin-right: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: #3e3e3e;
}

/* Email text styling */
.email-text {
    font-size: 1rem;
    color: #ffffff;
}

/* Responsive styling */
@media (max-width: 768px) {
    .btn-link {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .card-body h3 {
        font-size: 1.5rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }
}

/*--------------- project page --------------- */

.prev,
.next p {
    color: var(--main2-color);
}

.prev p {
    text-align: left;
    text-decoration: none;
}

.prev a {
    color: var(--main2-color);
}

.next p {
    text-align: right;
}

.next a {
    color: var(--main2-color);
}

.prev a:hover,
.next a:hover {
    color: var(--main2-color);
    text-decoration: none;
}
