/* Simple & Professional Personal Website CSS */

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
}

.logo:hover {
    color: #2563eb;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Main content */
main {
    flex: 1;
}

/* Homepage hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
    max-width: 500px;
}

/* Page layouts */
.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.page-subtitle {
    font-size: 18px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Legal content */
.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin: 40px 0 16px 0;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    margin-bottom: 16px;
    color: #4b5563;
}

.legal-content ul {
    margin: 16px 0 16px 20px;
    color: #4b5563;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #2563eb;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #333333;
    transition: all 0.2s ease;
    max-width: 400px;
    margin: 40px auto;
}

.contact-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #2563eb;
}

.contact-info strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info span {
    color: #6b7280;
    font-size: 14px;
}

/* Footer */
footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-email {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.footer-email:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 16px;
    }
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}