* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { display: flex; flex-direction: column; min-height: 100vh; background-color: #f8f9fa; color: #333; }
header { background-color: #1e293b; color: white; padding: 20px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: relative; }
header h1 { font-size: 24px; }
.lang-switch { position: absolute; top: 20px; right: 20px; background-color: #334155; color: #cbd5e1; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; transition: all 0.3s ease; border: 1px solid #475569; }
.lang-switch:hover { background-color: #475569; color: white; border-color: #64748b; }
.main-container { display: flex; flex: 1; }
nav { width: 250px; background-color: #0f172a; padding: 20px 10px; }
nav ul { list-style-type: none; }
nav ul li { margin-bottom: 10px; }
nav ul li a { display: block; color: #cbd5e1; text-decoration: none; padding: 12px 15px; border-radius: 6px; transition: all 0.3s ease; }
nav ul li a:hover { background-color: #334155; color: white; }
nav ul li a.active { background-color: #2563eb; color: white; }
main { flex: 1; padding: 40px; background-color: #ffffff; }
main h2 { margin-bottom: 15px; color: #1e293b; }
main p { line-height: 1.6; margin-bottom: 15px; font-size: 16px; }
footer { background-color: #1e293b; color: #ffffff; padding: 10px 40px; font-size: 14px; margin-top: auto; border-top: 1px solid #334155; display: flex; justify-content: space-between; align-items: center; }
.footer-donate-btn { display: inline-flex; align-items: center; gap: 6px; background-color: #ffdd00; color: #000000; text-decoration: none; padding: 6px 12px; border-radius: 4px; font-weight: bold; font-size: 13px; transition: all 0.2s; }
.footer-donate-btn:hover { background-color: #ffea4a; transform: scale(1.03); }

/* Stiluri specifice pentru carduri */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.project-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; background-color: #f8fafc; display: flex; flex-direction: column; justify-content: space-between; }
.project-card h3 { color: #0f172a; margin-bottom: 10px; font-size: 18px; }
.project-tags { margin-bottom: 15px; }
.tag { display: inline-block; background-color: #e2e8f0; color: #334155; font-size: 12px; padding: 4px 8px; border-radius: 4px; margin-right: 5px; font-weight: 500; }
.project-link { display: inline-block; align-self: flex-start; background-color: #2563eb; color: white; text-decoration: none; padding: 8px 16px; border-radius: 5px; font-weight: bold; font-size: 14px; transition: background-color 0.2s; margin-top: 10px; }
.project-link:hover { background-color: #1d4ed8; }
.project-image { width: 100%; height: auto; border-radius: 6px; margin-bottom: 15px; border: 1px solid #e2e8f0; }

@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    nav { width: 100%; }
    nav ul { display: flex; justify-content: space-around; flex-wrap: wrap; }
    footer { flex-direction: column; gap: 10px; padding: 15px; text-align: center; }
    .lang-switch { position: static; margin-top: 10px; display: inline-block; }
}
