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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover, .nav a.admin-link {
    color: #667eea;
}

.main {
    padding: 40px 0;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section h2 {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.info-list {
    margin-top: 20px;
}

.info-item {
    margin-bottom: 10px;
}

.info-item strong {
    color: #667eea;
}

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

.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    color: #666;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

.message-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.messages-list {
    margin-top: 40px;
}

.messages-list h3 {
    margin-bottom: 20px;
    color: #555;
}

.message-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-name {
    font-weight: 600;
    color: #333;
}

.message-date {
    color: #999;
    font-size: 0.9rem;
}

.message-content {
    color: #555;
    line-height: 1.6;
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.loading {
    text-align: center;
    color: #999;
    padding: 40px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .about-content {
        justify-content: center;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav ul {
        flex-direction: column;
    }
}
