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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding-left: 150px;
    min-height: 100vh;
    cursor: none !important;
}

[data-theme="dark"] body {
    background: linear-gradient(to bottom, #0a0a0a 0%, #0f0f0f 25%, #141414 50%, #1a1a1a 75%, #1f1f1f 100%);
    color: #ededed;
}

/* Dark mode - Sidebar */
[data-theme="dark"] .sidebar a {
    color: #999;
}

[data-theme="dark"] .sidebar a:hover {
    color: #ededed;
}

/* Dark mode - Header */
[data-theme="dark"] header {
    border-bottom: 1px solid #2a2a2a;
}

[data-theme="dark"] header h1 {
    color: #ededed;
}

[data-theme="dark"] .subtitle {
    color: #b0b0b0;
}

/* Dark mode - Sections */
[data-theme="dark"] section h2 {
    color: #ededed;
}

[data-theme="dark"] section h3 {
    color: #ededed;
}

[data-theme="dark"] section p {
    color: #b0b0b0;
}

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

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

/* Dark mode - Links */
[data-theme="dark"] a {
    color: #ededed;
}

[data-theme="dark"] section a {
    color: #b0b0b0;
}

[data-theme="dark"] a:hover {
    opacity: 0.8;
}

/* Dark mode - Project Cards */
[data-theme="dark"] .project-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: #3a3a3a;
}

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

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

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

[data-theme="dark"] .tech-tag {
    background: #1f1f1f;
    color: #b0b0b0;
}

[data-theme="dark"] .project-card:hover .tech-tag {
    background: #2a2a3a;
    color: #8b8bff;
}

/* Dark mode - Footer */
[data-theme="dark"] footer {
    border-top: 1px solid #2a2a2a;
}

[data-theme="dark"] footer p {
    color: #b0b0b0;
}

[data-theme="dark"] .footer-message {
    color: #ededed;
}

[data-theme="dark"] .footer-btn {
    border: 1px solid #2a2a2a;
    color: #b0b0b0;
    background: #141414;
}

[data-theme="dark"] .footer-btn:hover {
    border-color: #ededed;
    color: #ededed;
}

/* Dark mode - GitHub icon stays black */
[data-theme="dark"] .footer-btn-github,
[data-theme="dark"] .footer-btn-github:hover {
    color: #ededed !important;
}

[data-theme="dark"] .footer-btn-github .footer-icon {
    fill: #ededed !important;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 80px 24px;
}

.sidebar a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.sidebar a:hover {
    color: #000;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Header */
header {
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.subtitle-logo {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 6px;
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    text-transform: lowercase;
}

section h3 {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin-bottom: 4px;
}

section p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Items (experience & projects) */
.item {
    margin-bottom: 32px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.title-with-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.period {
    font-size: 13px;
    color: #999;
}

.description {
    font-size: 14px;
    color: #666;
}

/* Links */
a {
    color: #000;
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

section a {
    font-size: 14px;
    color: #666;
}

/* Project Cards */
.project-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-header h3 {
    margin: 0;
}

.project-link {
    color: #666;
    transition: color 0.2s ease;
}

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

.project-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f5f5f5;
    color: #555;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-card:hover .tech-tag {
    background: #e8e8ff;
    color: #4040ff;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    font-size: 14px;
    color: #666;
}

.footer-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.01em;
}

footer a {
    color: #666;
}

.footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    border-color: #000;
    color: #000;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

/* Colored icons for social links */
.footer-btn-github,
.footer-btn-github:hover {
    color: #000 !important;
}

.footer-btn-github .footer-icon {
    fill: #000 !important;
    stroke: none;
}

.footer-btn-linkedin,
.footer-btn-linkedin:hover {
    color: #0077b5 !important;
}

.footer-btn-linkedin .footer-icon {
    fill: #0077b5 !important;
    stroke: none;
}

.footer-btn-instagram,
.footer-btn-instagram:hover {
    color: #E4405F !important;
}

.footer-btn-instagram .footer-icon {
    fill: #E4405F !important;
    stroke: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 20px 24px;
        border-bottom: 1px solid #e5e5e5;
    }

    .container {
        padding: 40px 20px;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .period {
        margin-top: 2px;
    }
}
