:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-color-2: #8b5cf6;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

#bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Main Container & Glassmorphism */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 1s ease-out forwards;
}

/* Typography */
.logo-container {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.pulsing-logo {
    max-width: 200px;
    height: auto;
    animation: pulse 3s infinite ease-in-out;
}

.animated-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;

    background: linear-gradient(225deg,
            var(--accent-color) 0%,
            var(--accent-color-2) 50%,
            #f472b6 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

.animated-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(225deg,
            var(--accent-color) 0%,
            var(--accent-color-2) 50%,
            #f472b6 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.6;
    animation: gradientFlow 4s ease infinite;
    z-index: -1;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
    border-radius: 99px;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#progress-value {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

/* Notify Section */
.notify-section {
    margin-bottom: 2rem;
}

.notify-section>p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.notify-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.input-group input:focus+i,
.input-group input:not(:placeholder-shown)+i {
    color: var(--accent-color);
}

.notify-btn {
    padding: 0 1.75rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.notify-btn:active {
    transform: translateY(0);
}

.notify-btn i {
    transition: transform 0.3s ease;
}

.notify-btn:hover i {
    transform: translateX(4px);
}

.success-message {
    display: none;
    color: var(--success-color);
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    animation: fadeIn 0.5s ease;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Footer Text */
.footer-text {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff1a;
    /* 10% opacity white */
}

.footer-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    body {
        overflow-y: auto;
        min-height: -webkit-fill-available;
    }

    .container {
        padding: 1rem;
        margin: 2rem 0;
    }

    .glass-card {
        padding: 2rem 1.25rem;
    }

    .pulsing-logo {
        max-width: 120px;
    }

    .animated-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cartoon-container {
        transform: scale(0.7);
        margin: 0 auto 0.5rem;
        height: 160px;
    }

    .notify-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .notify-btn {
        padding: 1rem;
        justify-content: center;
        width: 100%;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .footer-text {
        margin-top: 1.5rem;
    }
}

/* Cartoon Container & Animations */
.cartoon-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform: scale(0.9);
}

.character {
    position: relative;
    width: 120px;
    height: 180px;
    animation: bounce 2s infinite ease-in-out;
    z-index: 2;
}

/* Head */
.head {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 100px;
    height: 90px;
    z-index: 3;
    animation: headBob 2s infinite ease-in-out;
}

.hard-hat {
    position: absolute;
    top: -15px;
    left: -5px;
    width: 110px;
    height: 55px;
    background: #fbbf24;
    border-radius: 50px 50px 10px 10px;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.hard-hat::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -10px;
    width: 130px;
    height: 15px;
    background: #f59e0b;
    border-radius: 10px;
}

.hard-hat::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 45px;
    width: 20px;
    height: 15px;
    background: #f59e0b;
    border-radius: 5px 5px 0 0;
}

.face {
    position: absolute;
    top: 25px;
    left: 10px;
    width: 80px;
    height: 65px;
    background: #fed7aa;
    border-radius: 40px 40px 30px 30px;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.eyes {
    position: absolute;
    top: 25px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.eye {
    width: 14px;
    height: 18px;
    background: #1e293b;
    border-radius: 50%;
    position: relative;
    animation: blink 4s infinite;
}

.pupil {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 5px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.blush {
    position: absolute;
    top: 40px;
    width: 12px;
    height: 8px;
    background: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
}

.blush.left {
    left: 10px;
}

.blush.right {
    right: 10px;
}

.mouth {
    position: absolute;
    top: 45px;
    left: 32px;
    width: 16px;
    height: 8px;
    border: 2px solid transparent;
    border-bottom-color: #1e293b;
    border-radius: 0 0 10px 10px;
    animation: smile 3s infinite alternate;
}

/* Body */
.body {
    position: absolute;
    top: 100px;
    left: 20px;
    width: 80px;
    height: 60px;
    z-index: 2;
}

.torso {
    position: absolute;
    top: 0;
    left: 15px;
    width: 50px;
    height: 55px;
    background: var(--accent-color);
    border-radius: 20px 20px 15px 15px;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Overall suit/details */
.torso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.torso::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 40px;
    height: 15px;
    background: #f8fafc;
    border-radius: 5px;
    opacity: 0.2;
}

.arm {
    position: absolute;
    top: 10px;
    width: 15px;
    height: 40px;
    background: #fed7aa;
    border-radius: 10px;
    z-index: 1;
}

.arm.left {
    left: 0;
    transform-origin: top center;
    animation: hammerSwing 1.5s infinite ease-in-out;
}

.arm.right {
    right: 0;
    transform: rotate(-20deg);
    transform-origin: top center;
    animation: armWave 3s infinite ease-in-out;
}

/* Hammer in left hand */
.hammer {
    position: absolute;
    bottom: -15px;
    left: -10px;
    transform: rotate(-45deg);
}

.handle {
    width: 6px;
    height: 35px;
    background: #78350f;
    border-radius: 3px;
}

.head-hammer {
    position: absolute;
    top: -5px;
    left: -8px;
    width: 22px;
    height: 12px;
    background: #94a3b8;
    border-radius: 3px;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.3);
}

/* Legs */
.legs {
    position: absolute;
    top: 150px;
    left: 30px;
    width: 60px;
    height: 30px;
    z-index: 1;
}

.leg {
    position: absolute;
    top: 0;
    width: 18px;
    height: 25px;
    background: #1e293b;
    border-radius: 5px;
}

.leg::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 28px;
    height: 10px;
    background: #0f172a;
    border-radius: 5px 10px 5px 5px;
}

.leg.left {
    left: 5px;
    animation: legTapLeft 2s infinite;
}

.leg.right {
    right: 5px;
    animation: legTapRight 2s infinite;
}

/* Shadow */
.gear-shadow {
    position: absolute;
    bottom: 0;
    width: 140px;
    height: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 1;
    animation: shadowScale 2s infinite ease-in-out;
}

/* Cartoon Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes headBob {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(5deg) translateY(2px);
    }

    75% {
        transform: rotate(-5deg) translateY(2px);
    }
}

@keyframes blink {

    0%,
    96%,
    98% {
        transform: scaleY(1);
    }

    97%,
    99% {
        transform: scaleY(0.1);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes smile {
    0% {
        transform: scaleX(1);
        height: 8px;
    }

    100% {
        transform: scaleX(1.2);
        height: 10px;
    }
}

@keyframes hammerSwing {

    0%,
    100% {
        transform: rotate(20deg);
    }

    50% {
        transform: rotate(-60deg);
    }
}

@keyframes armWave {

    0%,
    100% {
        transform: rotate(-20deg);
    }

    50% {
        transform: rotate(-40deg);
    }
}

@keyframes legTapLeft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes legTapRight {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes shadowScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.4;
    }
}