/* Ogólne style i reset */
:root {
    --primary-color:#101626;
    --secondary-color: #f4f4f4;
    --accent-color:#C4A385;
    --text-color: #555;
    --light-text-color: #fff;
    --player-blue: #1e90ff;
}

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

body {
    font-family:  "Rajdhani", sans-serif;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden; /* Zapobiega pojawianiu się poziomego paska przewijania */
}

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

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    color: var(--light-text-color);
    height: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar .logo svg {
    height: 100%;
    width: auto;
    max-width: 100%;
}

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

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: var(--light-text-color);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.navbar .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.grid-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.grid-container:last-child {
    margin-bottom: 0;
}

.grid-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* WERSJA ZALECANA DLA LEPSZEJ CZYTELNOŚCI */
.grid-container p {
     font-family: "Anta", sans-serif;
  font-weight: 200;
  font-style: normal;
    font-size: 1.1rem;  /* Zwiększony rozmiar */
    line-height: 1.6; /* Lekko zmniejszona wysokość linii dla lepszego wyglądu */
    max-width: 800px;
    width: 100%;
}

.dark-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.dark-section h2 {
    color: var(--light-text-color);
}

.dark-section a {
    color: var(--accent-color);
}

/* Style odtwarzacza muzycznego */
.music-player, .track-list-container {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Style dla  Call to Action */

.cta-image {width: 800px; height: 350px; border-radius: 20px; overflow: hidden}

.cta-button {
    display: inline-block;
    background-color: rgba(0, 0, 255, 0.279);
    color: var(--light-text-color);
    padding: 0.8rem 2.5rem;
    border-radius: 50px; /* Zaokrąglone krawędzie */
    text-decoration: none;
    font-weight: 100;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.cta-button:hover {
    transform: scale(1.05); /* Lekkie powiększenie */
    background-color: #0056b3; /* Ciemniejszy odcień */
    border-color: #0056b3;
}

.music-player {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.track-list-container {
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--light-text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.track-list-container h3 {
    margin-bottom: 0.8rem;
    color: var(--light-text-color);
    font-size: 1.3rem;
}

#trackList {
    padding: 0;
    margin: 0;
}

#trackList li {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

#trackList li:last-child {
    margin-bottom: 0;
}

#trackList li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#trackList li.active-track {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    font-weight: bold;
}

.track-info {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 1.5rem;
}

.track-title-wrapper {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    padding-right: 20px;
}

.track-title {
    color: var(--player-blue);
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}

@keyframes scrollText {
    0% { transform: translateX(0%); }
    100% { transform: translateX(calc(-100% - 20px)); }
}

.track-title.scrolling {
    animation: scrollText 10s linear infinite; /* Przykładowy czas trwania */
}

#audioVisualizer {
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    margin-top: 1rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Style dla osi czasu odtwarzacza */
.player-timeline {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px; /* Odstęp między licznikami a paskiem */
}

.time-display {
    color: var(--light-text-color);
    font-size: 0.85rem;
    min-width: 35px; /* Zapobiega "skakaniu" layoutu przy zmianie czasu */
    text-align: center;
}

/* Pasek postępu musi teraz elastycznie zająć dostępną przestrzeń */
.progress-container {
    flex-grow: 1;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.player-btn {
    position: relative;
    background-color: rgba(0, 0, 0, 0.105);
    color: var(--light-text-color);
    border-top: 1px solid rgb(134, 126, 187);
    border-radius: 10%;
    width: 70px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.player-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.player-btn.active {
    color: var(--player-blue);
}

.player-btn[data-repeat-mode="all"],
.player-btn[data-repeat-mode="one"] {
    color: var(--player-blue);
}

.player-btn[data-repeat-mode="one"]::after {
    content: '1';
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--light-text-color);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

#playPauseBtn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text-color);
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    transition: opacity .2s;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--light-text-color);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.footer-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 🟥🟥🟥 POCZĄTEK SEKCJI Z POPRAWKAMI 🟥🟥🟥 */
/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 768px) {

    .cta-image {width: 450px; height: 250px; border-radius: 20px; overflow: hidden}
    /* Zmniejszenie paddingu nawigacji */
    .navbar {
        padding: 1rem;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px; /* Dopasowanie do nowego paddingu navbar */
        left: 0;
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

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

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

    .navbar .hamburger {
        display: block;
    }

    /* Zmniejszenie paddingu głównego kontenera sekcji */
    .grid-container {
        padding: 1.5rem 1rem; /* Mniejszy padding poziomy */
    }

    .grid-container h2 {
        font-size: 1.8rem;
    }

    .grid-container p {
        font-size: 1rem;
    }

    .track-list-container {
        padding: 0.8rem;
        max-height: 200px;
    }

    .music-player {
        padding: 1rem;
    }
    
    #audioVisualizer {
        height: 80px;
    }

    /* --- Układ odtwarzacza na mobile --- */

    .volume-control {
        display: none;
    }

    .controls {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        gap: 5px; /* Zmniejszony odstęp */
    }

    #shuffleBtn { order: 1; }
    #prevBtn    { order: 2; }
    #playPauseBtn { order: 3; }
    #nextBtn    { order: 4; }
    #repeatBtn  { order: 5; }

    #shuffleBtn, #repeatBtn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    #prevBtn, #nextBtn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    #playPauseBtn {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
     .cta-image {width: 300px; height: 200px; border-radius: 20px; overflow: hidden}
    main {
        margin: 1.5rem auto; /* Mniejszy margines na małych ekranach */
    }

    .grid-container h2 {
        font-size: 1.6rem;
    }
    
    /* Jeszcze mniejsze rozmiary przycisków na najmniejszych ekranach, jeśli potrzeba */
    #prevBtn, #nextBtn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    #playPauseBtn {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}
/* 🟥🟥🟥 KONIEC SEKCJI Z POPRAWKAMI 🟥🟥🟥 */

/* 🟥🟥🟥 Ekstra kostumizacja 🟥🟥🟥 */

.largeheading {font-size: 6em; margin:5%; background-color: #645b8072; border-radius: 1000px 1000px 20px 20px;  font-family: "Rajdhani", sans-serif;   font-weight: 600;}
h1 span {color:#000000}



/* 🟥🟥🟥 RESPONSIVE FORM STYLES 🟥🟥🟥 */

/* 🟥🟥🟥 RESPONSIVE FORM STYLES 🟥🟥🟥 */

.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--light-text-color); /* Zmieniono kolor na jasny, aby był widoczny na ciemnym tle */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.cta-button {
    align-self: center;
}

/* Dostosowanie na mniejsze ekrany */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1rem;
    }
}

#contact h3 {
    color: var(--light-text-color); /* Użyto zmiennej CSS */
}