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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    padding: 40px 20px;
}

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

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

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    min-height: 300px;
}

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

.project-image {
    flex: 1;
    min-width: 40%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.project-image span {
    position: relative;
    z-index: 1;
}

.project-card:nth-child(even) .project-image {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.project-card:nth-child(3n) .project-image {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.project-card:nth-child(3n+1) .project-image {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.project-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.project-card:nth-child(even) .project-tag {
    background: #f39c12;
}

.project-card:nth-child(3n) .project-tag {
    background: #e74c3c;
}

.project-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.project-description {
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.project-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    width: fit-content;
}

.project-link:hover {
    background: #2980b9;
}

.project-card:nth-child(even) .project-link {
    background: #f39c12;
}

.project-card:nth-child(even) .project-link:hover {
    background: #e67e22;
}

.project-card:nth-child(3n) .project-link {
    background: #e74c3c;
}

.project-card:nth-child(3n) .project-link:hover {
    background: #c0392b;
}

.placeholder-text {
    opacity: 0.6;
    font-style: italic;
}

footer {
    text-align: center;
    color: #7f8c8d;
    margin-top: 60px;
}

@media (max-width: 968px) {
    .project-card {
        flex-direction: column;
    }

    .project-image {
        min-height: 250px;
    }

    h1 {
        font-size: 2em;
    }
}