/* Reset and Base Styles */
* {
    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, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #667eea;
    background: #f7fafc;
    outline: none;
}

.nav-links a[data-testid="test-nav-about"],
.nav-links a[data-testid="test-nav-contact"] {
    position: relative;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* Profile Card Styles */
.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

figure[data-testid="test-user-avatar"] {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    overflow: hidden;
    margin: 0;
}

figure[data-testid="test-user-avatar"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1[data-testid="test-user-name"] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

p[data-testid="test-user-bio"] {
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
}

/* Name emphasis style */
[data-testid="emphasis-name"] {
    font-weight: 700;
    color: #667eea;
    font-style: italic;
}

/* Time Display */
[data-testid="test-user-time"] {
    background: #f7fafc;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Card Content Grid */
.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Sections */
section {
    margin-bottom: 0;
}

section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Lists */
ul {
    list-style: none;
}

li {
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
    position: relative;
    padding-left: 20px;
}

li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Social Links */
nav[data-testid="test-user-social-links"] {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f7fafc;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    border-color: currentColor;
}

.social-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: fill 0.2s ease;
}

.social-link:hover .social-icon,
.social-link:focus .social-icon {
    fill: white;
}

/* Brand-specific hover colors */
.social-link[data-testid="test-user-social-whatsapp"]:hover {
    background: #25D366;
    border-color: #25D366;
}

.social-link[data-testid="test-user-social-x"]:hover {
    background: #000000;
    border-color: #000000;
}

.social-link[data-testid="test-user-social-github"]:hover {
    background: #333;
    border-color: #333;
}

.social-link[data-testid="test-user-social-linkedin"]:hover {
    background: #0077B5;
    border-color: #0077B5;
}

/* Contact Page Styles */
.contact-container {
    max-width: 600px;
    width: 100%;
}

.contact-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 32px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #5a6fd8;
}

.submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    display: none;
}

.form-input.error,
.form-textarea.error {
    border-color: #e53e3e;
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    width: 100%;
}

.about-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    text-align: center;
}

.about-intro {
    color: #718096;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

.section-content {
    color: #4a5568;
    line-height: 1.7;
}

.section-content ul {
    margin-top: 12px;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 0;
}

.section-content li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .page-container {
        padding: 1rem;
    }
    
    .profile-card {
        padding: 24px;
    }
    
    .card-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    
    figure[data-testid="test-user-avatar"] {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .card-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    h1[data-testid="test-user-name"] {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: 24px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 20px;
        margin-bottom: 32px;
    }
    
    nav[data-testid="test-user-social-links"] {
        gap: 8px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .page-container {
        padding: 0.5rem;
    }
    
    .profile-card,
    .contact-form,
    .about-content {
        padding: 20px;
        border-radius: 12px;
    }
    
    figure[data-testid="test-user-avatar"] {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    h1[data-testid="test-user-name"] {
        font-size: 1.25rem;
    }
    
    p[data-testid="test-user-bio"] {
        font-size: 0.9rem;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-link {
        border: 2px solid currentColor;
    }
    
    .nav-links a {
        border: 1px solid transparent;
    }
    
    .nav-links a:hover {
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .social-link {
        transition: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .main-nav {
        display: none;
    }
    
    body {
        background: white !important;
    }
    
    .profile-card,
    .contact-form,
    .about-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}