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

:root {
    --primary-dark-blue: #1a2a40; /* Darker blue for main backgrounds */
    --secondary-dark-blue: #2a3a50; /* Slightly lighter dark blue for elements */
    --accent-yellow: #ffc107; /* Vibrant yellow for highlights */
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-background: linear-gradient(135deg, #1a2a40 0%, #0f1a2a 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --button-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius-lg: 15px;
    --border-radius-md: 8px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--gradient-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll on animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Navbar Styles */
.navbar {
    background: var(--secondary-dark-blue);
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.navbar .nav-links {
    display: flex;
    margin: 0 auto; /* Center the nav links */
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-yellow);
}

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between social icons and button */
}

.navbar .social-icons-navbar a {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .social-icons-navbar a:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.navbar .cta-button {
    background-color: var(--accent-yellow);
    color: var(--primary-dark-blue);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--button-shadow);
}

.navbar .cta-button:hover {
    background-color: #e0a800; /* Slightly darker yellow */
    transform: translateY(-2px);
}

/* Hero Section Styles */
#hero {
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero .hero-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

#hero .hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    margin-right: 40px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.live-badge {
    background-color: #e74c3c; /* Red color for live badge */
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 15px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#hero .listen-now {
    background-color: var(--accent-yellow);
    color: var(--primary-dark-blue);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: var(--border-radius-md);
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--button-shadow);
}

#hero .listen-now:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

#hero .radio-player-bar {
    display: flex;
    align-items: center;
    background-color: var(--secondary-dark-blue);
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    margin-top: 30px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 400px;
    justify-content: space-between;
}

#hero .play-button {
    background: none;
    border: none;
    color: var(--accent-yellow);
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

#hero .play-button:hover {
    transform: scale(1.1);
}

#hero .progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 0 15px;
    position: relative;
}

#hero .progress-bar {
    width: 40%; /* Example progress */
    height: 100%;
    background-color: var(--accent-yellow);
    border-radius: 5px;
}

#hero .fa-volume-up {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-left: 15px;
    margin-right: 15px;
}

#hero .equalizer {
    display: flex;
    align-items: flex-end;
    height: 20px;
    margin-left: 15px;
}

#hero .equalizer .bar {
    width: 4px;
    background-color: var(--accent-yellow);
    margin: 0 2px;
    border-radius: 2px;
    animation: equalize 1.2s ease-in-out infinite alternate;
}

#hero .equalizer .bar:nth-child(1) { height: 60%; animation-delay: 0s; }
#hero .equalizer .bar:nth-child(2) { height: 30%; animation-delay: 0.2s; }
#hero .equalizer .bar:nth-child(3) { height: 80%; animation-delay: 0.4s; }
#hero .equalizer .bar:nth-child(4) { height: 50%; animation-delay: 0.6s; }
#hero .equalizer .bar:nth-child(5) { height: 70%; animation-delay: 0.8s; }

@keyframes equalize {
    0% { height: 20%; }
    100% { height: 100%; }
}

.app-download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.app-download-buttons .app-button img {
    height: 40px; /* Adjust as needed */
    width: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--button-shadow);
    transition: transform 0.3s ease;
}

.app-download-buttons .app-button img:hover {
    transform: translateY(-3px) scale(1.05);
}

#hero .hero-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
    position: relative;
}

#hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transform: rotateY(10deg) rotateX(5deg); /* Subtle 3D effect */
    transition: transform 0.5s ease;
}

#hero .hero-image img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Programming Section Styles */
#programming {
    padding: 80px 0;
    background: var(--primary-dark-blue);
    text-align: center;
}

#programming h2 {
    font-size: 2.5rem;
    margin-bottom: 10px; /* Adjusted margin */
    color: var(--text-light);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

#programming .programming-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

#programming .card {
    background-color: var(--secondary-dark-blue);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    text-align: left;
}

#programming .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

#programming .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#programming .card-content {
    padding: 20px;
}

#programming .card-content .time-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

#programming .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 700;
}

#programming .card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* News Section Styles */
#news {
    padding: 80px 0;
    background: var(--gradient-background);
    text-align: center;
}

#news h2 {
    font-size: 2.5rem;
    margin-bottom: 10px; /* Adjusted margin */
    color: var(--text-light);
    font-weight: 700;
}

#news .news-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

#news .news-card {
    background-color: var(--secondary-dark-blue);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    text-align: left;
}

#news .news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

#news .news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#news .news-card .card-content {
    padding: 20px;
}

#news .news-card .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 700;
}

#news .news-card .card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

#news .news-card .card-content .news-date {
    font-size: 0.9rem;
    color: var(--accent-yellow);
}

#news .view-all-news {
    background-color: var(--accent-yellow);
    color: var(--primary-dark-blue);
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--button-shadow);
}

#news .view-all-news:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    background: var(--secondary-dark-blue);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

footer .footer-brand .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    display: block;
    margin-bottom: 10px;
}

footer .footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

footer .social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-yellow);
    transform: translateY(-3px) scale(1.1);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

footer .footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-dark-blue);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--card-shadow);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar .cta-button {
        display: none; /* Hide CTA button on mobile */
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    #hero .hero-content {
        flex-direction: column;
        text-align: center;
    }

    #hero .hero-text {
        margin-right: 0;
        margin-bottom: 40px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #hero .hero-image {
        text-align: center;
    }

    #programming .programming-cards,
    #news .news-cards {
        flex-direction: column;
        align-items: center;
    }

    #programming .card,
    #news .news-card {
        width: 90%;
    }

    footer .footer-content {
        flex-direction: column;
    }

    footer .footer-brand,
    footer .social-links {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.5rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    #hero .listen-now {
        padding: 12px 25px;
        font-size: 1rem;
    }

    #hero .radio-player-bar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }

    #hero .play-button {
        font-size: 1.5rem;
        margin-right: 10px;
    }

    #hero .fa-volume-up {
        font-size: 1.2rem;
        margin-left: 10px;
        margin-right: 10px;
    }

    #hero .equalizer {
        display: none; /* Hide equalizer on very small screens */
    }

    .app-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .app-download-buttons .app-button img {
        height: 35px;
    }

    #programming h2,
    #news h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    #programming .card,
    #news .news-card {
        width: 95%;
    }

    footer .footer-brand .logo {
        font-size: 1.8rem;
    }

    footer .social-links a {
        font-size: 1.2rem;
    }
}

/* PWA Install Prompt Styles */
.install-prompt-container {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: var(--text-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 15px 20px;
    z-index: 10000;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    width: calc(100% - 40px); /* Adjust width for padding */
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.install-prompt-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
}

.install-prompt-text {
    flex-grow: 1;
}

.install-prompt-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.install-prompt-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.install-prompt-button {
    background-color: var(--accent-yellow);
    color: var(--primary-dark-blue);
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--button-shadow);
}

.install-prompt-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.install-prompt-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.install-prompt-close:hover {
    color: var(--text-light);
}

@media (max-width: 400px) {
    .install-prompt-content {
        flex-direction: column;
        text-align: center;
    }
    .install-prompt-button {
        width: 100%;
        margin-top: 10px;
    }
    .install-prompt-close {
        position: absolute;
        top: 5px;
        right: 5px;
        margin-left: 0;
    }
}