:root {
    --primary: #4e95ff;
    --primary-dark: #3a7bd5;
    --bg-gradient: linear-gradient(135.2deg, rgba(7, 12, 23, 1) 1.2%, rgba(13, 33, 64, 1) 98.1%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b0b8c4;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 2em;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 4em;
    padding-top: 2em;
}

h1 {
    font-weight: 600;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #4e95ff, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.header-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.top-nav {
    position: absolute;
    top: 2em;
    left: 2em;
    z-index: 10;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 400;
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.project-item:hover::before {
    transform: translateX(100%);
}

.project-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.2rem 0;
}

.project-title img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: white;
    padding: 2px;
}

.project-title a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.project-title a:hover {
    color: var(--primary);
}

.project-desc {
    flex-grow: 1;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.install-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 149, 255, 0.3);
}

.install-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(78, 149, 255, 0.5);
    transform: scale(1.05);
}

.install-button svg {
    fill: currentColor;
}

.install-button.installed {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-dim) !important;
    border: 1px solid var(--glass-border);
    box-shadow: none !important;
    pointer-events: none;
}

footer {
    text-align: center;
    margin-top: 6em;
    padding-bottom: 3em;
    color: var(--text-dim);
    font-weight: 300;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: var(--text-dim);
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .top-nav {
        position: static;
        margin-bottom: 2em;
        display: flex;
        justify-content: center;
    }

    body {
        padding: 1em;
    }
}
