/* General Reset */
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: black;
    color: white;
    overflow: hidden;
}

/* Headings */
h1 {
    font-size: 3rem;
    margin: 30px 0;
}

h1:hover {
    transition: transform 0.5s ease-in-out;
    transform: scale(1.05);
}

/* Centerpiece (Title) */
.centerpiece {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10vw; /* Scales based on viewport width */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    animation: fadeIn 2s ease;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.centerpiece:hover {
    transform: scale(1.1) rotate(3deg);
    opacity: 0.8;
}

/* About Section */
.centerpiece-about {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8vw; /* Responsive */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 5vw;
}

/* About Text */
.about-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 80vw; /* Prevents text from being too wide */
    font-size: 5vw; /* Responsive */
    animation: fadeIn 2s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-text {
    font-size: 2.5vw; /* Scales properly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-weight: normal;
    padding: 20px;
    animation: fadeIn 4s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#centerpiece-about-opposite {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8vw; /* Responsive */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right; /* Align text to the right */
    padding: 5vw;
    direction: rtl; /* Right-to-left text direction */
}

#about-title-opposite {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align items to the left */
    text-align: left; /* Text alignment to the left */
    padding: 20px;
    padding-left: 40px;
    max-width: 80vw; /* Prevents text from being too wide */
    font-size: 5vw; /* Responsive */
    animation: fadeIn 2s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#about-text-opposite {
    font-size: 2.5vw; /* Scales properly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    padding: 20px;
    animation: fadeIn 4s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Icon (Top Right) */
.menu-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-icon:hover {
    transform: rotate(90deg);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.95);
}

/* When Menu is Open (Fade In) */
.fullscreen-menu.active {
    display: flex;
    animation: fadeInMenu 0.5s ease forwards;
}

/* When Menu is Closing (Fade Out) */
.fullscreen-menu.closing {
    animation: fadeOutMenu 0.5s ease forwards;
}

/* Links in the Fullscreen Menu */
.fullscreen-menu a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    margin: 20px 0;
    transition: color 0.3s ease;
}

.fullscreen-menu a:hover {
    color: gray;
}

/* Close Menu Button */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* Menu Animations */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutMenu {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* 🔹 RESPONSIVE DESIGN FOR MOBILE 📱 */
@media screen and (max-width: 768px) {
    .centerpiece {
        font-size: 12vw; /* Adjusted for mobile */
    }

    .centerpiece-about {
        font-size: 9vw;
        flex-direction: column; /* Stack text on small screens */
        text-align: center;
    }

    .about {
        font-size: 6vw;
        max-width: 90vw;
    }

    .about-text {
        font-size: 3.5vw;
        text-align: center;
    }

    .fullscreen-menu a {
        font-size: 1.5rem;
    }

    .menu-icon {
        font-size: 1.8rem;
    }

    .close-menu {
        font-size: 1.8rem;
    }
}
