/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d2ff;
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #00d2ff;
}

/* Section Global Layout */
section {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #00d2ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Home Section */
#home {
    align-items: flex-start;
    text-align: left;
}

#home h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

#home h1 span {
    color: #00d2ff;
}

#home p {
    font-size: 1.2rem;
    color: #b0bec5;
    max-width: 650px;
    margin-bottom: 30px;
}

.action-buttons-home {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-custom {
    padding: 12px 30px;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-outline {
    padding: 12px 30px;
    background: transparent;
    color: #00d2ff;
    border: 2px solid #00d2ff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-3px);
}

/* About Section & Skills */
#about {
    background: rgba(0, 0, 0, 0.2);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-image-wrapper {
    flex: 1;
    max-width: 350px;
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-text {
    flex: 2;
    color: #cfd8dc;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

.sub-heading-about {
    color: #90caf9;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.org-list {
    list-style-type: disc;
    margin-left: 20px;
    color: #b0bec5;
}

.org-list li {
    margin-bottom: 10px;
}

.skills-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 210, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

/* Detailed Layout (Experience, Project, Certificate) */
.detailed-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s;
}

.detailed-row:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .detailed-row {
        flex-direction: row;
        align-items: center; 
    }
}

.detailed-image {
    flex: 1;
    max-width: 450px;
}

.detailed-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.detailed-text {
    flex: 1.5;
    text-align: left;
}

.detailed-text h3 {
    color: #00d2ff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.detailed-text h4 {
    color: #90caf9;
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.detailed-text p {
    color: #b0bec5;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: justify;
}

.detailed-text ul {
    color: #b0bec5;
    margin-left: 20px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.detailed-text li {
    margin-bottom: 8px;
    text-align: justify;
}

/* Backgrounds */
#project {
    background: rgba(0, 0, 0, 0.2);
}

#certificate {
    background: transparent;
}

/* Contact */
.contact-container {
    text-align: center;
}

.contact-details {
    margin-top: 20px;
    color: #cfd8dc;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-links a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
    text-decoration: none;
}

.contact-links a:hover {
    color: #00d2ff;
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #0b1317;
    font-size: 0.9rem;
    color: #78909c;
}

/* --- TAMPILAN KHUSUS UNTUK HP (MOBILE RESPONSIVE) --- */
@media screen and (max-width: 768px) {
    /* Menyesuaikan menu navigasi agar tidak bertumpuk */
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 0.85rem;
    }

    /* Mengurangi jarak padding pada section agar layar HP tidak terlalu kosong */
    section {
        padding: 100px 5% 50px 5%;
    }

    /* Mengecilkan ukuran huruf judul agar tidak terpotong */
    .section-title {
        font-size: 2rem;
    }

    #home h1 {
        font-size: 2.2rem;
    }

    #home p {
        font-size: 1rem;
    }

    /* Menyesuaikan susunan tombol di HP */
    .action-buttons-home {
        justify-content: center;
    }

    /* Memastikan gambar profil tidak terlalu besar di HP */
    .about-image-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }
}
