/*
Theme Name: Duissenov Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Персональная тема для сайта Жасқанат Дүйсенов
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: duissenov
Tags: custom, personal, responsive

This theme is designed for Zhasqanat Duissenov's personal website.
*/

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

/* Цветовые переменные */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --accent: #f59e0b;
  --bg-light: #f0fdf4;
}

/* Hero секция с улучшенным градиентом */
.hero-bg {
  background: linear-gradient(135deg, 
    rgba(5, 150, 105, 0.95) 0%, 
    rgba(4, 120, 87, 0.9) 50%, 
    rgba(6, 95, 70, 0.95) 100%),
    url('https://44030.kz/wp-content/uploads/2022/06/c579c009-8160-4120-b587-97a2c425885d.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* Анимированные частицы на фоне */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  animation: float 20s ease-in-out infinite;
}

/* Навигация с эффектом стекла */
nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Улучшенные карточки */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(5, 150, 105, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px 0 rgba(5, 150, 105, 0.2);
  border-color: rgba(5, 150, 105, 0.3);
}

/* Градиентный текст */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Улучшенная галерея */
.gallery-img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.gallery-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-img img {
  transition: all 0.5s ease;
}

.gallery-img:hover img {
  filter: brightness(1.1) contrast(1.05);
}

/* Цитата с улучшенным стилем */
.quote-card {
  position: relative;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.8), rgba(209, 250, 229, 0.6));
  border-left: 4px solid var(--primary);
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 100px;
  font-family: Georgia, serif;
  color: rgba(5, 150, 105, 0.15);
  line-height: 1;
}

/* Анимации */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(5, 150, 105, 0.5); }
  50% { box-shadow: 0 0 40px rgba(5, 150, 105, 0.8); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Улучшенное семейное дерево */
.family-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #10b981;
  margin: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 200px;
}

.family-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
  border-color: #059669;
}

.family-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.family-card:hover::before {
  opacity: 0.5;
}

.family-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 40px 20px;
}

/* Линии с градиентом */
.vertical-line, .horizontal-line {
  background: linear-gradient(to bottom, #10b981, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.vertical-line {
  position: absolute;
  width: 3px;
  z-index: 1;
}

.horizontal-line {
  position: absolute;
  height: 3px;
  z-index: 1;
}

.main-line {
  top: 80px;
  height: 580px;
  left: 50%;
  transform: translateX(-50%);
}

.children-line {
  top: 575px;
  left: 25%;
  right: 25%;
}

.level {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

.multiple-cards {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  gap: 20px;
}

/* Кнопки с градиентом */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-gradient:hover::before {
  left: 0;
}

/* Секция заголовков */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

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

/* Мобильное меню */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

#mobile-menu.show {
  right: 0;
}

/* Кнопка "Наверх" */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
  .family-tree {
    padding: 20px 10px;
  }
  
  .multiple-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .family-card {
    min-width: 250px;
  }
}

/* Комментарии */
#comments {
  margin-top: 0;
}

#comments .glass-card {
  max-width: 100%;
}

/* Форма комментариев */
.comment-form-custom {
  background: rgba(240, 253, 244, 0.5);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Стиль для полей ввода в форме комментариев */
.modern-input {
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
}

.modern-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  outline: none;
  background-color: #ffffff;
}

.modern-input::placeholder {
  color: #9ca3af;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: 40px;
  margin-top: 1.5rem;
}

.comment-body {
  margin-bottom: 1.5rem;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-form-comment textarea {
  width: 100%;
}

.comment-awaiting-moderation {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

/* Форма комментариев */
.comment-form {
  margin-top: 2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  outline: none;
}

.comment-form-cookies-consent label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-submit {
  margin-bottom: 0;
}

/* Аватары Gravatar */
.avatar {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ответы на комментарии */
.comment-reply-title small {
  margin-left: 1rem;
}

.comment-reply-title small a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.comment-reply-title small a:hover {
  color: var(--primary-dark);
}

.comment-reply-title small a::before {
  content: '✕ ';
  margin-right: 0.25rem;
}

/* Кнопка отправки комментария */
.form-submit .submit {
  cursor: pointer;
  border: none;
}
