/* =================== BASE STYLES =================== */
html {
    scroll-behavior: smooth;
}

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

h3,
h4,
p {
    color: #D9D9D9;
}

body {
    background-color: #191919;
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    overflow-x: hidden;
}

.default-color {
    background-color: #191919;
}

section {
    scroll-margin-top: 80px;
}

/* =================== NAVBAR =================== */
.navbar-custom {
    display: flex;
    background-color: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(45deg, #E70FAA, #00C0FD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links,
.nav-links-sosmed {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    color: #A7A7A7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links li:hover a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-links-sosmed img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-links-sosmed a:hover img {
    transform: scale(1.1);
    filter: invert(0.8) !important;
}

/* =================== HERO SECTION =================== */
.container-lg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro {
    padding: 60px 0;
}

.intro h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    margin: 15px 0;
    line-height: 1.3;
    font-weight: 600;
}

.intro h3:first-child {
    font-size: 32px;
    font-weight: 400;
}

.intro h3:nth-child(2) {
    font-size: 28px;
    font-weight: 400;
}

.intro h3:nth-child(3) {
    font-size: 52px;
    margin: 25px 0;
    background-image: linear-gradient(45deg, #E70FAA, #00C0FD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.intro h3:nth-child(4),
.intro h3:nth-child(5) {
    font-size: 24px;
    font-weight: 400;
    color: #B8B8B8;
}

.intro h4 {
    padding-top: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.profile-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.profile-img img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 5px solid #E70FAA;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(231, 15, 170, 0.3);
}

/* =================== DOWNLOAD BUTTON =================== */
.download-button {
    margin-top: 30px;
    width: 250px;
    height: 52px;
    border-radius: 8px;
    background-image: linear-gradient(45deg, #E70FAA, #00C0FD);
    border: none;
    box-shadow: 0 4px 15px rgba(231, 15, 170, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 15, 170, 0.6);
}

.download-button a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.download-button a:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.button-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button-separator {
    height: 30px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.button-icon {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* =================== TECH STACK SECTION =================== */
.tech-stack-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.tech-stack-intro h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-stack-intro p {
    font-size: 20px;
    color: #B8B8B8;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-stack img {
    height: 80px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tech-stack img:hover {
    transform: scale(1.15);
}

/* =================== EXPERIENCE SECTION =================== */
.experience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.experience-header h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.experience-header p {
    font-size: 20px;
    color: #B8B8B8;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #E70FAA, #00C0FD);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #E70FAA, #00C0FD);
    border-radius: 50%;
    border: 4px solid #191919;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(231, 15, 170, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(231, 15, 170, 0.3);
}

.timeline-content {
    width: 45%;
    background-color: #363636;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(231, 15, 170, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #363636;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent #363636 transparent transparent;
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(45deg, rgba(231, 15, 170, 0.2), rgba(0, 192, 253, 0.2));
    border: 1px solid rgba(231, 15, 170, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #00C0FD;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 20px;
    color: white;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.timeline-content .company {
    font-size: 15px;
    color: #B8B8B8;
    margin: 0;
    line-height: 1.5;
}


/* =================== PROJECT SECTION =================== */
.project-post-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.project-post-header h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-post-header p {
    font-size: 20px;
    color: #B8B8B8;
}

.projet-post {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    width: 100%;
    max-width: 400px;
    height: 550px;
    background-color: #363636;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    justify-self: center;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(231, 15, 170, 0.3);
}

.post-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0;
}

.post-info {
    flex: 1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.post-description-wrapper {
    flex: 1;
    overflow-y: auto;
    margin: 4px 0 8px 0;
    min-height: 0;
}

.post-description-wrapper::-webkit-scrollbar {
    width: 6px;
}

.post-description-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.post-description-wrapper::-webkit-scrollbar-thumb {
    background: rgba(231, 15, 170, 0.5);
    border-radius: 3px;
}

.post-description-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 15, 170, 0.7);
}

.post-content h3 {
    font-size: 18px;
    color: white;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.post-description {
    font-size: 14px;
    color: #D9D9D9;
    line-height: 1.6;
    margin: 0;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: linear-gradient(45deg, rgba(231, 15, 170, 0.2), rgba(0, 192, 253, 0.2));
    border: 1px solid rgba(231, 15, 170, 0.3);
    border-radius: 6px;
    color: #00C0FD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: linear-gradient(45deg, rgba(231, 15, 170, 0.3), rgba(0, 192, 253, 0.3));
    border-color: rgba(231, 15, 170, 0.5);
    color: #E70FAA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 15, 170, 0.3);
}

.btn-link i {
    font-size: 12px;
}

.tech-stack-post {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0 0;
    flex-shrink: 0;
}

.tech-stack-post p {
    font-size: 12px;
    color: #B8B8B8;
    margin: 0;
    line-height: 1.4;
}

/* =================== RESPONSIVE DESIGN =================== */

/* Tablet */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .navbar-custom {
        padding: 0 3%;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .intro h3 {
        font-size: 36px;
    }

    .intro h3:nth-child(3) {
        font-size: 42px;
    }

    .intro h3:nth-child(4),
    .intro h3:nth-child(5) {
        font-size: 20px;
    }

    .profile-img img {
        width: 240px;
        height: 240px;
    }

    .tech-stack-intro h3,
    .project-post-header h3 {
        font-size: 36px;
    }

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 25px;
    }

    .tech-stack img {
        height: 70px;
    }

    .projet-post {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    /* Experience Tablet */
    .experience-header h3 {
        font-size: 36px;
    }

    .timeline-content {
        width: 48%;
        padding: 20px;
    }

    .timeline-content h4 {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .navbar-custom {
        height: 60px;
        padding: 0 4%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo a {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links-sosmed {
        gap: 15px;
    }

    .nav-links-sosmed img {
        width: 28px;
        height: 28px;
    }

    section {
        scroll-margin-top: 60px;
    }

    .container-lg {
        padding: 0 15px;
    }

    .intro {
        padding: 40px 0 20px;
        text-align: center;
    }

    .intro h3 {
        font-size: 28px;
    }

    .intro h3:first-child {
        font-size: 24px;
    }

    .intro h3:nth-child(2) {
        font-size: 22px;
    }

    .intro h3:nth-child(3) {
        font-size: 32px;
    }

    .intro h3:nth-child(4),
    .intro h3:nth-child(5) {
        font-size: 18px;
    }

    .profile-img {
        padding: 30px 0;
    }

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

    .download-button {
        width: 220px;
        height: 48px;
    }

    .tech-stack-intro,
    .project-post-header {
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .tech-stack-intro h3,
    .project-post-header h3 {
        font-size: 32px;
        text-align: center;
    }

    .tech-stack-intro p,
    .project-post-header p {
        font-size: 16px;
        text-align: center;
    }

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .tech-stack img {
        height: 60px;
    }

    .projet-post {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 0 60px;
    }

    .post-card {
        max-width: 100%;
        height: auto;
        min-height: 520px;
    }

    .post-card img {
        height: 220px;
    }

    .post-content {
        padding: 15px;
    }

    .post-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-link {
        padding: 12px;
        font-size: 14px;
    }

    /* Experience Timeline Mobile */
    .experience-header {
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .experience-header h3 {
        font-size: 32px;
        text-align: center;
    }

    .experience-header p {
        font-size: 16px;
        text-align: center;
    }

    .timeline {
        padding: 20px 0 20px 30px;
    }

    .timeline::before {
        left: 0;
        transform: none;
    }

    .timeline-item {
        justify-content: flex-start !important;
        margin-bottom: 40px;
    }

    .timeline-dot {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.2);
    }

    .timeline-content {
        width: calc(100% - 30px);
        margin-left: 20px !important;
        margin-right: 0 !important;
        padding: 20px;
    }

    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-width: 10px 15px 10px 0 !important;
        border-color: transparent #363636 transparent transparent !important;
    }

    .timeline-content h4 {
        font-size: 18px;
    }

    .timeline-content .company {
        font-size: 14px;
    }


}

/* Small Mobile */
@media (max-width: 480px) {
    .intro h3:nth-child(3) {
        font-size: 28px;
    }

    .intro h3:nth-child(4),
    .intro h3:nth-child(5) {
        font-size: 16px;
    }

    .profile-img img {
        width: 180px;
        height: 180px;
    }

    .download-button {
        width: 200px;
        height: 44px;
    }

    .download-button a {
        font-size: 14px;
        padding: 0 15px;
    }

    .tech-stack-intro h3,
    .project-post-header h3 {
        font-size: 28px;
    }

    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tech-stack img {
        height: 50px;
    }
}