/* CSS RESET & VARIABLE SETUP */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Poppins', sans-serif;

    scroll-behavior: smooth;

}



/* TEMA DEFAULT (MODE GELAP / DARK MODE) */

:root {

    --bg-color: #080c14;

    --card-bg: rgba(18, 26, 43, 0.7);

    --accent-color: #38bdf8;

    --accent-hover: #0284c7;

    --accent-green: #10b981;

    --accent-purple: #a855f7;

    --text-color: #f8fafc;

    --text-secondary: #94a3b8;

    --footer-bg: #04070d;

    --border-color: rgba(56, 189, 248, 0.25);

    --glow-color: rgba(56, 189, 248, 0.45);

}



/* TEMA TERANG (LIGHT MODE) */

body.light-mode {

    --bg-color: #f1f5f9;

    --card-bg: rgba(255, 255, 255, 0.85);

    --accent-color: #0284c7;

    --accent-hover: #0369a1;

    --accent-green: #059669;

    --accent-purple: #7e22ce;

    --text-color: #0f172a;

    --text-secondary: #475569;

    --footer-bg: #e2e8f0;

    --border-color: rgba(2, 132, 199, 0.25);

    --glow-color: rgba(2, 132, 199, 0.3);

}



body {

    background-color: var(--bg-color);

    color: var(--text-color);

    line-height: 1.6;

    overflow-x: hidden;

    transition: background-color 0.4s ease, color 0.4s ease;

    background-image: 

        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),

        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);

}



/* EFEK SCANLINE / MONITOR FUTURISTIK */

.cyber-scanlines::before {

    content: " ";

    display: block;

    position: fixed;

    top: 0; left: 0; bottom: 0; right: 0;

    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));

    z-index: 999;

    background-size: 100% 3px, 6px 100%;

    pointer-events: none;

    opacity: 0.6;

}



/* SCROLL PROGRESS BAR */

#scroll-progress {

    position: fixed;

    top: 0;

    left: 0;

    height: 4px;

    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple), var(--accent-green));

    width: 0%;

    z-index: 1001;

    transition: width 0.1s ease-out;

}



/* NAVBAR STYLE */

nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1.5rem 10%;

    position: fixed;

    width: 100%;

    top: 0;

    z-index: 1000;

    background-color: transparent;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}



nav.scrolled {

    background-color: rgba(8, 12, 20, 0.85);

    backdrop-filter: blur(15px);

    padding: 1rem 10%;

    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);

    border-bottom: 1px solid var(--border-color);

}



body.light-mode nav.scrolled {

    background-color: rgba(241, 245, 249, 0.85);

}



#theme-toggle {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    color: var(--accent-color);

    width: 40px;

    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.1rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



#theme-toggle:hover {

    transform: rotate(360deg) scale(1.1);

    box-shadow: 0 0 15px var(--glow-color);

}



/* LOGO & PROFILE LOGO */

.logo-container {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}



/* Ganti .profile-logo yang lama dengan styling gambar ini */
.profile-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover; /* Agar foto tidak gepeng / terdistorsi */
    border: 2px solid var(--accent-color);
    animation: pulseGlow 3s infinite alternate;
}



.logo {

    font-size: 1.5rem;

    font-weight: 700;

    letter-spacing: 0.5px;

}



.logo span {

    color: var(--accent-color);

}



.nav-links {

    display: flex;

    list-style: none;

    gap: 2rem;

}



.nav-links a {

    color: var(--text-color);

    text-decoration: none;

    font-weight: 400;

    position: relative;

    transition: color 0.3s;

}



.nav-links a::after {

    content: '';

    position: absolute;

    width: 0%;

    height: 2px;

    bottom: -5px;

    left: 0;

    background-color: var(--accent-color);

    transition: width 0.3s ease;

}



.nav-links a:hover::after,

.nav-links a.active::after {

    width: 100%;

}



.nav-links a:hover,

.nav-links a.active {

    color: var(--accent-color);

}



.menu-toggle {

    display: none;

    font-size: 1.5rem;

    cursor: pointer;

    color: var(--text-color);

}



/* HERO SECTION & MATRIX CANVAS */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 10%;

    text-align: center;

    position: relative;

    overflow: hidden;

}



#cyber-bg {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

    opacity: 0.18;

    pointer-events: none;

}



.hero-content {

    position: relative;

    z-index: 1;

}



.status-badge {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    background: rgba(16, 185, 129, 0.12);

    border: 1px solid var(--accent-green);

    color: var(--accent-green);

    padding: 0.4rem 1.2rem;

    border-radius: 20px;

    font-size: 0.85rem;

    font-weight: 600;

    letter-spacing: 1px;

    margin-bottom: 1.5rem;

    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);

}



