/* Non-critical styles - loaded asynchronously */

/* Analytics grid and items */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 3rem auto;
    justify-items: center;
}

.analytics-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.analytics-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C2F84C, #A5DB35);
}

.analytics-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.analytics-item h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.3;
    min-height: 3.5rem;
    flex-shrink: 0;
}

.analytics-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.analytics-number {
    width: 40px;
    height: 40px;
    background: #C2F84C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(194, 248, 76, 0.3);
    align-self: flex-start;
    margin-top: 0.2rem;
}

.pill-badge {
    display: inline-block;
    background: rgba(194, 248, 76, 0.15);
    color: #C2F84C;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 900;
    font-size: 0.9rem;
    margin: 0.3rem;
    transition: all 0.3s ease;
    /* Remove backdrop-filter to reduce paint cost */
    border: 1px solid rgba(194, 248, 76, 0.2);
}

.pill-badge:hover {
    background: rgba(194, 248, 76, 0.25);
    transform: translateY(-1px);
}

.pet-project-content {
    max-width: 600px;
    margin: 0 auto;
}

.pet-project-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.seo-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.seo-content h2 {
    color: #C2F84C;
    margin-bottom: 2rem;
    text-align: center;
}

.seo-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #FFFFFF;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.seo-keywords {
    background: rgba(194, 248, 76, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #C2F84C;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
}

.seo-keywords p {
    font-weight: 600;
    color: #C2F84C;
    margin-bottom: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background: rgba(194, 248, 76, 0.2);
    color: #C2F84C;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.2rem;
    border: 1px solid rgba(194, 248, 76, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .analytics-grid {
        gap: 1.5rem;
    }

    .analytics-item {
        padding: 2rem 1.5rem;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .analytics-item {
        padding: 2rem 1.5rem;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .seo-content {
        padding: 2rem 1.5rem;
    }
}

/* Navigation */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: #C2F84C;
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(194, 248, 76, 0.7);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #C2F84C;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.footer-group-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #000000;
    background: #C2F84C;
    transform: translateY(-2px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Touch-friendly scrolling */
@media (hover: none) and (pointer: coarse) {
    html {
        scroll-snap-type: y mandatory;
    }
}

@media (max-width: 768px) {
    .nav-dots {
        right: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Content animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
