body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121223; /* Более глубокий темный фон */
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth; /* Плавный скролл по ссылкам */
}

/* --- Хедер и навигация --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #1a1a2e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: sticky; /* Хедер всегда на виду */
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2em;
    font-weight: 700;
    color: #9c73ff;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a.active,
nav a:hover {
    color: #9c73ff;
}

main {
    padding: 0;
}

/* --- Общие стили для секций --- */
section {
    padding: 100px 5%;
}

h1, h2, h3 {
    font-weight: 700;
    color: #fff;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #9c73ff;
    border-radius: 5px;
}

.btn {
    background-color: #7289da;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1em;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background-color: #677bc4;
    transform: scale(1.05);
}

.message {
    margin-top: 15px;
    color: #4CAF50;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.5s;
}

/* --- Секция "Главная" (Hero) --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 80vh;
    padding: 80px 5%;
    background: linear-gradient(135deg, #121223, #2b2b4b);
    border-bottom: 3px solid #1a1a2e;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
@media (min-width: 769px) {
    .hero-content {
        text-align: left;
    }
}

.hero h1 {
    font-size: 4.5em;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 10px rgba(156, 115, 255, 0.5);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 769px) {
    .hero p {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    animation: float 3s ease-in-out infinite; /* Анимация "парения" */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Секция "Возможности" --- */
#features {
    background-color: #1a1a2e;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: #2b2b4b;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(156, 115, 255, 0.2);
}

.feature-card h3 {
    color: #9c73ff;
    margin-top: 0;
    font-size: 1.5em;
}

/* --- Секция "Команды" --- */
#commands {
    background-color: #121223;
    text-align: center;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.command-card {
    background-color: #1a1a2e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: left;
}
.command-card h4 {
    color: #7289da;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
}

.command-card p {
    font-size: 0.9em;
    margin: 5px 0 0;
    color: #bbb;
}

/* --- Секция "О боте" --- */
#about {
    background-color: #1a1a2e;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
}

.footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 5%;
    font-size: 0.95rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--secondary-color);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col a,
.footer-col p {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-links a {
    font-size: 1.3rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}


/* --- Адаптивность --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px 10px;
    }
    nav {
        margin-top: 10px;
    }
    nav a {
        margin: 0 10px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        order: 2;
        min-width: auto;
    }
    .hero-image {
        order: 1;
        min-width: auto;
    }
    .hero h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2em;
    }
}
/* Добавьте эти стили в ваш style/index.css */
/* Стили для секции с заголовком страницы */
.page-heading {
    text-align: center;
    padding: 80px 5%;
    background-color: #1a1a2e;
}
.page-heading h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.page-heading p {
    font-size: 1.2em;
    color: #bbb;
}

/* Стили для категорий возможностей */
.feature-category {
    padding: 60px 5%;
    background-color: #121223;
}
.feature-category:nth-child(even) {
    background-color: #1a1a2e;
}

.category-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #9c73ff;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-item {
    background-color: #2b2b4b;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.feature-item h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #e0e0e0;
}
.feature-item p {
    color: #bbb;
}

/* Стили для призыва к действию */
.call-to-action {
    text-align: center;
    padding: 80px 5%;
    background-color: #1a1a2e;
}
.call-to-action h2 {
    font-size: 2.5em;
    color: #fff;
}
.call-to-action p {
    font-size: 1.2em;
    color: #bbb;
    margin-bottom: 30px;
}
.command-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.command-card-large {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.command-card-large h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.command-card-large .arg {
    color: #007bff;
    font-weight: 700;
}

.command-card-large p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.command-example {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.command-example img {
    max-width: 100%;
    height: auto;
    display: block;
}

.command-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f4f7f9;
    border-left: 5px solid #007bff;
    border-radius: 8px;
}

.command-note p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .command-showcase {
        grid-template-columns: 1fr;
    }
}
/* ======================== */
/* Стили для модального окна изображений */
/* ======================== */

.image-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Оставаться на месте при прокрутке */
    z-index: 1000; /* Сильнее, чем любой другой контент */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включение прокрутки, если изображение слишком большое */
    background-color: rgba(0, 0, 0, 0.9); /* Черный с полупрозрачностью */
    display: flex; /* Для центрирования контента */
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px; /* Немного скругленные углы */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Легкая тень */
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Анимация для модального контента (можно убрать, если не нужна) */
.image-modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Стили для курсора на изображениях, которые можно открыть */
.command-example img {
    cursor: pointer;
}
/* ======================== */
/* Стили для страницы Разработчик */
/* ======================== */

.developer-section {
    padding: 60px 20px;
}

.developer-section .container {
    max-width: 900px;
}

.developer-content-wrapper {
    display: flex;
    flex-direction: row; /* По умолчанию в ряд */
    gap: 40px;
    margin-top: 30px;
}

.developer-info {
    flex: 2; /* Занимает больше места, чем блок ссылок */
    min-width: 300px;
}

.developer-info p {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    text-align: justify; /* Выравнивание текста по ширине */
}

.developer-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Круглый аватар */
    overflow: hidden;
    margin: 0 auto 30px auto; /* Центрируем аватар */
    border: 4px solid #007bff; /* Яркая рамка */
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.2);
}

.developer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение будет полностью заполнять контейнер */
}

.developer-links {
    flex: 1; /* Занимает оставшееся место */
    min-width: 250px;
}

.developer-links h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 20px;
    margin-right: 12px;
}

/* Цвета для разных ссылок */
.social-link.github {
    background-color: #333;
}

.social-link.telegram {
    background-color: #0088cc;
}

.social-link.website {
    background-color: #4a90e2;
}

.social-link.email {
    background-color: #d44638;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 768px) {
    .developer-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .developer-info,
    .developer-links {
        text-align: center;
        width: 100%;
    }

    .developer-info p {
        text-align: center;
    }

    .developer-avatar {
        margin: 0 auto 20px auto;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}