/* --- CORE VARIABLES --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    --secondary-gradient: linear-gradient(135deg, #FF0099 0%, #493240 100%);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --glow: 0 0 20px rgba(0, 201, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 201, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 153, 0.08) 0%, transparent 25%);
}

/* --- BACKGROUND GRID EFFECT --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION (DASHBOARD STYLE) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-card-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    transition: 0.5s;
}

.glass-card-hero:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: rgba(0, 201, 255, 0.3);
}

.code-block {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #d4d4d4;
}
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.function { color: #dcdcaa; }

.btn-glow {
    padding: 15px 35px;
    background: var(--text-main);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(255,255,255,0.4);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- CARDS (Glassmorphism) --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card .date {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #00C9FF;
    margin-bottom: 15px;
    display: block;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- BIO DATA --- */
.bio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.bio-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    height: 400px; /* Tinggi tetap agar rapi */
}

.bio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar tidak gepeng */
    display: block;
    filter: grayscale(100%);
    transition: 0.5s;
}

.bio-img-box:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- CERTIFICATES --- */
.cert-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CONTACT --- */
.contact-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 15px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #00C9FF;
}

.social-bar {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #00C9FF;
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-container, .bio-container, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        display: none;
        border-bottom: 1px solid var(--card-border);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .glass-card-hero { transform: rotate(0); margin-top: 30px; }
}