/* About Page - Modern Minimalist Design */

/* Import Google Fonts with Kazakh and Greek language support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Source+Serif+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap');

/* About Container */
 .about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1rem 2rem 1rem; /* верхті азайттық */
    min-height: calc(100vh - 120px);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* Section Base Styles */
section {
    margin-bottom: 5rem;
    scroll-margin-top: 2rem;
    position: relative;
}

/* Longer unified section dividers for all sections */
section:not(:last-child):not(.story-section)::after {
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 10%, var(--accent-color) 90%, transparent);
    opacity: 0.3;
}

/* About page: соңғы feedback-section астындағы сызықты өшіру */
.feedback-section::after { display: none !important; content: none !important; }

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.section-text p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* Mission Section */
.mission-section {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-color);
    border-radius: 16px;
    margin-bottom: 4rem;
}

/* Story Section */
.story-section {
    padding: 2rem 0 1.6rem 0; /* төменгі кеңістік қысқарды */
    margin-top: 0.2rem;
    margin-bottom: 1.2rem !important; /* feedback алдында үлкен алшақтықты қысқарту */
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text p {
    font-size: 1.25rem;
    font-weight: 400; /* сәл қалыңдаттық */
    margin-bottom: 1.4rem;
    text-align: left;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.story-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Elegant Greek word styling - minimalist and sophisticated */
.greek-word {
    font-family: 'Times New Roman', serif;
    font-size: 19px;
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(135deg, var(--hover-color), rgba(0, 0, 0, 0.05));
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.greek-word:hover {
    background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.12);
    transform: translateY(-1px);
}

.greek-word::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.5em;
    right: 0.5em;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 50%, transparent);
    opacity: 0.3;
}

/* Etymology Card */
.etymology-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.etymology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.etymology-symbol {
    font-family: 'IBM Plex Serif', 'Source Serif Pro', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1;
    font-style: normal;
    text-rendering: optimizeLegibility;
}

.meaning-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meaning-text {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Support Section */
.support-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    border-radius: 24px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb, 74, 144, 226), 0.03) 0%, 
        transparent 50%, 
        rgba(var(--accent-color-rgb, 139, 69, 190), 0.02) 100%);
    pointer-events: none;
}

.support-text {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.support-text p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.9;
}

.support-details {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 450px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.support-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.support-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#support-info {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--hover-color), rgba(var(--primary-color-rgb, 74, 144, 226), 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#support-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

#support-info:hover::before {
    left: 100%;
}

.copy-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: relative;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb, 74, 144, 226), 0.3);
}

.copy-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(var(--primary-color-rgb, 74, 144, 226), 0.4);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: all 0.3s ease;
}

.copy-button:hover svg {
    transform: scale(1.1);
}

.top-supporters {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--card-bg), var(--hover-color));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.supporters-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}



.no-supporters-yet {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(var(--text-secondary-rgb, 108, 117, 125), 0.05);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

/* Feedback Section */
.feedback-section {
    padding: 0.6rem 0 1rem 0; /* жоғарғы бос орын одан әрі азайтылды */
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
}

.feedback-text {
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-text p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

.feedback-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.8rem; /* аздап қысқарттық */
    margin-top: 1.2rem; /* форманың алдындағы бос орын азайтылды */
    margin-bottom: 0.6rem; /* формадан кейінгі бос орынды азайту */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feedback-iframe {
    border-radius: 12px;
    background: var(--bg-color);
}

/* Footer */
.about-footer {
    margin-top: auto;
    padding: 0.8rem 0 1rem; /* жоғарғы padding азайтылды */
    background: var(--bg-color);
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-copyright {
    flex: 1;
    text-align: center;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.footer-legal a:hover::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-text p {
        text-align: center;
    }
    
    .etymology-card {
        padding: 1.5rem;
    }
    
    .etymology-symbol {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-socials,
    .footer-legal {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    #support-info {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .support-number-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    section:not(:last-child)::after {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text p,
    .story-text p {
        font-size: 1rem;
    }
    
    .support-details {
        padding: 1.5rem;
    }
    
    .etymology-card {
        padding: 1rem;
    }
    
    .footer-container {
        gap: 1.5rem;
    }
    
    .footer-socials a {
        width: 36px;
        height: 36px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    section:not(:last-child)::after {
        width: 200px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] section:not(:last-child)::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4) 10%, rgba(255, 255, 255, 0.6) 90%, transparent);
}

[data-theme="dark"] .greek-word {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.15);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .greek-word:hover {
    background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.22);
}

[data-theme="dark"] .etymology-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .support-details {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feedback-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Таңдау пәнінің түсімен ерекшелеу */
.highlight-subject {
    color: rgba(var(--current-subject-color-rgb), 1);
    font-weight: 700; /* қалыңырақ */
    letter-spacing: -0.5px;
}

/* Кері байланыс үстіне бөлуші сызық */
.feedback-section {
    position: relative;
}
.feedback-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--current-subject-color-rgb),0.15) 10%, rgba(var(--current-subject-color-rgb),0.4) 50%, rgba(var(--current-subject-color-rgb),0.15) 90%, transparent);
    border-radius: 2px;
}

/* Кішірек экрандарда да жоғарғы бос орынды ұстап қалу */
@media (max-width:768px){
    .about-container{padding-top:0.8rem;}
    .story-section{padding-top:1.4rem;}
}
