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

/* Reset dan Global Styles */
* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

body {
    width: 100%;
    background: linear-gradient(to right, #F0F4F7, #E4EBF0);
}

/* ==== NAVBAR ==== */
nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(160, 180, 200, 0.15);
}

.nav-container {
    width: 100%;
    height: 100%;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A2F4F;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}
.logo img {
    height: 40px;
    width: auto;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: #1A2F4F;
    text-decoration: none;
    font-weight: 500;
}

.nav-container .links a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #5F85BB;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .links a.active {
    color: #5F85BB;
}

/* Hamburger Icon (Mobile) */
.hamburg {
    cursor: pointer;
    color: #1A2F4F;
    font-size: 2rem;
    display: block; 
    z-index: 30;
    padding: 5px 10px;
    border: 1px solid #1A2F4F;
    border-radius: 5px;
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.hamburg.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
}

.cancel {
    cursor: pointer;
    color: #ffffff;
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 40;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.3s ease, color 0.3s ease;
}

.cancel:hover {
    transform: rotate(90deg);
    color: #e0e0e0;
}

/* Dropdown Menu (Mobile) */
.dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(95, 133, 187, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s;
    z-index: 25;
}

.dropdown.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.dropdown.open .cancel {
    opacity: 1;
    visibility: visible;
}


.dropdown-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 80%;
}

.dropdown-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s ease;
    position: relative;
}

.dropdown-links a:hover {
    color: #e0eaf6;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
    border-radius: 6px;
}

.dropdown-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: #e0eaf6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.dropdown-links a:hover::after {
    width: 60%;
}

