/* Enhanced Placeholder Styles */

/* Image Placeholders */
.project-image::before,
.blog-image::before,
.hero-image .image-container::before {
    content: attr(data-title);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    font-weight: bold;
    z-index: 0;
    opacity: 0.7;
}

.project-image img,
.blog-image img,
.hero-image .image-container img {
    position: relative;
    z-index: 1;
}

/* Fix for background particles if not loading */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-primary);
}

/* Add some background grid patterns if particles don't load */
#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(123, 92, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 92, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Add subtle glow effects to cards */
.project-card, 
.blog-card, 
.skill-card, 
.contact-card {
    box-shadow: 0 0 15px rgba(123, 92, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::after, 
.blog-card::after, 
.skill-card::after, 
.contact-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 92, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 1.5s;
    pointer-events: none;
}

.project-card:hover::after, 
.blog-card:hover::after, 
.skill-card:hover::after, 
.contact-card:hover::after {
    opacity: 1;
}

/* Improved animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-image .image-container {
    animation: float 5s ease-in-out infinite;
}

/* Add a favicon link */
.favicon-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.favicon-link:hover {
    opacity: 1;
}

/* Better visual hierarchy for sections */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(123, 92, 255, 0.05), transparent 70%);
    pointer-events: none;
}
