/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e2e8f0;
    --primary-color: #38bdf8; /* Biru Neon */
    --accent-color: #a855f7;  /* Ungu Neon */
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- UTILITIES --- */
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Efek Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
span {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
}

.btn-contact:hover {
    transform: scale(1.05);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 80px; /* Space for navbar */
}

.hero-content {
    max-width: 600px;
}

.hero-content h3 {
    font-size: 24px;
    font-weight: 400;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.2;
    margin: 10px 0;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #94a3b8;
}

.hero-img img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
}

.socials a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #0f172a;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn:hover {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

/* --- ABOUT --- */
.about-text {
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.stats h3 {
    font-size: 32px;
    color: var(--primary-color);
}

/* --- SKILLS --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-card {
    padding: 30px 20px;
    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.skill-card i {
    font-size: 50px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info a {
    color: var(--primary-color);
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background: #020617;
    font-size: 14px;
    color: #64748b;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
    }
    
    .nav-links {
        display: none; /* Sederhana: sembunyikan menu di mobile */
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-img img {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }
}