.dropdown.open .dropdown-links a {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown.open .dropdown-links a:nth-child(1) { transition-delay: 0.1s; }
.dropdown.open .dropdown-links a:nth-child(2) { transition-delay: 0.2s; }
.dropdown.open .dropdown-links a:nth-child(3) { transition-delay: 0.3s; }
.dropdown.open .dropdown-links a:nth-child(4) { transition-delay: 0.4s; }
.dropdown.open .dropdown-links a:nth-child(5) { transition-delay: 0.5s; }
.dropdown.open .dropdown-links a:nth-child(6) { transition-delay: 0.6s; }


/* ==== MEDIA QUERIES UNTUK RESPONSIVITAS NAVBAR ==== */
@media (max-width: 992px) {
    .nav-container .links {
        display: none;
    }
    .hamburg {
        display: block; 
    }
    .nav-container {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 5%;
    }
    .hamburg {
        font-size: 1.8rem;
    }
    .cancel {
        font-size: 1.8rem;
        top: 15px;
        right: 15px;
    }
    .dropdown-links a {
        font-size: 1.4rem;
    }
}


/* ==== SECTION (General Section Styling) ==== */
section {
    width: 100%;
    min-height: 90vh;
    padding: 60px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ==== HOME SECTION ==== */
#home {
    position: relative;
    overflow: hidden;
    padding: 60px 10%;
    background: linear-gradient(135deg, #e0f2f7 0%, #f0f8ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.home-background-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.home-background-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
    max-width: 1200px;
}

.main-container .image {
    width: clamp(250px, 50vw, 400px);
    height: clamp(250px, 50vw, 400px);
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(160, 180, 200, 0.2);
    flex-shrink: 0;
    position: relative;
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
}

.main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.main-container .content {
    flex-basis: auto;
    max-width: 600px;
    min-height: 100px;
    color: #1A2F4F;
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 15px;
}

.content .greeting {
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.2rem); 
    color: #5F85BB;
    margin-bottom: 10px;
    font-weight: 500;
}

.content .my-name { 
    font-size: clamp(2.8rem, 2.5rem + 3vw, 4.5rem); 
    line-height: 1.1;
    margin-bottom: 15px;
    color: #1A2F4F;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.typewriter {
    font-weight: 600;
    font-size: clamp(1.3rem, 1.2rem + 1.5vw, 2.5rem); 
    margin-bottom: 20px;
}

.typewriter .typed-text {
    color: #5F85BB;
    font-size: inherit;
    text-shadow: 0 0 5px rgba(95, 133, 187, 0.3);
}

.typed-cursor {
    color: #5F85BB;
    font-size: inherit;
    opacity: 1;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
}

.tagline {
    font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.1rem); 
    margin-top: 15px;
    color: #555555;
    line-height: 1.6;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.tagline .highlight {
    color: #5F85BB;
    font-weight: 600;
}

.button-group {
    display: flex;
    justify-content: flex-start; 
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background-color: #5F85BB;
    color: white;
    border: 2px solid #5F85BB;
}

.primary-btn:hover {
    background-color: #4A6E9E;
    border-color: #4A6E9E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(95, 133, 187, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: #5F85BB;
    border: 2px solid #5F85BB;
}

.secondary-btn:hover {
    background-color: #5F85BB;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(95, 133, 187, 0.3);
}

/* === Responsive Adjustments untuk Home Section === */
@media (max-width: 768px) {
    #home {
        padding: 40px 5%;
    }

    .main-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .main-container .image {
        margin-bottom: 0;
    }

    .main-container .content {
        flex-basis: auto;
        width: 100%;
        max-width: 500px;
        text-align: center;
        padding: 0 10px;
    }

    .content .greeting {
        font-size: clamp(1rem, 0.8rem + 0.5vw, 1.2rem);
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .content .my-name {
        font-size: clamp(2.2rem, 1.8rem + 2.5vw, 2.8rem);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .typewriter {
        text-align: center;
        font-size: clamp(1.3rem, 1.2rem + 1.5vw, 2.5rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .tagline {
        text-align: left;
        padding: 0 15px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .button-group {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 375px) {
    .content .my-name {
        font-size: 2rem;
    }
}

/* ==== ABOUT SECTION ==== */
#about {
    padding: 80px 10%;
    background-color: #f8fbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about .section-heading {
    font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    color: #1A2F4F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

#about .underline {
    width: 80px;
    height: 4px;
    background-color: #5F85BB;
    margin-bottom: 50px;
    border-radius: 2px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: flex-start;
}

.about-left-column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(160, 180, 200, 0.1);
    background-image: linear-gradient(135deg, #f0f4f7 0%, #ffffff 100%);
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e6eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item i {
    font-size: 1.8rem;
    color: #5F85BB;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
    transition: color 0.3s ease;
}

.service-item h3 {
    font-size: 1.2rem;
    color: #1A2F4F;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-item:hover {
    border-color: #5F85BB;
    box-shadow: 0 8px 20px rgba(160, 180, 200, 0.2);
    transform: translateY(-2px);
}

.service-item:hover i {
    color: #4A6E9E;
}

.service-item:hover h3 {
    color: #4A6E9E;
}

.about-right-column {
    flex: 2;
    min-width: 350px;
    padding: 20px 0;
    color: #555555;
}

.about-right-column p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.about-right-column p:last-of-type {
    margin-bottom: 40px;
}

.highlight-text {
    color: #5F85BB;
    font-weight: 700;
}

.about-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
    justify-content: flex-start;
    max-width: 300px;
}

.social-icon-only {
    font-size: 3rem;
    color: #5F85BB;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #e6f0ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.social-icon-only:hover {
    color: #ffffff;
    background-color: #5F85BB;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(95, 133, 187, 0.3);
}


/* ==== RESPONSIVE DESIGN FOR ABOUT SECTION ==== */
@media (max-width: 884px) {
    #about {
        padding: 50px 5%;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .about-left-column,
    .about-right-column {
        min-width: unset;
        width: 100%;
        max-width: 500px;
    }

    .about-right-column p {
        text-align: left;
        padding: 0 15px;
    }

    .about-social-links {
        justify-content: center;
        max-width: unset;
    }

    .service-item {
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .service-item i {
        font-size: 1.6rem;
        margin-right: 15px;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .about-left-column,
    .about-right-column {
        padding: 15px;
    }

    .about-right-column p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .service-item h3 {
        font-size: 1rem;
    }

    .service-item i {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .social-icon-only {
        width: 50px;
        height: 50px;
        font-size: 2.2rem;
    }

    .about-social-links {
        gap: 15px;
    }
}

#background {
    padding: 80px 10%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#background .section-title {
    font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    color: #1A2F4F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

#background .underline {
    width: 80px;
    height: 4px;
    background-color: #5F85BB;
    margin-bottom: 50px;
    border-radius: 2px;
}

.background-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: flex-start;
}

#education,
#experience {
    flex: 1;
    min-width: 380px;
    padding: 25px;
    background-color: #f8fbfd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(160, 180, 200, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#education:hover,
#experience:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(160, 180, 200, 0.25);
}

#education h2,
#experience h2 {
    font-size: 1.6rem;
    color: #1A2F4F;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#education h2 i,
#experience h2 i {
    font-size: 2.2rem;
    color: #5F85BB;
    margin-right: 15px;
}

.entry {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(160, 180, 200, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    border: 1px solid #e0e6eb;
    overflow: hidden;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry:hover {
    background-color: #f0f4f7;
    box-shadow: 0 4px 15px rgba(160, 180, 200, 0.15);
    transform: translateY(-3px);
    border-color: #5F85BB;
}

.entry-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #1A2F4F;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.entry-title-main-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-title-content {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.entry-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.entry-title-content span {
    font-weight: 600;
    color: #1A2F4F;
    line-height: 1.3;
}

.entry-subtitle {
    font-size: 0.95rem;
    color: #5F85BB;
    font-weight: 400;
    line-height: 1.3;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #5F85BB;
    margin-left: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.entry.open .toggle-icon {
    transform: rotate(45deg);
}

.entry-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
    padding-left: 0;
    padding-right: 0;
}

.entry.open .entry-details {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
    padding-bottom: 20px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.entry.open .entry-details::-webkit-scrollbar {
    display: none;
}

.entry-details ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #4A658A;
}

.entry-details ul li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.entry-details ul li:last-child {
    margin-bottom: 0;
}


@media (max-width: 884px) {
    #background {
        padding: 50px 5%;
    }
    .background-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    #education,
    #experience {
        min-width: unset;
        width: 100%;
        max-width: 500px;
        padding: 20px;
    }
    #education h2,
    #experience h2 {
        font-size: 1.4rem;
        justify-content: center;
    }
    #education h2 i,
    #experience h2 i {
        font-size: 1.8rem;
        margin-right: 10px;
    }

    .entry {
        padding: 15px;
    }

    .entry-title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-right: 10px;
        padding-left: 5px;
    }

    .entry-title-main-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-grow: 1;
        margin-bottom: 0;
    }

    .entry-title-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        text-align: left;
        margin-bottom: 5px;
    }

    .entry-logo {
        margin-right: 8px;
        margin-bottom: 0;
        width: 25px;
        height: 25px;
        flex-shrink: 0;
    }
    
    .entry-title-content span {
        text-align: left;
        font-size: 1rem;
        line-height: 1.3;
    }

    .entry-subtitle {
        margin-top: 0;
        font-size: 0.85rem;
        text-align: left;
    }

    .toggle-icon {
        position: relative;
        margin-left: 10px;
        align-self: center;
        background-color: transparent;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .entry.open .toggle-icon {
        transform: rotate(45deg);
    }

    .entry-details {
        padding-top: 10px;
        margin-top: 10px;
        padding-left: 0;
        padding-right: 0;
    }
    .entry.open .entry-details {
        max-height: 400px;
        overflow-y: auto;
    }
    .entry-details ul {
        padding-left: 15px;
    }
    .entry-details ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #education h2,
    #experience h2 {
        font-size: 1.2rem;
    }
    #education h2 i,
    #experience h2 i {
        font-size: 1.6rem;
        margin-right: 10px;
    }
    .entry-title-content span {
        font-size: 0.95rem;
    }
    .entry-subtitle {
        font-size: 0.78rem;
    }
    .entry-details ul li {
        font-size: 0.85rem;
    }
    .entry-logo {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
    .toggle-icon {
        font-size: 1.3rem;
    }
}
/* ==== SKILLS SECTION ==== */
#skills {
    padding: 80px 10%;
    background-color: #f8fbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#skills .section-title {
    font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    color: #1A2F4F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

