@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    text-align: center;
    padding: 20px;
    margin: 0;
    overflow-x: hidden;
}

/* Floating fitness icons animation */
@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(15deg); opacity: 1; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
}

.floating-icon {
    position: absolute;
    width: 50px;
    opacity: 0.7;
    animation: floatIcon 6s ease-in-out infinite;
}

/* Random positions for multiple icons */
.floating-icon:nth-child(1) { left: 5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { left: 20%; animation-delay: 1.5s; }
.floating-icon:nth-child(3) { left: 50%; animation-delay: 0.7s; }
.floating-icon:nth-child(4) { left: 75%; animation-delay: 2s; }
.floating-icon:nth-child(5) { left: 85%; animation-delay: 1s; }

/* Container */
.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

/* Hero / logo */
.logo {
    width: 120px;
    margin-bottom: 15px;
}

.hero h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f5f5f5;
}

.hero .tagline {
    margin: 5px 0 25px;
    font-size: 16px;
    font-weight: 600;
    color: #00ff90;
}

/* Inputs */
input, select {
    display: block;
    width: 90%;
    margin: 12px auto;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 15px #00ff90;
}

/* Buttons */
button {
    display: block;
    width: 90%;
    margin: 15px auto;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15); /* slightly transparent */
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.5);
    text-shadow: 0 0 5px #fff; /* subtle neon text glow */
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,0.5); /* white neon glow */
    transition: 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px #fff, 0 0 30px rgba(255,255,255,0.6);
}

/* Result box */
#result {
    margin-top: 25px;
    font-weight: 700;
    font-size: 18px;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #1e1e1e;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Dynamic colors for BMI results */
#result.low {
    color: #ff3d00;
    text-shadow: 0 0 10px #ff3d00;
}
#result.normal {
    color: #00ff90;
    text-shadow: 0 0 10px #00ff90;
}
#result.high {
    color: #ffd600;
    text-shadow: 0 0 10px #ffd600;
}

/* Mobile responsive tweaks */
@media screen and (max-width: 600px) {
    .container {
        margin: 25px;
        padding: 25px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero .tagline {
        font-size: 14px;
    }
    input, select, button {
        width: 95%;
    }
}