body {
    margin: 0;
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 153, 255, 0.05) 0%, transparent 50%);
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
}

h1.main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.top-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.btn-telegram {
    background: linear-gradient(45deg, #229ED9, #00B5F5);
}

.btn-github {
    background: linear-gradient(45deg, #333333, #111111);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(14px) brightness(1.1);
    backdrop-filter: blur(14px) brightness(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.project-card {
    -webkit-backdrop-filter: blur(14px) brightness(1.1);
    backdrop-filter: blur(14px) brightness(1.1);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem;
    border-radius: 12px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    h1.main-title {
        font-size: 2rem;
    }
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.6em;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.tooltip-wrapper:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    filter: blur(1px);
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Emojis */
.cat-emoji {
    width: 2.5rem;
    height: 2.5rem;
    vertical-align: middle;
    transform: translateY(-0.1em);
}

.bigrat-emoji {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    transform: translateY(-0.1em);
}