
:root {
    --bg-main: #0F172A;
    --bg-alt: #161E2E;
    --text-head: #E2E8F0;
    --text-body: #94A3B8;
    --accent: #38BDF8;
    --mint: #2DD4BF;
    --card-dark: #1E293B;
    --font-mono: 'Fira Code', monospace;
}

/* =========================================================
   ОБЩИЕ СТИЛИ
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background: var(--bg-main); 
    color: var(--text-body); 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.7; 
    overflow-x: hidden; 
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }

/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */
.navbar { position: fixed; width: 100%; top: 0; z-index: 100; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); }
.nav-flex { display: flex; justify-content: center; height: 80px; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* =========================================================
   HERO СЕКЦИЯ
   ========================================================= */
.hero { height: 100vh; display: flex; align-items: center; position: relative; }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.hero-content { position: relative; z-index: 2; text-align: left; }
.name { font-size: 5rem; color: var(--text-head); margin-bottom: 5px; font-weight: 700; }
.position { color: var(--accent); font-size: 1.3rem; margin-bottom: 20px; }
.slogan { font-style: italic; opacity: 0.6; font-size: 1.1rem; margin-bottom: 40px; }

/* =========================================================
   КНОПКИ И ССЫЛКИ
   ========================================================= */
.ui-button {
    display: inline-block; padding: 12px 28px; border-radius: 6px; text-decoration: none;
    font-family: var(--font-mono); font-size: 0.85rem; cursor: pointer; transition: 0.3s;
    border: 1px solid var(--accent); background: transparent; color: var(--text-head);
    margin-right: 15px; font-weight: 400;
}
.ui-button.primary { background: var(--accent); color: var(--bg-main); border: none; }
.ui-button:hover, .ui-button.active { background: var(--accent); color: var(--bg-main); transform: translateY(-2px); }

/* Общий стиль для ссылок верификации и действий */
.cert-link, .link-action { 
    color: var(--accent) !important; 
    text-decoration: none; 
    border-bottom: 1px solid rgba(56, 189, 248, 0.3); 
    transition: 0.3s;
    font-family: var(--font-mono);
}
.cert-link:hover, .link-action:hover { border-bottom: 1px solid var(--accent); opacity: 1; }

/* =========================================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================= */
.section { padding: 120px 0; }
.section-title { font-size: 2.5rem; color: var(--text-head); margin-bottom: 60px; text-align: left; }
.bg-alt { background-color: var(--bg-alt); }
.centered-title { margin: 40px 0 25px; color: var(--accent); text-align: left; }

/* =========================================================
   КАРТОЧКИ АККРЕДИТАЦИИ (SKILLS)
   ========================================================= */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--card-dark);
    padding: 25px !important; /* Компактные отступы */
    min-height: 300px; /* Убрали "дырки" снизу */
    border-radius: 8px;
    border-left: 4px solid var(--mint);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover { transform: translateY(-5px); border-color: var(--accent); }

/* Название сертификации: Мятный акцент */
.cert-name {
    font-size: 1.15rem;
    color: var(--mint);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.3;
    display: block;
    font-family: var(--font-mono);
}

.cert-meta {
    font-size: 0.85rem;
    color: var(--text-body);
    opacity: 0.7;
    display: block;
    margin-bottom: 15px;
}

.issuer-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
}

.cert-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-body);
}

/* Ссылка верификации: прилипает к низу */
.cert-link {
    margin-top: auto; 
    padding-top: 10px;
    display: inline-block;
}

/* =========================================================
   ПОРТФОЛИО И ДРУГИЕ КАРТОЧКИ
   ========================================================= */
.challenge-card, .info-card, .portfolio-item { 
    background: var(--card-dark); padding: 25px; border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid var(--mint); 
}

.challenges-grid, .portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.filter-ui-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; justify-content: flex-start; }
.tag { font-size: 0.85rem; color: var(--accent); font-weight: bold; display: block; margin-bottom: 10px; }
.portfolio-thumb { height: 180px; background: #161E2E; border-radius: 8px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   TESTIMONIALS (КАРУСЕЛЬ)
   ========================================================= */
.testimonials-container { position: relative; max-width: 800px; margin: 0; overflow: hidden; }
.testimonials-slider { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-slide { min-width: 100%; padding: 20px 0; }
.testimonial-card { padding: 60px 40px 40px !important; text-align: left; position: relative; }

.quote-mark { 
    position: absolute; 
    top: 10px; 
    left: 20px; 
    font-size: 5rem; 
    color: var(--mint); /* Изменено на ментоловый */
    opacity: 0.5;       /* Сделали кавычку более заметной */
    line-height: 1; 
    font-family: serif; 
}

.test-text { font-style: italic; font-size: 1.2rem; color: var(--text-head); margin-bottom: 15px; }

/* Добавляем стиль для Имени */
.user-meta strong {
    color: var(--mint); /* Имя клиента теперь ментоловое */
    font-weight: 700;
}

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.2); border-radius: 50%; cursor: pointer; transition: 0.3s; }

/* Активная точка навигации */
.dot.active { 
    background: var(--mint); /* Точка тоже стала ментоловой */
    width: 25px; 
    border-radius: 5px; 
}

/* Ссылка под отзывами */
#testimonials .link-action {
    color: var(--mint) !important;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(45, 212, 191, 0.4);
    transition: 0.3s;
}

#testimonials .link-action:hover {
    border-bottom: 1px solid var(--mint);
    opacity: 1;
}

/* Ссылка на имени */
.name-link {
    text-decoration: none;
    color: inherit; /* Наследует ментоловый цвет от strong */
    transition: 0.3s;
}

.name-link:hover strong {
    opacity: 0.7;
    text-decoration: underline;
}

/*  цвет активной точки, голубой,var(--mint) ) */
.dot.active { 
    background: var(--mint); 
    width: 25px; 
    border-radius: 5px; 
}

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.social-row { 
    display: flex; 
    justify-content: flex-start; /* Это выровняет кнопки по левому краю */
    gap: 20px; 
    margin-top: 30px; 
}

.contact-text {
    text-align: left;    /* Текст будет слева */
    margin-bottom: 20px; /* Отступ до кнопок */
    display: block;
}


.about-footer-actions { margin-top: 40px; display: flex; gap: 20px; align-items: center; }

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */
@media (max-width: 768px) {
    .challenges-grid, .portfolio-grid, .accreditation-grid { grid-template-columns: 1fr; }
    .name { font-size: 3rem; }
    .hero-content { text-align: center; }
    .social-row, .slider-dots { justify-content: center; }
}

/* INSIGHTS ANIMATION AREA */
.insights-wrap {
    height: 400px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(45, 212, 191, 0.1);
}

#insightsCanvas {
    max-width: 100%;
}

/* FINAL SITE FOOTER */
.site-footer {
    padding: 40px 0;
    background: #0a101f; /* Чуть темнее основного фона */
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-body);
    font-size: 0.85rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.built-by {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 5px;
}

.footer-legal a {
    color: var(--text-body);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

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

@media (max-width: 768px) {
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-legal a { margin: 0 10px; }
}
