/* RESET DASAR & FONT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117; /* Dark Background (GitHub/Space Theme) */
    color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* NAVIGASI BAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(13, 17, 23, 0.9); /* Semi-transparan untuk efek keren */
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid #30363d;
}

.logo {
    font-weight: 900;
    color: #007bff; /* Electric Blue Accent */
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

/* ANIMASI TOMBOL NAVIGASI */
.nav-button {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-button:hover {
    color: #007bff;
}

.nav-button:hover::after {
    width: 100%;
}


/* HERO SECTION */
.hero {
    /* MENGGUNAKAN URL GAMBAR YANG ANDA BERIKAN */
    background: url('https://cdn.britannica.com/05/236505-050-17B6E34A/Elon-Musk-2022.jpg') no-repeat center center/cover; 
    
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Kompensasi untuk navbar */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Overlay Ditingkatkan agar Teks Jelas */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    transition: transform 0.1s linear; /* Untuk Parallax di JS */
}




/* SECTION UMUM */
.section {
    padding: 100px 40px;
    min-height: 50vh;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    text-align: center;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* ABOUT SECTION */
.about-section {
    background-color: #161b22;
    text-align: center;
}

.intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    background-color: #0d1117;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.stat-item h3 {
    font-size: 2em;
    color: #007bff;
}


/* PORTFOLIO SECTION (GRID) */
.grid-container {
    background-color: #0d1117;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.grid-container h2 {
    grid-column: 1 / -1; /* Judul mencakup semua kolom */
    margin-bottom: 40px;
}

.grid-item {
    background-color: #161b22;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    
    /* Awal Animasi Fade-In (akan diubah oleh JS) */
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.grid-item.visible {
    opacity: 1; 
    transform: translateY(0);
}

.grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.grid-item h3 {
    color: #007bff;
    margin: 10px 0;
}


/* ANIMASI TOMBOL (CTA-BUTTON & PROJECT-BUTTON & SUBMIT) */

.cta-button, .project-button, .submit-button {
    padding: 3px 15px;
    margin-top: 15px;
    border: 2px solid #007bff;
    background-color: transparent;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50px; /* Bentuk pil untuk kesan modern */
    transition: all 0.3s ease;
    position: relative; 
    overflow: hidden; /* Penting untuk Ripple Effect */
    z-index: 10;
}

/* Hover/Focus Efek Glowing */
.cta-button:hover, .project-button:hover, .submit-button:hover {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 0 15px #007bff; /* Efek glowing/bayangan */
}

/* Efek Ripple (JS akan menambahkan elemen ini) */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* CONTACT SECTION */
.contact-section {
    background-color: #161b22;
    text-align: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #30363d;
    border-radius: 5px;
    background-color: #0d1117;
    color: white;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background-color: #0a0c10;
    border-top: 1px solid #30363d;
    font-size: 0.9em;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* Sembunyikan link di mobile, bisa diganti dengan menu hamburger */
    }
    .hero h1 {
        font-size: 3em;
    }
    .section {
        padding: 60px 20px;
    }
}