:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-medium: #e2e8f0;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --bg-gradient: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 5px 15px rgba(37, 99, 235, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

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

/* Navigasi */
.navbar {
    background: var(--primary-gradient);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero */
.hero {
    background: var(--bg-gradient);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button i {
    margin-right: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.linkedin-btn {
    background: #0077B5;
}

.linkedin-btn:hover {
    background: #005885;
}

/* Gaya Bagian Umum */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.about,
.education,
.portfolio,
.cv,
.contact {
    padding: 80px 0;
}

/* About & Sertifikat */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.certificates-section {
    margin-top: 4rem;
    text-align: center;
}

.certificates-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--bg-gradient);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.certificate-thumbnail {
    background: var(--primary-gradient);
    padding: 2rem;
    color: white;
}

.certificate-icon {
    font-size: 3rem;
}

.certificate-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certificate-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.certificate-link,
.project-link,
.cv-link {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
    border: none;
}

.certificate-link:hover,
.project-link:hover,
.cv-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.additional-certificate {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.additional-certificate.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.show-more-container {
    margin-top: 2rem;
}

.show-more-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-primary);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* style.css */

.btn-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

/* Edukasi */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-marker {
    position: absolute;
    top: 15px;
    right: -32px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-primary);
    border: 4px solid white;
    font-size: 1.5rem;
    color: white;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -28px;
}

.timeline-content {
    background: var(--bg-gradient);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.timeline-year {
    background: var(--primary-gradient);
    color: white;
    display: inline-block;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-degree {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CV */
.cv {
    background-color: var(--bg-light);
    text-align: center;
}

.cv-container {
    max-width: 900px;
    margin: 0 auto;
}

.cv-viewer {
    width: 100%;
    height: 600px;
    border: 2px solid var(--bg-medium);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.cv-link {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
}

/* Portfolio */
.portfolio {
    background: var(--bg-gradient);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid var(--bg-medium);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8;
    overflow: hidden;
    min-height: 200px;
    position: relative;
}

.project-image {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.portfolio-card:hover .image-nav {
    opacity: 1;
}

.image-nav .nav-btn {
    pointer-events: auto;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--primary-gradient);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Kontak dan Footer */
.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-details p {
    display: flex;
    justify-content: center;
    margin: 0.3rem 0;
}

.contact-details .label {
    width: 90px;
    font-weight: 600;
    text-align: right;
    margin-right: 5px;
}

.contact-details .colon {
    margin-right: 8px;
}

.contact-details .value {
    text-align: left;
}

.social-media h4 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584);
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.linkedin {
    background: #0077B5;
}

.social-link.github {
    background: #333; /
}

.social-link.linktree {
    background: #45c958;
}

.support {
    padding: 40px 0;
}

.trakteer-link {
    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(221, 36, 118, 0.3);
}

.trakteer-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.support-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.qris-box {
    background: #fff;
    border: 2px solid var(--bg-medium);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 300px;
}

.qris-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* ============================================== */
/* DESAIN RESPONSIVE (DISATUKAN)                  */
/* ============================================== */
@media (max-width: 768px) {

    /* Navigasi Mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        color: var(--text-dark);
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-medium);
    }

    .hamburger {
        display: flex;
    }

    /* Konten Lainnya */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        text-align: center;
    }

    .education-timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        left: 0;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }

    .support-options {
        flex-direction: column;
    }
}
