/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content - centered */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 800px;
}

/* Profile image */
.profile-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile text */
.profile-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 200px;
}

.name {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.name-emphasis {
    font-weight: 700;
    color: #2563eb;
}

.byline {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Bottom bar */
.bottom-bar {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-top: 1px solid #374151;
    padding: 1rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-1px);
}

.link-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.copyright {
    text-align: center;
    margin: 0.5rem auto 0;
    padding-top: 0.5rem;
    max-width: 1200px;
}

.copyright p {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #4b5563;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem;
}

.dark-mode-toggle:hover {
    color: #2563eb;
    transform: scale(1.1);
}

/* Dark mode styles */
body.dark-mode {
    background: #1f2937;
    color: #f9fafb;
    min-height: 100vh;
}

body.dark-mode .name {
    color: #f9fafb;
}

body.dark-mode .name-emphasis {
    color: #60a5fa;
}

body.dark-mode .byline {
    color: #9ca3af;
}

body.dark-mode .description {
    color: #d1d5db;
}

body.dark-mode .profile-photo {
    border-color: #374151;
}

body.dark-mode .dark-mode-toggle {
    color: #d1d5db;
}

body.dark-mode .dark-mode-toggle:hover {
    color: #60a5fa;
}

body.dark-mode .bottom-bar {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-top-color: #4b5563;
}

body.dark-mode .copyright p {
    color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .byline {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .byline {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .social-links a {
        width: 200px;
        text-align: center;
    }
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}