/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h2.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #0056b3;
}

.bg-light {
    background-color: #f4f7f6;
    padding: 80px 0;
}

/* --- Header & Nav --- */
header {
    background: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.logo span {
    color: #0056b3;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0056b3;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(40%);
    z-index: -1;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    object-fit: cover;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background-color: #0056b3;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #003d82;
    transform: translateY(-3px);
}

/* --- About Section --- */
.about {
    padding: 80px 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 20px 20px 0px #f0f4f8;
}

.about-text h2 {
    margin-bottom: 20px;
    color: #0056b3;
}

/* --- Portfolio Section --- */
.portfolio {
    padding: 80px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- Gallery Section --- */
.gallery {
    padding: 80px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

/* --- Contact Section --- */
.contact-container {
    text-align: center;
}

.contact-info {
    margin: 20px 0 30px;
}

/* --- Footer --- */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Sederhana: sembunyikan menu di mobile */
    }
    
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-image img {
        box-shadow: none;
    }
}