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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 32px;
    margin-bottom: 60px;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-details {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-details .contact-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details .contact-link:hover {
    color: #000;
}

.bio {
    font-size: 18px;
    color: #666;
    line-height: 1.4;
}

/* Work Section */
.work-section {
    margin-bottom: 60px;
}

.work-item {
    margin-bottom: 40px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.company-details {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.company-name {
    font-size: 20px;
    font-weight: 500;
    color: #000;
}

.time-period {
    font-size: 20px;
    color: #999;
    font-weight: 400;
}

.role {
    font-size: 16px;
    color: #666;
    margin-left: 52px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.role-description {
    font-size: 14px;
    color: #888;
    margin-left: 52px;
    line-height: 1.4;
}

/* Projects Section */
.projects-section {
    margin-bottom: 60px;
}

.project-item {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-item h3 {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.project-link {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #666;
}

.project-year {
    font-size: 20px;
    color: #999;
    font-weight: 400;
}

.project-description {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

/* Writing Section */
.writing-section {
    margin-bottom: 60px;
}

.writing-item {
    margin-bottom: 32px;
}

.writing-item:last-child {
    margin-bottom: 0;
}

.writing-link {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 4px;
}

.writing-link:hover {
    color: #666;
}

.writing-description {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.education-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.degree {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.school {
    font-size: 16px;
    color: #666;
}

.certifications {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.contact-link {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.modal-content a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.modal-content a:hover {
    color: #666;
}

.close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.certifications {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.certifications p {
    margin-bottom: 8px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .navigation {
        margin-bottom: 40px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .profile-image {
        width: 64px;
        height: 64px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .bio {
        font-size: 16px;
    }
    
    .company-info {
        gap: 16px;
    }
    
    .company-details {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .company-name,
    .time-period {
        font-size: 18px;
    }
    
    .role {
        margin-left: 48px;
        font-size: 15px;
    }
    
    .project-item h3 {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .project-link,
    .project-year {
        font-size: 18px;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }
    
    .company-logo {
        width: 28px;
        height: 28px;
    }
    
    .role {
        margin-left: 44px;
    }
}

/* Article Styles */
.article {
    max-width: 100%;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #000;
}

.article-meta {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.article-content {
    line-height: 1.6;
}

.article-intro {
    font-size: 18px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.5;
}

.article-section {
    margin-bottom: 32px;
}

.article-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
    line-height: 1.3;
}

.article-section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.6;
}

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

/* Responsive article styles */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-intro {
        font-size: 16px;
    }
    
    .article-section h2 {
        font-size: 20px;
    }
}

/* Technology Stack Styles */
.tech-stack {
    margin-bottom: 60px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-start;
}

.tech-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

.tech-badge {
    height: 20px;
}

.tech-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.tech-name {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
    outline: none;
}

.theme-toggle:hover {
    background-color: #f8f9fa;
    border-color: #d0d7de;
}

/* Dark Mode Styles */
[data-theme="dark"] {
    background-color: #0d1117;
    color: #e6edf3;
}

[data-theme="dark"] .container {
    background-color: #0d1117;
}

[data-theme="dark"] .nav-link {
    color: #c9d1d9;
}

[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link:hover {
    color: #f0f6fc;
}

[data-theme="dark"] .theme-toggle {
    border-color: #30363d;
    color: #e6edf3;
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: #21262d;
    border-color: #8b949e;
}

[data-theme="dark"] .name {
    color: #f0f6fc;
}

[data-theme="dark"] .contact-details {
    color: #c9d1d9;
}

[data-theme="dark"] .contact-details .contact-link {
    color: #c9d1d9;
}

[data-theme="dark"] .contact-details .contact-link:hover {
    color: #f0f6fc;
}

[data-theme="dark"] .bio {
    color: #c9d1d9;
}

[data-theme="dark"] .company-name {
    color: #f0f6fc;
}

[data-theme="dark"] .time-period {
    color: #c9d1d9;
}

[data-theme="dark"] .role {
    color: #c9d1d9;
}

[data-theme="dark"] .role-description {
    color: #c9d1d9;
}

[data-theme="dark"] .project-link {
    color: #f0f6fc;
}

[data-theme="dark"] .project-link:hover {
    color: #c9d1d9;
}

[data-theme="dark"] .project-description {
    color: #c9d1d9;
}

[data-theme="dark"] .writing-link {
    color: #f0f6fc;
}

[data-theme="dark"] .writing-link:hover {
    color: #c9d1d9;
}

[data-theme="dark"] .writing-description {
    color: #c9d1d9;
}

[data-theme="dark"] .footer {
    border-top-color: #30363d;
}

[data-theme="dark"] .contact-link {
    color: #f0f6fc;
}

[data-theme="dark"] .contact-link:hover {
    color: #c9d1d9;
}

[data-theme="dark"] .modal-content {
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
}

[data-theme="dark"] .close {
    color: #8b949e;
}

[data-theme="dark"] .close:hover {
    color: #e6edf3;
}

[data-theme="dark"] .email {
    color: #58a6ff;
}

[data-theme="dark"] .tech-item:hover {
    background-color: #21262d;
}

/* Responsive tech stack styles */
@media (max-width: 768px) {
    .tech-icons {
        gap: 8px;
    }
    
    .tech-item {
        padding: 8px 4px;
    }
    
    .tech-badge {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 12px;
    }
    
    .tech-item {
        padding: 10px 4px;
    }
    
    .tech-icon {
        width: 24px;
        height: 24px;
    }
    
    .tech-name {
        font-size: 10px;
    }
}

/* Satellite Animation Styles */
.satellite {
    position: absolute;
    font-size: 16px;
    z-index: 1001;
    pointer-events: none;
    animation: satelliteLineFly linear;
    opacity: 0.7;
}

@keyframes satelliteLineFly {
    0% {
        transform: translateX(-300px);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Mobile responsive satellites */
@media (max-width: 768px) {
    .satellite {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .satellite {
        font-size: 12px;
    }
}

/* Dark mode satellite adjustments */
[data-theme="dark"] .satellite {
    opacity: 0.8;
}
