/* Base Styles */
html{
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #0e0e0e;
    color: white;
}

header {
    position: relative;
    height: 100vh;
    background-image: url(Latest\ Abstract\ 8K\ Wallpapers\ 9.jpg);
    text-align: center;
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 40px;
    padding-left: 40px;
}
.logo{
    font-family: "Orbitron", sans-serif;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.3s ease;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #00aaff;
}
header nav .logo{
    margin-right: 50%;
}
header nav ul {
    display: flex;
    list-style: none;
}
header nav ul li{
    margin-right: 10px;
}
header nav ul li a{
    color: white;
    text-decoration: none;
}

header nav ul li a:hover{
    color: #9245db;
    text-decoration: none;
}

section .about{
     opacity: 0; /* Awalnya tidak terlihat */
    transform: translateY(20px); /* Pindahkan sedikit ke bawah */
    animation: fadeInUp 1s ease forwards; /* Terapkan animasi */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
section .about.fade-out {
    animation: fadeOutDown 1s ease forwards;
}
section .about h2{
    margin-top: 50px;
    padding: 0;
}
section .about p{
    margin-top: -300px;
    padding: 0;
}
.about{
    height: 100vh;
}
.hero-section{
    font-family: kanit;
    margin-top: 20%;
}
.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeInDown 2s ease-out;
}

.hero-section p {
    font-size: 1.5em;
    animation: fadeInUp 2s ease-out;
}
.content-section div img{
    width: 100px;
    height: 100px;
    border-radius: 5px;
}
/* Section Styles */
.content-section {
    padding: 60px 20px;
    height: 100vh;
}

h2 {
    text-align: center;
    color: #ff007c;
    margin-bottom: 20px;
}
h3{
    font-family: "Orbitron", sans-serif;
}
p{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;

}

.project-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background: #222;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}
.Explore{
    background-color: #9245db;
    border-radius: 1px;
    border: none;
    width: 200px;
    height: 40px;
    font-size: 15px;
    font-style: italic;
}
.Explore a:hover{
    color: #00aaff;
}
button{
    background-color: #00aaff;
    border: none;
    border-radius: 4px;
    height: 40px;
}
button a{
    color: white;
    text-decoration: none;
    font-family: "jura",sans-serif;
    font-style: italic;
    font-weight: bold;
}
/* Responsive Menu */
.menu-toggle {
    display: none;
}

@media (min-width:1024px){
    section div{
        display: flex;
        flex-wrap: wrap;
    }
    /* .About{
        background-color: #9245db;
    } */
    .About .about{
        width: 600px;
        height: 600px;
    }
    section .About img{
        margin-left: 20px;
        margin-right: 80px;
        width: 500px;
        height: 500px;
    }
    section .about{
        display: block;
        justify-content: center;
        align-items: center;
    }
    section .about h2{
        margin-top: 100px;
        padding: 0;
    }
    section .about p{
        font-size: large;
        margin-top: 0px;
        padding: 0;
        
    }
    /* Update .content-skills to ensure it aligns items properly */
.content-skills {
    padding: 60px 20px;
    /* background-color: #00aaff; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-skills h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

/* Flex container to align items horizontally */
.container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line if they overflow */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Space between items */
}

/* Style individual skill boxes */
.container div {
    /* background-color: #ff007c; */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    /* justify-content: center; /* Center align items vertically */
} */
.container div h3 {
    margin-bottom: 15px; /* Jarak antara judul dan gambar */
}
.container div img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px; /* Jarak bawah gambar */
}
.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    height: 150px;
}
.card button{
    width: 200px;
    height: 40px;
}
.blog {
    padding: 60px 20px;
    text-align: center;
}

.blog-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 45%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-top: 0;
    color: #ff007c;
}

.card p {
    margin: 10px 0;
    color: #ccc;
}

.card-link {
    text-decoration: none;
    color: #00aaff;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.card-link:hover {
    color: #ff007c;
}
.contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #333;
    color: #fff;
}

.contact-form {
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #444;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ff007c;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00aaff;
    outline: none;
}

button {
    background-color: #ff007c;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e6007e;
}


@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}


}


@media (max-width: 768px) {
    header{
        height: 100vh;
    }
    
    .menu {
        display: none;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        padding: 10px;
        cursor: pointer;
    }

    header nav div{
        margin-top: 40px;
    }
    section .About img{
        display: none;
    }
    .menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #333;
        flex-direction: column;
        width: 200px;
        border-radius: 8px;
        padding: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .menu li {
        margin: 10px 0;
    }

    .menu.show {
        display: flex;
        animation: slide-down 0.3s ease;
    }
    .content-section{
        height: 80vh;
    }
    .content-section div img{
        width: 50px;
        height: 50px;
    }
    .project-cards .card{
        width: 200px;
    }
    .container {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap to the next line if they overflow */
        justify-content: center; /* Center items horizontally */
        gap: 20px; /* Space between items */
    }
    
    /* Style individual skill boxes */
    .container div {
        /* background-color: #ff007c; */
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        width: 50px;
        margin-right: 10px;
        display: flex;
        flex-direction: column;
        align-items: center; 
        /* justify-content: center; /* Center align items vertically */
    } */
    .container div h3 {
        margin-bottom: 15px; /* Jarak antara judul dan gambar */
    }
    .container div img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px; /* Jarak bawah gambar */
    }
    .blog {
        padding: 60px 20px;
        text-align: center;
    }
    
    .blog-cards {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .card {
        background: #222;
        padding: 20px;
        border-radius: 8px;
        width: 45%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-10px);
    }
    
    .card h3 {
        margin-top: 0;
        color: #ff007c;
    }
    
    .card p {
        margin: 10px 0;
        color: #ccc;
    }
    
    .card-link {
        text-decoration: none;
        color: #00aaff;
        font-weight: bold;
        display: inline-block;
        margin-top: 10px;
    }
    
    .card-link:hover {
        color: #ff007c;
    }
    .contact {
        padding: 60px 20px;
        text-align: center;
        background-color: #333;
        color: #fff;
    }
    
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background: #444;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .form-group {
        margin-bottom: 20px;
        text-align: left;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #ff007c;
        font-weight: bold;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #555;
        border-radius: 4px;
        background: #222;
        color: #fff;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #00aaff;
        outline: none;
    }
    
    button {
        background-color: #ff007c;
        border: none;
        border-radius: 4px;
        color: white;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    button:hover {
        background-color: #e6007e;
    }
    
    @media (max-width: 768px) {
        .card {
            width: 100%;
        }
    }
    

}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ikon animasi saat toggle */
.menu-toggle.open i {
    transform: rotate(90deg);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}