* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

#beranda {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 100px;
}

#keahlian,
#portofolio {
    scroll-margin-top: 100px;
}

body {
    font-family: Arial, sans-serif;
    background: #0b1120;
    color: #e2e8f0;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 80px 8%;
    scroll-margin-top: 80px;
}


header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0b1120;
    border-bottom: 1px solid #263750;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    list-style: none;
}

.nav-menu a {
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #38bdf8;
}


.hero {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #153957, #0b1120 60%);
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content>p {
    color: #38bdf8;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 68px);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
}

.Foto.profil {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.Foto.profil img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    background: #17243a;
}

.Foto.profil h2 {
    max-width: 850px;
    font-size: 18px;
    font-weight: normal;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: #38bdf8;
    color: #0b1120;
}

.btn-secondary {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn:hover {
    transform: translateY(-3px);
}


#Tentang {
    background: #101a2d;
}

.section-title {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.section-title h2:first-child {
    color: #38bdf8;
    font-size: 32px;
}

.section-title h2:nth-child(2) {
    font-size: 17px;
    font-weight: normal;
    line-height: 1.9;
    color: #cbd5e1;
}


#Pendidikan {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-Pendidikan,
.Section-pendidikan {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.TK,
.SD,
.SMP,
.SMK {
    flex: 280px;
    padding: 25px;
    background: #111e32;
    border: 1px solid #263750;
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    transition: 0.3s;
}

.TK:hover,
.SD:hover,
.SMP:hover,
.SMK:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

#Pendidikan h1 {
    font-size: 19px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 12px;
}

#Pendidikan p {
    font-size: 14px;
    color: #cbd5e1;
}


section.Keahlian {
    background: #101a2d;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.Keahlian>h1 {
    text-align: center;
    color: #38bdf8;
    font-size: 32px;
    margin-bottom: 15px;
}

.Keahlian>.Keahlian,
.Keahlian>.keahlian {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Keahlian-info,
.keahlian-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.keahlian-info,
.keahlian-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #263750;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    border-radius: 20px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    transition: width 1.5s ease;
}

.progress.html {
    --target: 85%;
}

.progress.js {
    --target: 1.1%;
}

.progress.Kebahasaan {
    --target: 95%;
}

.progress.publick.speaking {
    --target: 100%;
}

.progress.Kepramukaan {
    --target: 85%;
}

.progress.Futsal {
    --target: 90%;
}

#portofolio {
    background: #111e32;
    ;
}

.section-portofolio {
    width: 100%;
    max-width: 1150px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.section-portofolio>h1,
.section-portofolio>p {
    width: 100%;
    text-align: center;
}

.section-portofolio>h1 {
    color: #e7e9eb;
    font-size: 32px;
}

.section-portofolio>p {
    color: #f5f7fb;
    margin-bottom: 15px;
}

.projek {
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    background: #111e32;
    border: 1px solid #263750;
    border-radius: 12px;
    transition: 0.3s;
}

.projek:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px #0003;
}

.projek h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.projek p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
}

.projek a {
    color: #38bdf8;
    font-weight: bold;
    font-size: 14px;
    margin-top: auto;
}

#kontak {
    background: #101a2d;
}

.kontak {
    width: 100%;
    max-width: 850px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontak h1 {
    color: #38bdf8;
    font-size: 32px;
    text-align: center;
}

.kontak>p {
    text-align: center;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
    background: #111e32;
    border: 1px solid #263750;
    border-radius: 10px;
}

.item b {
    color: #ffffff;
}

.item p,
.item a {
    color: #38bdf8;
    overflow-wrap: anywhere;
}

.item iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.item a:hover {
    text-decoration: underline;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE HP DAN TABLET */
@media (max-width: 768px) {
    section {
        padding: 60px 6%;
    }

    .navbar {
        justify-content: center;
    }

    .nav-menu {
        gap: 12px 16px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .Foto.profil h2 {
        font-size: 16px;
    }

    .section-Pendidikan,
    .Section-pendidikan {
        flex-direction: column;
    }

    .TK,
    .SD,
    .SMP,
    .SMK {
        flex-basis: auto;
        width: 100%;
    }

    .projek {
        flex-basis: 100%;
        max-width: none;
    }
}

footer {
    background: var(--black);
    color: white;
    padding: 50px 8%;
}

.footer-container {
    display: flex;
    justify-content: space-around;
}

.copyright {
    text-align: center;
    margin-top: 30px;
}


@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .nav-menu {
        gap: 8px 12px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .section-title h2:first-child,
    .Keahlian>h1,
    .section-portofolio>h1,
    .kontak h1 {
        font-size: 27px;
    }

    .item iframe {
        height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

#beranda {
    scroll-margin-top: 100px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

#Keahlian {
    scroll-margin-top: 100px;
    scroll-behavior: smooth;
}


.projek-card {
    width: 300px;
    padding: 15px;
    background: #1e1e1e;
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.gambar-projek {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    transition: 0.3s;
}

.gambar-projek:hover {
    transform: scale(1.03);
}

.projek-card a {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: #00bcd4;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
}