/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.flag {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0057b7;
}

/* Language Toggle Styles */
.language-toggle {
    display: flex;
    background: rgba(0, 87, 183, 0.1);
    border-radius: 25px;
    padding: 4px;
    margin-left: 1rem;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #0057b7;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #0057b7;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 87, 183, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 87, 183, 0.1);
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #0057b7, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, #0057b7, #0066cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 87, 183, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 183, 0.4);
}

.btn-secondary {
    background: white;
    color: #0057b7;
    border: 2px solid #0057b7;
}

.btn-secondary:hover {
    background: #0057b7;
    color: white;
    transform: translateY(-2px);
}

/* New Button Styles */
.btn-tertiary {
    background: transparent;
    color: #0057b7;
    border: 2px solid rgba(0, 87, 183, 0.3);
}

.btn-tertiary:hover {
    background: rgba(0, 87, 183, 0.1);
    border-color: #0057b7;
    transform: translateY(-2px);
}

.mission {
    padding-left: 32px;
    padding-right: 32px;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.support-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 87, 183, 0.15);
    border-color: rgba(0, 87, 183, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.support-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.resource-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid #ffd700;
}

.resource-item:nth-child(2n) {
    border-left-color: #0057b7;
}

.resource-item:nth-child(3n) {
    border-left-color: #ff6b35;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.resource-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.resource-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Stories Section Styles */
.stories-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.story-avatar {
    font-size: 3rem;
    flex-shrink: 0;
}

.story-content h3 {
    color: #0057b7;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.story-content p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-flags {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
}

/* Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 87, 183, 0.1);
    border-top: 4px solid #0057b7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5ee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0057b7;
    box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab0bc;
}

.contact-form .btn {
    margin-top: 1rem;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    color: #0057b7;
}

.contact-detail h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.contact-detail p {
    color: #666;
}

.contact-detail a {
    color: #0057b7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* Animated form elements */
.form-group input,
.form-group textarea {
    transform-origin: left;
    animation: formItemsIn 0.6s ease-out forwards;
    opacity: 0;
}

.form-group:nth-child(1) input { animation-delay: 0.1s; }
.form-group:nth-child(2) input { animation-delay: 0.2s; }
.form-group:nth-child(3) input { animation-delay: 0.3s; }
.form-group:nth-child(4) textarea { animation-delay: 0.4s; }
.contact-form .btn { 
    animation: formItemsIn 0.6s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes formItemsIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Section Styles */
.about-team {
    margin-top: 3rem;
    padding: 2rem 0;
}

.about-team h3 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.about-team h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #0057b7, #ffd700);
    margin: 1rem auto;
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 87, 183, 0.15);
    border-color: rgba(0, 87, 183, 0.2);
}

.member-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 87, 183, 0.2);
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    box-shadow: 0 12px 35px rgba(0, 87, 183, 0.3);
    transform: scale(1.05);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.team-member:hover .photo-image {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 1.3rem;
    color: #0057b7;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-info p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Team section responsive design */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .about-team h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .team-grid {
        gap: 2rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .language-toggle {
        margin-left: 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .support-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Accessibility and Interactive Enhancements */
.btn:focus,
.lang-btn:focus,
.nav-link:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.card-link {
    color: #0057b7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #003d82;
    text-decoration: underline;
}


/* Language-specific text alignment */
[lang="uk"] {
    text-align: left;
}

[lang="en"] {
    text-align: left;
}
