/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --bg-color: #0f172a;        /* Slate 900 - Background Utama */
    --card-bg: #1e293b;         /* Slate 800 - Background Kartu */
    --text-color: #e2e8f0;      /* Slate 200 - Teks Utama */
    --text-muted: #94a3b8;      /* Slate 400 - Teks Sekunder */
    --accent-color: #00d2d3;    /* Cyan - Warna Aksen Utama */
    --accent-hover: #00b8b9;    /* Cyan Gelap - Hover State */
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* =========================================
   2. NAVBAR & NAVIGATION
   ========================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 0 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-color); }

.lang-selector select {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
}
.lang-selector select option { background: var(--bg-color); color: var(--text-color); }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--text-color); margin: 5px; transition: all 0.3s ease; }
.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 10%;
    gap: 50px;
    padding-top: 80px;
}
.hero-text { flex: 1; }
.hero-text h3 { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 10px; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 10px; }
.typing-text { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; height: 40px; }
.hero-text p { color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }

.hero-buttons { display: flex; align-items: center; gap: 15px; }

.btn-primary {
    background-color: var(--accent-color);
    color: #0f172a;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 211, 0.4);
}

.btn-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}
.btn-icon:hover { color: var(--accent-color); transform: translateY(-3px); }
.btn-icon[href*="youtube"]:hover { color: #ff0000; }
.btn-icon[href*="linkedin"]:hover { color: #0077b5; }
.btn-icon[href*="github"]:hover { color: #fff; }

.hero-img { flex: 1; display: flex; justify-content: center; }
.hero-img img {
    width: 350px; height: 350px; object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 210, 211, 0.2);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* =========================================
   4. TECH SECTION
   ========================================= */
.tech-section { padding: 80px 0; background-color: #131c2e; }
.tech-subtitle { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 20px; border-left: 4px solid var(--accent-color); padding-left: 15px; }
.tech-subtitle-spaced { margin-top: 50px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px; margin-bottom: 30px; }
.tech-card {
    background: var(--card-bg); padding: 15px; border-radius: 10px; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.tech-card i { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.tech-card span { font-size: 0.85rem; font-weight: 500; }

.tech-card.learning { opacity: 0.6; border: 1px dashed #475569; background: transparent; filter: grayscale(100%); }
.tech-card.learning:hover { opacity: 1; filter: grayscale(0%); border-color: var(--accent-color); }

.tech-legend { display: flex; justify-content: center; gap: 20px; margin-top: 30px; font-size: 0.9rem; color: var(--text-muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dot.active { background-color: var(--accent-color); }
.dot.learning { background-color: #475569; border: 1px dashed #fff; }

/* =========================================
   5. CERTIFICATIONS SECTION
   ========================================= */
.cert-section { padding: 80px 0; }
.cert-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.filter-btn {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted);
    padding: 10px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover { background: rgba(0, 210, 211, 0.1); border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); border-color: transparent;
    color: #0f172a; font-weight: 700; box-shadow: 0 4px 15px rgba(0, 210, 211, 0.4); transform: scale(1.05);
}

.cert-grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.cert-item {
    background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column;
}
.cert-item:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }

.cert-thumb { position: relative; width: 100%; height: 200px; background: #0f172a; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.cert-thumb embed { width: 100%; height: 100%; border: none; pointer-events: none; transform: scale(1.02); background: #fff; }

.cert-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(3px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    opacity: 0; transition: opacity 0.3s ease; z-index: 10;
}
.cert-item:hover .cert-overlay { opacity: 1; }
.cert-item:hover .cert-thumb img { transform: scale(1.1); }

.cert-overlay a {
    text-decoration: none; padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s; width: 140px; text-align: center; transform: translateY(20px);
}
.cert-item:hover .cert-overlay a { transform: translateY(0); }
.cert-overlay .btn-view { background: var(--accent-color); color: #0f172a; border: 1px solid var(--accent-color); }
.cert-overlay .btn-view:hover { background: var(--accent-hover); box-shadow: 0 0 10px rgba(0, 210, 211, 0.5); }
.cert-overlay .btn-verify { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.cert-overlay .btn-verify:hover { background: #fff; color: #0f172a; border-color: #fff; }

.cert-info { padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); background: #1e293b; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cert-info h4 { font-size: 1rem; color: #fff; margin-bottom: 5px; line-height: 1.4; }
.cert-info span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   6. PUBLICATIONS SECTION
   ========================================= */
.publications-section { padding: 80px 0; background-color: #131c2e; }
.journal-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.journal-card {
    background: var(--card-bg); padding: 25px; border-radius: 12px; border-left: 5px solid var(--accent-color);
    display: flex; gap: 20px; align-items: center; transition: transform 0.3s;
}
.journal-card:hover { transform: translateX(10px); background: #253146; }
.journal-icon { font-size: 2rem; color: var(--text-muted); }
.journal-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.journal-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; font-style: italic; }
.btn-text { color: var(--accent-color); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-right: 15px; }
.btn-text:hover { text-decoration: underline; }

/* =========================================
   7. YOUTUBE SECTION
   ========================================= */
.youtube-section { padding: 80px 0; background-color: #0b1120; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.video-card { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); background: #000; }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.yt-button-container { text-align: center; }

/* =========================================
   8. PORTFOLIO SECTION
   ========================================= */
.portfolio-section { padding: 80px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-card {
    background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border-color: var(--accent-color); }
.port-img { position: relative; height: 200px; width: 100%; overflow: hidden; }
.port-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.port-img embed { pointer-events: none; }
.portfolio-card:hover .port-img img { transform: scale(1.1); }
.port-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8);
    display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s;
}
.portfolio-card:hover .port-overlay { opacity: 1; }
.port-links { display: flex; gap: 15px; transform: translateY(20px); transition: transform 0.3s; }
.portfolio-card:hover .port-links { transform: translateY(0); }
.btn-sm { text-decoration: none; color: #fff; border: 1px solid var(--accent-color); padding: 8px 18px; border-radius: 30px; font-size: 0.9rem; background: rgba(0, 210, 211, 0.1); transition: all 0.3s; }
.btn-sm:hover { background: var(--accent-color); color: #000; }

.port-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.port-category { font-size: 0.8rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 5px; }
.port-content h3 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.port-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.port-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.port-tech span { font-size: 0.75rem; background: #0f172a; color: #cbd5e1; padding: 4px 10px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.1); }
.empty-state { text-align: center; padding: 60px; border: 2px dashed #334155; border-radius: 15px; color: var(--text-muted); width: 100%; }
.empty-state i { font-size: 3rem; margin-bottom: 20px; color: var(--accent-color); opacity: 0.5; }

/* =========================================
   9. CONTACT & FOOTER
   ========================================= */
.contact-section { padding: 80px 0; text-align: center; background: linear-gradient(to top, #0b1120, #0f172a); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.contact-card {
    background: var(--card-bg); padding: 12px 25px; border-radius: 50px; text-decoration: none; color: var(--text-color);
    display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; font-size: 0.9rem;
}
.contact-card:hover { background: var(--accent-color); color: #0f172a; transform: translateY(-5px); }

/* Hover Warna Khusus */
a[href*="mail"]:hover { background: #D44638; color: white; border-color: #D44638; }
a[href*="t.me"]:hover { background: #0088cc; color: white; border-color: #0088cc; }
a[href*="github"]:hover { background: #333; color: white; border-color: #333; }
a[href*="youtube"]:hover { background: #cc181e; color: white; border-color: #cc181e; }
a[href*="discord"]:hover { background: #5865F2; color: white; border-color: #5865F2; }
a[href*="wa.me"]:hover { background: #25D366; color: white; border-color: #25D366; }
a[href*="linkedin"]:hover { background: #0077b5; color: white; border-color: #0077b5; }
a[href*="duolingo"]:hover { background: #58cc02; color: white; border-color: #58cc02; }

footer { text-align: center; padding: 20px; background: #0b1120; color: #64748b; font-size: 0.9rem; }

/* =========================================
   10. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 92vh; top: 8vh; background-color: var(--bg-color);
        display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
        padding-top: 50px; width: 70%; transform: translateX(100%); transition: transform 0.4s ease-in-out;
        border-left: 1px solid rgba(255,255,255,0.1); z-index: 999;
    }
    .nav-links.nav-active { transform: translateX(0%); box-shadow: -5px 0 15px rgba(0,0,0,0.5); }
    .burger { display: block; }
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 100px; height: auto; gap: 30px; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-img img { width: 250px; height: 250px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { padding: 0 10px; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .journal-card { flex-direction: column; text-align: center; padding: 20px; }
    .cert-grid-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; flex: 1 1 auto; text-align: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 2rem; }
}
/* End of style.css */
