:root {
    --bg-color: #56fad5; /* Matching the vibrant mint background of the logo */
    --card-bg: #ffffff;
    --primary-color: #ff8de1; /* Pink Blob */
    --primary-hover: #ff70d3;
    --secondary-color: #a47fff; /* Purple */
    --secondary-hover: #8f62ff;
    --text-color: #111111;
    --border-color: #111111;
    --border-width: 4px;
    --shadow-color: #111111;
    --shadow-offset: 6px;
    --success-color: #4ade80;
    --error-color: #ff5252;
}

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

body {
    font-family: 'Fredoka', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Removed align-items: center so it doesn't clip top on overflow */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 2rem 1rem;
}

/* Background floating shapes */
.bg-shapes {
    position: fixed; /* Ensures shapes stay when scrolling */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: var(--border-width) solid var(--border-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 { width: 250px; height: 250px; background-color: var(--primary-color); top: -50px; left: -50px; }
.shape-2 { width: 350px; height: 350px; background-color: var(--secondary-color); bottom: -150px; right: -50px; animation-delay: -3s; }
.shape-3 { width: 150px; height: 150px; background-color: #fffb8f; top: 30%; left: 85%; animation-delay: -6s; border-radius: 20px; transform: rotate(15deg); }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(40px) rotate(15deg); }
}

/* Page Wrapper & Layout */
.page-wrapper {
    width: 100%;
    max-width: 1050px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
    position: relative;
}

/* Navbar */
.app-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--shadow-color);
    padding: 0.8rem 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 3px solid var(--border-color);
    margin-right: 0.8rem;
    object-fit: cover;
}

.nav-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
}

.navbar-socials {
    display: flex;
    gap: 0.8rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 3px 3px 0px var(--shadow-color);
    background-color: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.1s;
}

.social-icon-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--shadow-color);
    background-color: var(--primary-hover);
}

.social-icon-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px var(--shadow-color);
}

.social-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Main Content Wrapper */
.app-content {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
}

/* Left: About Card */
.about-card {
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--shadow-color);
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
}

.about-title {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #4a4a4a;
}

.blob-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Right: Main App Container (Form) */
.app-container {
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--shadow-color);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 2rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blob-avatar {
    width: 105px;
    height: 105px;
    border: 3px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 4px 4px 0px var(--shadow-color);
    object-fit: cover;
    background-color: #f0f0f0;
}

.landing-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.btn-huge {
    font-size: 1.4rem;
    padding: 1.2rem;
    border-radius: 16px;
}

/* Header & Progress Bar (Inside Form) */
.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.small-logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 14px;
    background-color: #e0e0e0;
    border: 3px solid var(--border-color);
    border-radius: 7px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%;
    background-color: var(--success-color);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-right: 3px solid var(--border-color);
}

/* Form Steps */
#form-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#whitelist-form {
    position: relative;
    flex-grow: 1;
}

.step {
    display: none;
    flex-direction: column;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.step.active {
    display: flex;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

h2 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-color); }
p { font-size: 1rem; margin-bottom: 1.5rem; color: #4a4a4a; font-weight: 600; }

/* Inputs */
.input-group {
    display: flex;
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px var(--shadow-color);
    transition: transform 0.1s;
}

.input-group:focus-within {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--shadow-color);
}

.input-prefix {
    background-color: #f0f0f0;
    padding: 1rem;
    font-weight: bold;
    border-right: var(--border-width) solid var(--border-color);
    display: flex;
    align-items: center;
}

input {
    flex-grow: 1;
    padding: 1rem;
    border: none;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
    outline: none;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    box-shadow: 4px 4px 0px var(--shadow-color);
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    margin-top: 1rem;
}

.btn:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px var(--shadow-color) !important;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
}

.btn-primary { background-color: var(--primary-color); }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); }

.btn-secondary { background-color: var(--secondary-color); }
.btn-secondary:hover:not(:disabled) { background-color: var(--secondary-hover); }

.btn-row { display: flex; gap: 1rem; }

/* Task List */
.task-list { display: flex; flex-direction: column; gap: 0.8rem; }

.task-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: #f8f8f8;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 3px 3px 0px var(--shadow-color);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.task-btn:hover:not(.verified) {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--shadow-color);
}

.task-btn:active:not(.verified) {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px var(--shadow-color);
}

.task-btn.verified {
    background-color: var(--success-color);
    cursor: default;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

.task-icon { font-size: 1.2rem; margin-right: 1rem; }
.task-icon svg { width: 24px; height: 24px; display: block; }
.task-text { flex-grow: 1; text-align: left; }
.task-status {
    font-size: 0.85rem;
    color: #555;
    background: #e0e0e0;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.task-btn.verified .task-status {
    content: "Done";
    color: var(--text-color);
    background: #fff;
}

/* Task Inputs */
.task-input-container {
    display: flex;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: -0.4rem;
    margin-bottom: 0.4rem;
    box-shadow: 3px 3px 0px var(--shadow-color);
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

.task-input-container:focus-within {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--shadow-color);
}

.task-input-container input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    border: none;
    outline: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
}

/* Utilities */
.error-msg {
    color: var(--error-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.mt-4 { margin-top: 1.5rem; }

.success-img {
    width: 100%;
    max-width: 220px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 16px;
    box-shadow: 4px 4px 0px var(--shadow-color);
    display: block;
    margin: 0 auto;
}

/* Extra Animations for Landing */
.bounce-anim {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulse-anim {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 6px 6px 0px var(--shadow-color); }
    100% { transform: scale(1); }
}

.float-anim-1 { animation: floaty 3s infinite ease-in-out; }
.float-anim-2 { animation: floaty 3.5s infinite ease-in-out reverse; }
.float-anim-3 { animation: floaty 2.8s infinite ease-in-out 1s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-wrapper {
        gap: 1.5rem;
    }

    .app-navbar {
        border-radius: 12px;
        padding: 0.6rem 1rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .social-icon-btn {
        width: 36px;
        height: 36px;
        border-width: 2.5px;
    }

    .social-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .app-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-card {
        min-height: auto;
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
        border-width: 3px;
        box-shadow: 4px 4px 0px var(--shadow-color);
    }

    .about-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .blob-grid {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .app-container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        min-height: auto;
        border-width: 3px;
        box-shadow: 4px 4px 0px var(--shadow-color);
        margin: 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .blob-avatar {
        width: 65px;
        height: 65px;
        border-width: 2px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }

    .btn-huge {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .input-prefix, input {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .task-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .task-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .task-input-container {
        margin-top: -0.3rem;
        margin-bottom: 0.3rem;
    }

    .task-input-container input {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .btn-row {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
}
