body {
    background: linear-gradient(to bottom, #1a1a1a 0%, #2a2a2a 100%);
    background-size: 100% 300%;
    animation: gradientShift 6s ease-in-out infinite;
    color: #fff;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    opacity: 0.8;
}

.survey-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step {
    color: #888;
    margin-bottom: 1rem;
}

.question-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    width: 500px;
    max-width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 80px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.buttons button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.buttons button.selected {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.buttons button:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18rem;
    padding: 1rem 0;
}

.nav-buttons button {
    background: white;
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-buttons button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.results-container {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results-container h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .alt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .alt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .alt-grid {
        grid-template-columns: 1fr;
    }
}

.alt-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 100px;
    min-height: 200px;
}

.alt-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.alt-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.alt-card a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.alt-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alt-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alt-preview-container {
    display: flex;
    gap: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.alt-preview-card {
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
}

.alt-preview-overlay.active .alt-preview-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.alt-preview-card:nth-child(1) { transition-delay: 0.1s; }
.alt-preview-card:nth-child(2) { transition-delay: 0.2s; }
.alt-preview-card:nth-child(3) { transition-delay: 0.3s; }

.alt-preview-overlay.active .alt-preview-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition-delay: 0.01s;
}

.alt-preview-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.alt-preview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.alt-preview-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.alt-preview-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.alt-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.results-container button {
    background: #164575;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.results-container button:hover {
    background: #103153;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 1);
}

.results-container button:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .survey-container {
        max-width: 95%;
        padding: 1rem;
    }

    .question-card {
        width: 100%;
        max-width: 400px;
        height: auto;
        padding: 1.5rem;
    }

    .results-container {
        width: 95%;
        padding: 1rem;
    }

    .alt-card {
        min-height: 180px;
        padding: 0.8rem;
    }

    .alt-card img {
        width: 48px;
        height: 48px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    20% {
        background-position: 0% 20%;
    }
    40% {
        background-position: 0% 10%;
    }
    60% {
        background-position: 0% 5%;
    }
    80% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes bounce-n-blur {
    0% {
        transform: translateY(0px) scale(1);
        filter: blur(0px);
    }
    25% {
        transform: translateY(-3px) scale(1.01);
        filter: blur(0.5px);
    }
    50% {
        transform: translateY(0px) scale(1);
        filter: blur(1px);
    }
    75% {
        transform: translateY(2px) scale(0.99);
        filter: blur(0.5px);
    }
    100% {
        transform: translateY(0px) scale(1);
        filter: blur(0px);
    }
}

.survey-container.bounce-effect {
    animation: bounce-n-blur 0.3s ease-in-out;
}

@media (max-width: 480px) {
    .buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
        position: static;
        margin-top: 2rem;
    }

    .alt-card {
        min-height: 160px;
        padding: 0.8rem;
    }

    .alt-card img {
        width: 40px;
        height: 40px;
    }

    .alt-preview-container {
        flex-direction: column;
        max-width: 95vw;
        padding: 0.5rem;
    }

    .alt-preview-card {
        min-width: auto;
        max-width: none;
        width: 100%;
        margin-bottom: 1rem;
    }

    .alt-preview-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
