* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: #f1f5f9;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease; /* Transisi untuk light/dark mode */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: #00f5ff;
    text-shadow: 0 0 10px #00f5ff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #f5f6fa;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

nav a:hover {
    color: #00f5ff;
    text-shadow: 0 0 8px #00f5ff;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.8rem;
    color: #f1f5f9;
    transition: color 0.3s ease;
}

.hamburger {
    display: none; /* Sembunyi di desktop */
    cursor: pointer;
}

.hamburger i {
    font-size: 2.5rem;
    color: #f1f5f9;
    transition: color 0.3s ease;
}

.hero {
    text-align: center;
    padding: 7rem 2rem;
    background: linear-gradient(135deg, #7f00ff, #e100ff);
    color: #fff;
    box-shadow: 0 0 50px rgba(127,0,255,0.3);
    animation: fadeIn 1.5s ease;
    transition: background 0.3s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #00f5ff;
    text-shadow: 0 0 10px #00f5ff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: linear-gradient(90deg, #00a8ff, #7f00ff);
    color: #fff;
    padding: 0.9rem 1.7rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,168,255,0.4);
}

.btn:hover {
    background: linear-gradient(90deg, #00f5ff, #8e2de2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(127,0,255,0.6);
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 4rem 6%;
}

.tentang .content {
    flex: 3;
    background: rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tentang h2 {
    color: #00f5ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px #00f5ff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sidebar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sidebar img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #00a8ff;
    box-shadow: 0 0 15px rgba(0,168,255,0.6);
    margin-bottom: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.sidebar h3 {
    color: #00f5ff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.keahlian {
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}

.keahlian h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #38bdf8;
    transition: color 0.3s ease;
}

.skills-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.skills-track {
    display: flex;
    gap: 2rem;
    animation: scroll 25s linear infinite;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    min-width: 120px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}
.skill-item span {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #f1f5f9;
    transition: color 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.1);
    background: rgba(56, 189, 248, 0.2);
}

.projek {
    padding: 4rem 6%;
    text-align: left;
}

.projek h2 {
    color: #00f5ff;
    margin-bottom: 2rem;
    text-align: center;
    transition: color 0.3s ease;
}

.projek-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.projek-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projek-card:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 25px rgba(0,245,255,0.25);
    transform: translateY(-8px);
}

.projek-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.projek-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projek-card:hover .projek-image img {
    transform: scale(1.05);
}

.projek-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projek-content h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.projek-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.projek-tags {
    margin-bottom: 1rem;
}

.projek-tags .tag {
    background: rgba(0, 168, 255, 0.2);
    color: #00f5ff;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.projek-links .link-btn {
    text-decoration: none;
    color: #f1f5f9;
    border: 1px solid #00a8ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.projek-links .link-btn:hover {
    background: #00a8ff;
    color: #0f172a;
}

.projek-links .link-btn i,
.social-links a i {
    margin-right: 5px;
    vertical-align: middle;
}

.kontak {
    text-align: center;
    padding: 4rem 6%;
    background: linear-gradient(135deg, #00a8ff, #7f00ff);
    border-radius: 18px;
    margin: 2rem 6%;
    transition: background 0.3s ease;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.8rem 1.3rem;
    border-radius: 30px;
    margin: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: #7f00ff;
    transform: scale(1.1);
}

footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    color: #dcdde1;
    font-size: 0.9rem;
    border-top: 2px solid #00a8ff;
    transition: background 0.3s ease, color 0.3s ease, border-top 0.3s ease;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}


@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .theme-toggle {
        font-size: 1.5rem;
    }

    nav {
        position: fixed;
        top: 69px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out, background 0.3s ease;
    }
    
    nav.mobile-active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        flex-direction: column;
        padding: 3rem 4%;
    }

    .tentang .content,
    .sidebar {
        flex: auto;
        width: 100%;
        margin: 0;
        margin-bottom: 1.5rem;
    }
    
    .projek {
        padding: 3rem 4%;
    }
    
    .projek-list {
        grid-template-columns: 1fr;
    }
    
    .kontak {
        margin: 2rem 4%;
        padding: 3rem 4%;
    }
}

body.light-mode {
    background: #f1f5f9;
    color: #0f172a;
}
body.light-mode header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e2e8f0;
}
body.light-mode .logo,
body.light-mode nav a,
body.light-mode .theme-toggle i,
body.light-mode .hamburger i {
    color: #0f172a;
}
body.light-mode .logo span,
body.light-mode nav a:hover {
    color: #007BFF;
    text-shadow: none;
}
body.light-mode nav.mobile-active {
    background: #f1f5f9;
}
body.light-mode .hero {
    background: linear-gradient(135deg, #007BFF, #00C6FF);
    text-shadow: none;
}
body.light-mode .hero h1 span {
    color: #fff;
    text-shadow: none;
}
body.light-mode .btn:hover {
    background: linear-gradient(90deg, #00C6FF, #007BFF);
}
body.light-mode .tentang .content,
body.light-mode .sidebar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}
body.light-mode .tentang h2,
body.light-mode .sidebar h3 {
    color: #007BFF;
    text-shadow: none;
}
body.light-mode .sidebar img {
    border: 3px solid #007BFF;
    box-shadow: 0 0 15px rgba(0,123,255,0.4);
}
body.light-mode .keahlian h2 {
    color: #0284c7;
}
body.light-mode .skill-item {
    background: #e2e8f0;
}
body.light-mode .skill-item span {
    color: #0f172a;
}
body.light-mode .skill-item:hover {
    background: #cbd5e1;
}
body.light-mode .projek h2 {
    color: #007BFF;
}
body.light-mode .projek-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.light-mode .projek-card:hover {
    background: #ffffff;
    box-shadow: 0 6px 30px rgba(0,123,255,0.2);
}
body.light-mode .projek-content h3 {
    color: #0f172a;
}
body.light-mode .projek-content p {
    color: #334155;
}
body.light-mode .projek-tags .tag {
    background: rgba(0, 123, 255, 0.1);
    color: #007BFF;
}
body.light-mode .projek-links .link-btn {
    color: #007BFF;
    border: 1px solid #007BFF;
}
body.light-mode .projek-links .link-btn:hover {
    background: #007BFF;
    color: #ffffff;
}
body.light-mode .kontak {
    background: linear-gradient(135deg, #007BFF, #00C6FF);
}
body.light-mode footer {
    background: #e2e8f0;
    color: #334155;
    border-top: 2px solid #007BFF;
}