:root {
    --primary-color: #2a0044;
    --secondary-color: #4a0080;
    --accent-color: #8000ff;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 255, 255, 0.1));
    --gradient-2: linear-gradient(45deg, #1a0029, #3a0060);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    --button-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--primary-color);
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: var(--gradient-2);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(128, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(74, 0, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(42, 0, 68, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
    background-size: 200% 200%, 200% 200%, 200% 200%, 60px 60px;
    animation: gradientMove 20s ease infinite;
}

.container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.title {
    text-align: center;
    font-size: 4.5rem;
    margin: var(--spacing-lg) 0 var(--spacing-md);
    background: linear-gradient(90deg, #fff, #b19cd9, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 3px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

#apps-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.category-title {
    text-align: center;
    font-size: 2.5rem;
    margin: var(--spacing-lg) 0 var(--spacing-md);
    background: linear-gradient(90deg, #fff, #b19cd9, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    position: relative;
    font-weight: 600;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.category-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        rgba(128, 0, 255, 0.4),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    margin: var(--spacing-xl) 0;
    position: relative;
}

.category-divider::before,
.category-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(128, 0, 255, 0.6);
}

.category-divider::before {
    left: 20%;
}

.category-divider::after {
    right: 20%;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
    place-items: center;
    margin-bottom: 0;
}

.app-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    height: 470px;
    gap: var(--spacing-md);
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--hover-shadow);
}

.app-card h2 {
    font-size: 2rem;
    margin: var(--spacing-sm) 0;
    background: linear-gradient(90deg, #fff, #b19cd9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.icon-wrapper {
    margin: var(--spacing-md) 0;
    position: relative;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--gradient-1);
    border-radius: 32px;
    filter: blur(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.app-card:hover .icon-wrapper::after {
    opacity: 0.6;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(128, 0, 255, 0.2), 
        rgba(74, 0, 128, 0.2),
        rgba(128, 0, 255, 0.2)
    );
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.app-card:hover .gradient-overlay {
    opacity: 1;
    animation: gradientMove 3s ease infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
        transform: scale(1.02);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0 0;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 150% 150%, 30px 30px;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0 0;
    }
}

@media screen and (max-width: 768px) {
    body {
        position: relative;
        overflow-y: auto;
    }

    .container {
        min-height: 0;
        padding: 1rem;
    }

    #apps-container {
        gap: var(--spacing-md);
        padding: var(--spacing-xs);
    }

    .category-title {
        font-size: 2rem;
        margin: var(--spacing-md) 0 var(--spacing-sm);
    }

    .category-divider {
        margin: var(--spacing-lg) 0;
    }

    .apps-grid {
        gap: var(--spacing-sm);
        padding: var(--spacing-xs);
        margin-bottom: 0;
    }

    .app-card {
        padding: var(--spacing-md) var(--spacing-sm);
        height: 420px;
        gap: var(--spacing-sm);
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 25px;
    }

    .icon-wrapper::after {
        width: 100px;
        height: 100px;
        border-radius: 25px;
    }

    .app-card h2 {
        font-size: 1.8rem;
        margin: var(--spacing-xs) 0;
    }

    .button-container {
        padding-top: var(--spacing-xs);
    }

    .app-store-badge,
    .coming-soon {
        width: 200px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .footer {
        margin-top: 0;
        padding: var(--spacing-xs);
    }

    .footer-content {
        gap: var(--spacing-xs);
    }

    .copyright-block {
        padding: var(--spacing-xs);
    }

    .copyright {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }

    .footer-link {
        font-size: 0.85rem;
        padding: var(--spacing-xs) 0;
    }

    .made-with {
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }
}

@media screen and (max-width: 360px) {
    .title {
        font-size: 2.5rem;
    }

    .app-card {
        height: 380px;
        padding: var(--spacing-sm);
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .app-card h2 {
        font-size: 1.5rem;
    }

    .app-store-badge,
    .coming-soon {
        width: 180px;
        padding: var(--spacing-xs);
    }
}

/* Добавляем анимацию появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Обновляем стили футера для более сдержанного вида */
.footer {
    width: 100%;
    background: rgba(42, 0, 68, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-sm);
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    margin-top: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto;
}

.copyright-block {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.4rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.made-with {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Добавляем анимацию для мобильных устройств */
@media (hover: none) {
    .footer-link {
        transition: none;
    }

    .footer-link:active {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

/* Добавляем фиксированный фоновый градиент */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    z-index: -1;
}

/* Медиа-запросы для iOS */
@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }

    .container {
        min-height: 0;
    }
}

/* Добавляем стили для Coming soon */
.coming-soon {
    display: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 250px;
}

.app-card[data-enabled="true"] {
    cursor: pointer;
}

.app-card[data-enabled="true"] .app-store-badge {
    display: flex;
}

.app-card[data-enabled="false"] {
    cursor: default;
}

.app-card[data-enabled="false"] .coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Отключаем hover-эффекты для неактивных приложений */
.app-card[data-enabled="false"]:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.app-card[data-enabled="false"]:hover .app-icon {
    transform: none;
}

/* Контейнер для кнопок */
.button-container {
    margin-top: auto;
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Стили для кнопок */
.app-store-badge,
.coming-soon {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 240px;
    transition: all 0.3s ease;
}

.app-store-badge {
    background: var(--gradient-1);
    box-shadow: var(--button-shadow);
}

.app-store-badge i {
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.app-store-badge span {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.app-card[data-enabled="true"]:hover .app-store-badge {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(128, 0, 255, 0.3), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-card[data-enabled="true"]:hover .app-store-badge i {
    transform: scale(1.1);
}

/* Состояния */
.app-card[data-enabled="true"] {
    cursor: pointer;
}

.app-card[data-enabled="true"] .app-store-badge {
    display: flex;
}

.app-card[data-enabled="false"] {
    cursor: default;
}

.app-card[data-enabled="false"] .coming-soon {
    display: flex;
}

/* Эффекты при наведении */
.app-card[data-enabled="true"]:hover .app-store-badge {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(128, 0, 255, 0.3), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-card[data-enabled="true"]:hover .app-store-badge i {
    transform: scale(1.1);
}

/* Медиа-запросы */
@media screen and (max-width: 768px) {
    .app-card {
        min-height: 350px;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .app-icon {
        width: 120px;
        height: 120px;
    }

    .button-container {
        padding-top: var(--spacing-sm);
    }

    .app-store-badge,
    .coming-soon {
        width: 220px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .app-store-badge i {
        font-size: 1.2rem;
    }

    .app-store-badge span {
        font-size: 0.9rem;
    }
} 

/* Contact Button Styles */
.contact-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.contact-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--button-shadow);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(128, 0, 255, 0.3), 
        rgba(74, 0, 128, 0.3),
        rgba(128, 0, 255, 0.3)
    );
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-button:hover::before {
    opacity: 1;
    animation: gradientMove 2s ease infinite;
}

.contact-button:active {
    transform: translateY(-1px) scale(1.02);
}

.contact-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: var(--card-bg);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.contact-option:hover {
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--hover-shadow);
}

.contact-option:hover::before {
    opacity: 0.3;
}

.contact-option i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-option span {
    position: relative;
    z-index: 1;
}

.contact-option:hover i {
    transform: scale(1.1);
}

.github-option:hover i {
    color: #333;
}

.telegram-option:hover i {
    color: #0088cc;
}

/* Анимация появления опций с задержкой */
.contact-option:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-option:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-menu.active .contact-option:nth-child(1) {
    animation: slideInRight 0.4s ease forwards;
}

.contact-menu.active .contact-option:nth-child(2) {
    animation: slideInRight 0.4s ease 0.1s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 768px) {
    .contact-button-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .contact-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .contact-option {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .contact-option i {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 360px) {
    .contact-button-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .contact-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(128, 0, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(128, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(128, 0, 255, 0);
    }
}

.contact-button.pulse {
    animation: pulse 2s infinite;
} 