/* =============================
   Fitovit Portal - "The Choice" Theme
   ============================= */

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

:root {
    --bg-dark: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --health-color: #2ecc71;
    --tech-color: #00bcd4;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(30, 70, 53, 0.2) 0%, rgba(0, 0, 0, 0) 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.15) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Navbar */
.navbar {
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--health-color), #fff, var(--tech-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content */
.portal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
}

/* Cards Container */
.cards-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    perspective: 1000px;
}

/* Universal Card Styles */
.choice-card {
    position: relative;
    width: 320px;
    height: 450px;
    text-decoration: none;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px;
}

.choice-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Inner Content */
.card-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.5s;
    background-size: cover;
    background-position: center;
}

.choice-card:hover .card-image-container {
    opacity: 0.7;
    transform: scale(1.1);
    transition: all 6s ease; /* Slow zoom on hover */
}

/* Text & Button */
.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.choice-card:hover .card-content {
    transform: translateY(0);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    color: #fff;
    text-transform: uppercase;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}

.choice-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.btn-enter {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: white;
    color: black;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s 0.1s; /* Delay */
}

.choice-card:hover .btn-enter {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Themes */
/* Health */
.card-health:hover {
    border-color: var(--health-color);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}
.card-health .card-title { text-shadow: 0 0 20px rgba(46, 204, 113, 0.5); }
.card-health .btn-enter { background: var(--health-color); color: #000; }

/* Tech */
.card-tech:hover {
    border-color: var(--tech-color);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}
.card-tech .card-title { text-shadow: 0 0 20px rgba(0, 188, 212, 0.5); }
.card-tech .btn-enter { background: var(--tech-color); color: #000; }


/* Footer */
.portal-footer {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.portal-footer .developer-credit {
    margin-top: 10px;
    font-size: 0.75rem;
}

.portal-footer .developer-credit a {
    color: var(--health-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portal-footer .developer-credit a:hover {
    color: var(--tech-color);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .cards-wrapper { flex-direction: column; }
    .choice-card { width: 100%; max-width: 320px; height: 350px; }
    .card-content { transform: translateY(0); }
    .card-desc, .btn-enter { opacity: 1; transform: translateY(0); } /* Always show on mobile */
    .card-image-container { opacity: 0.5; }
}/* Mystery / Locked Card */
.card-mystery {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

.card-mystery .card-image-container {
    background-color: #000;
    opacity: 0.2;
    filter: grayscale(100%) blur(5px);
}

.card-mystery .card-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.card-mystery .card-title {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
    font-size: 1.5rem;
}

.card-mystery .card-desc {
    color: rgba(255, 255, 255, 0.2);
    opacity: 1; /* Always visible but dim */
    transform: translateY(0);
}

.card-mystery:hover {
    transform: none; /* No lift effect */
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.card-mystery:hover .card-icon {
    animation: shake 0.5s ease-in-out;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.badge-soon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