.badge-dot {

    width: 8px;

    height: 8px;

    background-color: var(--accent-green);

    border-radius: 50%;

    animation: blink 1s infinite alternate;

}



.hero-content h1 {

    font-size: 3.4rem;

    margin-bottom: 1rem;

    letter-spacing: -0.5px;

}



.highlight {

    color: var(--accent-color);

    text-shadow: 0 0 15px var(--glow-color);

}



/* GLITCH TEXT EFFECT */

.glitch {

    position: relative;

    display: inline-block;

}



.glitch:hover::before,

.glitch:hover::after {

    content: attr(data-text);

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    clip: rect(0, 0, 0, 0);

}



.glitch:hover::before {

    left: -2px;

    text-shadow: 2px 0 #ef4444;

    animation: glitch-anim-1 0.4s infinite linear alternate-reverse;

}



.glitch:hover::after {

    left: 2px;

    text-shadow: -2px 0 #3b82f6;

    animation: glitch-anim-2 0.4s infinite linear alternate-reverse;

}



.hero-content p {

    color: var(--text-secondary);

    font-size: 1.3rem;

    max-width: 650px;

    margin: 0 auto 2.2rem auto;

}



.cursor {

    display: inline-block;

    width: 3px;

    background-color: var(--accent-color);

    animation: blink 0.7s infinite;

}



/* BUTTONS */

.hero-btns {

    display: flex;

    gap: 1.2rem;

    justify-content: center;

}



.btn {

    display: inline-flex;

    align-items: center;

    gap: 0.6rem;

    padding: 0.85rem 2.2rem;

    font-weight: 600;

    text-decoration: none;

    border-radius: 30px;

    transition: all 0.3s ease;

    cursor: pointer;

}



.btn-primary {

    background: linear-gradient(135deg, var(--accent-color), #0284c7);

    color: #ffffff;

    box-shadow: 0 4px 20px var(--glow-color);

}



.btn-primary:hover {

    transform: translateY(-4px) scale(1.02);

    box-shadow: 0 10px 30px var(--glow-color);

}



.btn-outline {

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-color);

    border: 1px solid var(--border-color);

    backdrop-filter: blur(5px);

}



.btn-outline:hover {

    border-color: var(--accent-color);

    color: var(--accent-color);

    transform: translateY(-4px);

    box-shadow: 0 5px 20px var(--glow-color);

}



/* SECTIONS */

section {

    padding: 6.5rem 10%;

}



.section-title {

    text-align: center;

    font-size: 2.2rem;

    margin-bottom: 3.5rem;

    position: relative;

}



.section-title::after {

    content: '';

    display: block;

    width: 60px;

    height: 4px;

    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));

    margin: 0.5rem auto 0 auto;

    border-radius: 2px;

    box-shadow: 0 0 10px var(--glow-color);

}



/* ABOUT SECTION & LIVE INTERACTIVE TERMINAL */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1.1fr;

    gap: 2.5rem;

    align-items: stretch;

}



.glass-card {

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    padding: 2.5rem;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(10px);

}



/* TERMINAL INTERAKTIF STYLING */

.terminal-window {

    background: #060911;

    border: 1px solid var(--border-color);

    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);

    overflow: hidden;

    font-family: 'Fira Code', monospace;

    display: flex;

    flex-direction: column;

}



.terminal-header {

    background: #0e1526;

    padding: 0.8rem 1rem;

    display: flex;

    align-items: center;

    position: relative;

    border-bottom: 1px solid var(--border-color);

}



.terminal-buttons {

    display: flex;

    gap: 7px;

}



.terminal-buttons span {

    width: 12px;

    height: 12px;

    border-radius: 50%;

}



.btn-close { background: #ef4444; }

.btn-minimize { background: #f59e0b; }

.btn-maximize { background: #10b981; }



.terminal-title {

    position: absolute;

    width: 100%;

    text-align: center;

    left: 0;

    font-size: 0.8rem;

    color: var(--text-secondary);

}



.terminal-body {

    padding: 1.2rem 1.5rem;

    font-size: 0.88rem;

    color: #e2e8f0;

    line-height: 1.7;

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    max-height: 360px;

    overflow-y: auto;

}



.term-welcome {

    color: var(--text-secondary);

    margin-bottom: 0.8rem;

    font-size: 0.82rem;

}



.term-cmd-highlight {

    color: var(--accent-color);

    font-weight: 600;

}



.terminal-input-row {

    display: flex;

    align-items: center;

    margin-top: 0.5rem;

}



#terminal-input {

    background: transparent;

    border: none;

    outline: none;

    color: #ffffff;

    font-family: 'Fira Code', monospace;

    font-size: 0.88rem;

    width: 100%;

}



.term-user { color: var(--accent-green); font-weight: 600; }

.term-path { color: var(--accent-color); }

.term-output { color: var(--text-secondary); margin-bottom: 0.4rem; }

.term-success { color: var(--accent-green); }

.term-error { color: #ef4444; }



/* INTERACTIVE CARDS WITH GLOW OVERLAY */

.interactive-card {

    position: relative;

    background-color: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    backdrop-filter: blur(10px);

    overflow: hidden;

    transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;

}



.card-glow-overlay {

    position: absolute;

    top: 0; left: 0; width: 100%; height: 100%;

    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.12), transparent 40%);

    pointer-events: none;

}



.interactive-card:hover {

    border-color: var(--accent-color);

    box-shadow: 0 15px 35px var(--glow-color);

}



/* SKILLS SECTION */

.skills-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 2rem;

}



