body {
    font-family: 'Tahoma', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #000000;
    background-image: url('assets/watermark.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: 60%;
}


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

header {
    width: 100%;
    background: linear-gradient(to right, #1f2324, #b6b1ae);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

#header-image {
    max-width: 100%;
    height: auto;
    display: block;
}
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #1f2324;
    padding: 1rem;
    gap: 0.5rem;
}

nav button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    min-width: 120px;
    padding: 0.5rem 1rem;
}

nav button:hover {
    color: #b6b1ae;
}

/* Ensure 3 buttons per row on wider screens */
@media (min-width: 768px) {
    nav button {
        flex: 0 1 calc(33.333% - 1rem);
        max-width: 200px;
    }
}

/* Stack buttons on very narrow screens */
@media (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav button {
        width: 80%;
        max-width: 300px;
    }
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.active {
    display: block;
    opacity: 1;
}

.cv-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start; /* Aligns items to the top */
}

.cv-image {
    width: calc(50% - 10px); /* 50% width minus half of the gap */
    max-width: 300px;
    height: auto; /* This ensures the aspect ratio is maintained */
    object-fit: contain; /* Changed from cover to contain */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cv-text {
    flex: 1;
    min-width: calc(50% - 10px); /* Ensures text takes remaining width */
}

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

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-button i {
    margin-right: 10px;
}

.twitter {
    background-color: #1DA1F2;
}

.youtube {
    background-color: #FF0000;
}

.patreon {
    background-color: #F96854;
}

.email {
    background-color: #D44638;
}

.social-button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .cv-image {
        width: 100%;
        max-width: 100%;
    }
    
    .cv-text {
        width: 100%;
    }
    .social-links {
        flex-direction: column;
    }
    
    .social-button {
        width: 100%;
        justify-content: center;
    }
}
.cv-full-width {
    width: 100%;
    margin-top: 20px;
}

h2 {
    color: #1f2324;
    border-bottom: 2px solid #b6b1ae;
    padding-bottom: 0.5rem;
}

p {
    color: #555;
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }
}