#skills .underline {
    width: 80px;
    height: 4px;
    background-color: #5F85BB;
    margin-bottom: 50px;
    border-radius: 2px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(160, 180, 200, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Efek Hover untuk Skill Category Card */
.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(160, 180, 200, 0.25);
}

.skill-category h3 {
    font-size: 1.4rem;
    color: #1A2F4F;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

/* --- Styling untuk Tabs di dalam Skill Category --- */
.tabs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1; 
}

.tab-buttons {
    display: flex;
    justify-content: space-between; 
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e6eb; 
    padding-bottom: 5px;
    flex-wrap: wrap; 
    gap: 5px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #888888;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent; 
    white-space: nowrap;
}

.tab-button:hover {
    color: #1A2F4F;
}

.tab-button.active {
    color: #5F85BB; 
    border-bottom: 2px solid #5F85BB; 
}

.tab-content-wrapper {
    flex-grow: 1; 
}

.tab-pane {
    display: none; 
    padding-top: 10px; 
    animation: fadeIn 0.5s ease-out; 
}

.tab-pane.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Styling untuk List Item Skill (Sama seperti sebelumnya) --- */
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    font-size: 1.05rem;
    color: #555555;
    margin-bottom: 12px;
    padding-left: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.skill-list li:last-child {
    margin-bottom: 0;
}

