/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation container */
.x-navigation {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

/* X button styling */
.x-button {
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

/* Stagger the animation for each button */
.x-button:nth-child(1) { animation-delay: 0.2s; }
.x-button:nth-child(2) { animation-delay: 0.4s; }
.x-button:nth-child(3) { animation-delay: 0.6s; }

/* X shape container */
.x-shape {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* X lines */
.line-1, .line-2 {
    position: absolute;
    background-color: white;
    transition: all 0.3s ease;
}

.line-1 {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.line-2 {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover effects */
.x-button:hover .x-shape {
    transform: rotate(225deg);
}

.x-button:hover .line-1,
.x-button:hover .line-2 {
    background-color: #ff0000;
}

/* Portrait box styling */
.portrait-box {
    width: 750px;
    height: 464px;
    background-color: transparent;
    margin-top: 2rem;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make it responsive */
@media (max-width: 800px) {
    .portrait-box {
        width: 90%;
        height: calc(90vw / 1.618);
    }

    .x-navigation {
        gap: 2rem;
    }
}