* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    position: relative;
}

header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

.login-btn-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

.projects-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 20px 40px 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card:nth-child(1) .project-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-image::after {
    content: attr(data-icon);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-footer span {
    color: #667eea;
    font-weight: bold;
    font-size: 14px;
}

.arrow {
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s;
}

.project-card:hover .arrow {
    transform: translateX(5px);
}

footer {
    text-align: center;
    padding: 20px;
    color: white;
    opacity: 0.8;
    margin-top: auto;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    .login-btn-container {
        top: 15px;
        right: 15px;
    }

    .projects-container {
        padding: 20px;
        gap: 20px;
    }

    .project-card {
        min-width: 100%;
    }
}
