/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ----- Reset & Cyberpunk Variables ----- */
:root {
    --bg-dark: #050505;
    --bg-panel: #111111;
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #fcee0a;
    --neon-green: #00ff41;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    
    --font-main: 'Poppins', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --shadow-neon-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --shadow-neon-pink: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    /* Cyber Grid Background */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, .nav-logo {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 1px;
}

section {
    padding: 80px 0;
    position: relative;
}

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

/* ----- 1. Navigasi ----- */
nav {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

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

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

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* ----- 2. Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.glitch-text {
    color: var(--neon-cyan);
    text-shadow: 2px 2px var(--neon-pink);
}

.hero .subtitle {
    color: var(--neon-yellow);
    font-family: var(--font-code);
    font-size: 1.1rem;
    margin-bottom: 30px;
    border: 1px solid var(--neon-yellow);
    display: inline-block;
    padding: 5px 15px;
    background: rgba(252, 238, 10, 0.1);
}

.hero p:not(.subtitle) {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-code);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    margin: 5px;
}

.cta-button:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon-cyan);
}

/* ----- 3. About Section (NEW LAYOUT) ----- */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .about-image { flex: 1; display: flex; justify-content: center; }
    .about-content { flex: 2; }
    .about h2 { text-align: left; }
}

/* Animasi Hexagon Profil */
.hex-border {
    width: 220px;
    height: 220px;
    background: conic-gradient(from 0deg, transparent, var(--neon-cyan), transparent, var(--neon-pink), transparent);
    padding: 4px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: spinHex 6s linear infinite;
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spinHexReverse 6s linear infinite; /* Biar gambarnya ga ikut muter */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: 0.5s;
}

.about-image:hover .profile-pic { filter: grayscale(0); transform: scale(1.1); }

@keyframes spinHex { 100% { transform: rotate(360deg); } }
@keyframes spinHexReverse { 100% { transform: rotate(-360deg); } }

/* About Content */
.bio-text { font-size: 1rem; line-height: 1.7; color: #ccc; margin-bottom: 25px; }
.quote-highlight { color: var(--neon-cyan); font-weight: 600; text-shadow: 0 0 10px rgba(0,243,255,0.2); }

.motto-box {
    border-left: 4px solid var(--neon-pink);
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(255,0,255,0.05), transparent);
    margin-bottom: 30px;
}
.motto-box p { font-style: italic; color: #ddd; margin-bottom: 5px; }
.motto-box i { color: var(--neon-pink); margin-right: 8px; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.skill-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--text-dim);
    color: var(--text-main);
    padding: 6px 14px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skill-tag:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,243,255,0.2); }
.note-text { font-size: 0.8rem; color: #666; font-style: italic; margin-bottom: 20px; }

.social-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 25px;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-code);
    font-weight: bold;
    transition: 0.3s;
}
.social-btn:hover { background: var(--neon-cyan); color: black; box-shadow: var(--shadow-neon-cyan); }

/* ----- 4. Projects Section ----- */
.projects h2 { text-align: center; margin-bottom: 50px; color: var(--white); font-size: 2.5rem; }

/* SAS Special Card */
.featured-wrapper { margin-bottom: 60px; padding: 0 10px; }
.sas-special {
    display: flex;
    flex-direction: column;
    background: #0f0f0f;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}
.sas-special:hover { transform: translateY(-5px); box-shadow: 0 0 50px rgba(255, 0, 255, 0.3); border-color: var(--neon-cyan); }

.card-image-large { height: 250px; overflow: hidden; position: relative; }
.card-image-large img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.sas-special:hover .card-image-large img { transform: scale(1.05); }

.card-content { padding: 30px; }
.badge-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.badge-sas { background: var(--neon-pink); color: white; padding: 5px 12px; font-size: 0.75rem; font-weight: bold; border-radius: 2px; }
.status-dev { border: 1px solid var(--neon-yellow); color: var(--neon-yellow); padding: 4px 10px; font-size: 0.75rem; background: rgba(252,238,10,0.1); }

.sas-special h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--white); }
.sas-special p { color: #aaa; line-height: 1.6; margin-bottom: 20px; }

.btn-special {
    display: inline-block;
    padding: 12px 30px;
    background: var(--neon-pink);
    color: white;
    text-decoration: none;
    font-family: var(--font-code);
    font-weight: bold;
    transition: 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-special:hover { background: var(--neon-cyan); color: black; box-shadow: var(--shadow-neon-cyan); }

/* Standard Grid Cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: var(--bg-panel); border: 1px solid #333; transition: 0.3s; display: flex; flex-direction: column; }
.project-card:not(.sas-special):hover { border-color: var(--neon-cyan); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

.card-img-small { height: 200px; overflow: hidden; }
.card-img-small img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; opacity: 0.8; }
.project-card:hover .card-img-small img { opacity: 1; transform: scale(1.05); }

.small-card-content { padding: 20px; flex: 1; }
.project-card h3 { color: var(--white); margin-bottom: 5px; font-size: 1.3rem; }
.project-card p { font-size: 0.9rem; color: #999; margin: 10px 0 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span { font-size: 0.7rem; color: var(--neon-cyan); border: 1px solid rgba(0, 243, 255, 0.3); padding: 3px 8px; font-family: var(--font-code); }

.links a { display: block; text-align: center; background: #1a1a1a; color: white; padding: 12px; text-decoration: none; font-size: 0.9rem; transition: 0.3s; border-top: 1px solid #333; font-family: var(--font-code); }
.links a:hover { background: var(--neon-cyan); color: black; }
.links a.disabled { color: #555; cursor: not-allowed; pointer-events: none; }

/* ----- Footer ----- */
footer { background: #000; border-top: 1px solid #333; color: #666; padding: 40px 0; text-align: center; font-family: var(--font-code); font-size: 0.8rem; margin-top: 80px; }
.contact-buttons { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }

/* Media Queries Desktop */
@media (min-width: 768px) {
    .sas-special { flex-direction: row; align-items: center; }
    .card-image-large { flex: 1.2; height: 400px; clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%); }
    .card-content { flex: 1; padding: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
}