/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #F5E6CC;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

main.container {
    flex: 1;
    display: flex;
    justify-content: center;
}

header {
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}


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

.nav-left h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}



.nav-left p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.home-link {
    text-decoration: none;
    color: inherit;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right a {
    color: #333;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: lowercase;
}

.nav-right a:hover {
    color: grey;
}

.nav-active::after {
    content: " *";
    color: #2ecc71;
}

.centered-gif {
    max-width: 100%;
    height: auto;
    display: block;
    align-self: center;
}


footer {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
}

footer .social-links a {
    color: #333;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: grey;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

#dark-mode-toggle {
    display: none;
    cursor: pointer;
    margin-left: 15px;
}

.dark-mode {
    background-color: #121212;
    color: #fff;
}

.dark-mode header {
    border-bottom: 1px solid #333;
}

.dark-mode .nav-left p {
    color: #bbb;
}

.dark-mode .nav-right a {
    color: #fff;
}

.dark-mode footer {
    border-top: 1px solid #333;
}

.dark-mode footer .social-links a {
    color: #fff;
}

.dark-mode .copyright {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-right {
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 1;
        border-top: 1px solid #eee;
    }

    .dark-mode .nav-links {
        background-color: #121212;
        border-top: 1px solid #333;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-left {
        text-align: left;
        width: auto;
        margin-bottom: 0;
    }
    
    #hamburger-menu {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        margin-left: 15px;
    }

    #close-menu {
        display: none;
        cursor: pointer;
        font-size: 1.5rem;
        margin-left: 15px;
    }

    #hamburger-menu.active {
        display: none;
    }

    #close-menu.active {
        display: block;
    }

    .nav-links a {
    margin: 0.5rem 0;
    }
    
    #dark-mode-toggle {
        margin: 0.5rem 0;
    }
    
    main.container {
        padding: 0 10px;
    }
    
    footer .social-links a {
        font-size: 1.2rem;
        margin: 0 10px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    #hamburger-menu, #close-menu {
        display: none;
    }
    .navbar .nav-links {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        border-top: none;

    }
    .dark-mode .navbar .nav-links {
        background-color: transparent;
        border-top: none;
    }
    .nav-left {
        text-align: left;
        width: auto;
        margin-bottom: 0;
    }
}

/* Logs Page Styles */
.logs-section {
    width: 100%;
    padding: 2rem 0;
}

.logs-section h2,
.projects-section h2,
.hireme-section h2,
.log-full-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: normal;
    color: #2ecc71;
}

.articles-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    margin-bottom: 0.5rem; /* Reduced margin */
    transition: border-color 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    min-height: 50px;
}

.dark-mode .log-entry {
    border-color: transparent;
}

.log-title a {
    text-decoration: none;
}

.log-title a:hover {
    text-decoration: underline;
}

.log-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #666;
    width: 150px;
    flex-shrink: 0;
    transition: text-decoration 0.3s ease;
}

.dark-mode .log-date {
    color: white;
}

.dark-mode .log-title a {
    color: white;
}

/* Projects Page Styles */
.projects-section {
    width: 100%;
    padding: 2rem 0;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 5px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-mode .project-card {
    border-color: #333;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: #2ecc71;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

.project-tags {
    margin-top: auto;
}

.tag {
    display: inline-block;
    background-color: #eee;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.dark-mode .tag {
    background-color: #333;
}

@media (min-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hire Me Page Styles */
.hireme-section {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

.contact-form {
    max-width: 500px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #333;
    border-color: #555;
    color: #fff;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark-mode .submit-btn {
    background-color: #fff;
    color: #333;
}

.submit-btn:hover {
    background-color: #555;
}

.dark-mode .submit-btn:hover {
    background-color: #ccc;
}

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

.resume-download a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2rem;
}

.resume-download a:hover {
    color: #2ecc71;
}

.dark-mode .resume-download a:hover {
    color: #2ecc71;
}

/* Full Log Page Styles */
.log-full-content {
    width: 100%;
    padding: 2rem 0;
}

.log-full-content .article-meta {
    text-align: center;
    margin-bottom: 2rem;
}

.log-full-content p {
    line-height: 1.8;
}

.log-full-content a {
    color: #2ecc71;
}

code {
    background-color: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.dark-mode code {
    background-color: #2d2d2d;
    color: #ccc;
}

pre {
    background-color: #f4f4f4;
    padding: 1em;
    border: 1px solid #ddd;
    overflow-x: auto;
    border-radius: 5px;
}

.dark-mode pre {
    background-color: #2d2d2d;
    border-color: #555;
    color: #ccc;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin-left: 0;
    color: #666;
}

.dark-mode blockquote {
    border-left-color: #555;
    color: #bbb;
}

blockquote footer {
    text-align: right;
    font-size: 0.9em;
    margin-top: 0.5em;
}

