/* CSS Variables */
html[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --project-bg: #2d2d2d;
    --link-color: #66b3ff;
    --link-hover: #99ccff;
    --border-color: #404040;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: center;
}

.profile-image {
    flex-shrink: 0;
    width: 300px;
    padding-right: 50px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.profile-text {
    width: 600px;
    line-height: 1.6;
    flex-shrink: 0;
    padding-left: 40px;
}

/* Publications Section */
.publications {
    margin-bottom: 3rem;
}

.publications h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.publication-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.video-container img {
    width: 220px;
    border-radius: 12px;
}

.publication-content {
    max-width: 600px;
}

.publication-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.publication-buttons .btn {
    margin-bottom: 10px;
}

/* Education Section */
.education {
    margin-bottom: 3rem;
}

.education h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}

.footer img:hover {
    transform: scale(1.1);
}

/* Divider */
.divider {
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Blog Styles */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-card {
    background-color: var(--project-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 179, 255, 0.1);
}

.blog-post {
    background-color: var(--project-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.blog-title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title-link:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.blog-post h3, .blog-post-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.blog-meta {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-excerpt {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.blog-post p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background-color: var(--link-hover);
    color: white;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--link-color);
    text-decoration: none;
}

.back-link:hover {
    color: var(--link-hover);
}

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

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-image {
        width: 250px;
        padding-right: 0;
        margin: 0 auto;
    }

    .profile-text {
        width: 100%;
        padding-left: 0;
    }

    .publication-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .video-container img {
        width: 100%;
        max-width: 300px;
    }

    .publication-content {
        max-width: 100%;
    }

    .publication-buttons {
        justify-content: center;
    }

    .footer {
        gap: 1rem;
    }

    .footer img {
        width: 35px;
        height: 35px;
    }

    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 200px;
    }

    .profile-text {
        font-size: 0.9rem;
    }

    .publications h2,
    .education h2 {
        font-size: 1.5rem;
    }

    .publication-content p {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer img {
        width: 30px;
        height: 30px;
    }
}