.skill-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    margin-right: 15px;
    color: #5F85BB;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.skill-list li:hover {
    color: #1A2F4F;
    transform: translateX(5px);
}

/* ==== RESPONSIVE DESIGN FOR SKILLS SECTION ==== */
@media (max-width: 1024px) {
    .skills-container {
        gap: 20px;
    }
    .skill-category {
        min-width: 280px;
        max-width: calc(50% - 20px);
    }
    .skill-category h3 {
        text-align: center;
    }
    .tab-button {
        font-size: 0.9rem; 
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    #skills {
        padding: 50px 5%;
    }
    .skill-category {
        max-width: 400px;
        width: 100%;
        padding: 25px 20px;
    }
    .skill-category h3 {
        font-size: 1.25rem;
        text-align: center;
    }
    .skill-list li {
        font-size: 1rem;
    }
    .skill-icon {
        width: 20px;
        height: 20px;
        font-size: 1.2rem;
        margin-right: 10px;
    }
    .tab-buttons {
        flex-direction: column; 
        align-items: center;
        border-bottom: none; 
        gap: 10px; 
    }
    .tab-button {
        width: 100%; 
        border-bottom: none; 
        border: 1px solid #e0e6eb; 
        border-radius: 8px;
        padding: 10px 15px;
        margin-bottom: 0; 
    }
    .tab-button.active {
        border: 1px solid #5F85BB; 
        background-color: #e6f0ff; 
        color: #5F85BB;
    }
    .tab-content-wrapper {
        padding-top: 15px; 
    }
}

@media (max-width: 480px) {
    .skill-category h3 {
        font-size: 1.15rem;
    }
    .skill-list li {
        font-size: 0.95rem;
    }
}


/* ==== PROJECTS SECTION ==== */
#projects {
    padding: 80px 10%;
    background-color: #f8fbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects .section-title {
    font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    color: #1A2F4F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

#projects .underline {
    width: 80px;
    height: 4px;
    background-color: #5F85BB;
    margin-bottom: 50px;
    border-radius: 2px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(160, 180, 200, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(160, 180, 200, 0.25);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #e9f2fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(95, 133, 187, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-button {
    background-color: #ffffff;
    color: #5F85BB;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.overlay-button:hover {
    background-color: #e0eaf6;
    color: #4a709e;
}

.overlay-button i {
    margin-right: 0;
}

