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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px 20px;
}

.header-content {
    position: relative;
    display: inline-flex;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #95a5a6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    margin-left: 20px;
    opacity: 0.8;
}

.home-link:hover {
    color: #7f8c8d;
    opacity: 1;
}

.home-link svg {
    width: 16px;
    height: 16px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.category {
    margin-bottom: 50px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #667eea;
}

.category-title svg {
    width: 20px;
    height: 20px;
    fill: #667eea;
}

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

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.card {
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 420px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-description a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.card-description a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px;
    margin: 0 -8px -8px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #34495e;
}
.card-link:hover {
    background: rgba(255, 255, 255, 1);
}

.card-demo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.25);
    color: white;
}
.card-demo:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Card Theme Colors - Flat UI Style */
.card-theme-dark {
    background: #34495e;
}
.card-theme-dark .card-title,
.card-theme-dark .card-description {
    color: white;
}

.card-theme-purple {
    background: #9b59b6;
}
.card-theme-purple .card-title,
.card-theme-purple .card-description {
    color: white;
}

.card-theme-teal {
    background: #1abc9c;
}
.card-theme-teal .card-title,
.card-theme-teal .card-description {
    color: white;
}

.card-theme-red {
    background: #e74c3c;
}
.card-theme-red .card-title,
.card-theme-red .card-description {
    color: white;
}

.card-theme-blue {
    background: #3498db;
}
.card-theme-blue .card-title,
.card-theme-blue .card-description {
    color: white;
}

.card-theme-orange {
    background: #e67e22;
}
.card-theme-orange .card-title,
.card-theme-orange .card-description {
    color: white;
}

.card-theme-green {
    background: #2ecc71;
}
.card-theme-green .card-title,
.card-theme-green .card-description {
    color: white;
}

.card-theme-yellow {
    background: #f39c12;
}
.card-theme-yellow .card-title,
.card-theme-yellow .card-description {
    color: white;
}

.card-theme-pink {
    background: #e91e63;
}
.card-theme-pink .card-title,
.card-theme-pink .card-description {
    color: white;
}

.card-theme-indigo {
    background: #3f51b5;
}
.card-theme-indigo .card-title,
.card-theme-indigo .card-description {
    color: white;
}

.card-theme-cyan {
    background: #00bcd4;
}
.card-theme-cyan .card-title,
.card-theme-cyan .card-description {
    color: white;
}

.card-theme-lime {
    background: #cddc39;
}
.card-theme-lime .card-title,
.card-theme-lime .card-description {
    color: #333;
}

.card-theme-amber {
    background: #ffc107;
}
.card-theme-amber .card-title,
.card-theme-amber .card-description {
    color: #333;
}

.card-theme-deep-orange {
    background: #ff5722;
}
.card-theme-deep-orange .card-title,
.card-theme-deep-orange .card-description {
    color: white;
}

.card-theme-brown {
    background: #795548;
}
.card-theme-brown .card-title,
.card-theme-brown .card-description {
    color: white;
}

.card-theme-grey {
    background: #607d8b;
}
.card-theme-grey .card-title,
.card-theme-grey .card-description {
    color: white;
}

.card-theme-blue-grey {
    background: #455a64;
}
.card-theme-blue-grey .card-title,
.card-theme-blue-grey .card-description {
    color: white;
}

.card-theme-light-blue {
    background: #03a9f4;
}
.card-theme-light-blue .card-title,
.card-theme-light-blue .card-description {
    color: white;
}

.card-theme-light-green {
    background: #8bc34a;
}
.card-theme-light-green .card-title,
.card-theme-light-green .card-description {
    color: #333;
}

.card-theme-deep-purple {
    background: #673ab7;
}
.card-theme-deep-purple .card-title,
.card-theme-deep-purple .card-description {
    color: white;
}

.card-link svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

.card-link svg path {
    fill: currentColor;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #95a5a6;
    font-size: 0.85rem;
}