:root {
    --primary-color: #233044;
    --secondary-color: #e94560;
    --text-color: #ffffff;
    --background-color: #1a1a2e;
    --accent-color: #bbb1c7;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

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

/* CSS part for header section*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
}

/*Audio/Radio Player Container Styles*/
.player-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/*Album module styles code*/
.album-art-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rotating {
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}

.rotating.playing {
    animation-play-state: running;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*Wave Animation for the player*/
.audio-waves {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-waves.active {
    opacity: 1;
}

.audio-waves span {
    width: 4px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.audio-waves span:nth-child(1) {
    animation: wave 1s ease-in-out infinite;
}

.audio-waves span:nth-child(2) {
    animation: wave 1s ease-in-out 0.2s infinite;
}

.audio-waves span:nth-child(3) {
    animatio: wave 1s ease-in-out 0.4s infinite;
}

.audio-waves span:nth-child(4) {
    animation: wave 1s ease-in-out 0.6s infinite;
}

.audio-waves span:nth-child(5) {
    animation: wave 1s ease-in-out 0.8s infinite;
}

@keyframes wave {
    0%, 100% {
        height:20px;
    }
    50% {
        height: 40px;
    }
}


/*FM Information css styles code*/
.player-info {
    text-align: center;
    margin-bottom: 30px;
}

.player-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Radio Control Styles */
.controls {
    display:  flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.control-btn:hover {
 transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volumeSlider {
    width: 100px;
    accent-color: var(--secondary-color);
}

/* Loading section and error styles*/
.loading-indicator, .error-message {
    text-align: center;
    margin-top: center;
    padding: 10px;
}

.error-message {
    color: #ff4444;
}

.hidden {
    display: none;
}

/* Footer section styles*/
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Making sure all modules are responsive */

@media (max-width: 768px) {
    header{
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

    .album-art-container {
        width: 200px;
        height: 200px;
    }

    .player-container {
        margin: 30px auto;
        padding: 20px;
    }
    }


    @media (max-width: 480px) {
        nav ul {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

        .controls {
            flex-direction: column;
        }

        .volume-control {
            width: 100%;
            justify-content: center;
        }
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid #3f3f5a;
        margin-top: 2rem;
    }
    
    /*Developer and copyright line css code*/
    .mylink{
        color: var(--text-color);
        text-decoration: none;
    }
    .mylink:hover {
        color: var(--secondary-color);
    }

    .fa-heart {
        color: rgb(244, 112, 41);
    }




    /* CSS Styles code for home section*/
    .home-section {
        padding: 60px 0;
        position: relative;
    }

    .content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    .text-content {
        flex: 1;
    }

    .animated-text {
        opacity: 0;
        transform: translateY(20px);
        animation: fade-in-up 1s ease forwards;
        color: var(--text-color);
    }

    .animated-text:nth-child(1) {
        animation-delay: 0.3s;
    }

    @keyframes fade-in-up {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--accent-color);
    }

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

    .cta-button {
        display: inline-block;
        background-color: var(--secondary-color);
        color: var(--text-color);
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .cta-button:hover {
        background-color: #d63a51;
        transform: scale(1.05);
    }

    .animated-button {
        opacity: 0;
        animation: fade-in 1s ease 0.6s forwards;
    }

    @keyframes fade-in {
        to {
            opcaity: 1;
        }
    }

    .image-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .floating-image {
        max-width: 100%;
        height: 450px;
        width: 450px;
        border-radius: 300px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: float 6s ease-in-out infinite;
    }

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

    .features {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 30px;
        margin-top: 60px;
    }

    .feature {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        transition: transform 0.3s ease;
        opacity: 1;
        transform: translateY(20px);
    }

    .animated-feature {
        animation: fade-in-up 1s ease forwards;
    }

    .animated-feature:nth-child(2) {
        animation-delay: 0.2s;
    }

    .animated-feature:nth-child(3) {
        animation-delay: 0.4s;
    }

    .feature:hover {
        transform: translateY(-5px);
    }

    .feature i {
        font-size: 2.5rem;
        color: var(--accent-color);
        margin-bottom: 15px;
    }

    .feature h3 {
        margin-bottom: 10px;
        color: var(--secondary-color);
    }

    /*Making sure it is responsive*/

    @media (max-width: 768px) {
        h2 {
            font-size: 2rem;
                }
                .features {
                    flex-direction: column;
                    align-items: center;
                }
                .feature {
                    width: 100%;
                    max-width: none;
                }
    }