* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0f1e;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #3aa0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 14px;
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f1e;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(58, 160, 255, 0.2);
    border-top: 3px solid #3aa0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.navbar.scrolled {
    padding: 10px 20px;
    background: rgba(10, 15, 30, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #3aa0ff, #6fd6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
}

/* LANGUAGE SWITCH */
.lang-switch {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 40px;
    margin-left: auto;
    margin-right: 10px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 11px;
}

.lang-btn.active {
    background: #3aa0ff;
    color: white;
}

/* HAMBURGER MENU */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 3px;
}

/* MENU - SEMBUYI DI KANAN */
.menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: #0a0f1e;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu.active {
    right: 0;
}

.menu li {
    width: 100%;
    text-align: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s;
    display: block;
    padding: 12px 20px;
}

.menu a:hover {
    color: #3aa0ff;
    background: rgba(58, 160, 255, 0.1);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, #1a2a4a, #0a0f1e);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.text-center h5 {
    font-size: 11px;
    letter-spacing: 2px;
    color: #3aa0ff;
    margin-bottom: 15px;
}

.text-center h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.highlight {
    color: #3aa0ff;
}

.typing {
    font-size: 14px;
    font-weight: 500;
    color: #3aa0ff;
    display: inline-block;
    min-height: 50px;
}

.text-center p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 0 10px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #3aa0ff, #1a6ec7);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.btn-cv {
    padding: 10px 20px;
    border-radius: 40px;
    border: 2px solid #3aa0ff;
    background: transparent;
    color: #3aa0ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.social-hero {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-hero a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.social-hero a:hover {
    background: #3aa0ff;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ANIMATIONS */
.fade-down {
    animation: fadeDown 0.6s ease forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ABOUT SECTION */
.about {
    padding: 60px 0;
    background: #0f1322;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.about-info {
    margin-top: 20px;
    text-align: left;
    display: inline-block;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 13px;
}

.info-item i {
    width: 30px;
    height: 30px;
    background: rgba(58, 160, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3aa0ff;
    font-size: 14px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3aa0ff;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SKILLS SECTION */
.skill {
    padding: 60px 0;
}

.skill-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 40px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3aa0ff, #1a6ec7);
}

.skill-content {
    display: none;
}

.skill-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(58, 160, 255, 0.1);
}

.skill-card img {
    width: 35px;
    height: 35px;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 12px;
}

/* PROJECT SECTION */
.project {
    padding: 60px 0;
    background: #0f1322;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    background: #1a1f2e;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: #3aa0ff;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.card-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card-content p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 13px;
}

/* CERTIFICATE SECTION */
.certificate {
    padding: 60px 0;
}

.cert-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cert-card {
    width: calc(50% - 10px);
    min-width: 150px;
    max-width: 200px;
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efek hover sertifikat */
.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(58, 160, 255, 0.3);
    border: 1px solid #3aa0ff;
}

/* Efek saat diklik */
.cert-card:active {
    transform: scale(0.96);
    transition: all 0.1s ease;
}

/* Animasi klik */
.cert-card.clicked {
    animation: clickPop 0.3s ease-in-out;
}

@keyframes clickPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); box-shadow: 0 0 20px #3aa0ff; }
    100% { transform: scale(1); }
}

/* Efek hover pada teks sertifikat */
.cert-card:hover .cert-content h4 {
    color: #3aa0ff;
    transition: 0.3s;
}

/* Efek hover pada gambar sertifikat */
.cert-card:hover img {
    filter: brightness(1.1);
    transition: 0.3s;
}

/* Efek Ripple untuk Sertifikat */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 160, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.5s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.cert-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: 0.3s;
}

.cert-content {
    padding: 10px;
    text-align: center;
}

.cert-content h4 {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.3;
    transition: 0.3s;
}

/* CONTACT SECTION */
.contact {
    padding: 60px 0;
    background: #0f1322;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    background: #1a1f2e;
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: #3aa0ff;
    font-size: 18px;
}

.contact-info p {
    margin: 12px 0;
    color: #cbd5e1;
    font-size: 13px;
    word-break: break-all;
}

.contact-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.contact-info i {
    margin-right: 8px;
    color: #3aa0ff;
}

.contact-box {
    background: #1a1f2e;
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 350px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contactForm input,
#contactForm textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #0f1322;
    color: white;
    font-family: inherit;
    width: 100%;
    font-size: 14px;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #3aa0ff;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 5px;
}

.btn-wa, .btn-email {
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-wa {
    background: #25D366;
    color: white;
}

.btn-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-email {
    background: linear-gradient(135deg, #3aa0ff, #1a6ec7);
    color: white;
}

.btn-email:hover {
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #0a0f1e;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 12px;
}

/* PARTICLES */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* SECTIONS ANIMATION */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* ========== RESPONSIVE TABLET & DESKTOP ========== */
@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        text-align: left;
    }
    
    .about-info {
        display: inline-block;
    }
    
    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 700px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cert-card {
        width: 220px;
    }
    
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .text-center h1 {
        font-size: 50px;
    }
    
    .typing {
        font-size: 20px;
    }
    
    .text-center p {
        font-size: 16px;
    }
}

/* ========== DESKTOP LARGE ========== */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .skill-grid {
        gap: 25px;
    }
    
    .cert-cards {
        gap: 25px;
    }
}

/* ========== RESPONSIVE HP (max-width 768px) ========== */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
    }
    
    .about, .skill, .project, .certificate, .contact {
        padding-top: 60px;
    }
    
    .menu {
        width: 220px;
        right: -220px;
    }
    
    .menu a {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .lang-switch {
        margin-right: 5px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    #contactForm input,
    #contactForm textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .contact-buttons {
        gap: 8px;
    }
}

/* ========== RESPONSIVE HP KECIL (max-width 480px) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .sub {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .text-center h1 {
        font-size: 28px;
    }
    
    .typing {
        font-size: 12px;
        min-height: 40px;
    }
    
    .text-center p {
        font-size: 12px;
        padding: 0 5px;
    }
    
    .btn-hero, .btn-cv {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .social-hero a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .about-text p {
        font-size: 12px;
    }
    
    .info-item {
        font-size: 11px;
    }
    
    .img-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .skill-card {
        padding: 10px;
    }
    
    .skill-card img {
        width: 28px;
        height: 28px;
    }
    
    .skill-card p {
        font-size: 10px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .card-content h4 {
        font-size: 14px;
    }
    
    .card-content p {
        font-size: 11px;
    }
    
    .cert-card {
        width: calc(50% - 8px);
        min-width: 140px;
    }
    
    .cert-content h4 {
        font-size: 9px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info h3 {
        font-size: 16px;
    }
    
    .contact-info p {
        font-size: 11px;
    }
    
    .contact-box {
        padding: 15px;
    }
    
    .btn-wa, .btn-email {
        padding: 10px;
        font-size: 12px;
    }
    
    .footer {
        font-size: 10px;
        padding: 15px;
    }
}

/* ========== RESPONSIVE HP SANGAT KECIL (max-width 360px) ========== */
@media (max-width: 360px) {
    .logo {
        font-size: 18px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .text-center h1 {
        font-size: 24px;
    }
    
    .typing {
        font-size: 10px;
    }
    
    .skill-grid {
        gap: 10px;
    }
    
    .cert-card {
        min-width: 130px;
    }
    
    .contact-info, .contact-box {
        max-width: 100%;
    }
}