/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Enable smooth scrolling */
body {
    scroll-behavior: smooth;
    background: white;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav-links a:hover {
    color: #00b4d8;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('image/bcg.mp4');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0077b6;
    color: white;
    padding: 0 5%;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 30px;
}

.home-text {
    flex: 1;
    text-align: left;
}

.home-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-text p {
    font-size: 24px;
    margin-bottom: 30px;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.home-image img {
    max-width: 450px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Styling untuk link sosial di Home */
.social-links {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.social-links li {
    margin-bottom: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00b4d8;
}

.social-links i {
    font-size: 24px;
}

/* Animasi Slide-In untuk #typing-text */
#typing-text {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 1s ease forwards;
    animation-delay: 0.2s;
}

/* Animasi untuk p */
.home-text p {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 1s ease forwards;
    animation-delay: 0.4s;
}

/* Animasi untuk link sosial */
.social-links li {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 1s ease forwards;
}

.social-links li:nth-child(1) {
    animation-delay: 0.6s;
}

.social-links li:nth-child(2) {
    animation-delay: 0.8s;
}

.social-links li:nth-child(3) {
    animation-delay: 1s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efek ketikan untuk h1 */
#typing-text::after {
    content: "|";
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.8); /* Membuat video sedikit lebih gelap */
}
.play-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 10px 20px;
    background: #00b4d8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .play-video-btn {
        display: block;
    }
}
.social-links .fa-whatsapp {
    color: #25D366; /* Hijau WhatsApp */
}

.social-links .fa-instagram {
    color: #E1306C; /* Warna Instagram */
}

.social-links .fa-twitter {
    color: #1DA1F2; /* Biru Twitter */
}

/* About Section */
#about {
    padding: 80px 5%;
    background-image: url('image/bcg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    color: #fff;
    
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    
}

.about-content img {
    border-radius: 50%;
}

.about-content h2 p {
    font-size: 18px;
    line-height: 1.6;
    background: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

/* Skills Section */
#skills {
    padding: 80px 5%;
    background-image: url('image/bcg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f4f4;
    text-align: center;
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#skills h2 {
    position: relative;
    z-index: 2;
    color: white;
    margin-bottom: 40px;
}

.skills-carousel {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-width: 100%;
}

.skill-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 40px;
    color: #333;
    margin-bottom: 10px;
}

.skill-item h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
}

.progress-bar {
    background: #ddd;
    border-radius: 5px;
    height: 20px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.progress {
    background: #00b4d8;
    height: 100%;
    width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    transition: width 1s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #333;
}

/* Portfolio Section */
#portfolio {
    padding: 80px 5%;
    background-image: url('image/bcg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    text-align: center;
    position: relative;

}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#portfolio h2,
#portfolio .portfolio-note,
.portfolio-grid {
    position: relative;
    z-index: 2;
    color: rgb(255, 255, 255);
}


.portfolio-note {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: black;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    border-radius: 10px;
}

.portfolio-item h3 {
    margin: 15px 0;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease forwards;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.modal-link {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.modal-link:hover {
    background: #555;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #ff0000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Section */
#contact {
    padding: 80px 5%;
    background-image: url('image/bcg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f4f4;
    text-align: center;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#contact h2,
#contact .contact-info {
    position: relative;
    z-index: 2;
    color: white;
}

#contact .contact-info {
    margin-top: 20px;
}

#contact .contact-info p {
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

#contact .contact-info a {
    color: #00b4d8;
    text-decoration: none;
    transition: color 0.3s;
}

#contact .contact-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 20px;
    background-image: url('images/background-footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

footer p {
    position: relative;
    z-index: 2;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #333;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .home-text {
        text-align: center;
    }

    .home-image {
        justify-content: center;
    }

    .home-image img {
        max-width: 300px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .carousel-slide {
        flex-direction: column;
        align-items: center;
    }

    .skill-item {
        width: 80%;
    }

    .carousel-btn {
        padding: 8px;
        font-size: 16px;
    }

    .portfolio-note {
        font-size: 16px;
        padding: 0 10px;
    }

    #contact .contact-info p {
        font-size: 16px;
    }
}