body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    font-size: 14px;
}

header .logo {
    font-weight: bold;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #000;
}

.menu-icon {
    display: inline-block;
    margin-left: 20px;
    cursor: pointer;
}

.center {
    text-align: center;
    width: 60%;
    margin: auto;
    margin-top: 40px;
    line-height: 1.7;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.social a {
    margin: 0 8px;
    font-size: 20px;
    cursor: pointer;
    color: #000;
}

h3 {
    margin-top: 10px;
}

/* PORTOFOLIO PAGE */
.portfolio-container {
    width: 70%;
    margin: 50px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.card img {
    width: 100%;
    border-radius: 5px;
}

 /* Project Page Specific Styles */
.project-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.project-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.project-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px; /* Tinggi tetap untuk portrait orientation */
}

.carousel-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.carousel-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain; /* Menjaga aspect ratio */
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #000;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: rgba(0,0,0,0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.project-details {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

.project-details h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.project-info {
    margin-bottom: 25px;
}

.project-info h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.project-info ul {
    padding-left: 20px;
}

.project-info li {
    margin-bottom: 8px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-item {
    background-color: #f5f5f5;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #eee;
}

.video-section {
    margin-top: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #eee;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    font-size: 14px;
}

.back-button:hover {
    background-color: #eee;
}

/* Project Card Clickable */
.card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Fullscreen Modal untuk gambar */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;
}

footer {
            text-align: center;
            padding: 40px 0;
            margin-top: 60px;
            border-top: 1px solid #eee;
            font-size: 14px;
        }

.modal-nav:hover {
    background-color: rgba(255,255,255,0.4);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
        