@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,900&family=Oswald:wght@500;700&family=Permanent+Marker&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Oswald', sans-serif;
}

/* Background animation */
.bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Cyberpunk/Synthwave gradient overlay */
    background: linear-gradient(135deg, rgba(30, 0, 80, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.bg-image {
    width: 110%;
    height: 110%;
    background: url('bg.png.jpeg') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: -5%;
    left: -5%;
    z-index: 0;
    opacity: 0.5;
    animation: panAndZoom 40s ease-in-out infinite alternate;
}

@keyframes panAndZoom {
    0% {
        transform: scale(1) translate(0, 0);
        filter: brightness(0.9) contrast(1.2) hue-rotate(0deg);
    }

    50% {
        transform: scale(1.05) translate(-1%, 1%);
        filter: brightness(1.1) contrast(1.3) hue-rotate(5deg);
    }

    100% {
        transform: scale(1.1) translate(1%, -1%);
        filter: brightness(0.9) contrast(1.2) hue-rotate(0deg);
    }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    transform-style: preserve-3d;
}

/* Custom Main Title Styling */
.main-title {
    font-family: 'Montserrat', 'Impact', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.9;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Base styles for gradient text */
.main-title .gold-text,
.main-title .line1,
.main-title .word-santos {
    background: linear-gradient(to bottom, #fde9a0 0%, #d4a74a 45%, #926f1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 1px #000) drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.4));
}

.main-title .white-text,
.main-title .word-los,
.main-title .line3 {
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 1px #000) drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.4));
}

.main-title .line1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: -5px;
}

.main-title .line2 {
    margin: 0;
    padding: 0;
    font-size: clamp(4.5rem, 9.5vw, 8rem);
    margin-bottom: -10px;
    letter-spacing: 3px;
}

.main-title .line3 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Initial container intro animation */
.container-anim {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    animation: slideUpScale 2s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
}

@keyframes slideUpScale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stylish animated Register Button */
.btn-container {
    perspective: 1000px;
    margin-top: 2rem;
    z-index: 20;
}

.register-btn {
    position: relative;
    display: inline-block;
    padding: 20px 80px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f2ff00;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 6px;
    border: 3px solid #ffd700;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.3);
    transform-style: preserve-3d;
    animation: floatBtn 4s ease-in-out infinite, neonPulseBtn 2s infinite alternate;
    backdrop-filter: blur(8px);
}

.register-btn span {
    position: relative;
    z-index: 2;
    text-shadow: 0px 0px 10px #ffd700;
    transition: all 0.3s ease;
}

.register-btn .liquid {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 250px;
    background: #ffd700;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.register-btn .liquid::after,
.register-btn .liquid::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #111;
}

.register-btn .liquid::before {
    border-radius: 45%;
    background: rgba(20, 20, 20, 1);
    animation: liquidAnim 6s linear infinite;
}

.register-btn .liquid::after {
    border-radius: 40%;
    background: rgba(255, 215, 0, 0.2);
    animation: liquidAnim 12s linear infinite;
}

.register-btn:hover {
    box-shadow:
        0 0 50px rgba(255, 215, 0, 0.9),
        0 0 100px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.8);
    transform: scale(1.15) translateZ(30px) rotateX(5deg);
    border-color: #fff;
    cursor: pointer;
}

.register-btn:hover span {
    color: #000;
    text-shadow: none;
    font-weight: 800;
}

.register-btn:hover .liquid {
    top: -150px;
}

@keyframes liquidAnim {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes neonPulseBtn {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), inset 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    perspective: 1200px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%), url('register-bg.png') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay;
    border: 2px solid #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3), inset 0 0 20px rgba(255, 170, 0, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    transform: rotateX(-20deg) scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: rotateX(0) scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 10px #ffaa00;
}

.close-btn:hover {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
    transform: rotate(90deg) scale(1.2);
}

/* Homies Section Header */
.homies-section {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
    padding-bottom: 20px;
}

.neon-text {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700, 0 0 15px #ffd700, 0 0 30px #ffd700;
    letter-spacing: 5px;
    margin-bottom: 15px;
    animation: neonBlick 2s infinite alternate;
}

@keyframes neonBlick {
    0%, 100% { text-shadow: 0 0 5px #ffd700, 0 0 15px #ffd700, 0 0 30px #ffd700; opacity: 1; }
    50% { text-shadow: 0 0 2px #ffd700, 0 0 5px #ffd700, 0 0 10px #ffd700; opacity: 0.8; }
}

.questionnaire-title {
    color: #b48c34 !important;
    text-shadow: none !important;
    animation: none !important;
    letter-spacing: 8px;
    font-weight: 800;
}

.homies-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 0.95rem;
    color: #ddd;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.homies-list span:not(.dot) {
    background: rgba(255, 170, 0, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
    transition: all 0.3s;
    cursor: default;
}

.homies-list span:not(.dot):hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #fff;
    box-shadow: 0 0 15px #ffd700;
    transform: translateY(-5px);
}

.dot {
    color: #ffaa00;
    animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
    to {
        transform: scale(1.5);
        text-shadow: 0 0 10px #ffaa00;
    }
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 15px 10px 10px 10px;
    font-size: 1.1rem;
    color: #ffd700;
    font-family: 'Oswald', sans-serif;
    outline: none;
    transition: all 0.3s;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -10px;
    font-size: 0.85rem;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
}

/* Submit Button */
.submit-btn {
    margin-top: 10px;
    padding: 15px;
    background: transparent;
    border: 2px solid #ffaa00;
    color: #ffd700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    text-shadow: 0 0 5px #ffaa00;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.4), transparent);
    transition: all 0.4s;
    z-index: -1;
}

.submit-btn:hover {
    box-shadow: 0 0 20px #ffaa00, inset 0 0 10px #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.submit-btn:hover::before {
    left: 100%;
}

.step3-intro {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    opacity: 0.9;
    text-transform: uppercase;
}

.step3-intro .gold-text {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.submit-btn:active {
    transform: scale(0.95);
}

.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.success-badge {
    width: 80px; /* Emoji size as requested */
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(222, 184, 96, 0.4);
    border: 2px solid #deb860;
}

@keyframes badgeScale {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.success-title {
    color: #deb860;
    font-size: 2.8rem;
    font-family: 'Permanent Marker', cursive;
    text-shadow: none !important;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: successReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        letter-spacing: 15px;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 2px;
    }
}

.success-screen p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 85%;
}

.join-btn {
    padding: 20px 40px;
    background: #5865F2; /* Discord blue */
    border: none;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transition: all 0.3s;
}

.join-btn:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.8);
}

