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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --link-color: #0000ff;
}

.dark-mode {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --link-color: #6eb4ff;
}

body {
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
}

.hamburger img {
    display: block;
    filter: brightness(0);
}

.dark-mode .hamburger img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: underline;
    font-size: 1rem;
}

.nav-links a:hover {
    opacity: 0.7;
}

.icon-link {
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.icon-link img {
    display: block;
    filter: none;
}

.dark-mode .icon-link img {
    filter: brightness(0) invert(1);
}

.icon-link:hover {
    opacity: 0.7;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.25rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle img {
    display: block;
}

.dark-mode-toggle:hover {
    opacity: 0.7;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    padding: 1rem 0;
}

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

.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.highlight {
    text-decoration: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.btn:hover {
    opacity: 0.7;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Experience Section */
.experience {
    padding: 3rem 0;
}

.experience h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    padding: 0;
    margin-left: 0;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    opacity: 0.7;
}

.experience-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    overflow: hidden;
    background-color: #f5f5f5;
}

.dark-mode .experience-logo {
    border-color: var(--border-color);
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-info {
    flex: 1;
    min-width: 0;
}

.experience-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.experience-company {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.experience-date {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-style: italic;
    opacity: 0.8;
}

.experience-location {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* About Section */
.about {
    padding: 3rem 0;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    padding: 0;
    margin-left: 0;
}

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

.about-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Recent Posts Section */
.recent-posts {
    padding: 3rem 0;
}

.recent-posts h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    padding: 0;
    margin-left: 0;
}

.posts-grid {
    display: block;
    margin-bottom: 2rem;
}

.post-card {
    margin-bottom: 1rem;
}

.post-title {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: normal;
    margin-bottom: 0.25rem;
}

.post-title:hover {
    opacity: 0.7;
}

.post-date {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-style: italic;
    opacity: 0.8;
}

.post-excerpt {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

.read-more {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
}

.read-more:hover {
    opacity: 0.7;
}

.text-center {
    text-align: center;
}

/* Recent Projects Section */
.recent-projects {
    padding: 3rem 0;
}

.recent-projects h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    padding: 0;
    margin-left: 0;
}

.projects-grid {
    display: block;
    margin-bottom: 1rem;
}

.project-card {
    margin-bottom: 1rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.project-name {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: normal;
}

.project-name:hover {
    opacity: 0.7;
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-icon {
    display: block;
    filter: brightness(0);
    flex-shrink: 0;
}

.dark-mode .project-icon {
    filter: brightness(0) invert(1);
}

.star-icon {
    display: block;
    filter: brightness(0);
    flex-shrink: 0;
}

.dark-mode .star-icon {
    filter: brightness(0) invert(1);
}

.star-count {
    font-size: 0.875rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.project-description {
    font-size: 0.875rem;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Currently Reading Section */
.currently-reading {
    padding: 3rem 0;
}

.currently-reading h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    padding: 0;
    margin-left: 0;
}

.reading-grid {
    display: block;
    margin-bottom: 1rem;
}

.reading-card {
    margin-bottom: 0.75rem;
}

.reading-title {
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
    font-weight: normal;
}

.reading-author {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.page-header p {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.85;
}

/* Blog List */
.blog-list {
    padding: 1rem 0;
}

.posts-list {
    max-width: 100%;
}

.post-item {
    margin-bottom: 1rem;
}

.post-item .post-title {
    display: block;
    margin-bottom: 0.25rem;
}

.post-meta {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-style: italic;
    opacity: 0.8;
}

.post-author {
    margin-left: 1rem;
}

.no-posts {
    padding: 2rem 0;
}

/* Single Post */
.post {
    padding: 1rem 0;
}

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

.post-header {
    margin-bottom: 1.5rem;
}

.post-header .post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.post-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: normal;
}

.post-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.post-content li {
    margin-bottom: 0.25rem;
}

.post-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-content pre code {
    padding: 0;
}

.post-content blockquote {
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1rem;
}

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

.back-link:hover {
    opacity: 0.7;
}

/* Resume */
.resume {
    padding: 2rem 0;
}

.resume .container {
    max-width: 100%;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: normal;
    padding-bottom: 0.5rem;
}

.resume-item {
    margin-bottom: 1.5rem;
}

.resume-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: normal;
}

.resume-meta {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
}

.resume-item ul {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.resume-item li {
    margin-bottom: 0.25rem;
}

.skills-grid {
    display: block;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.skill-category ul {
    list-style: none;
    margin-left: 1rem;
}

.skill-category li {
    padding: 0.25rem 0;
}

.skill-category li:before {
    content: "• ";
}

.resume-section a {
    color: var(--link-color);
    text-decoration: none;
}

.resume-section a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        gap: 0.1rem; 
        position: static;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100vw;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--bg-color);
        gap: 1rem;
        align-items: flex-start;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s ease;
        padding: 0 20px;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .dark-mode .nav-links {
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        max-height: 500px;
        visibility: visible;
        padding: 1rem 20px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    .experience-card {
        flex-direction: row;
    }

    .post-header .post-title {
        font-size: 1.2rem;
    }

    .post-content img {
        margin: 0.75rem 0;
        width: 100%;
    }

    .post-content h2 {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .post-content h3 {
        font-size: 0.95rem;
    }
}

