/* Base styles */
body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Title and image styles */
#title {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

#title img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#title img:hover {
    transform: scale(1.05);
}

/* Typography */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    color: #343a40;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5em;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Container and items */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.container-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.container-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.container-item p {
    padding: 1rem;
    margin: 0;
    font-size: 1em;
    color: #495057;
}

/* Posts list */
.posts {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.posts li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.posts li:hover {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    width: 100%;
    border-top: 1px solid #eee;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer ul li a {
    color: #666;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Navigation styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

nav ul li.active a {
    color: #007bff;
    font-weight: 600;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.social-links a {
    color: #666;
    font-size: 1.5em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-links a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    p {
        font-size: 1em;
    }
    
    #title img {
        width: 150px;
        height: 150px;
    }
}

/* Terminal Window Styles */
.terminal-window {
    background: #2d2d2d;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terminal-header {
    background: #1d1d1d;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    display: inline-block;
}

.terminal-button:nth-child(2) {
    background: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background: #27c93f;
}

.terminal-content {
    padding: 1.5rem;
    color: #f8f9fa;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 4px;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-content {
    flex: 1;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: #27c93f;
    margin-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.terminal-prompt {
    color: #27c93f;
    margin-right: 0.5rem;
}

.card-title {
    color: #f8f9fa;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.card-text {
    color: #adb5bd;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.terminal-link {
    display: inline-block;
    color: #007bff;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
}

.terminal-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9em;
}

/* Container adjustments for terminal windows */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .project-container {
        flex-direction: column;
    }
    
    .project-image-wrapper {
        padding-top: 66.67%; /* 3:2 Aspect Ratio for mobile */
    }
}

/* Home page styles */
.home-container {
    max-width: 650px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 3.5rem;
}

.profile-container {
    margin: 0 auto;
    text-align: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.lead {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.content-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.bio-list {
    margin: 2.5rem auto;
    display: inline-block;
    text-align: left;
}

.bio-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

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

.bio-item span {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.bio-item p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0;
    justify-content: center;
}

.skill-tag {
    background: #f5f5f5;
    color: #444;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.action-links {
    text-align: center;
    margin: 2.5rem 0;
    font-size: 1.1rem;
}

.action-links a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.3rem 0;
}

.action-links a:hover {
    color: #007bff;
}

.separator {
    margin: 0 1rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .home-container {
        margin-top: 60px;
        padding: 0 15px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-container h1 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .content-section {
        max-width: 100%;
        padding: 0 10px;
    }

    .bio-list {
        margin: 2rem auto;
        width: fit-content;
    }

    .bio-item {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .bio-item span {
        width: 1.2rem;
    }

    .bio-item p {
        font-size: 0.95rem;
    }

    .skills {
        gap: 0.4rem;
        margin: 2rem 0;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.25rem 0.7rem;
    }

    .action-links {
        font-size: 1rem;
        margin: 2rem 0;
    }
}

/* Projects page styles */
.projects-page {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #212529;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #007bff;
    color: white;
}

.project-links {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #0056b3;
    gap: 0.75rem;
}

.project-company {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-page {
        padding: 0 15px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-thumbnail {
        height: 180px;
    }
}

/* Terminal theme for projects */
.terminal-theme {
    background: #2d2d2d;
    color: #f8f9fa;
}

.terminal-theme .project-title {
    color: #f8f9fa;
}

.terminal-theme .project-description {
    color: #adb5bd;
}

.terminal-theme .project-link {
    color: #27c93f;
    font-family: 'Courier New', monospace;
}

/* Blog styles */
.blog-container {
    max-width: 800px;
    margin: 80px auto 4rem;
    padding: 0 20px;
    min-height: calc(100vh - 300px); /* This ensures the content takes up enough space */
}

.blog-container h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.post-title {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    flex: 1;
}

.post-title:hover {
    color: #007bff;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category {
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 0 15px;
        margin-top: 60px;
    }

    .post-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Blog Post styles */
.post-content {
    max-width: 800px;
    margin: 100px auto 0;
    padding: 0 20px;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #343a40;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: #495057;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.post-content ul, 
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.post-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    font-style: italic;
}

.post-content blockquote p {
    margin: 0;
    margin-bottom: 0.5rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-container {
        margin-top: 60px;
        padding: 1rem;
    }

    .hero-section {
        padding: 1rem;
    }

    .profile-image {
        width: 140px;  /* Even smaller on mobile */
        height: 140px;
    }

    .profile-container h1 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 0;
    }
}

/* Code window styles */
.code-window {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    overflow: hidden;
}

.window-header {
    background: #2d2d2d;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.window-buttons {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-button.close {
    background: #ff5f56;
}

.window-button.minimize {
    background: #ffbd2e;
}

.window-button.maximize {
    background: #27c93f;
}

.window-title {
    color: #808080;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Syntax highlighting styles */
.highlight {
    background: #1e1e1e !important;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    overflow-x: auto;
}

.highlight pre { 
    background: #1e1e1e; 
    margin: 0;
    padding: 0;
}

.highlight code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: transparent;
    padding: 0;
}

/* Syntax highlighting colors */
.highlight .k, .highlight .kd { color: #569cd6; }  /* Keyword */
.highlight .kc { color: #569cd6; }                 /* Keyword constant */
.highlight .o { color: #d4d4d4; }                  /* Operator */
.highlight .nf { color: #dcdcaa; }                 /* Function name */
.highlight .s, .highlight .s1, .highlight .s2 { color: #ce9178; } /* String */
.highlight .mi { color: #b5cea8; }                 /* Number */
.highlight .nb { color: #569cd6; }                 /* Built-in */
.highlight .nc { color: #4ec9b0; }                 /* Class name */
.highlight .c1, .highlight .cm { color: #6A9955; } /* Comment */
.highlight .bp { color: #569cd6; }                 /* Self */
.highlight .p { color: #d4d4d4; }                  /* Punctuation */