/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #000428, #004e92); /* Gradasi biru ke hitam */
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2 {
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

h1 {
    font-size: 2.8rem;
    color: #00ffff;
}

h2 {
    font-size: 2rem;
    color: #00e1ff;
    margin-bottom: 1rem;
}

p {
    color: #d8d8d8;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar .logo {
    font-size: 1.8rem;
    color: #00e1ff;
    font-weight: 600;
    text-shadow: 0 0 5px #00e1ff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #00ffff;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(120deg, #001848, #000428); /* Gradasi biru gelap ke hitam */
    color: #fff;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content .btn {
    margin-top: 1.5rem;
    display: inline-block;
    background: #00e1ff;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 0 15px #00e1ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-content .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #00e1ff;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #001848;
    color: #fff;
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #000428, #004e92);
}

.portfolio-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    background: #001f3f;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00e1ff;
}

.portfolio-item img {
    max-width: 100%;
    border-radius: 8px;
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
}

.portfolio-item a:hover h3 {
    color: #00e1ff;
}

/* Footer */
.contact-section {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(120deg, #000428, #001848);
}

.contact-info p, a {
    margin: 0.5rem 0;
    color: #d8d8d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-content .btn {
        padding: 0.5rem 1.5rem;
    }

    .portfolio-grid {
        flex-direction: column;
    }
}

/* Efek Electric */
.electric-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Tidak menghalangi interaksi pengguna */
    overflow: hidden;
}

.lightning {
    position: absolute;
    width: 50px;
    height: 50px;
    animation: flicker 1.5s infinite ease-in-out, move 3s infinite linear;
    opacity: 0.8;
}

/* Posisi Random Lightning */
.lightning:nth-child(1) {
    top: 20%;
    left: 10%;
    transform: scale(1.5);
}

.lightning:nth-child(2) {
    top: 60%;
    left: 70%;
    transform: scale(1.8);
}

/* Animasi Lightning */
@keyframes flicker {
    0%, 100% {
        stroke-width: 1.5px;
        stroke-opacity: 0.5;
    }
    50% {
        stroke-width: 2.5px;
        stroke-opacity: 1;
    }
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1.5);
    }
    100% {
        transform: translate(-100px, 100px) scale(1.5);
    }
}
