* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-button {
    background-color: #8A2BE2;
    color: #ffffff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #a052ed;
}

.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    text-align: left;
}

.text-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
}

.intro-text #animated-intro-text,
.description-text #animated-description-text {
    opacity: 0;
    display: inline-block;
    transform: translateY(10px);
    transition: none;
}

.intro-text {
    font-size: 1.5em;
    margin-bottom: 5px;
    opacity: 0.8;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 1.2em;
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

.x2infinity-text {
    display: inline-block;
    color: #ffffff;
}

.description-text {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.x2-button {
    background-color: transparent;
    color: #ffffff;
    padding: 12px 30px;
    border: 2px solid #8A2BE2;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
}

.x2-button:hover {
    background-color: #8A2BE2;
    color: #ffffff;
    border-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.8),
                0 0 30px rgba(138, 43, 226, 0.4);
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    min-width: 250px;
}

.infinity-logo {
    width: 100%;
    height: auto;
    display: block;
}

.social-links-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    color: #ffffff;
    font-size: 1.8em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-footer a:hover {
    color: #8A2BE2;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .text-section {
        align-items: center;
    }

    .button-container {
        justify-content: center;
    }

    .main-title {
        font-size: 3.5em;
        white-space: normal;
        height: auto;
        text-align: center;
    }

    .x2infinity-text {
        position: static;
        transform: none !important;
        text-align: center;
    }

    .navbar {
        padding: 15px 20px;
    }

    .social-links-footer {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
        padding: 0 10px;
    }

    .social-links-footer a {
        font-size: 1.5em;
    }
}

@media (max-width: 600px) {
    .navbar-brand {
        font-size: 1.2em;
    }
    .contact-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .intro-text {
        font-size: 1.2em;
    }
    .main-title {
        font-size: 2.5em;
    }
    .description-text {
        font-size: 1em;
    }
    .x2-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .image-section {
        display: none;
    }
}