/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0A3A0A; /* Dark tennis green */
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    /* Optional: Subtle court texture background */
    /* background-image: url('green-court-blur.png'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-attachment: fixed; */
}

.container {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 600px;
    width: 90%;
    z-index: 1;
    position: relative; /* For stacking context with background animations */
    animation: fadeInPage 1s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    margin-bottom: 30px;
}

#logo {
    width: 100px; /* Adjust as needed */
    height: auto;
    margin-bottom: 15px;
    animation: logoPulse 2s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.channel-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.8em;
    color: #CDFE01; /* Tennis ball yellow */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 5px;
    animation: textPopIn 0.8s ease-out forwards;
    opacity: 0;
}

.tagline {
    font-size: 1.3em;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 25px;
    animation: textPopIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes textPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Telegram Button - Eye Catchy! */
.telegram-button {
    display: inline-block;
    background: linear-gradient(45deg, #BFFF00, #CDFE01, #AFFF33);
    color: #0A3A0A; /* Dark Green Text */
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.6em;
    padding: 18px 35px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), inset 0 -3px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
    overflow: hidden; /* For shine effect */
    animation: buttonThrob 1.5s infinite ease-in-out, buttonAttention 5s infinite 2s; /* Multiple animations */
}

.telegram-button span {
    position: relative;
    z-index: 1;
}

.telegram-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(180, 255, 0, 0.4), inset 0 -3px 5px rgba(0,0,0,0.1);
}

.telegram-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 10px rgba(180, 255, 0, 0.3), inset 0 -2px 3px rgba(0,0,0,0.1);
}

/* Button Shine Effect */
.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
    pointer-events: none; /* So it doesn't interfere with click */
}

.telegram-button:hover .button-shine {
    animation: shine 0.75s ease-out forwards;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

@keyframes buttonThrob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes buttonAttention { /* subtle shake to "force" attention */
    0%, 10%, 20%, 100% { transform: translateX(0) rotate(0); }
    5%, 15% { transform: translateX(-3px) rotate(-1deg); }
    7.5%, 17.5% { transform: translateX(3px) rotate(1deg); }
}


/* Timer Section */
.timer-section {
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    animation: popInDelay 1s ease-out 0.6s forwards;
    opacity: 0;
}

.timer-section p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #BFFF00; /* Bright Yellow/Green */
}

#countdown-timer {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Context Info */
.context-info {
    margin-top: 30px;
    animation: popInDelay 1s ease-out 0.9s forwards;
    opacity: 0;
}

.context-info h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: #CDFE01;
    margin-bottom: 20px;
    border-bottom: 2px solid #CDFE01;
    display: inline-block;
    padding-bottom: 5px;
}

.feature-card {
    background-color: rgba(255,255,255,0.05);
    border-left: 5px solid #BFFF00;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.feature-card:hover {
    transform: translateX(10px);
    background-color: rgba(255,255,255,0.1);
}

.feature-icon {
    width: 40px; /* Adjust as needed */
    height: auto;
    margin-right: 15px;
}

.feature-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #FFFFFF;
}

.context-info p {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.analyst-info {
    font-weight: bold;
    color: #BFFF00 !important; /* Important to override general p color */
    margin-top: 20px;
}

.question {
    font-style: italic;
    font-weight: bold;
    font-size: 1.3em !important;
    color: #FFD700 !important; /* Gold-ish for emphasis */
}

.promise {
    font-weight: bold;
    font-size: 1.3em !important;
    color: #BFFF00 !important;
    margin-top: 10px;
}

@keyframes popInDelay {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


/* Footer */
footer {
    margin-top: 40px;
    padding: 15px;
    font-size: 0.9em;
    color: #aaa;
    z-index: 1;
    position: relative;
}

footer a {
    color: #CDFE01;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind content */
    pointer-events: none; /* So they don't interfere with clicks */
}

.floating-ball, .floating-racket {
    position: absolute;
    opacity: 0.3; /* Make them subtle */
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.floating-ball {
    width: 50px; /* Adjust size */
    animation-name: floatAndSpin;
    animation-duration: 15s; /* Slower for background */
}

.floating-racket {
    width: 80px; /* Adjust size */
    animation-name: floatAndSway;
    animation-duration: 20s; /* Slower for background */
}

/* Positions for background elements */
.ball-1 { top: 10%; left: 5%; animation-delay: 0s; }
.racket-1 { top: 70%; left: 80%; animation-delay: -5s; transform: rotate(-30deg); }
/* Add more .ball-2, .racket-2 etc. if you want more, adjust positions and delays */
/* Example:
.ball-2 { top: 80%; left: 15%; animation-delay: -7s; width: 40px; opacity: 0.2;}
*/

@keyframes floatAndSpin {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(0px) translateX(40px) rotate(180deg); }
    75% { transform: translateY(20px) translateX(20px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

@keyframes floatAndSway {
    0% { transform: translateY(0) rotate(-30deg); }
    50% { transform: translateY(-30px) rotate(-15deg); }
    100% { transform: translateY(0) rotate(-30deg); }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .channel-name {
        font-size: 2.2em;
    }
    .tagline {
        font-size: 1.1em;
    }
    .telegram-button {
        font-size: 1.3em;
        padding: 15px 30px;
    }
    #countdown-timer {
        font-size: 2em;
    }
    .context-info h2 {
        font-size: 1.5em;
    }
    .feature-card h3 {
        font-size: 1em;
    }
    .context-info p, .question, .promise {
        font-size: 1em !important; /* May need adjustment */
    }
    .floating-ball { width: 30px; }
    .floating-racket { width: 50px; }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    .channel-name {
        font-size: 1.8em;
    }
    .tagline {
        font-size: 1em;
    }
    .telegram-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    #logo {
        width: 80px;
    }
     .feature-card {
        padding: 10px;
    }
    .feature-icon {
        width: 30px;
        margin-right: 10px;
    }
}