/* Linguistics Section Styles */
.linguistics-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fdf4, #e6fffa);
    overflow: hidden;
}

.language-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-bottom: 50px;
}

.language-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid #008000;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-150px) rotate(calc(-1 * var(--rotation)));
    text-align: center;
}

.language-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #006400;
}

.language-script {
    display: block;
    font-size: 1.5em;
    color: #008000;
    margin-top: 5px;
}

.language-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.language-info h3 {
    color: #006400;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.language-info p {
    color: #333;
    line-height: 1.6;
}

.language-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    flex-basis: 30%;
    margin-bottom: 30px;
}

.feature-item i {
    font-size: 2.5em;
    color: #008000;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #006400;
    margin-bottom: 10px;
}

.feature-item p {
    color: #333;
}

.linguistics-interactive {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 128, 0, 0.1);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.linguistics-region-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.linguistics-region-tab {
    background: #f0fdf4;
    color: #333;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 15px;
    margin: 5px;
}

.linguistics-region-tab.active {
    background: #008000;
    color: #fff;
}

.region-content {
    position: relative;
    min-height: 150px;
    background: #f0fdf4;
    border-radius: 15px;
    padding: 30px;
}

.linguistics-region-info {
    display: none;
    text-align: center;
}

.linguistics-region-info.active {
    display: block;
}

.language-sample {
    margin-top: 15px;
}

.language-sample .sample-text {
    display: block;
    font-size: 1.5em;
    color: #008000;
    margin-bottom: 5px;
}

.language-sample .sample-translation {
    font-size: 1em;
    color: #333;
}

/* National Anthem Styling */
.national-anthem-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fdf4, #e6fffa);
    overflow: hidden;
}

.anthem-title {
    text-align: center;
    font-size: 1.5em;
    color: #006400;
    margin-bottom: 10px;
}

.anthem-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 128, 0, 0.1);
}

.anthem-player {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.play-pause-btn {
    background-color: #008000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-pause-btn:hover {
    background-color: #006400;
}

.progress-bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-left: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #008000;
    transition: width 0.1s linear;
}

.lyrics-container {
    display: flex;
    justify-content: space-between;
}

.lyrics {
    flex-basis: 48%;
}

.lyrics h3 {
    color: #006400;
    margin-bottom: 15px;
}

.lyrics p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.anthem-info {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: center;
    padding: 0 20px;
}

.anthem-info h3 {
    color: #006400;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.anthem-info p {
    color: #333;
    line-height: 1.6;
}

/* Enhanced Responsive Styles */
@media screen and (max-width: 1024px) {
    .language-showcase {
        height: 350px;
    }

    .language-wheel {
        width: 250px;
        height: 250px;
    }

    .language-item {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-125px) rotate(calc(-1 * var(--rotation)));
    }

    .feature-item {
        flex-basis: 45%;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.2em;
    }

    .language-showcase {
        height: 300px;
    }

    .language-wheel {
        width: 200px;
        height: 200px;
    }

    .language-item {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-100px) rotate(calc(-1 * var(--rotation)));
    }

    .language-name {
        font-size: 1em;
    }

    .language-script {
        font-size: 1.2em;
    }

    .feature-item {
        flex-basis: 100%;
    }

    .lyrics-container {
        flex-direction: column;
    }
    
    .lyrics {
        margin-bottom: 30px;
        flex-basis: 100%;
    }

    .anthem-player {
        flex-direction: column;
        align-items: center;
    }

    .progress-bar-container {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 2em;
    }

    .language-showcase {
        height: 250px;
    }

    .language-wheel {
        width: 180px;
        height: 180px;
    }

    .language-item {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-90px) rotate(calc(-1 * var(--rotation)));
    }

    .language-name {
        font-size: 0.9em;
    }

    .language-script {
        font-size: 1.1em;
    }

    .linguistics-region-tab {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .anthem-title {
        font-size: 1.3em;
    }

    .lyrics h3 {
        font-size: 1.2em;
    }

    .lyrics p {
        font-size: 1em;
    }

    .anthem-info h3 {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 360px) {
    .language-showcase {
        height: 220px;
    }

    .language-wheel {
        width: 160px;
        height: 160px;
    }

    .language-item {
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-80px) rotate(calc(-1 * var(--rotation)));
    }

    .language-name {
        font-size: 0.8em;
    }

    .language-script {
        font-size: 1em;
    }

    .linguistics-region-tab {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}