/* Home Page */
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #057cec, #2f3542);
    color: #fff;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #181818;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 55px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-family: 'Georgia', serif;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: #3c6cff;
}

.home-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8vw 0 4vw;
    margin-bottom: 40px;
}

.home-left {
    flex-direction: column;
    justify-content: center;
    margin-left: 50px;
    margin-top: -70px;
}

.home-left h1 {
    font-size: 2.7rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 18px;
    margin-top: 0;
}

.home-left p {
    font-size: 1.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.cv-btn {
    background: #444;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    padding: 14px 38px;
    border-radius: 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
    margin-top: 32px;
    display: inline-block;
}

.cv-btn:hover {
    background: #222;
}

.home-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-left: 300px;
    margin-top: -70px;
    animation: float 3s ease-in-out infinite;
}

.profile-img:hover {
    animation: normal; /* hentikan animasi saat zoom */
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 40px 10px rgba(0, 251, 255, 0.35);
    outline: none;
}

.profile-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

footer {
    background: #000000a2;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    margin-top: 0;
    z-index: 99;
}

.cv-btn {
    background: #444;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    padding: 14px 38px;
    border-radius: 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.cv-btn:hover {
    background: #222;
}

/* Responsive */
@media (max-width: 900px) {
    .home-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 32px 0 0 0;
    }
    .home-left {
        align-items: center;
        text-align: center;
    }
    .home-right {
        margin-top: 32px;
    }
    .profile-img {
        width: 220px;
        height: 220px;
    }
    .home-left h1 {
        font-size: 2rem;
    }
    .home-left p {
        font-size: 1.1rem;
    }
    .cv-btn {
        font-size: 1.3rem;
        padding: 10px 24px;
    }
}





/* About Page */
.about-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.about-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 60px 0 60px;
    margin-top: -170px;
}

.about-img img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px rgb(0, 251, 255);
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: float 3s ease-in-out infinite;
}

.about-img img:active,
.about-img img:hover {
    animation: normal; /* hentikan animasi saat zoom */
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 40px 10px rgba(0, 251, 255, 0.35);
    outline: none;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.about-text {
    max-width: 700px;
    font-size: 1.25rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
    line-height: 1.5;
    animation: normal;
}

/* Responsive */
@media (max-width: 900px) {
.about-content {
        flex-direction: column;
        gap: 24px;
        padding: 24px 12px 0 12px;
    }
.about-img img {
        width: 220px;
        height: 220px;
}
    }
    .about-text {
        font-size: 1.1rem;
}





/* Skills Page */
.skills-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 0 0;
    animation: float 3s ease-in-out infinite;
}

.skills-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-top: 25px;
    color: #fff;
    letter-spacing: 2px;
}

.skills-grid {
    display: flex;
    gap: 64px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.skills-card {
    background: rgba(120, 130, 180, 0.45);
    border-radius: 28px;
    border: 2px solid #3cc6ff;
    box-shadow: 0 4px 18px rgba(44, 76, 255, 0.10);
    margin-bottom: 200px;
    height: 300px;
    padding: 32px 36px 24px 36px;
    min-width: 300px;
    max-width: 340px;
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skills-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 32px rgba(44, 76, 255, 0.25);
}

.skills-card h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 1px;
}

.skills-card ul {
    padding-left: 18px;
    margin: 0;
}

.skills-card li {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
}

@media (max-width: 900px) {
    .skills-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .skills-card {
        min-width: 220px;
        max-width: 95vw;
        padding: 20px 10px 16px 10px;
    }
    .skills-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }
}





/* Certificates Page */
.certificates-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.certificates-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 0 0;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 120px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.certificate-card {
    background: #1a2e4f;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(44, 76, 255, 0.15);
    border: 6px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-image-slice: 1;
    border-width: 6px;
    border-image-source: linear-gradient(90deg, #00f7ff, #fff, #00f7ff);
    animation: border-move 3s linear infinite;
    cursor: pointer;
}

.certificate-card img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    display: block;
}

@keyframes border-move {
  0% { border-image-source: linear-gradient(90deg, #0055ff, #fff, #0055ff); }
  50% { border-image-source: linear-gradient(270deg, #fff, #0055ff, #fff); }
  100% { border-image-source: linear-gradient(90deg, #0055ff, #fff, #0055ff); }
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 32px rgba(44, 76, 255, 0.25);
    animation: normal;
}

.zoom-img {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s;
}

.zoom-img:active {
  transform: scale(2); /* jadi 2x lebih besar saat diklik */
}

/* Responsive */
@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px;
    }
    .certificate-card img {
        width: 140px;
        height: 90px;
    }
    .certificate-card {
        padding: 6px;
        border-width: 5px;
    }
}





/* Contact Page */
.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 0 0;
    margin-top: -150px;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.contact-note {
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #fff;
    margin-top: -100px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: fixed;
}

.contact-card {
    background: rgba(255, 255, 255, 0.145);
    border-radius: 32px;
    width: 240px;
    height: 180px;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(44, 76, 255, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.04);
    background: #3a3a3a74;
    box-shadow: 0 12px 32px rgba(83, 83, 83, 0.25);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.contact-text {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
    word-break: break-all;
}

.contact-link {
    text-decoration: none;
    display: inline-block;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
        gap: 24px;
    }
    .contact-card {
        width: 90vw;
        max-width: 320px;
        height: 140px;
    }
    .contact-icon {
        width: 48px;
        height: 48px;
    }
}





/* Page transition (enter + exit) */
body {
  transition: opacity 400ms ease, transform 400ms ease;
  -webkit-transition: opacity 400ms ease, transform 400ms ease;
}

/* initial (before JS removes) */
body.is-loading {
  opacity: 0;
  transform: translateY(10px);
}

/* exit state when navigating away */
body.is-exiting {
  opacity: 0;
  transform: translateY(-8px);
}
