:root {
    --primary-color: #000000;
    --accent-color: #00ff9d;
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
}

html,
body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    top: 0;
    background-color: var(--bg-color);
    font-family: 'Mulish', sans-serif;
    color: var(--text-color);
}

#header {
    position: fixed;
    top: 0;
    height: 100%;
    width: 40%;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/kaywat-b4236.firebasestorage.app/o/KayWat.me%2Fcyberpunk-buildings-cityscape-art.jpg?alt=media&token=25c6011a-1f17-446c-820b-dfea73c2789d');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow-y: hidden;
    text-align: right;
    padding: 20vh 50px 0 50px;
    box-sizing: border-box;
}

/* Add a subtle overlay to ensure text remains readable */
#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black overlay */
    z-index: 1;
}

/* Ensure header content stays above the overlay */
#header>* {
    position: relative;
    z-index: 2;
}

#content {
    margin-left: 40%;
    padding: 20vh 50px;
}

#avatar {
    border-radius: 50%;
    width: 110px;
    height: 110px;
    border: 2px solid var(--accent-color);
}

.name {
    font-size: 2.5em;
    font-weight: 800;
    margin: 10px 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5),
        0 0 20px rgba(0, 255, 157, 0.3);
}

.title {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5),
        0 0 20px rgba(0, 255, 157, 0.3);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.skills-section {
    margin-top: 40px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    padding: 12px 24px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    font-weight: 600;
}

.button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.quote {
    margin-top: 40px;
    font-style: italic;
    opacity: 0.8;
    font-size: 1.2em;
}

.blog-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5em;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.section-line {
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.project-card {
    background: transparent;
    border: none;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateX(10px);
}

.project-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.project-title {
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-description {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.8;
}

.blog-entries {
    margin-top: 40px;
}

.blog-entry {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.blog-entry.reverse {
    flex-direction: row-reverse;
}

.entry-content {
    flex: 1;
    transition: transform 0.3s ease;
}

.entry-image {
    flex: 0 0 300px;
    height: 200px;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin: 20px;
}

.placeholder-image.right {
    background-color: rgba(0, 255, 157, 0.05);
}

.placeholder-image.left {
    background-color: rgba(0, 255, 157, 0.05);
}

.placeholder-image.right::after {
    content: "Project Preview Right";
    color: var(--accent-color);
    opacity: 0.5;
}

.placeholder-image.left::after {
    content: "Project Preview Left";
    color: var(--accent-color);
    opacity: 0.5;
}

.entry-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.entry-title {
    font-size: 1.4em;
    color: var(--accent-color);
    margin: 0 0 10px 0;
    font-weight: normal;
}

.entry-description {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.blog-entry:hover .entry-content {
    transform: translateX(10px);
}

.blog-entry.reverse:hover .entry-content {
    transform: translateX(-10px);
}

@media (max-width: 768px) {
    #header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 50px 20px;
        text-align: center;
    }

    #content {
        margin-left: 0;
        padding: 40px 20px;
    }

    .social-links {
        justify-content: center;
    }

    .buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2em;
    }

    .project-card {
        margin-bottom: 20px;
    }

    .blog-entries {
        margin-top: 20px;
    }

    .blog-entry,
    .blog-entry.reverse {
        flex-direction: column;
    }

    .entry-image {
        width: 100%;
        margin: 10px 0;
    }

    .blog-entry:hover .entry-content,
    .blog-entry.reverse:hover .entry-content {
        transform: none;
    }
}
