/* General Body and Background Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f8f0;
    color: #386641;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(56, 102, 65, 0.2) 0.5px, transparent 0.5px),
                      radial-gradient(rgba(56, 102, 65, 0.15) 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.5;
    animation: icySparkle 40s linear infinite;
    z-index: 0;
}

@keyframes icySparkle {
    0% { background-position: 0px 0px, 25px 25px; }
    100% { background-position: 300px 600px, 325px 625px; }
}

/* Main Container Styles */
.container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 90%;
}

.container::before, .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(167, 201, 87, 0.3);
    box-shadow: 0 0 8px rgba(167, 201, 87, 0.2);
    z-index: -1;
    animation: bubbleUp 6s ease-out infinite;
}

.container::before {
    width: 80px; height: 80px;
    bottom: -30px; left: 10%;
    opacity: 0;
    animation-delay: 0s;
}

.container::after {
    width: 50px; height: 50px;
    bottom: -20px; right: 15%;
    opacity: 0;
    animation-delay: 2s;
    animation-duration: 5s;
}

@keyframes bubbleUp {
    0% { transform: translateY(10px) scale(0.3); opacity: 0; }
    20% { opacity: 0.8; }
    80% { transform: translateY(-100px) scale(1.2); opacity: 0.5; }
    100% { transform: translateY(-150px) scale(0.8); opacity: 0; }
}

/* Typography and Content Styles */
h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #386641;
}

p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    font-weight: 400;
    color: #6a994e;
}

.footer-text {
    font-size: 0.85em;
    color: #6a994e;
    font-weight: 300;
}

/* Logo and Animations */
.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1em auto;
}

.logo-svg {
    width: 90px;
    height: 90px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatLemon 3.5s ease-in-out infinite;
    z-index: 10;
}

.mint-leaf {
    position: absolute;
    width: 55px;
    height: 65px;
    opacity: 0.85;
    z-index: 5;
    animation: swayMint 4s ease-in-out infinite alternate;
}

.mint-leaf.leaf-1 {
    top: 5px;
    left: 5px;
    transform: rotate(-30deg);
    animation-delay: 0.2s;
}

.mint-leaf.leaf-2 {
    top: 15px;
    right: 0px;
    transform: rotate(40deg) scaleX(-1);
    width: 50px;
    height: 60px;
}

@keyframes floatLemon {
    0% { transform: translate(-50%, -50%) translateY(0px) rotate(-3deg); }
    50% { transform: translate(-50%, -50%) translateY(-10px) rotate(3deg); }
    100% { transform: translate(-50%, -50%) translateY(0px) rotate(-3deg); }
}

@keyframes swayMint {
    from { transform: rotate(-2deg) translateX(-2px); }
    to { transform: rotate(2deg) translateX(2px); }
}

/* --- Page-Specific Styles --- */

/* Styles for index.html */
.timer {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 2em;
    background: rgba(167, 201, 87, 0.2);
    color: #386641;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(167, 201, 87, 0.4);
}

/* Styles for 404.html */
.btn-home {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    background-color: #6a994e;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(56, 102, 65, 0.3);
}

.btn-home:hover {
    background-color: #5c8a42;
    transform: translateY(-2px);
}

.footer-text { /* Specific adjustment for 404 page */
    margin-top: 2em;
}


/* --- Responsive Media Queries --- */

@media (max-width: 768px) {
    .container {
        padding: 35px 40px;
    }
    h1 {
        font-size: 2.5em;
    }
    p {
        font-size: 1.05em;
    }
    .timer {
        font-size: 1.6em;
    }
    .btn-home {
        font-size: 1em;
        padding: 11px 25px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 25px;
        width: 95%;
    }
    h1 {
        font-size: 2.2em;
    }
    p {
        font-size: 1em;
    }
    .timer {
        font-size: 1.4em;
        padding: 10px 18px;
    }
    .btn-home {
        font-size: 0.95em;
        padding: 10px 22px;
    }
    .logo-container {
        width: 100px;
        height: 100px;
    }
    .logo-svg {
        width: 75px;
        height: 75px;
    }
    .mint-leaf.leaf-1 {
        width: 48px;
        height: 58px;
        top: 2px;
        left: 2px;
    }
    .mint-leaf.leaf-2 {
        width: 42px;
        height: 52px;
        top: 8px;
        right: -2px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 25px 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 0.9em;
    }
    .timer {
        font-size: 1.2em;
        padding: 8px 12px;
        margin-bottom: 1.5em;
    }
    .btn-home {
        font-size: 0.9em;
        padding: 10px 18px;
    }
    .logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 0.8em;
    }
    .logo-svg {
        width: 60px;
        height: 60px;
    }
    .mint-leaf.leaf-1 {
        width: 38px;
        height: 48px;
        top: 1px;
        left: 1px;
    }
    .mint-leaf.leaf-2 {
        width: 32px;
        height: 42px;
        top: 5px;
        right: -1px;
    }
    .footer-text {
        font-size: 0.75em;
        margin-top: 1.5em;
    }
}
