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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    height: 100vh;
    width: 100vw;
    background-color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0 0 50px 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    text-align: left;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-button {
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #006699;
}

nav {
    text-align: center;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #0088cc;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

h1,
h2 {
    margin-bottom: 15px;
}

button {
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #006699;
}

.hidden {
    display: none;
}

#additionalInfo {
    margin-top: 15px;
    padding: 15px;
    background-color: #e9e9e9;
    border-radius: 5px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: rgba(244, 244, 244, 0.8);
    z-index: 100;
}

/* Blog Styles */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0088cc;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skills-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.skills-list li {
    margin-bottom: 5px;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.name-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.name-link:hover {
    color: #0088cc;
}

#image-track {
    display: flex;
    gap: 2vmin;
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    user-select: none;
    width: 100%;
    padding: 0 2vmin;
    justify-content: center;
}

#image-track>.image {
    width: 18vw;
    height: 25vw;
    object-fit: cover;
    object-position: center center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* -- YouTube Link Styles -- */

body.menu-toggled>.meta-link>span {
    color: rgb(30, 30, 30);
}

#source-link {
    bottom: 60px;
}

#source-link>i {
    color: rgb(94, 106, 210);
}

#yt-link>i {
    color: rgb(239, 83, 80);
}

.meta-link {
    align-items: center;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    bottom: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-flex;
    gap: 5px;
    left: 10px;
    padding: 10px 20px;
    position: fixed;
    text-decoration: none;
    transition: background-color 400ms, border-color 400ms;
    z-index: 10000;
}

.meta-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.meta-link>i,
.meta-link>span {
    height: 20px;
    line-height: 20px;
}

.meta-link>span {
    color: #333;
    font-family: "Rubik", sans-serif;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    /* Header adjustments for mobile */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        text-align: center;
    }

    .nav-buttons {
        justify-content: center;
    }

    /* Image track adjustments for mobile */
    #image-track {
        flex-direction: column;
        position: static;
        transform: none;
        padding: 20px;
        gap: 20px;
        margin-top: 20px;
    }

    #image-track>.image {
        width: 90vw;
        height: 60vw;
        margin: 0 auto;
    }

    /* Adjust main content area */
    main {
        margin-top: 20px;
        padding-bottom: 60px;
        /* Space for footer */
    }

    /* Footer adjustments */
    footer {
        position: relative;
        margin-top: 30px;
    }
}

/* Adjust wheel scrolling behavior for mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
}