/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto:wght@400;500&display=swap");

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #2d82bb;
    border-radius: 5px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a608f;
}

/* color palette */
:root {
    --primary-color: #001f3f;
    --secondary-color: #3498db;
    --hover-color: #00bcd4; /* Warna hover baru (biru terang) */
    --text-color: #2c3e50;
    --light-text-color: #ecf0f1; /* Warna teks terang/putih */
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    background: var(--primary-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.sticky-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: #fff;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center; /* Menambahkan ini agar ikon align */
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--hover-color); /* Perubahan warna hover */
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--hover-color); /* Perubahan warna hover */
}

.social-icons-mobile {
    display: none; /* Sembunyikan di desktop secara default */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Main content styles */
main {
    min-height: calc(100vh - 80px - 60px);
}

section {
    padding: 80px 0;
}

h1,
h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Hero section styles */
.hero {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: #fff;
    padding: 200px 0;
}

.hero-content,
.hero-image {
    position: relative;
    z-index: 2;
}

.wave-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wave path:nth-child(1) {
    stroke-width: 2;
    opacity: 40%;
}
.wave path:nth-child(2) {
    stroke-width: 2;
    opacity: 40%;
}
.wave path:nth-child(3) {
    stroke-width: 2;
    opacity: 40%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 10;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-text-color);
    min-height: 80px;
}

/* Typing animation cursor */
.typing-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
    color: var(--light-text-color);
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color); /* Perubahan warna */
    color: #fff; /* Perubahan warna teks */
    padding: 10px 24px;
    margin-top: 30px;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: transparent; /* Perubahan warna hover */
    color: #fff;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* About section styles */
.about {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--light-text-color); /* Perubahan warna teks */
    padding: 100px 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #ffffff;
}

/* Skills section styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background-color: #ffffff; /* Latar belakang putih */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Border lebih gelap */
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: #f0f0f0; /* Sedikit abu-abu saat hover */
}

.skill-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color); /* Warna teks biru gelap */
}

.skill-item p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color); /* Warna teks biru gelap */
}

.skill-bar {
    background-color: #e0e0e0; /* Warna abu-abu terang */
    height: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.skill-progress {
    background-color: var(--secondary-color); /* Warna biru */
    height: 100%;
    border-radius: 3px;
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color); /* Warna teks biru gelap */
}

/* Projects section styles */
.projects {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
}

.projects h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    text-align: center;
    color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #ffffff; /* Latar belakang putih */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: #f0f0f0; /* Sedikit abu-abu saat hover */
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px 15px 0 15px;
    color: var(--primary-color); /* Warna teks biru gelap */
}
.project-card p {
    padding: 15px;
    color: var(--text-color); /* Warna teks biru gelap */
}

.project-link {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 8px 16px;
    background-color: var(--secondary-color); /* Perubahan warna */
    color: #fff; /* Perubahan warna teks */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #2682c2; /* Perubahan warna hover */
}

/* Contact section styles */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form textarea {
    height: 150px;
}

.submit-btn {
    background-color: var(--secondary-color); /* Perubahan warna */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2682c2; /* Perubahan warna hover */
}

/* Footer styles */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-link {
    color: var(--hover-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff; /* Perubahan warna hover */
}

/* =================================== */
/* ==== PERBAIKAN RESPONSIVE DISINI ==== */
/* =================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Sesuai tinggi header */
        left: 0;
        width: 100%;
        background: linear-gradient(
            135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%
        );
        padding: 20px;
        text-align: center;
    }

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

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

    .hamburger {
        display: flex;
        z-index: 1001; /* Pastikan di atas nav-links */
    }

    .desktop-only {
        display: none; /* Sembunyikan ikon sosial di header (versi desktop) */
    }

    .social-icons-mobile {
        display: block; /* Tampilkan pembungkus ikon di mobile */
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .social-icons-mobile .social-icons a {
        margin: 0 15px; /* Beri jarak antar ikon */
        font-size: 1.5rem; /* Sedikit perbesar ikon */
    }
    
    .social-icons-mobile .social-icons {
        display: flex;
        justify-content: center;
    }
    
    .social-icons-mobile .social-icons a {
        margin: 0 15px;
    }


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

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        text-align: center;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    /* Hamburger animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(-45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(45deg);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}