/* Body and Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #bab9b4;
    color: #25343b;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}

main {
    flex-direction: column;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 100px; 
    margin-bottom: 100px; 
}

/* Header Styles */
header {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2dab79, #bab9b4);
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 0;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2dab79, #b7b8b5);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    border-radius: 0;
    margin-top: 60px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card Section */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    padding: 1rem;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #25343b;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2dab79 #bab9b4;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: #555;
}

/* Scrollbar Styles */
.card::-webkit-scrollbar {
    width: 8px;
}

.card::-webkit-scrollbar-track {
    background: #bab9b4;
}

.card::-webkit-scrollbar-thumb {
    background-color: #2dab79;
    border-radius: 4px;
    border: 2px solid #bab9b4;
}

/* References Section */
.references ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

/* Audio Section */
.audio {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #bab9b4, #b7b8b5);
    padding: 2rem;
    border-radius: 8px;
    gap: 1rem;
}

.audio-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

audio {
    width: 100%;
    max-width: 300px;
    height: 32px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}

.audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.audio-container audio {
    width: 100%;
    max-width: 100%;
}

.audio-item{
    max-width: 350px;
}

audio::-webkit-media-controls-play-button {
    filter: invert(47%) sepia(62%) saturate(380%) hue-rotate(90deg) brightness(95%) contrast(92%);
}

/* Footer Styles */
footer {
    background: linear-gradient(to bottom, #b7b8b5, #2dab79);
    color: white;
    padding: 1rem;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    border-radius: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Responsive Image Improvements */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Button Styles */
button {
    background-color: #2dab79;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #219761;
}

/* Improvements for responsiveness */
@media (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .pic {
        width: 150px;
        height: 200px;
    }

    body {
        background-color: #25343b;
        color: white;
    }

    header, footer {
        padding: 0.8rem;
    }

    audio {
        width: 100%;
        max-width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo {
        width: 150px;
        height: 150px;
    }

    .pic {
        width: 200px;
        height: 300px;
    }

    body {
        background-color: #b7b8b5;
    }

    .about-content {
        flex-direction: row;
    }

    .about-text, .about-image {
        flex: 1;
    }

    .hero h2 {
        font-size: 2rem;
    }

    audio {
        width: 80%;
        max-width: 400px;
    }
}

@media (min-width: 769px) {
    .logo {
        width: 150px;
        height: 150px;
    }

    .pic {
        width: 300px;
        height: 400px;
    }

    body {
        background-color: #bab9b4;
    }

    .about-content {
        flex-direction: row;
    }

    .about-text, .about-image {
        flex: 1;
    }

    audio {
        width: 100%;
        max-width: 500px;
    }
}