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

/* Body */
body {
    font-family: 'Segoe UI', Arial, monospace, sans-serif;
    background: linear-gradient(120deg, #181c24 0%, #232946 100%);
    color: #e0e7ef;
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* Navigation Bar */
header {
    background: #181c24;
    border-bottom: 1px solid #232946;
    box-shadow: 0 2px 12px rgba(35, 41, 70, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    padding: 16px 0;
}

nav a {
    color: #e0e7ef;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.18s, color 0.18s, letter-spacing 0.2s;
    letter-spacing: 0.04em;
    position: relative;
}

nav a:hover,
nav a:focus {
    background: #232946;
    color: #7f5af0;
    letter-spacing: 0.12em;
    text-decoration: none;
    /* Subtle "glitch" effect */
    animation: glitch 0.3s linear 1;
}

nav a.active {
    background: #2cb67d;
    color: #181c24 !important;
    font-weight: 900;
    box-shadow: 0 2px 12px #2cb67d55;
    letter-spacing: 0.15em;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 #7f5af0, -2px 0 #2cb67d;
    }

    20% {
        text-shadow: -2px 0 #7f5af0, 2px 0 #2cb67d;
    }

    40% {
        text-shadow: 2px 2px #7f5af0, -2px -2px #2cb67d;
    }

    60% {
        text-shadow: -2px 2px #7f5af0, 2px -2px #2cb67d;
    }

    80% {
        text-shadow: 0 0 #7f5af0, 0 0 #2cb67d;
    }

    100% {
        text-shadow: none;
    }
}

/* Main Content */
main {
    max-width: 700px;
    margin: 56px auto 0 auto;
    padding: 40px 18px 32px 18px;
    background: rgba(24, 28, 36, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(35, 41, 70, 0.18);
    text-align: center;
    animation: fadeIn 1.1s cubic-bezier(.4, 0, .2, 1);
    padding-bottom: 80px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Headings */
h1 {
    font-size: 3.2rem;
    margin-bottom: 22px;
    color: #7f5af0;
    font-weight: 900;
    letter-spacing: 0.10em;
    font-family: 'Segoe UI', 'Fira Mono', monospace, Arial, sans-serif;
    text-shadow: 0 4px 24px #232946, 0 0 12px #7f5af0;
    line-height: 1.1;
    animation: fadeIn 1.2s cubic-bezier(.4, 0, .2, 1);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: #e0e7ef;
    font-weight: 700;
}

p {
    margin-bottom: 16px;
    font-size: 1.08rem;
    color: #b8c1ec;
}

/* Hero highlight */
main p:first-of-type {
    font-size: 1.18rem;
    font-weight: 600;
    color: #2cb67d;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

main p:nth-of-type(2) {
    font-style: italic;
    color: #7f5af0;
    font-size: 1.01rem;
    opacity: 0.85;
}

/* Footer */
footer {
    background: #181c24;
    color: #7f5af0;
    text-align: center;
    padding: 18px 0 14px 0;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    border-top: 1px solid #232946;
    position: static;
    margin-top: 48px;
    width: 100vw;
}

/* Ensure main content doesn't hide behind footer */
main {
    padding-bottom: 80px;
}

/* Buttons (if used) */
button,
.btn {
    background: linear-gradient(90deg, #7f5af0 60%, #2cb67d 100%);
    color: #181c24;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(127, 90, 240, 0.09);
    transition: background 0.18s, transform 0.18s;
}

button:hover,
.btn:hover {
    background: linear-gradient(90deg, #2cb67d 60%, #7f5af0 100%);
    transform: translateY(-2px) scale(1.03);
}

/* Forms (if used) */
input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #232946;
    border-radius: 4px;
    font-size: 1rem;
    background: #232946;
    color: #e0e7ef;
    transition: border 0.18s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #7f5af0;
    outline: none;
}

/* Lists */
ul,
ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

/* Progress Section */
.progress-section {
    margin: 38px auto 0 auto;
    max-width: 340px;
    text-align: center;
}

.progress-section h2 {
    font-size: 1.1rem;
    color: #b8c1ec;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.progress-bar-bg {
    background: #232946;
    border-radius: 8px;
    height: 18px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(127, 90, 240, 0.08);
    margin-bottom: 8px;
    border: 1px solid #2cb67d22;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #7f5af0 60%, #2cb67d 100%);
    height: 100%;
    width: 0;
    border-radius: 8px 0 0 8px;
    transition: width 0.8s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 8px #7f5af044;
}

.progress-label {
    color: #2cb67d;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 700px) {
    main {
        padding: 18px 4px 14px 4px;
        margin: 18px 2px 0 2px;
    }

    nav {
        padding: 0 4px;
    }

    nav ul {
        gap: 10px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    footer {
        font-size: 0.93rem;
        padding: 12px 0 8px 0;
    }
}