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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #B77466 0%, #FFE1AF 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

nav.main-nav {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

nav.main-nav a {
    padding: 0.75rem 1.5rem;
    background: #f7fafc;
    color: #2d3748;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

nav.main-nav a:hover {
    background: #B77466;
    color: white;
    transform: translateY(-2px);
}

nav.main-nav a:focus {
    outline: 3px solid #B77466;
    outline-offset: 2px;
}

nav.main-nav a.active {
    background: #957C62;
    color: white;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.profile-card, .contact-card, .about-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #957C62;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.profile-time {
    font-size: 0.875rem;
    color: black;
    font-family: 'Courier New', monospace;
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.profile-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-list li {
    background: #957C62;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #FFF;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E2B59A;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-links li a:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

.social-links li a:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
}

.form-group label span {
    color: red;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    display: none;
}

.error-message.visible {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e53e3e;
}

.submit-button {
    padding: 1rem 2rem;
    background: #957C62;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #B77466;
    transform: translateY(-2px);
}

.submit-button:focus {
    outline: 3px solid #B77466;
    outline-offset: 3px;
}

.submit-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    padding: 1rem;
    background: #c6f6d5;
    color: #22543d;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.success-message.visible {
    display: block;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #B77466;
}

.about-section h3 {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.about-section p,
.about-section ul {
    color: #4a5568;
    line-height: 1.6;
}

.about-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.about-section ul li {
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .profile-avatar {
        flex-shrink: 0;
    }

    .profile-info {
        flex: 1;
    }
}