:root {
    /* Brand Colors based on the logo styles */
    --brand-blue: #33597b;
    --brand-blue-dark: #1e3a5f;
    --brand-red: #e31837;

    --bg-color: #f1f5f9;
    /* Light dynamic background */
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: var(--text-main);
}

/* Dynamic Background */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: radial-gradient(circle at top left, #ffffff, #f1f5f9);
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 22s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.4), rgba(227, 24, 55, 0.1));
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(51, 89, 123, 0.45), rgba(51, 89, 123, 0.1));
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(51, 89, 123, 0.2));
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.15);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.85);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Main Content */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    padding: 20px;
    perspective: 1000px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 56px 40px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease;
    animation: slideUp 0.8s ease-out forwards;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 65px -12px rgba(15, 23, 42, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    margin-bottom: 36px;
    width: 100%;
    height: 100px;
    /* Fixed rough height, adjusts with object-fit */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 250px;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.03);
}

/* Text Content */
.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.icon-container {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: white;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px -6px rgba(51, 89, 123, 0.6);
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
    opacity: 0;
    transform: scale(0);
}

.icon-container svg {
    animation: toolTick 3.5s infinite ease-in-out;
}

@keyframes toolTick {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(5deg);
    }
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    line-height: 1.15;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 85%;
    line-height: 1.5;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 30px -10px rgba(51, 89, 123, 0.15);
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
    /* Keeps numbers aligned and same width */
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(15, 23, 42, 0.2);
    margin-top: -24px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Return Date (Replacing the old badge) */
.return-date {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

.return-date strong {
    color: var(--brand-red);
    font-weight: 700;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    margin-top: 48px;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    /* Arbitrary progress visualization */
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red), var(--brand-blue));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(227, 24, 55, 0.4);
    animation: loadProgress 2s ease-out forwards, shimmer 3s infinite linear;
    background-size: 200% 100%;
}

@keyframes loadProgress {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Base fade animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.1);
    }

    80% {
        opacity: 1;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .glass-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    h1 {
        font-size: 2.125rem;
    }

    .subtitle {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .countdown-container {
        padding: 16px;
        gap: 8px;
        width: 100%;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
        margin-top: -20px;
    }

    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 400px;
        height: 400px;
    }

    .blob-3 {
        width: 250px;
        height: 250px;
    }
}