.skill-card {

    padding: 2.2rem 1.8rem;

    text-align: center;

}



.skill-card i {

    font-size: 3rem;

    color: var(--accent-color);

    margin-bottom: 1rem;

    transition: transform 0.3s ease;

}



.skill-card:hover i {

    transform: scale(1.2) rotate(6deg);

}



/* PROJECTS SECTION */

.projects-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

}



.project-info {

    padding: 2.2rem;

}



.project-tag {

    display: inline-block;

    padding: 0.25rem 0.85rem;

    background: rgba(56, 189, 248, 0.12);

    color: var(--accent-color);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    font-size: 0.75rem;

    font-weight: 600;

    margin-bottom: 1rem;

}



.project-info h3 {

    margin-bottom: 0.75rem;

}



.project-info p {

    color: var(--text-secondary);

    font-size: 0.95rem;

    margin-bottom: 1.4rem;

}



.project-link {

    color: var(--accent-color);

    text-decoration: none;

    font-weight: 600;

    font-size: 0.9rem;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    transition: gap 0.3s ease;

}



.project-link:hover {

    gap: 0.8rem;

}



/* FOOTER & SOCIAL ICONS */

footer {

    padding: 4.5rem 10% 2rem 10%;

    background-color: var(--footer-bg);

    text-align: center;

    border-top: 1px solid var(--border-color);

}



.social-links {

    display: flex;

    justify-content: center;

    gap: 1.5rem;

    margin: 2rem 0;

}



.social-icon {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background-color: var(--card-bg);

    color: var(--accent-color);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.25rem;

    text-decoration: none;

    border: 1px solid var(--border-color);

    transition: all 0.3s ease;

}



.social-icon:hover {

    background-color: var(--accent-color);

    color: #ffffff;

    transform: translateY(-5px) rotate(360deg);

    box-shadow: 0 0 20px var(--glow-color);

}



.copyright {

    font-size: 0.85rem;

    color: var(--text-secondary);

    margin-top: 2rem;

    border-top: 1px solid var(--border-color);

    padding-top: 1.5rem;

}



/* KEYFRAME ANIMATIONS */

@keyframes pulseGlow {

    0% { box-shadow: 0 0 5px var(--glow-color); }

    100% { box-shadow: 0 0 25px var(--glow-color), 0 0 35px var(--accent-color); }

}



@keyframes float {

    0% { transform: translateY(0px); }

    50% { transform: translateY(-8px); }

    100% { transform: translateY(0px); }

}



@keyframes blink {

    0%, 100% { opacity: 1; }

    50% { opacity: 0; }

}



@keyframes glitch-anim-1 {

    0% { clip: rect(20px, 9999px, 15px, 0); }

    50% { clip: rect(40px, 9999px, 60px, 0); }

    100% { clip: rect(10px, 9999px, 80px, 0); }

}



@keyframes glitch-anim-2 {

    0% { clip: rect(25px, 9999px, 90px, 0); }

    50% { clip: rect(10px, 9999px, 30px, 0); }

    100% { clip: rect(50px, 9999px, 10px, 0); }

}



.icon-float {

    animation: float 4s ease-in-out infinite;

}



/* FADE-IN SCROLL ANIMATION */

.fade-in {

    opacity: 0;

    transform: translateY(40px);

    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

}



.fade-in.appear {

    opacity: 1;

    transform: translateY(0);

}



/* RESPONSIVE DESIGN */

@media (max-width: 992px) {

    .about-grid {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 768px) {

    .hero-content h1 { font-size: 2.2rem; }

    .hero-content p { font-size: 1.1rem; }

    .hero-btns { flex-direction: column; }

    .menu-toggle { display: block; }



    .nav-links {

        position: absolute;

        top: 100%;

        right: -100%;

        width: 100%;

        height: 100vh;

        background-color: var(--bg-color);

        flex-direction: column;

        align-items: center;

        padding-top: 3rem;

        gap: 2.5rem;

        transition: right 0.4s ease-in-out;

    }



    .nav-links.active {

        right: 0;

    }

}