:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

/* Gaya untuk Foto Profil */
.profile-container {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    
    /* Tambahkan baris ini untuk menggeser gambar di dalam lingkaran ke atas */
    object-position: center 20%; /* Anda bisa ubah angka 20% menjadi 10%, 30%, atau "top" sesuai posisi wajah Anda */
    
    border: 4px solid var(--card-bg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

/* Penyesuaian responsif untuk foto profil di layar kecil */
@media (max-width: 768px) {
    .profile-img {
        width: 140px;
        height: 140px;
    }
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.typewriter-container {
    height: 30px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: var(--accent);
}

section {
    padding: 80px 0;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-item {
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    background: var(--card-bg);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
    color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    background: var(--card-bg);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.portfolio-card i {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--accent);
}

.portfolio-card h3 {
    margin-bottom: 10px;
}

.portfolio-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.personal-corner {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--card-bg) 0%, #111827 100%);
    text-align: center;
}

.personal-corner i {
    margin-bottom: 20px;
    font-size: 3rem;
    color: #ef4444;
}

.stat-box {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    font-weight: 600;
}

footer {
    padding: 60px 0;
    background: #0b1120;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--accent);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent-hover);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}