/* SEO Optimized Styles - External CSS */

/* GitHub Chart Styles */
#github-floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#github-chart {
    background-color: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    display: none;
    transition: all 0.3s ease;
}

#github-floating-container::before {
    content: "🐙 GitHub";
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #24292e;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

#github-floating-container:hover #github-chart {
    display: block;
}

/* Social Media Widgets */
#social-media-widgets {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#social-media-widgets > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#social-media-widgets a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#social-media-widgets a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#social-media-widgets a span {
    font-size: 20px;
}

/* Project Container Styles */
.description-for-project {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-container {
    padding: 10px;
}

.list-icons li {
    float: left;
    margin-right: 5px;
}

/* Service Container Styles */
.service-container {
    padding: 10px;
}

/* Blog Container Styles */
.blog-container {
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #github-floating-container {
        bottom: 10px;
        right: 10px;
    }
    
    #github-chart {
        max-width: 300px;
    }
    
    #social-media-widgets {
        bottom: 10px;
        left: 10px;
    }
    
    #social-media-widgets a {
        width: 45px;
        height: 45px;
    }
    
    #social-media-widgets a span {
        font-size: 18px;
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Platform Badges */
.platform-badge {
    display: inline-block;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Platform specific colors */
.platform-badge.android {
    background: #3DDC84;
}

.platform-badge.ios {
    background: #007AFF;
}

.platform-badge.flutter {
    background: #02569B;
}

.platform-badge.web {
    background: #FF6B35;
}

/* Platform Badge Overlay */
.platform-badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.platform-badge-overlay:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Ensure the image container is positioned relatively */
.project-container a {
    position: relative;
    display: block;
}
