@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Nunito", sans-serif;
}

:root {
    --bg-color: #F0F4F8; /* Light blue-gray */
    --snd-bgg-color: #D9E2EC; /* Light gray-blue */
    --text-color: #102A43; /* Dark blue-gray for good readability */
    --main-color: #3E7CB1; /* Medium blue */
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.navigation a{
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
}

.navigation a:hover,
.navigation a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}
span {
    color: var(--main-color);
}
.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-img img {
    width: 30vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5 ease;
}
.social-media a:hover {
    background: var(--main-color);
    color: var(--snd-bgg-color);
    box-shadow: 0 0 1rem var(--main-color);
}


.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--snd-bgg-color);
}
.about-img img {
    width: 25vw;
}
.heading {
    text-align: center;
    font-size: 4.5rem;
}
.about-content h2 {
    text-align: left;
    line-height: 1.2;
}
.about-content p {
    font-size: 1.8rem;
    margin: 2rem 0 3rem;
    text-align: justify;
}

.education h2 {
    margin-bottom: 5rem;
}
.education-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}
.education-container .education-box {
    flex: 1 1 30rem;
    background: var(--snd-bgg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5 ease;
}
.education-container .education-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}
.education-box .education-img img {
    width: 15vw;
}
.education-box h3 {
    font-size: 2.6rem;
}
.education-box h4 {
    font-size: 2.2rem;
}
.education-box p {
    font-size: 1.8rem;
}

.experience {
    background: var(--snd-bgg-color);
    padding: 5rem 5%;
}
.experience h2 {
    margin-bottom: 5rem;
    text-align: center;
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom dengan ukuran yang sama */
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.experience-container .experience-box {
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--snd-bgg-color);
    transition: 0.5s ease;
    position: relative;
}

.experience-container .experience-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.experience-box .experience-img img {
    width: 12vw;
}

.experience-box h3 {
    font-size: 2rem;
    color: var(--text-color);
}

.experience-box h4 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--text-color);
}

.experience-text p {
    font-size: 1.6rem;
    text-align: justify;
    color: var(--text-color);
}

.experience-box i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--main-color);
    transition: color 0.3s;
}

.experience-box hr {
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 10px;
}

.experience-box:hover i {
    color: var(--text-color);
}


.license h2 {
    margin-bottom: 5rem;
    text-align: center;
    font-size: 5rem;
    font-weight: bold;
    color: #0A133E;
}

.license-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsif, minimal 250px per kotak */
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 0 2rem;
}

.license-container .license-box {
    background: var(--snd-bgg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 2px solid var(--bg-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.license-container .license-box:hover {
    border-color: var(--main-color);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.license-box .license-img img {
    width: 80%;
    max-width: 100px;
    margin-bottom: 1rem;
}

.license-box h3 {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.license-box h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.license-box p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.license-box i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

.license-box:hover i {
    color: var(--text-color);
}

.Achievements {
    background: var(--snd-bgg-color);
    padding: 5rem 9% 1rem;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 9rem;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

/* Card */
.achievement-card {
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.196),
        rgb(255, 255, 255)
    );
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}

/* Glow effect */
.achievement-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        var(--main-color),
        transparent 60%
    );
    opacity: 0;
    transition: 0.4s;
}

.achievement-card:hover::before {
    opacity: 0.15;
}

.achievement-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 2rem 4rem rgba(0,0,0,0.25);
}

/* Badge */
.achievement-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--main-color);
    color: #fff;
    padding: 0.6rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 3rem;
}

/* Content */
.achievement-content {
    position: relative;
    z-index: 2;
}

.achievement-year {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--main-color);
}

.achievement-title {
    font-size: 2.3rem;
    margin: 1.2rem 0;
    line-height: 1.3;
}

.achievement-desc {
    font-size: 1.5rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.achievement-org {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.75;
}





.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: var(--bg-color);
}
.footer-text {
    font-size: 1.6rem;
}
.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop:hover {
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.5rem;
    color: var(--snd-bgg-color)
}


@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3%;
    }
    .education {
        padding-bottom: 4rem;
    }
    .experience {
        padding-bottom: 7rem;
    }
    .experience-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .license {
        min-height: auto;
    }
    .Achievements {
        padding: 7rem 5% 4rem;
    }
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }
    .navigation.active {
        display: block;
    }
    .navigation a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-content {
        order: 2;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column;
    }
    .about-img img {
        width: 75vw;
        margin-top: 4rem;
    }
    .education h2 {
        margin-bottom: 1rem;
    }
    .experience h2 {
        margin-bottom: 3rem;
    }
    .experience-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .section-title {
        font-size: 3.2rem;
    }

    .achievement-title {
        font-size: 1rem;
    }
}

@media (max-width: 617px) {
    .experience-container {
        grid-template-columns: 1fr;
    }
    .home-img img {
        width: 80vw;
        margin-top: 8rem;
    }
    .about-img img {
        width: 50vw;
        margin-top: 4rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    .license-box {
        width: 100%;
    }
    .achievement-card {
        padding: 2.5rem;
    }

    .achievement-title {
        font-size: 1.8rem;
    }
    
}
