:root {
    --primary: #4285F4; /* Google Blue */
    --primary-dark: #357ae8;
    --bg-gradient: radial-gradient(circle at 10% 20%, #f5f5f5 0%, #e8e8e8 55%, #dcdcdc 100%);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #202124;
    --text-dim: #5f6368;
}

body {
    font-family: 'Space Grotesk', 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, var(--primary), #34A853, #FBBC05, #EA4335);
    -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: 640px;
    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: 500;
    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: var(--text-main);
    background: rgba(255, 255, 255, 0.8);
    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;
    min-height: 260px;
}

.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(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.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: 400;
}

.install-button {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    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(66, 133, 244, 0.35);
}

.install-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6);
    transform: scale(1.05);
}

.install-button svg {
    fill: currentColor;
}

.install-button.installed {
    background: rgba(0, 0, 0, 0.05) !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: 400;
}

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

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