:root {
    --primary-color: #7AC55A;
    --secondary-color: #C3DB65;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --text-color: #ffffff;
    --accent-color: #234823;
    --terminal-bg: rgba(18, 18, 18, 0.95);
    --theme-color: #7AC55A;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--theme-color);
    color: var(--text-color);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.95));
    overflow: hidden;
}

/* Efek Matrix Rain */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom,
            rgba(18, 18, 18, 0.8) 0%,
            rgba(18, 18, 18, 0.2) 100%),
        repeating-linear-gradient(0deg,
            transparent 0%,
            rgba(122, 197, 90, 0.1) 1px,
            transparent 2px,
            transparent 40px
        );
    background-size: 100% 100%, 100px 100%;
    animation: matrixRain 20s linear infinite;
    z-index: 1;
}

/* Efek Grid Cyberpunk dengan Laser Lines */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg,
            rgba(122, 197, 90, 0.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(122, 197, 90, 0.03) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(122, 197, 90, 0.1) 0%,
            transparent 50%
        );
    background-size: 30px 30px, 30px 30px, 100% 100%;
    animation: gridPulse 4s ease-in-out infinite;
    z-index: 2;
}

/* Tambahkan Laser Lines */
.laser-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.laser-line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(122, 197, 90, 0.2) 50%,
        transparent 100%
    );
    height: 1px;
    width: 100%;
    opacity: 0;
    animation: laserScan 3s linear infinite;
}

.laser-line:nth-child(2) {
    animation-delay: 1s;
    top: 33%;
}

.laser-line:nth-child(3) {
    animation-delay: 2s;
    top: 66%;
}

@keyframes laserScan {
    0% {
        opacity: 0;
        transform: translateY(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scaleY(2);
    }
    100% {
        opacity: 0;
        transform: translateY(50%) scaleY(1);
    }
}

@keyframes matrixRain {
    0% {
        background-position: 0 -1000px;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Pastikan konten tetap di atas background */
.hero, .navbar, .terminal, .social-links, .floating-menu {
    position: relative;
    z-index: 3;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(18, 18, 18, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(122, 197, 90, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover:after {
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 1rem;
    height: 100vh;
}

.terminal {
    width: 90%;
    max-width: 850px;
    height: 500px;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(51, 61, 46, 0.4);
    overflow: hidden;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    overflow-y: auto;
    height: calc(500px - 60px);
    max-height: 500px;
}

.terminal-header {
    display: flex;
    align-items: center;
    background-color: rgba(60, 60, 60, 0.6);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(122, 197, 90, 0.3);
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.command-line {
    display: flex;
    margin-bottom: 0.8rem;
}

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
    white-space: nowrap;
}

.command {
    text-align: left;
    display: inline-block;
    width: 100%;
    color: var(--text-color);
}

.output {
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    text-align: left;
}

.output p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.output pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    white-space: pre-wrap;
    margin: 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: left !important;
}

.skill-tag {
    background-color: rgba(122, 197, 90, 0.2);
    color: var(--secondary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(122, 197, 90, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(122, 197, 90, 0.1);
    border: 1px solid rgba(122, 197, 90, 0.2);
}

.social-link:hover {
    color: var(--primary-color);
    background-color: rgba(122, 197, 90, 0.2);
    transform: translateY(-3px);
}

.floating-menu {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 100;
}

.menu-toggle {
    width: 55px;
    height: 55px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(122, 197, 90, 0.4);
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-items {
    position: absolute;
    bottom: 70px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    z-index: 100;
}

.floating-menu:hover .menu-items {
    transform: scale(1);
}

.menu-item {
    width: 45px;
    height: 45px;
    background-color: var(--terminal-bg);
    border: 1px solid rgba(122, 197, 90, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
        padding: 1rem 3%;
    }

    .hero {
        padding-top: 5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

.mobile-notice {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--terminal-bg);
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    z-index: 1002;
    border-bottom: 1px solid var(--primary-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.mobile-notice .close-btn {
    position: absolute;
    right: 10px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.mobile-notice .close-btn:hover {
    color: var(--primary-color);
}

.mobile-notice i {
    color: var(--primary-color);
    margin-right: 8px;
}

@media (max-width: 768px) {
    .mobile-notice {
        display: flex; 
    }

    .navbar {
        top: 0;
        padding: 1rem 3%;
    }

    .hero {
        padding-top: 5rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.nav-links {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--terminal-bg);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease;
        border-left: none;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
}

/* Loading Bar Effects */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(122, 197, 90, 0.1);
    z-index: 9999;
    overflow: hidden;
}

/* Effect 1: Pulse Loading */
.loading-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulseLoading 2s ease-in-out both;
    background-size: 200% 100%;
    position: relative;
}

/* Effect 2: Glitch Effect */
.loading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: glitchEffect 0.5s ease-in-out infinite;
}

/* Effect 3: Glow Points */
.loading-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color);
    animation: glowPoint 2s linear infinite;
}

@keyframes pulseLoading {
    0% {
        width: 0;
        background-position: 100% 0;
    }
    50% {
        width: 100%;
        background-position: 0 0;
    }
    100% {
        width: 100%;
        background-position: -100% 0;
    }
}

@keyframes glitchEffect {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes glowPoint {
    0% {
        opacity: 0;
        transform: translate(0%, -50%);
    }
    50% {
        opacity: 1;
        transform: translate(50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(100%, -50%);
    }
}

/* Cyberpunk Cursor */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6" fill="%237AC55A" stroke="%23C3DB65" stroke-width="2"/><line x1="12" y1="0" x2="12" y2="24" stroke="%23C3DB65" stroke-width="2"/><line x1="0" y1="12" x2="24" y2="12" stroke="%23C3DB65" stroke-width="2"/></svg>'), auto;
}

/* Cursor Animation */
@keyframes cursorPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Cyberpunk Footer */
.cyberpunk-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(18, 18, 18, 0.9);
    border-top: 1px solid rgba(122, 197, 90, 0.2);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    z-index: 999;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-color);
}

.glow-text {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.logo a {
    transition: color 0.3s ease;
    color: var(--secondary-color);
    text-decoration: dotted;
}

.logo a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
}
