:root {
    --primary-color: #6a1b9a;
    /* Softer Purple */
    --secondary-color: #4a148c;
    /* Deep Purple */
    --accent-color: #4fc3f7;
    /* Softer Cyan/Blue */
    --text-color: #f3f3f3;
    /* Slightly off-white for less strain */
    --glass-bg: rgba(30, 30, 40, 0.6);
    /* Darker, less transparent glass for better contrast */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --success-color: #4caf50;
    --input-bg: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: #121212;
    /* Dark pleasing background */
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    /* Deep space blue tones */
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px 0;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.05) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.app-container {
    width: 100%;
    max-width: 650px;
    /* Slightly wider for form */
    padding: 10px;
}

/* Sections */
.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.active-section {
    display: block;
    animation: fadeIn 0.5s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Logo */
.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    margin-bottom: 20px;
    object-fit: cover;
}

.section-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    margin-bottom: 15px;
    object-fit: cover;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ddd;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #bbb;
}

.link-highlight {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.link-highlight:hover {
    text-decoration: underline;
}

#greeting-text {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.contact-box {
    margin-top: 1.5rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.link-highlight {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.link-highlight:hover {
    text-decoration: underline;
}

#greeting-text {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.contact-box {
    margin-top: 1.5rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Date Time */
.datetime-container {
    margin: 1.5rem 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#time {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
}

#date,
#country {
    font-size: 0.95rem;
    color: #aaa;
}

.small {
    padding: 8px;
    margin: 1rem 0;
}

/* Buttons and Links */
button,
.btn-link,
.btn-accent,
.btn-back,
.btn-huge {
    display: inline-block;
    padding: 12px 24px;
    margin: 6px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.btn-link:hover,
.btn-accent:hover,
.btn-back:hover,
.btn-huge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-buttons button {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.nav-buttons button:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-link {
    background: #0088cc;
    /* Telegram Blue */
    color: white;
}

.btn-link:nth-child(2) {
    background: #0088cc;
}

.btn-accent {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #aaa;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-huge {
    background: #25d366;
    color: white;
    font-size: 1.2rem;
    padding: 20px 40px;
    margin-top: 1rem;
    width: 100%;
}

.promo-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Gold hint */
}

/* Radio Player */
.radio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.controls button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: var(--accent-color);
    color: #000;
    margin: 0 10px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
}

input[type=range] {
    width: 100%;
    accent-color: var(--accent-color);
}

.visualizer {
    display: flex;
    gap: 5px;
    height: 30px;
    align-items: flex-end;
}

.bar {
    width: 6px;
    background: var(--accent-color);
    height: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 25px;
    }
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

/* Pulse Animation */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Shortcuts Hint */
.shortcuts-hint {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.shortcuts-hint span {
    margin: 2px 0;
}

kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 20px;
    }

    .nav-buttons {
        display: flex;
        flex-direction: column;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }
}