:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-accent: #38bdf8;
    --secondary-accent: #818cf8;
    --tertiary-accent: #c084fc;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-glass-bg: rgba(30, 41, 59, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh Gradient */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.15) 0%, transparent 40%);
    filter: blur(60px);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Header */
.main-header {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 55%);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translate(-30%, -30%);
    }

    100% {
        transform: translate(30%, 30%);
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.initiative-line {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.papan-link {
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4rem;
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #2ecc71, #3498db, #9b59b6, #ff5f6d);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 5s ease-in-out infinite;
    position: relative;
}



@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.subtitle-container {
    display: inline-block;
    position: relative;
    margin-top: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
}

.subtitle-line {
    width: 240px;
    height: 3px;
    background: var(--primary-accent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Projects Grid */
.projects-container {
    padding: 1rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    background: var(--hover-glass-bg);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-accent);
    transition: transform 0.3s ease;
}

.project-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--tertiary-accent);
}

.card-info {
    text-align: center;
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.9rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* Full width on mobile for better touch targets */
    }
}

/* Favicon Image Styles */
.favicon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    /* Optional: adds soft corners to the favicon */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}