:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(31, 33, 40, 0.7);
    --primary-color: #45f3ff;
    --success-color: #00ff88;
    --text-main: #ffffff;
    --text-muted: #8c92a6;
    --border-color: rgba(69, 243, 255, 0.2);
    --hover-bg: rgba(69, 243, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
}

/* UFO Theme Background Elements */
.ufo-bg {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at bottom, rgba(69, 243, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: -2;
    animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.4;
    }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    margin-top: 150px;
    margin-bottom: 100px;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(69, 243, 255, 0.3));
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Content */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

/* Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(69, 243, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #00d2ff);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.5);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
}

/* Topics */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.topic-item.completed {
    border-color: var(--success-color);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.topic-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.topic-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.topic-item.completed .topic-info h4 {
    color: #fff;
}

.claim-btn {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(69, 243, 255, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.claim-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.4);
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: default;
    font-size: 22px;
    user-select: none;
    margin-top: 2px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: default;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.topic-item.completed .checkmark {
    background-color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.topic-item.completed .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Input Fields */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 43px;
    /* align with text */
}

.keyword-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 40px 12px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.keyword-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(69, 243, 255, 0.2);
}

.topic-item.completed .keyword-input {
    border-color: var(--success-color);
    background: rgba(0, 255, 136, 0.05);
    color: var(--success-color);
}

.status-icon {
    position: absolute;
    right: 15px;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.topic-item.completed .status-icon {
    opacity: 1;
    transform: scale(1);
}

.status-icon::before {
    content: '✔️';
}

/* Completion Section */
.completion-section {
    margin-top: 40px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.completion-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none;
}

.success-message {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cert-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-color), #00cc6a);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
    border: none;
    cursor: pointer;
}

.cert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 255, 136, 0.4);
}

.cert-btn:active {
    transform: translateY(1px);
}

.claim-code {
    margin-bottom: 30px;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.claim-code strong {
    color: var(--primary-color);
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(69, 243, 255, 0.1);
    border: 1px dashed var(--primary-color);
    border-radius: 8px;
    text-shadow: 0 0 10px rgba(69, 243, 255, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin-top: 50px;
        padding: 20px 10px;
    }

    .card {
        padding: 25px 20px;
    }

    .logo {
        max-width: 140px;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .topic-header {
        align-items: flex-start;
    }

    .input-container {
        margin-left: 0;
        margin-top: 15px;
    }
}