/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* Основные переменные */
:root {
    --primary-color: #0088ff;
    --primary-hover: #0066cc;
    --background-start: #111111;
    --background-end: #222222;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --shadow-soft: 0 8px 32px rgba(0, 136, 255, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 136, 255, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--background-start) 100%, var(--background-end) 100vh);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    
}

/* Базовые стили */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: transparent;
    min-height: 100vh;
    background-origin: border-box;
    background-clip: border-box;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: black;
}

html {
    background-color: transparent;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }
  

/* Контейнер */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: inherit;
}

/* Анимация появления */
.container {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секция профиля */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Аватар */
.avatar-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 136, 255, 0);
    }
}

/* Название проекта */
.project-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Описание */
.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
    font-weight: 400;
}

/* Секция кнопок */
.buttons-section {
    width: 100%;
   
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Стили кнопок */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: rgba(0, 136, 255, 0.1);
}

.button:active {
    transform: translateY(0);
}

/* Иконка кнопки */
.button-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.button:hover .button-icon {
    transform: scale(1.1);
}

/* Текст кнопки */
.button-text {
    font-weight: 500;
}

/* Специальные стили для кнопки Gallery */
.gallery-button {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.1), rgba(0, 170, 255, 0.05));
    border-color: var(--primary-color);
}

.gallery-button:hover {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2), rgba(0, 170, 255, 0.1));
}

/* Стили для кнопки Telegram */
.telegram-button {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.15), rgba(0, 170, 255, 0.08));
    border-color: #0088cc;
}

.telegram-button:hover {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.25), rgba(0, 170, 255, 0.15));
    border-color: #0088cc;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.3);
}

/* Стили для кнопки PornHub */
.pornhub-button {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-color: #ff9500;
}

.pornhub-button:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: #ff9500;
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.3);
}

/* Стили для кнопки Coming Soon */
.coming-soon-button {
    opacity: 0.7;
    cursor: not-allowed;
}

.coming-soon-button:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Футер */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 10px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .project-name {
        font-size: 2rem;
        color: #ffffff;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .project-name {
        font-size: 1.75rem;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
    }
}

/* Дополнительные эффекты */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 136, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 170, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Улучшенная анимация для мобильных устройств */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== СТИЛИ СЛАЙДЕРА ===== */

/* Секция слайдера */
.slider-section {
    width: 100%;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.slider-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Контейнер слайдера */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Слайд */
.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Telegram пост */
.telegram-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Изображения поста */
.post-images {
    display: flex;
    gap: 0.25rem;
    height: 450px;
    background: rgba(0, 0, 0, 0.3);
}

.main-image {
    flex: 2;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.main-image:hover {
    transform: scale(1.02);
}

.side-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
}

.side-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.side-image:hover {
    transform: scale(1.05);
}

/* Стили для изображений */
.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.main-image .post-image {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.side-image .post-image {
    border-radius: 0;
}

.side-image:first-child .post-image {
    border-radius: 0 var(--border-radius) 0 0;
}

.side-image:last-child .post-image {
    border-radius: 0 0 var(--border-radius) 0;
}

/* Эффект при наведении на изображения */
.main-image:hover .post-image,
.side-image:hover .post-image {
    transform: scale(1.1);
}

/* Контент поста */
.post-content {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.post-text {
    color: var(--text-primary);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Теги поста */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    background: rgba(0, 136, 255, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 136, 255, 0.3);
}


/* Навигация слайдера */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(0, 136, 255, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-prev {
    margin-left: -25px;
}

.slider-next {
    margin-right: -25px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* Индикаторы */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(black, transparent);
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 85%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    background: rgba(0, 136, 255, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev {
    margin-left: -60px;
}

.modal-next {
    margin-right: -60px;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Информация модального окна */
.modal-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.modal-counter {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.link {
    text-decoration: none;
    color: #2c68ff;
    transition: color 0.2s;
}

.link:visited,
.link:hover,
.link:active {
    text-decoration: none;
    color: #2c68ff;
}

.link:hover {
    color: #0048ff;
}

.post-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Адаптивность слайдера */
@media (max-width: 768px) {
    .slide {
        padding: 0.75rem;
    }
    
    .post-images {
        height: 400px;
    }
    
    .post-content {
        padding: 1.25rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-description {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .post-footer {
        font-size: 0.8rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        margin-left: -10px;
    }
    
    .slider-next {
        margin-right: -10px;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        margin-left: -50px;
    }
    
    .modal-next {
        margin-right: -50px;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 0.5rem;
    }
    
    .post-images {
        height: 400px;
        gap: 0.15rem;
    }
    
    .post-title {
        font-size: 0.95rem;
    }
    
    .post-description {
        font-size: 0.85rem;
    }
    
    .post-tags {
        gap: 0.25rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
    
    .post-footer {
        font-size: 0.75rem;
    }
    
    .image-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        font-size: 1.2rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-prev {
        margin-left: -5px;
    }
    
    .slider-next {
        margin-right: -5px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .modal-close {
        top: -30px;
        font-size: 2.5rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        margin-left: -40px;
    }
    
    .modal-next {
        margin-right: -40px;
    }
}

/* Градиентные фоны для слайдов */
.gradient-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.gradient-1 .gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 .gradient-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 .gradient-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-4 .gradient-bg {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-5 .gradient-bg {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-6 .gradient-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Анимация появления слайдов */
.slide {
    animation: fadeInUp 0.6s ease-out both;
}

.slide:nth-child(1) { animation-delay: 0.2s; }
.slide:nth-child(2) { animation-delay: 0.3s; }
.slide:nth-child(3) { animation-delay: 0.4s; }
.slide:nth-child(4) { animation-delay: 0.5s; }
