* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('background.png');
    background-repeat: repeat;
    background-color: #101324;
    color: #ffffff;
    min-height: 100vh;
}

/* Page Transitions */
.page {
    min-height: calc(100vh - 70px);
}

[x-cloak] {
    display: none !important;
}

.page-enter {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-enter-start {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.page-leave {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-leave-start {
    opacity: 1;
    transform: translateY(0);
}

.page-leave-end {
    opacity: 0;
    transform: translateY(-10px);
}

/* Navigation */
nav {
    background-color: #101324;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    border-bottom: 3px solid #2e455a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

nav a:hover {
    background-color: #2e455a;
    transform: translateY(-2px);
}

nav a.active {
    background-color: #2e455a;
    box-shadow: 0 0 15px rgba(46, 69, 90, 0.6);
}

/* Container */
.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Profile Section */
.profile-section {
    background-color: #101324;
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid #2e455a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #2e455a;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.profile-pic-blink {
    box-shadow: 0 4px 15px rgba(46, 69, 90, 0.5);
}

.profile-pic-container:hover .profile-pic {
    transform: scale(1.05) rotate(5deg);
}

.profile-section h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.links {
    margin-top: 2rem;
}

.links h3 {
    color: #2e455a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links a {
    display: block;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background-color: #2e455a;
    border: 2px solid #2e455a;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.links a:hover {
    background-color: #3d5a73;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(46, 69, 90, 0.6);
}

/* Trivia Section */
.trivia-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trivia-box {
    background-color: #101324;
    padding: 2.5rem;
    border-radius: 15px;
    border: 3px solid #2e455a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 700px;
}

.trivia-box h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.trivia-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trivia-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1d2e;
    border-left: 4px solid #2e455a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.trivia-item:hover {
    background-color: #2e455a;
    transform: translateX(5px);
}

.trivia-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.trivia-item p {
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }

    .profile-section {
        position: static;
    }
}

/* Content Pages */
.content-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #101324;
    border-radius: 15px;
    border: 3px solid #2e455a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-page p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Projects Page Layout */
.projects-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.projects-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.project-layout {
    position: relative;
    margin-top: 4rem;
}

.tabs-container {
    display: flex;
    gap: 0;
    margin-bottom: -6px;
    position: relative;
    flex-wrap: nowrap;
}

.tab {
    padding: 1rem 2rem;
    border: 3px solid;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none;
    min-width: 150px;
    text-align: center;
}

.tab-rosarium {
    z-index: 8;
}

.tab-ied {
    z-index: 7;
}

.tab-mycelium {
    z-index: 6;
}

.tab:not(.active) {
    transform: translateY(8px);
}

.tab:not(.active):hover {
    transform: translateY(4px);
}

.tab.active {
    z-index: 10;
    border-bottom: none;
    padding-bottom: calc(1rem + 3px);
    transform: translateY(-3px);
}

.tab-rosarium {
    background-color: #1c1b1f;
    color: #ffffff;
    border-color: #888888;
}

.tab-ied {
    background-color: #4975b6;
    color: #ffffff;
    border-color: #ffffff;
}

.tab-mycelium {
    background-color: #101324;
    color: #ffffff;
    border-color: #2e455a;
}

.tab-content {
    border: 3px solid #2e455a;
    border-radius: 0 15px 15px 15px;
    padding: 2rem;
    min-height: 400px;
    text-align: left;
    position: relative;
    z-index: 9;
    transition: all 0.3s ease;
}

.tab-content.content-rosarium {
    background-color: #1c1b1f;
    border-color: #888888;
}

.tab-content.content-ied {
    background-color: #4975b6;
    border-color: #ffffff;
}

.tab-content.content-mycelium {
    background-color: #101324;
    border-color: #2e455a;
}

.project-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.project-content .subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-content a {
    color: #6db3f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content a:hover {
    color: #9acfff;
    text-decoration: underline;
}

.project-content .badge-link {
    display: inline-block;
    margin: 1rem 0;
}

.project-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.project-content ul.checklist {
    list-style: none;
    margin-left: 0.5rem;
}

.project-content ul.checklist li.done {
    color: #88cc88;
}

.project-content ul.checklist li.todo {
    color: #cccccc;
}

.project-content .mystery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.project-content .mystery-table th,
.project-content .mystery-table td {
    border: 1px solid #2e455a;
    padding: 0.5rem;
    text-align: center;
}

.project-content .mystery-table th {
    background-color: rgba(46, 69, 90, 0.3);
    font-weight: 600;
}

.project-content .screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.project-content .screenshots img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #2e455a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-content .screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 69, 90, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }

    .profile-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        justify-content: flex-start;
    }

    .tab {
        min-width: 100px;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        flex-shrink: 1;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .project-content h2 {
        font-size: 1.6rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p,
    .project-content ul li {
        font-size: 1rem;
    }

    .project-content .mystery-table {
        display: block;
        overflow-x: auto;
        font-size: 0.75rem;
    }

    .project-content .mystery-table th,
    .project-content .mystery-table td {
        padding: 0.3rem;
        white-space: nowrap;
    }

    .project-content .screenshots {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 1rem;
    }

    .profile-pic-container {
        width: 120px;
        height: 120px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .trivia-box {
        padding: 1.5rem;
    }

    .trivia-emoji {
        font-size: 1.5rem;
    }

    .projects-wrapper {
        padding: 0 1rem;
    }

    .tabs-container {
        position: relative;
        overflow: visible;
    }

    .tab {
        min-width: 80px;
        max-width: 120px;
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
        margin-right: -30px;
    }

    .tab:last-child {
        margin-right: 0;
    }

    .tab-content {
        padding: 1rem;
    }

    .project-content h2 {
        font-size: 1.4rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content .mystery-table {
        font-size: 0.65rem;
    }

    .project-content .mystery-table th,
    .project-content .mystery-table td {
        padding: 0.2rem;
    }
}