.project-details {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    color: #1A2F4F;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.project-description {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-item {
    background-color: #e0eaf6;
    color: #5F85BB;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tech-item i {
    margin-right: 6px;
}

.project-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.project-link-btn {
    background-color: #5F85BB;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-link-btn:hover {
    background-color: #4a709e;
    transform: translateY(-3px);
}

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

/* ==== RESPONSIVE SETTINGS ==== */
@media (max-width: 768px) {
    #projects {
        padding: 50px 5%;
    }
    .projects-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    .project-image {
        height: 200px;
    }
    .project-title {
        font-size: 1.15rem;
    }
    .project-description {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 180px;
    }
    .project-details {
        padding: 15px 20px;
    }
}

/* ==== PAGINATION (All Devices) ==== */
.pagination-container {
    display: flex;
    margin-top: 40px;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.pagination-btn {
    background-color: #5F85BB;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pageIndicator {
    font-weight: bold;
    color: #1A2F4F;
}


/* ==== CERTIFICATION SECTION ==== */
#certification {
    padding: 80px 10%;
    background-color: #f8fbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#certification .section-title {
    font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    color: #1A2F4F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

#certification .underline {
    width: 80px;
    height: 4px;
    background-color: #5F85BB;
    margin-bottom: 50px;
    border-radius: 2px;
}

.certification-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.certification-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(160, 180, 200, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(160, 180, 200, 0.25);
}

/* Logo Styling */
.cert-logo {
    width: 100px;
    height: 100px;
    padding: 0px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 5px;
}

.cert-logo img {
    max-width: 90%;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cert-logo img:hover {
    transform: scale(1.05);
}

.cert-details {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-title {
    font-size: 1.25rem;
    color: #1A2F4F;
    margin-bottom: 8px;
    font-weight: 700;
}

.cert-provider {
    font-size: 0.9rem;
    color: #5F85BB;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-description {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.cert-date {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 15px;
    font-style: italic;
}

.cert-links {
    margin-top: auto;
}

.cert-link-btn {
    background-color: #5F85BB;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.cert-link-btn:hover {
    background-color: #4a709e;
    transform: translateY(-3px);
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    #certification {
        padding: 50px 5%;
    }
    .certification-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .certification-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ==== PAGINATION FOR CERTIFICATION ==== */
.cert-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.cert-pagination-container .pagination-btn {
    background-color: #5F85BB;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cert-pagination-container .pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#certPageIndicator {
    font-weight: bold;
    color: #1A2F4F;
}

/* ==== FOOTER SECTION ==== */
.footer {
    width: 100%;
    background: #1A2F4F;
    color: #f8fbfd;
    padding: 40px 0px;
    text-align: center;
    position: relative;
    border-top: none;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-heading {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #f8fbfd;
}

.highlight-text-footer {
    color: #5F85BB;
}

.footer-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.footer-icons a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #f8fbfd;
    border-radius: 50%;
    font-size: 1.6rem;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.footer-icons a:hover {
    background-color: #5F85BB;
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    border-color: #5F85BB;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.footer-icons a:hover i {
    transform: none;
    transition: transform 0.3s ease;
}

.location-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.location-text i {
    margin-right: 5px;
    color: #5F85BB;
}

.copyright-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==== RESPONSIVE ADJUSTMENTS for Footer ==== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0px;
    }
    .footer-content {
        gap: 10px;
    }
    .footer-heading {
        font-size: clamp(1rem, 0.9rem + 1vw, 1.4rem);
    }
    .footer-icons {
        gap: 15px;
    }
    .footer-icons a {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
    .location-text {
        font-size: 0.8rem;
    }
    .copyright-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0px;
    }
    .footer-content {
        gap: 8px;
    }
    .footer-heading {
        font-size: clamp(0.9rem, 0.8rem + 1vw, 1.2rem);
    }
    .footer-icons {
        gap: 10px;
    }
    .footer-icons a {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
    .location-text {
        font-size: 0.75rem;
    }
    .copyright-text {
        font-size: 0.65rem;
    }
}