* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #ffffff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000000;
    --main-color: #007f73;
}

/* Force light theme */
html,
body {
    background-color: #ffffff !important;
    color: #000000 !important;
}

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 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(15px);
    transition: all 0.5s ease;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease;
}

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

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-color);
    transform: scale(1.1);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

.home-img img:hover {
    box-shadow: 0 0 28px var(--main-color), 0 0 38px var(--main-color), 0 0 48px var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-2.4rem)
    }

    100% {
        transform: translateY(0)
    }
}

.home-content {
    margin-left: 5rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

/* buttons */
.btn,
.btndownload {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover,
.btndownload:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

.btndownload {
    margin-left: 1rem;
}

/* About */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}

.about-img img {
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}

.about-img img:hover {
    box-shadow: 0 0 28px var(--main-color), 0 0 38px var(--main-color), 0 0 48px var(--main-color);
}

.heading {
    font-size: 6rem;
    text-align: left;
}

.about-content {
    padding: 0 4 rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #2d5016;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4);
}

.expertise-heading {
    color: var(--text-color);
    font-weight: 700;
    font-size: 3rem;
}

.graduate-tag {
    background: linear-gradient(120deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #7a2e2e;
}

.graduate-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 106, 124, .4);
}

/* Services */
.services h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* default behavior for desktop */
    flex-wrap: wrap;
    gap: 25px;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--snd-bg-color);
    padding: 6rem 3rem 2rem;
    text-align: center;
    border-radius: 2rem;
    border: 0.3rem solid var(--bg-color);
    transition: 0.3s ease;
    margin-bottom: 1px;
    /* NOTE: display:flex applied only on tablet via media query di bawah */
}

.services-container .services-box:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-1rem);
    border-color: var(--main-color);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
    margin: 2rem 0;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Testimonial */
.testimonial {
    background: var(--snd-bg-color);
    margin-top: 10px;
}

.testimonial-item h1 {
    text-align: center;
    margin: 10px 0;
    margin-top: 25px;
}

.testimonial-box {
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.testimonial .heading {
    margin-bottom: 5rem;
}

.testimonial-box img {
    width: 30em;
    height: 23rem;
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    object-fit: cover;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testimonial-item {
    min-height: 450px;
    max-width: 450px;
    background: var(--bg-color);
    border: 0.3rem solid var(--bg-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    transition: 0.3s ease;
}

.testimonial-item:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.testimonial-item h2 {
    font-size: 3rem;
}

.testimonial-item p {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}

#star {
    color: gold;
    font-size: 2rem;
}

.btncertif {
    display: block;
    width: fit-content;
    margin: 3rem;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    grid-column: 1 / -1;
    justify-self: center;
}

.btncertif:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
    transform: translateY(-2px);
}

/* contact */
.contact {
    background-color: var(--bg-color);
}

.contact .heading {
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 0.25rem solid var(--main-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

/* lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

/* footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .social a:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.2) translateY(-10px);
}

.footer .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* responsive */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3%;
    }

    .services {
        padding: 7rem;
    }

    .testimonial .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 991px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(15px);
    }

    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }

    .navbar.active {
        right: 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content {
        order: 2;
        margin-left: 1rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }
}

/* === FIX: samakan tinggi card pada rentang tablet (termasuk 810×1080) === */
@media (min-width: 768px) and (max-width: 991px) {
    .services-container {
        align-items: stretch;
        /* override dari center */
    }

    .services-container .services-box {
        display: flex;
        /* jadikan kolom */
        flex-direction: column;
    }

    .services-container .services-box .btn {
        margin-top: auto;
        /* tombol rapih di bawah */
    }
}

@media (max-width: 617px) {
    .home-img img {
        width: 70vw;
        margin-top: 8rem;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 617px) {
    html {
        font-size: 50%;
    }
}

/* === FIX tambahan: samakan tinggi card pada 992–1200px (termasuk 1024×600) === */
@media (min-width: 992px) and (max-width: 1200px) {
    .services-container {
        align-items: stretch;
        /* jangan center, supaya tinggi tiap card diseragamkan per baris */
    }

    .services-container .services-box {
        display: flex;
        flex-direction: column;
        /* konten ditata kolom */
    }

    .services-container .services-box .btn {
        margin-top: auto;
        /* tombol "Read More" nempel di bawah */
    }
}

/* ===== Certificate layout fix (1024×600 termasuk) ===== */
@media (min-width: 992px) and (max-width: 1200px) {

    /* batasi lebar keseluruhan & beri padding samping */
    .testimonial-box {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 2rem;
    }

    /* grid 3 kolom yang stabil, tanpa margin ekstra dari item */
    .wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
        /* pakai gap saja */
    }

    /* rapikan kartu: hilangkan margin horizontal & samakan tinggi */
    .testimonial-item {
        margin: 0;
        /* <— semula 0 2rem bikin melebar */
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* gambar responsif dengan rasio 16:9 */
    .testimonial-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* tombol "More Certificate" tetap satu baris penuh & terpusat */
    .btncertif {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Opsional (berlaku global): buang ukuran kaku pada gambar certificate */
.testimonial-box img {
    max-width: 100%;
    height: auto;
}

/* ==== Posisikan tengah vertikal untuk 1024px (tablet) ==== */
@media (min-width: 992px) and (max-width: 1200px) {

    /* Kedua section jadi flex container & tingginya disesuaikan */
    .services,
    .testimonial {
        /* header-mu fixed; asumsi ~80px. Kurangi dari tinggi viewport */
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* <— konten berada di tengah vertikal */
        padding-top: 5rem;
        /* padding seimbang */
        padding-bottom: 5rem;
    }

    /* Sedikit rapikan jarak heading supaya benar-benar center */
    .services .heading,
    .testimonial .heading {
        margin-top: 0;
        margin-bottom: 3.2rem;
        text-align: center;
    }
}

/* ==== What I have done: center & rapi di 912×1368 ==== */
@media (min-width: 768px) and (max-width: 991px) {

    /* posisikan konten ke tengah layar (kompensasi header fixed ~80px) */
    .services {
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    /* wadah kartu lebih rapi dan tinggi kartu seragam */
    .services-container {
        align-items: stretch;
        /* samakan tinggi antar box */
        max-width: 920px;
        /* agar tidak terlalu melebar di 912px */
        margin: 0 auto;
        gap: 24px;
    }

    .services-container .services-box {
        display: flex;
        flex-direction: column;
        /* susun vertikal */
    }

    .services-container .services-box .btn {
        margin-top: auto;
        /* tombol tetap di bawah */
    }

    /* heading proporsional */
    .services .heading {
        margin-top: 0;
        margin-bottom: 3.2rem;
        text-align: center;
    }
}

/* ==== What I have done: center & rapi di 912×1368 ==== */
@media (min-width: 768px) and (max-width: 991px) {

    /* posisikan konten ke tengah layar (kompensasi header fixed ~80px) */
    .services {
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    /* wadah kartu lebih rapi dan tinggi kartu seragam */
    .services-container {
        align-items: stretch;
        /* samakan tinggi antar box */
        max-width: 920px;
        /* agar tidak terlalu melebar di 912px */
        margin: 0 auto;
        gap: 24px;
    }

    .services-container .services-box {
        display: flex;
        flex-direction: column;
        /* susun vertikal */
    }

    .services-container .services-box .btn {
        margin-top: auto;
        /* tombol tetap di bawah */
    }

    /* heading proporsional */
    .services .heading {
        margin-top: 0;
        margin-bottom: 3.2rem;
        text-align: center;
    }
}

