/* Reset Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #121212;
}

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: #e6e6e6;
}

header .slogan {
    font-style: italic;
    color: #9b9b9b;
    margin-top: 10px;
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: #1f1f1f;
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about .profile-image {
    flex: 1;
    padding-right: 20px;
}

.about .profile-image img {
    max-width: 100%;
    border-radius: 8px;
}

.about .description {
    flex: 2;
    padding-left: 20px;
}

.about .description h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about .description p {
    margin-bottom: 15px;
    color: #b3b3b3;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    color: #e6e6e6;
}

/* Responsive */
@media (max-width: 768px) {
    .about .about-content {
        flex-direction: column;
    }

    .about .profile-image {
        margin-bottom: 20px;
    }

    .about .description {
        padding-left: 0;
    }
}

/* SKILL */

/* Skill Section */
.skills {
    padding: 60px 0;
    background-color: #2a2a2a;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #e6e6e6;
    margin-bottom: 40px;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skills-left, .skills-right {
    width: 48%; /* Membagi kolom kiri dan kanan */
}

.skill {
    margin-bottom: 25px;
}

.skill label {
    display: block;
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.skill progress {
    width: 100%;
    height: 20px;
    border-radius: 8px;
    background-color: #444;
    border: none;
}

.skill progress[value] {
    appearance: none;
    height: 20px;
    border-radius: 8px;
}

.skill span {
    display: inline-block;
    margin-top: 5px;
    font-size: 1rem;
    color: #e6e6e6;
}

/* Customize Progress Bar Appearance */
progress::-webkit-progress-bar {
    background-color: #444;
    border-radius: 8px;
}

progress::-webkit-progress-value {
    border-radius: 8px;
    background-color: #6cc1e5;
}

progress::-moz-progress-bar {
    background-color: #6cc1e5;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid {
        flex-direction: column; /* Stack kolom menjadi satu untuk perangkat kecil */
    }

    .skills-left, .skills-right {
        width: 100%; /* Full width untuk setiap kolom */
    }
}


/* galeri */

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: #1f1f1f;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #e6e6e6;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    grid-template-areas: 
        "a b c"
        "d e e";
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    object-fit: cover;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Add Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Button to View Full Gallery */
.view-full-gallery {
    text-align: center;
    margin-top: 40px;
}

.btn-gallery {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6cc1e5;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-gallery:hover {
    background-color: #55a8cc;
    transform: scale(1.05);
}


/* Smooth Fade-in Animation */
.gallery-item {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Stack grid items */
        grid-auto-rows: 150px; /* Adjust height of the items */
        grid-template-areas: 
            "a"
            "b"
            "c"
            "d"
              ;
    }
}


/* Kontak */

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #2a2a2a;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #e6e6e6;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6cc1e5;
    outline: none;
}

.contact-form button {
    padding: 12px 20px;
    background-color: #6cc1e5;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #55a8cc;
}

@media (max-width: 768px) {
    .contact-form {
        width: 90%;
    }
}
/* animasi load */

/* Efek Fade-in pada seluruh halaman */
body {
    opacity: 0;
    animation: fadeInPage 1.2s ease-out forwards;
}

/* Fade-in Animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animasi Slide-up untuk Judul dan Slogan */
h1, .slogan {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.3s; /* Delay untuk elemen judul dan slogan */
}

/* Slide-up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi scale-up untuk gambar atau elemen hero */
.profile-image img, .gallery-item img {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleUp 1s ease-out forwards;
    animation-delay: 0.6s; /* Delay untuk gambar */
}

/* Scale-up Animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animasi untuk tombol CTA */
.cta-button, .btn-gallery {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease-out forwards;
    animation-delay: 1s; /* Delay untuk tombol CTA */
}
