/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: #1A1A1A;
    color: #CCCCCC;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Герой-секція */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #ffffff, #f5f5f5);
}

body.dark-theme .hero {
    background: linear-gradient(180deg, #1A1A1A, #000000);
}

.logo {
    width: 200px;
    margin-bottom: 20px;
    transition: width 0.3s;
}

.message {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sub-message {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 600px;
}

.cta-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background-color: #4A90E2;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-theme .cta-button {
    background-color: #ffffff;
    color: #000000;
}

.cta-button:hover {
    background-color: #357ABD;
}

body.dark-theme .cta-button:hover {
    background-color: #CCCCCC;
}

/* Секція "Хто ми" */
.about {
    padding: 60px 0;
    text-align: center;
}

.about h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.values {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    max-width: 300px;
    padding: 20px;
}

.value-item .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 16px;
}

/* Секція "Проекти в роботі" */
.projects {
    padding: 60px 0;
    text-align: center;
    background-color: #f5f5f5;
}

body.dark-theme .projects {
    background-color: #2A2A2A;
}

.projects h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.projects p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

body.dark-theme .project-item {
    background-color: #333333;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.project-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 16px;
}

/* Секція "Чому обирають нас" */
.why-us {
    padding: 60px 0;
    text-align: center;
}

.why-us h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Секція "Приєднуйся до нас" */
.join-us {
    padding: 60px 0;
    text-align: center;
    background-color: #e5e5e5;
}

body.dark-theme .join-us {
    background-color: #2A2A2A;
}

.join-us h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.join-us p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.subscription-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscription-form input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 300px;
    transition: border-color 0.3s;
}

body.dark-theme .subscription-form input {
    border-color: #CCCCCC;
    background-color: #333333;
    color: #CCCCCC;
}

.subscription-form .cta-button {
    padding: 12px 24px;
}

/* Футер */
.footer {
    padding: 40px 0;
    text-align: center;
    background-color: #f5f5f5;
}

body.dark-theme .footer {
    background-color: #1A1A1A;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer a {
    color: #4A90E2;
    text-decoration: none;
}

.project-item {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Адаптивність */
@media (max-width: 768px) {
    .logo {
        width: 150px;
    }

    .message {
        font-size: 24px;
    }

    .sub-message {
        font-size: 14px;
    }

    .values, .projects-grid {
        flex-direction: column;
        align-items: center;
    }

    .value-item, .project-item {
        width: 100%;
        max-width: 300px;
    }

    .subscription-form {
        flex-direction: column;
        align-items: center;
    }

    .subscription-form input {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Анімація для логотипу */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo {
    animation: fadeIn 1s ease-in-out;
}


/* Idea Button */
.idea-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.idea-button:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #000;
}

#ideaForm {
    display: flex;
    flex-direction: column;
}

#ideaForm label {
    margin: 10px 0 5px;
    font-weight: 500;
}

#ideaForm input,
#ideaForm textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

#ideaForm textarea {
    resize: vertical;
}

#ideaForm button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#ideaForm button:hover {
    background-color: #0056b3;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    z-index: 1000; 
}
.language-switcher a {
    color: #444444 !Important;
    text-decoration: none;
    margin: 0 5px;
}
.language-switcher a:hover {
    text-decoration: underline;
    color: #007bff; 
}

section[id="about"] {
    scroll-margin-top: 80px; 
}