/* Base Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1b2838; /* Steam Dark Blue */
    color: #c7d5e0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #171a21;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2a475e;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo .highlight {
    color: #66c0f4; /* Steam Blue */
}

.status {
    font-size: 0.9rem;
    color: #66c0f4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2f2f2f;
}

.dot.online {
    background-color: #4ce766; /* Online Green */
    box-shadow: 0 0 10px #4ce766;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
    padding: 4rem 5%;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #66c0f4, #1b2838);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.3);
}

.profile-info h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #8f98a0;
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #3c3c3c;
    background: rgba(0,0,0,0.2);
}

.badge.php { color: #8892be; border-color: #8892be; }
.badge.node { color: #68a063; border-color: #68a063; }
.badge.firebase { color: #ffcb2b; border-color: #ffcb2b; }

/* Library Section */
.library-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a475e;
    padding-bottom: 1rem;
}

.section-header h2 {
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
}

.filter-bar span {
    margin-left: 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #8f98a0;
    transition: color 0.3s;
}

.filter-bar span.active, .filter-bar span:hover {
    color: #66c0f4;
}

/* Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background-color: #16202d;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 320px;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #66c0f4;
}

.card-image {
    height: 180px;
    background-color: #0f151e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-kwitansi {
    background: linear-gradient(45deg, #a8ff78, #78ffd6);
}
.project-node {
    background: linear-gradient(45deg, #fc466b, #3f5efb);
}
.project-cv {
    background: linear-gradient(45deg, #fce38a, #f38181);
}

/* Overlay Effect */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-weight: bold;
    gap: 10px;
}

.card:hover .overlay {
    opacity: 1;
}

.overlay i {
    font-size: 2rem;
    background: #66c0f4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 0 15px #66c0f4;
}

.card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #8f98a0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: auto; /* Pushes tags to bottom */
}

.tags {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: #2a3f5a;
    color: #c7d5e0;
    border-radius: 2px;
}

/* Add New Card */
.card.add-new {
    border: 2px dashed #2a475e;
    background: transparent;
    cursor: pointer;
}

.card.add-new:hover {
    border-color: #66c0f4;
    background: rgba(102, 192, 244, 0.05);
}

.card-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8f98a0;
}

.card-center i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #4a5968;
    font-size: 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid #1c252e;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .badges {
        justify-content: center;
    }
}