.join-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bottom Menu Styles */
.bottom-menu {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.5s both;
}

.menu-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
}

.menu-link:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.menu-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Rules Modal Custom Styles */
.rules-content {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.rules-title {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.rules-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 10px;
}

/* Custom Scrollbar for rules */
.rules-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.rules-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.rules-scroll-area::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.rule-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ffd700;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s;
}

.rule-box:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.rule-box h3 {
    color: #ffd700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.rule-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rules-footer {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
    color: #ffd700;
    font-style: italic;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Multi-step Logic Styles */
.modal-step {
    display: none;
    animation: fadeInStep 0.5s ease forwards;
}

.modal-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-text {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Option Cards for questionnaire */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.option-card input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    color: #ddd;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ff0000;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s;
}

.option-card input:checked+.option-content {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.option-card input:checked+.option-content .radio-circle {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.option-card:hover .option-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Navigation Buttons */
.form-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.next-btn {
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-width: 2px;
}

.nav-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.back-btn {
    flex: 1;
}

.submit-btn {
    flex: 2;
}

/* Feedback Floating Action Button */
.feedback-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 170, 0, 0.15);
    border: 2px solid #ffaa00;
    color: #ffd700;
    padding: 12px 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatFab 3s ease-in-out infinite;
}

.feedback-fab:hover {
    background: #ffaa00;
    color: #000;
    box-shadow: 0 0 40px #ffaa00;
    transform: scale(1.1) translateY(-5px);
}

@keyframes floatFab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Star Rating Styling */
.star-rating-container {
    text-align: center;
    margin: 20px 0 30px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 3rem;
    cursor: pointer;
}

.star {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.star.active {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700, 0 0 30px rgba(255, 215, 0, 0.5);
    transform: scale(1.2);
}

.star:hover {
    transform: scale(1.3);
    color: #ffaa00;
}

.star-status {
    margin-top: 15px;
    font-family: 'Oswald', sans-serif;
    color: #ffd700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    min-height: 1.5em;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}