@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 100%); /* Soft grey to white gradient */
    color: #333;
    line-height: 1.6;
}

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

/* Glassmorphism Card Style */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
    border-radius: 15px; /* Soft border-radius */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 30px;
    margin-bottom: 25px;
}

/* Header Section */
.header-card {
    text-align: center;
    padding-bottom: 40px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.8em;
    font-weight: 700; /* Bold name */
    color: #222;
    margin-bottom: 10px;
}

.contact-info, .location {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

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

.contact-info i, .location i {
    margin-right: 8px;
    color: #666;
}

.summary {
    font-size: 1.05em;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
}

/* Buttons */
.header-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px; /* Rounded buttons */
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.primary-btn {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Full width section (for Work Experiences) */
.full-width-section {
    width: 100%; /* Ensure it takes full width of its parent (.container) */
    /* No grid-column span needed as it's not in the grid-layout */
}

/* Grid Layout for Sections (Education, Organization, Skills) */
.grid-layout {
    display: grid;
    /* Education, Organization, Skills */
    grid-template-columns: repeat(2, 1fr) 1fr; /* 2 kolom untuk Education & Organization, 1 kolom untuk Skills di desktop */
    gap: 25px;
}

/* Specific styling to make Education and Organization fit two columns */
/* For desktop, Education and Organization will take the first two columns.
   Skills will take the third.
   However, if we want Education and Organization to be *side-by-side* and Skills below them,
   we need a slightly different approach or a different grid structure.
   Let's assume "2 kartu" berarti mereka berdampingan.
   We will make grid-layout a 2-column grid and have Skills be in its own row, spanning two columns.
*/
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk Education & Organization di desktop */
    gap: 25px;
}

.skills {
    grid-column: span 2; /* Skills will span both columns */
}


/* Section Headings and Typography */
h2 {
    font-size: 1.8em;
    font-weight: 700; /* Subjudul section bold */
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Light separator */
}

.item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sub-detail, .date, .description, .item ul {
    font-size: 0.9em; /* Detail lebih kecil */
    color: #555;
    margin-bottom: 5px;
}

.item strong {
    color: #444;
    font-weight: 600;
}

.item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.item ul li {
    margin-bottom: 5px;
}


/* Responsive Breakpoints */

/* Tablet Layout (2 columns for education/organization, skills below) */
@media (max-width: 992px) {
    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .header-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }

    .grid-layout {
        grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom untuk tablet */
    }

    .skills {
        grid-column: span 2; /* Skills tetap span 2 kolom */
    }
}

/* Mobile Layout (1 column for all sections) */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr; /* 1 kolom untuk mobile */
    }

    .skills {
        grid-column: span 1; /* Skills kembali 1 kolom */
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .glassmorphism-card {
        padding: 20px;
    }

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

    .summary {
        font-size: 0.95em;
    }
}

/* Even smaller mobile adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header-buttons .btn {
        width: 100%; /* Full width buttons */
        max-width: none;
    }

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

    h1 {
        font-size: 1.6em;
    }

    .contact-info, .location, .summary, .sub-detail, .date, .description, .item ul {
        font-size: 0.85em;
    }
}