* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body 
{
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container 
{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header 
{
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.header-bg 
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,60 0,100"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.header-content 
{
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 
{
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.header h1 i 
{
    margin-right: 1rem;
    color: #ffd700;
}

.header p 
{
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.main 
{
    flex: 1;
    padding: 4rem 2rem;
    background: white;
}

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

.project-card 
{
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:hover 
{
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(-10px) scale(1.02);
}

.project-image 
{
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.placeholder-image 
{
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.project-card:hover .placeholder-image { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }

.project-overlay 
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay i 
{
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-overlay span 
{
    font-size: 1.1rem;
    font-weight: 600;
}

.project-info { padding: 2rem; }

.project-info h3 
{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.project-info p 
{
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags 
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag 
{
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.footer 
{
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer p 
{
    font-size: 1rem;
    opacity: 0.8;
}

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

@media(max-width: 768px) 
{
    .header { padding: 3rem 1rem; }
    
    .header h1 { font-size: 2.5rem; }
    
    .header p { font-size: 1rem; }
    
    .main { padding: 2rem 1rem; }
    
    .projects-grid 
    { 
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image { height: 200px; }
    
    .project-info { padding: 1.5rem; }
}

@media(max-width: 480px) 
{
    .header h1 { font-size: 2rem; }
    
    .project-info h3 { font-size: 1.3rem; }
    
    .placeholder-image { font-size: 3rem; }
}

.project-card::before 
{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.project-card:hover::before { left: 100%; }

body.loading .project-card 
{
    opacity: 0;
    transform: translateY(30px);
}

::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-track { background: #f1f1f1; }

::-webkit-scrollbar-thumb 
{
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #5a67d8, #6b46c1); }