/* Portfolio image style */
.portfolio-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.portfolio-image:hover {
    transform: scale(1.02);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-image:hover img {
    transform: scale(1.05);
}

/* Sponsor text style */
.portfolio-sponsor {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #555555;
    background: #e9e9e9;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    width: auto;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CSS Utama dengan Tema Grey Modern */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #2c3e50;
    background-image: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

section {
    animation: fadeIn 0.8s ease forwards;
    margin-bottom: 40px;
}

/* navigasi */
nav {
    background-color: #34495e;
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border: 1px solid #4a6a8a;
}

nav a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: #3d566e;
}

nav a:hover {
    background-color: #5d7a9a;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* judul section */
.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: #ecf0f1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #5d7a9a, #95a5a6);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.section-title:hover::after {
    width: 100px;
}

/* card style */
.card {
    background: #34495e;
    backdrop-filter: blur(4px);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid #4a6a8a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* layout CV */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    background: #34495e;
    border-radius: 30px;
    padding: 25px;
    border: 1px solid #4a6a8a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ecf0f1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: #3d566e;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info h1 {
    font-size: 2.2rem;
    color: #ecf0f1;
    font-weight: 600;
}
.profile-info p {
    color: #bdc3c7;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
}
.info-list li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #3d566e;
    padding: 10px 18px;
    border-radius: 40px;
    transition: all 0.3s;
    border: 1px solid #4a6a8a;
    color: #ecf0f1;
}
.info-list li:hover {
    background: #4a6a8a;
    transform: translateX(5px);
}
.info-list i {
    width: 30px;
    color: #ecf0f1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}
.skill-tag {
    background: #3d566e;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ecf0f1;
    transition: all 0.2s;
    border: 1px solid #4a6a8a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.skill-tag:hover {
    background: #5d7a9a;
    transform: scale(1.02) translateY(-2px);
    border-color: #7f8c8d;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-item {
    background: #34495e;
    border-radius: 30px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #4a6a8a;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.portfolio-item:hover {
    background: #3d566e;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: #5d7a9a;
}
.portfolio-item h3 {
    margin-bottom: 8px;
    color: #ecf0f1;
    font-weight: 600;
}
.portfolio-item p {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.game-container {
    background: #34495e;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    border: 1px solid #4a6a8a;
    max-width: 550px;
    margin: 20px auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.game-question {
    font-size: 3rem;
    font-weight: 700;
    color: #ecf0f1;
    background: #3d566e;
    display: inline-block;
    padding: 20px 40px;
    border-radius: 60px;
    margin: 20px 0;
    letter-spacing: 5px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.2);
    border: 1px solid #4a6a8a;
}
.game-input {
    width: 120px;
    padding: 15px;
    font-size: 1.8rem;
    text-align: center;
    border: 2px solid #4a6a8a;
    border-radius: 60px;
    background: #ecf0f1;
    color: #2c3e50;
    outline: none;
    transition: 0.2s;
    margin: 15px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
.game-input:focus {
    border-color: #7f8c8d;
    box-shadow: 0 0 0 4px rgba(127, 140, 141, 0.3);
}
.game-btn {
    background: #3d566e;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ecf0f1;
    cursor: pointer;
    transition: 0.2s;
    margin: 8px;
    border: 1px solid #4a6a8a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.game-btn:hover {
    background: #5d7a9a;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    color: #ffffff;
}
.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.score-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #ecf0f1;
}
.score-timer span {
    background: #3d566e;
    padding: 8px 25px;
    border-radius: 40px;
    font-weight: 600;
    border: 1px solid #4a6a8a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.feedback {
    min-height: 30px;
    font-size: 1.1rem;
    color: #bdc3c7;
    font-weight: 500;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    color: #bdc3c7;
    border-top: 2px solid #4a6a8a;
    background: #2c3e50;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

/* Responsif */
@media (max-width: 768px) {
    nav {
        gap: 15px;
        padding: 15px;
    }
    .cv-grid {
        grid-template-columns: 1fr;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .game-question {
        font-size: 2.5rem;
        padding: 15px 25px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Animasi tambahan */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.game-btn:active {
    transform: scale(0.98);
}

.skill-tag i, .info-list i {
    margin-right: 5px;
}