@import url('https://fonts.cdnfonts.com/css/jetbrains-mono-2');
@import url('https://fonts.googleapis.com/css2?family=Grandstander:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');
:root {
    --font-family: "JetBrains Mono", monospace;
    --line-height: 1.20rem;
    --border-thickness: 2px;
    --text-color: #000;
    --text-color-alt: #666;
    --background-color: #fff;
    --background-color-alt: #eee;
    --blog-image-opacity: 1.0;
    --see-image-opacity: 1.0;
    
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 16px;
}

/* body.dark-mode {
    --text-color: #fff;
    --text-color-alt: #aaa;
    --background-color: #000;
    --background-color-alt: #111;
} */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--background-color);
    color: var(--text-color);
}

html::before,
html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

html::before {
    background: url('blogs.png') no-repeat;
    background-position: 48% 46%;  /* Arbitrary position - adjust as needed */
    background-size: 400px auto;
    opacity: var(--blog-image-opacity);
}

html::after {
    background: url('see.png') no-repeat;
    background-position: 10% 20%;  /* Arbitrary position - adjust as needed */
    background-size: 300px auto;
    opacity: var(--see-image-opacity);
}

/* .dark-mode-toggle {
    position: fixed;
    top: var(--line-height);
    right: 2ch;
    background: none;
    border: var(--border-thickness) solid var(--text-color);
    padding: calc(var(--line-height)/4);
    cursor: pointer;
    color: var(--text-color);
    z-index: 100;
} */

h1, h2, h3 {
    margin: calc(var(--line-height) * 2) 0 var(--line-height);
    line-height: calc(var(--line-height) * 1.5);
}

h1 {
    font-size: 2rem;
    margin-top: calc(var(--line-height) * 3);
}

h2 {
    font-size: 1.5rem;
    text-transform: lowercase;
}

h2 a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: none;
}

h2 a:hover {
    /* border-bottom: var(--border-thickness) solid var(--text-color); */
    /* border-bottom: 2px solid var(--text-color); */
    text-decoration: underline;
}

.projects h2 a,
.blogs h2 a {
    display: inline-block;
    width: 100%;
}

ul, ol {
    list-style-position: inside;
    margin: var(--line-height) 0;
    padding-left: 2ch;
}

li {
    margin-bottom: calc(var(--line-height) / 2);
}

a {
    color: var(--text-color);
    text-decoration:underline;
    border-bottom: var(--border-thickness) solid transparent;
    transition: border-color 0.3s ease;
}

a:hover {
    /* border-bottom-color: var(--text-color); */
    text-decoration: underline;
}

p {
    margin-bottom: var(--line-height);
}

section {
    margin: calc(var(--line-height) * 2) 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--line-height) 0;
    background: var(--background-color);
    border-top: var(--border-thickness) solid var(--text-color);
    text-align: center;
    z-index: 10;
}

footer a {
    margin: 0 1ch;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    body {
        padding: var(--line-height) 1ch;
    }
    
    /* .dark-mode-toggle {
        right: 1ch;
    } */
}

/* Ensure smooth transitions for dark mode */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--text-color-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Adjust spacing for blog entries */
.blog-entry {
    margin-bottom: calc(var(--line-height) * 2);
}

.blog-entry .desc {
    color: var(--text-color-alt);
    margin-top: calc(var(--line-height) / 2);
}

.project-entry {
    margin-bottom: 2rem;
}

.project-entry a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.project-entry a:hover {
    text-decoration: underline;
}

.project-entry .desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* If you're using dark mode, include these as well */
@media (prefers-color-scheme: dark) {
    .project-entry .desc {
        color: #999;
    }
}


main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: calc(var(--line-height) * 4);
    position: relative;
    z-index: 2;
}

.project-entry, .blog-entry {
    max-width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

section:last-child {
    margin-bottom: calc(var(--line-height) * 3);
}

.project-entry:last-child, .blog-entry:last-child {
    margin-bottom: calc(var(--line-height) * 2);
}

.bubble {
    position: fixed;
    font-family: 'Grandstander', cursive;
    background-color: var(--background-color);
    padding: 15px 25px;
    border-radius: 25px;
    max-width: 200px;
    text-align: center;
    border: var(--border-thickness) solid var(--text-color);    
    z-index: 3;
    font-size: 0.9rem;
    line-height: 1.3;
}

.bubble-left {
    left: calc(25% - 100px);
    top: 30%;
}

.bubble-right {
    right: calc(25% - 100px);
    top: 40%;
}

@media screen and (max-width: 1200px) {
    .bubble {
        display: none;
    }
}