/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

/* Stats Section */
.stats-section {
    padding: 80px 10%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 15, 25, 0.5) 100%);
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Syncopate', sans-serif;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tech Stack Section */
.tech-stack {
    padding: 100px 10%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.03) 0%, transparent 70%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.3);
}

.tech-icon {
    font-size: 3rem;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.tech-item:hover .tech-icon {
    filter: grayscale(0%) drop-shadow(0 0 10px rgba(0, 242, 255, 0.6));
    transform: scale(1.2) rotate(5deg);
}

.tech-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.tech-item:hover span {
    color: var(--primary);
}

/* Service Card Flip Enhancement */
.service-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card .service-icon {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tech-icon {
        font-size: 2.5rem;
    }
}

/* Projects Section Fix */
.projects {
    padding: 100px 10%;
    background: transparent;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}