/* Global styles */
body {
    margin: 0;
    font-family: 'Fira Code', monospace;
    background-color: #000000;
    color: #dcdcdc;
    line-height: 1.6;
}

/* Links */
.hotlink {
    text-decoration: none;
    font-size: 1rem;
    color: #4ec9b0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hotlink:hover {
    color: #00d0ff;
    transform: scale(1.1);
    text-shadow: 0 0 8px #00d0ff;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.hotlink:visited {
    color: #3aa18c;
    font-weight: normal;
    font-style: italic;
}

h1,
h2,
h3 {
    color: #4ec9b0;
}

/* Header */
header {
    background-color: #292929;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header-content h1 {
    margin: 0;
    font-size: 2.5rem;
}

.header-content p {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: #a8a8a8;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Intro and about sections */
.intro,
.about {
    background-color: #292929;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.intro-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.intro-text {
    flex: 1;
    text-align: center;
    padding-right: 20px;
}

.photo-container {
    flex: 0 0 auto;
    max-width: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.photo-container:hover {
    transform: scale(1.05);
}

.photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text {
        text-align: center;
    }
    
    .photo-container {
        max-width: 150px;
        margin: 0 auto;
    }
    
    /* Blog layout adjustments for mobile */
    .blog-layout {
        flex-direction: column !important;
    }
    
    .blog-index {
        width: 100% !important;
        min-width: 0 !important;
        border-right: none !important;
        border-bottom: 2px solid #4ec9b0 !important;
        margin-bottom: 20px !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
    }
    
    .blog-content {
        width: 100% !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Adjust main content padding for mobile */
    main {
        padding: 0 10px;
    }
    
    /* Adjust header for mobile */
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
    }
}

/* Projects section */
.projects {
    margin-bottom: 20px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background-color: #292929;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1 1 calc(33.333% - 20px);
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid #4ec9b0;
}

.project-card p {
    margin: 10px 0 0;
    color: #a8a8a8;
}

.project-card.selected {
    border: 2px solid #4ec9b0;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    transform: none;
}

.project-card.active-card {
    border: 2px solid #4ec9b0;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.about.highlight {
    background-color: #1e1e1e;
    border: 2px solid #4ec9b0;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.about-content.updated {
    background-color: #1e1e1e;
    transition: background-color 0.3s ease;
}

.about-content {
    padding: 10px;
    background-color: #292929;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* This makes sure older elements don't get "stuck" on update */
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #292929;
    color: #a8a8a8;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.social-links img {
    width: 24px;
    height: 24px;
}

.social-links span {
    display: none; /* Hide the text for interactive users */
}

.social-links a:hover img {
    filter: brightness(1.5);
}

.blog-layout {
    display: flex;
}
.blog-index {
    width: 25%;
    background-color: #292929;
    padding: 10px;
    border-right: 2px solid #4ec9b0;
}
.blog-content {
    width: 75%;
    padding: 10px;
}
.blog-content article {
    margin-bottom: 20px;
    border-bottom: 1px solid #4ec9b0;
    padding-bottom: 10px;
}

/* Hover state for links */
.blog-index a {
    text-decoration: none;
    font-size: 1rem;
    color: #4ec9b0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.blog-index a:hover {
    color: #00d0ff;
    transform: scale(1.05);
}

.blog-index a:visited {
    color: #3aa18c;
    font-style: italic;
}

.divider {
    border: none;
    border-top: thin solid #a8a8a8;
    margin: 10px 0;
    width: 100%;
}

.return-link {
    text-decoration: none;
    color: #4ec9b0;
    padding: 5px 10px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.return-link:hover {
    color: #00d0ff;
    transform: scale(1.05);
    text-shadow: 0 0 5px #00d0ff;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .social-links a:hover img {
        filter: none;
    }
}

/* Accessability - Make the text visible if images cannot load */
.social-links a:visited img+span {
    display: inline;
}

/* Blog post date */
.post-date {
    font-size: 0.85rem;
    color: #a8a8a8;
    margin-bottom: 5px;
    font-style: italic;
}

/* Responsive adjustments for project cards */
@media (max-width: 768px) {
    .project-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .project-card:hover {
        transform: translateY(-5px); /* Smaller hover effect on mobile */
    }
}