/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-light: #eee;
    --text-dark: #333;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff4757;
    --discord-color: #5865f2;
    --gradient-primary: linear-gradient(135deg, #ff6b35, #f7931e);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--secondary-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.back-to-home {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.back-link i {
    font-size: 0.8rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Application Cards Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.app-card {
    background: var(--accent-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.app-card.coming-soon,
.app-card.paused {
    opacity: 0.7;
    cursor: not-allowed;
}

.app-card.coming-soon:hover,
.app-card.paused:hover {
    transform: none;
    border-color: transparent;
    box-shadow: var(--shadow-medium);
}

.app-card.paused {
    border: 2px solid var(--warning-color);
}

.app-card.paused .card-header h3::after {
    content: " (Paused)";
    color: var(--warning-color);
    font-size: 0.8em;
    font-weight: normal;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-body p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.card-footer {
    margin-top: auto;
}

.apply-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apply-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.apply-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-color);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-color);
}

.modal-content.success {
    max-width: 500px;
    text-align: center;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 30px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: calc(90% - 2px);
    max-width: 800px;

}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    padding-top: 100px;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Progress Bar */
.progress-container {

    text-align: center;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 12.5%; /* 1/8 steps */
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Multi-step Form */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--accent-color);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.form-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--secondary-color);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-group textarea {
    min-height: 100px;
    font-family: 'Roboto', sans-serif;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Navigation Buttons */
.form-navigation {
    gap: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prev-btn {
    background: var(--accent-color);
    color: var(--text-light);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.prev-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    background: var(--gradient-primary);
    color: white;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.submit-btn {
    background: var(--success-color);
    color: white;
}

.submit-btn:hover {
    background: #00cc66;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Modal */
.close-btn-success {
    padding: 12px 30px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-btn-success:hover {
    background: #00cc66;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .back-to-home {
        position: static;
        margin-bottom: 20px;
        text-align: left;
    }

    .app-header {
        margin-bottom: 40px;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 15px 20px;
        width: calc(95% - 2px);
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 20px;
        padding-top: 100px;
    }

    .form-section {
        padding: 20px;
    }

    .card-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .app-card {
        padding: 20px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--secondary-color);
    margin-top: 100px;
    margin-bottom: 20px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}
