/* CENTRAL ASIA WEBSITE - TURQUOISE THEME */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-turquoise: #20b2aa;
    --light-turquoise: #40d9d9;
    --dark-turquoise: #008080;
    --pale-turquoise: #afeeee;
    --accent-teal: #17a2a2;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --border-color: #a9d9d8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f9fdfb;
    line-height: 1.6;
}

/* HEADER STYLES */
header {
    background: linear-gradient(135deg, var(--primary-turquoise), var(--light-turquoise));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

nav a:hover {
    color: var(--pale-turquoise);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pale-turquoise);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* MAIN CONTENT */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    color: var(--primary-turquoise);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(32, 178, 170, 0.1);
}

h1 {
    font-size: 3rem;
    border-bottom: 3px solid var(--light-turquoise);
    padding-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    border-left: 5px solid var(--accent-teal);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(32, 178, 170, 0.8), rgba(65, 217, 217, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%2340d9d9" width="1200" height="400"/><circle cx="100" cy="100" r="80" fill="%2320b2aa" opacity="0.3"/><circle cx="1100" cy="300" r="120" fill="%2320b2aa" opacity="0.2"/></svg>');
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    color: white;
    border-bottom-color: var(--pale-turquoise);
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* CARDS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(32, 178, 170, 0.1);
    border-top: 5px solid var(--primary-turquoise);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(32, 178, 170, 0.2);
}

.card h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-dark);
    line-height: 1.8;
}

/* BUTTONS */
button, .btn {
    background-color: var(--primary-turquoise);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: var(--dark-turquoise);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
}

button:active, .btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--light-turquoise);
}

.btn-secondary:hover {
    background-color: var(--primary-turquoise);
}

/* API SECTION */
.api-section {
    background: linear-gradient(135deg, var(--pale-turquoise), #e0f9f9);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-turquoise);
    margin-bottom: 2rem;
}

.api-section h2 {
    border-left: none;
    padding-left: 0;
    color: var(--primary-turquoise);
}

#ai-response {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    border-left: 3px solid var(--light-turquoise);
    min-height: 50px;
    color: var(--text-dark);
    line-height: 1.8;
}

.loading {
    color: var(--primary-turquoise);
    font-style: italic;
}

/* LANGUAGE STATS */
.language-stats {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--pale-turquoise), #e0f9f9);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-turquoise);
}

.stat-language {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.stat-speakers {
    font-size: 0.9rem;
    color: #666;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, var(--dark-turquoise), var(--primary-turquoise));
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--pale-turquoise);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pale-turquoise);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* INPUT STYLES */
input, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-turquoise);
    box-shadow: 0 0 8px rgba(32, 178, 170, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Courier New', monospace;
}
