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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 1000;
}

.top-nav a {
    text-decoration: none;
    color: transparent;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.top-nav a:hover {
    color: #555;
    border-bottom-color: #999;
}

/* Container */
.container {
    max-width: 600px;
    width: 100%;
}

.content {
    text-align: center;
}

/* Header */
header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Bio Section */
.bio {
    margin-bottom: 3rem;
    text-align: left;
}

.bio p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bio p:last-child {
    margin-bottom: 0;
}

.bio p a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    transition: all 0.2s ease;
    font-weight: 500;
}

.bio p a:hover {
    color: #333;
    border-bottom-style: solid;
    border-bottom-color: #333;
}

.bio p a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    border-radius: 2px;
}

.bio p a:visited {
    color: inherit;
}
/* Links Section */
.links {
    margin-bottom: 2rem;
}

.links h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

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

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links a i {
    font-size: 1.1rem;
    width: 16px;
    text-align: center;
}

/* GitHub link styling */
.social-links a[href*="github"] {
    background: #f6f8fa;
    border-color: #d0d7de;
    color: #24292f;
}

.social-links a[href*="github"]:hover {
    background: #eaeef2;
    border-color: #c7cdd4;
}

/* LinkedIn link styling */
.social-links a[href*="linkedin"] {
    background: #f3f6ff;
    border-color: #d4e3ff;
    color: #0a66c2;
}

.social-links a[href*="linkedin"]:hover {
    background: #e8f0ff;
    border-color: #c2d7ff;
}

/* Email link styling */
.social-links a[href*="mailto"] {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

.social-links a[href*="mailto"]:hover {
    background: #ffeaea;
    border-color: #fbb6b6;
}

/* Project links styling */
.social-links a[href*="debatabase-th"],
.social-links a[href*="vaewvakyvadi"] {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #2d7d32;
}

.social-links a[href*="debatabase-th"]:hover,
.social-links a[href*="vaewvakyvadi"]:hover {
    background: #e6ffed;
    border-color: #9ae6b4;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .top-nav {
        top: 1rem;
        right: 1rem;
        gap: 1rem;
    }

    .top-nav a {
        font-size: 0.9rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .bio p {
        font-size: 0.95rem;
    }
    
    .social-links a {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
}

/* Focus states for accessibility */
.social-links a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .social-links a {
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
    
    .social-links a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .social-links a {
        transition: all 0.2s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-links a {
        transition: none;
    }
}

/* Writings Page */
.writings-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

.writings-group h2 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.writings-list {
    list-style: none;
}

.writings-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.writings-list li:last-child {
    border-bottom: none;
}

.writings-list a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.writings-list a:hover {
    color: #333;
    border-bottom-color: #999;
}

.writing-date {
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Individual Post */
.post-date {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.25rem;
    margin-bottom: 2.5rem;
}

.post-body {
    text-align: left;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.post-body h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-body a:hover {
    color: #333;
    border-bottom-style: solid;
    border-bottom-color: #333;
}

.post-back {
    margin-top: 3rem;
    text-align: left;
}

.post-back a {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.post-back a:hover {
    color: #555;
    border-bottom-color: #999;
}