/*
Theme Name: ProVolley OnePager
Theme URI: https://provolley.hr
Author: Antigravity
Author URI: https://deepmind.google
Description: A premium, dynamic one-pager WordPress theme for ProVolley.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: provolley-onepager
*/

:root {
    --primary-color: #0084FF; /* Vibrant Blue from logo */
    --secondary-color: #FF0099; /* Vibrant Pink from logo */
    --accent-color: #FFFFFF; /* Pure White */
    --bg-dark: #050E25; /* Deep Midnight Blue inspired by logo shadows */
    --text-light: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
}

/* Playful Background */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.playful-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--bg-dark);
}

/* Floating Blobs */
.blob {
    position: absolute;
    filter: blur(60px);
    border-radius: 50%;
    opacity: 0.6;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 40%;
    left: 60%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Youthful Content */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
}

.logo-main {
    height: 140px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.youth-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
}

.youth-title span {
    display: block;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fun-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border: 2px solid var(--primary-color);
    border-image: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color)) 1;
    padding: 2.5rem;
    border-radius: 40px; /* Note: border-image disables border-radius, using a workaround */
    display: inline-block;
    max-width: 550px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: rotate(-1deg);
    position: relative;
}

.fun-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 40px;
    pointer-events: none;
}

.fun-card p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.fun-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Volleyballs */
.float-ball {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiLz48cGF0aCBkPSJNMTIgMTEuMmwyLjQgNC44TDE5LjIgMTdtLTMuNi0zLjZsLTIuNCA0LjhNNy4yIDE3bDIuNC00LjhNMTIgMjR2LTQiLz48L3N2Zz4=') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    animation: drift 15s infinite linear;
}

@keyframes drift {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(500px, -500px) rotate(360deg); }
}

.footer-text {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Scroll / Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealIn 0.8s ease-out forwards;
}

@keyframes revealIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .fun-card { padding: 1.5rem; border-radius: 30px; }
    .youth-title { font-size: 3rem; }
}
