/* Font & Reset */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 60px 20px;
}
.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
}
.hero h1 {
    margin: 15px 0 5px;
    font-size: 2.2rem;
}
.tagline {
    font-weight: 300;
    margin-bottom: 20px;
}
.btn {
    background: #e67e22;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}
.btn:hover {
    background: #d35400;
}

/* Section */
section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}
h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card img {
    width: 100%;
    border-radius: 8px;
}

/* Contact */
#contact a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 12px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsif */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 20px;
    }
}

background-image: url('img/bg.jpg');

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* biar proporsional */
    border-radius: 10px;
    margin-bottom: 10px;
}

.card h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
    color: #333;
}

.card p {
    font-size: 0.9rem;
    color: #555;
}

/* Efek hover */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}


