/* ===== PROJECTS PAGE - FULL CSS WITH ANIMATIONS ===== */

/* Hero Section */
.projects-hero {
    padding: 100px 20px 60px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.projects-hero-content .main-name {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #0f0, #0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideDown 0.6s ease;
}

.projects-hero-content .role {
    font-size: 1.1rem;
    color: #0ff;
    opacity: 0.9;
    animation: slideUp 0.6s ease 0.2s both;
}

.hero-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0ff, #f0f);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: expandWidth 1s ease 0.4s both;
}

/* Projects Section */
.projects-section {
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Project Card - With Animations */
.project-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
    transform: translateY(-8px);
    border-color: #0ff;
    box-shadow: 0 20px 30px -10px rgba(0, 255, 255, 0.3);
}

/* Project Image */
.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2a, #0a0a0a);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Featured Badge with Pulse Animation */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, #0ff, #0f0);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Project Content */
.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0ff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #fff;
}

.project-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Tech Tags with Hover Effects */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    color: #0ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    background: #0ff;
    color: #000;
    transform: translateY(-2px);
}

/* Project Links */
.project-link {
    color: #0ff;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 10px;
    text-shadow: 0 0 5px #0ff;
}

/* Project Footer */
.project-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 3rem;
    color: #0ff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: #0ff;
    opacity: 0.5;
    margin-bottom: 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== LIGHT MODE ===== */
body.light .project-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 102, 255, 0.3);
}

body.light .project-description {
    color: #333;
}

body.light .project-content h3 {
    color: #0066ff;
}

body.light .project-content h3:hover {
    color: #1a1a1a;
}

body.light .tech-tag {
    background: rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
    color: #0066ff;
}

body.light .tech-tag:hover {
    background: #0066ff;
    color: #fff;
}

body.light .project-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

body.light .empty-state {
    background: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .projects-hero {
        padding: 80px 20px 40px;
    }
    
    .projects-hero-content .main-name {
        font-size: 2.2rem;
    }
    
    .projects-hero-content .role {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: 60px 15px 30px;
    }
    
    .projects-hero-content .main-name {
        font-size: 1.8rem;
    }
    
    .projects-section {
        padding: 20px 15px 40px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #0ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0cc;
}

body.light ::-webkit-scrollbar-track {
    background: #e0e0e0;
}

body.light ::-webkit-scrollbar-thumb {
    background: #0066ff;
}

/* Project Icon Placeholder */
.project-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a2a, #1a1a3a);
    color: #0ff;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon-placeholder i {
    transform: scale(1.1);
    color: #0f0;
}

/* Image fallback */
.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a0a2a, #1a1a3a);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Light mode icon placeholder */
body.light .project-icon-placeholder {
    background: linear-gradient(135deg, #e0e0ff, #f0f0ff);
    color: #0066ff;
}

body.light .project-card:hover .project-icon-placeholder i {
    color: #0044cc;
}

/* Project Detail Page */
.project-detail {
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ff;
    text-decoration: none;
    margin-bottom: 30px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.project-detail-card {
    text-align: center;
}

.project-detail-icon {
    font-size: 5rem;
    color: #0ff;
    margin-bottom: 20px;
}

.project-detail-card h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #0f0, #0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
    margin-bottom: 20px;
}

.project-detail-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.project-detail-content {
    text-align: left;
    line-height: 1.8;
}

.project-detail-content h2 {
    color: #0ff;
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.project-detail-content h3 {
    color: #0ff;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.project-detail-content ul {
    margin-left: 20px;
    color: #ccc;
}

.project-detail-content li {
    margin: 8px 0;
}

@media (max-width: 768px) {
    .project-detail-container {
        padding: 20px;
    }
    .project-detail-card h1 {
        font-size: 1.8rem;
    }
}
