/* Contact Page Styles - Redesigned */
.contact-container {
    max-width: 1200px;
    margin: 70px auto 2rem;
    padding: 2rem;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-title {
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4fc3f7, #2979ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content {
    text-align: center;
}

.contact-intro {
    margin-bottom: 3rem;
}

.section-title {
    color: #aaccff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Contact Card Icons - ИСПРАВЛЕНО */
.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* Увеличил размер иконок */
    position: relative;
    transition: all 0.3s ease;
    z-index: 1; /* Убедимся, что иконки поверх анимаций */
}

/* Гарантируем, что иконки видны */
.contact-card-icon i {
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Добавляем тень для лучшей видимости */
}

/* Цвета для кружков с иконками */
.telegram-icon {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.9), rgba(0, 136, 204, 0.7));
    color: white !important; /* Белый цвет для лучшей видимости */
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.discord-icon {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9), rgba(88, 101, 242, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Gmail Icon - ЕДИНСТВЕННЫЙ EMAIL */
.gmail-icon {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.9), rgba(234, 67, 53, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Twitter Icon */
.twitter-icon {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.9), rgba(29, 161, 242, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Facebook Icon */
.facebook-icon {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.9), rgba(24, 119, 242, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* YouTube Icon */
.youtube-icon {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* GitHub Icon */
.github-icon {
    background: linear-gradient(135deg, rgba(24, 23, 23, 0.9), rgba(51, 51, 51, 0.9));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* LinkedIn Icon */
.linkedin-icon {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.9), rgba(0, 119, 181, 0.7));
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Icon Animations - УБЕДИТЕСЬ ЧТО АНИМАЦИИ ПОД ИКОНКАМИ */
.icon-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
    opacity: 0;
    z-index: 0; /* Анимации под иконками */
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.icon-shine {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
    z-index: 0; /* Анимации под иконками */
}

@keyframes shine {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.icon-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: ripple 1.5s infinite;
    z-index: 0; /* Анимации под иконками */
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Gmail Wave Animation */
.icon-gmail-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: gmailWave 2s infinite;
    z-index: 0; /* Анимации под иконками */
}

@keyframes gmailWave {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Twitter Spin Animation */
.icon-twitter-spin {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: twitterSpin 2s linear infinite;
    opacity: 0.3;
    z-index: 0; /* Анимации под иконками */
}

@keyframes twitterSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Contact Card Content */
.contact-card-title {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.contact-card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(79, 195, 247, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(79, 195, 247, 0.5);
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
}

/* Gmail link - ЕДИНСТВЕННЫЙ EMAIL ССЫЛКА */
.gmail-link {
    background: rgba(234, 67, 53, 0.2);
    border-color: rgba(234, 67, 53, 0.5);
}

.twitter-link {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.5);
}

.facebook-link {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.5);
}

.youtube-link {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

.github-link {
    background: rgba(24, 23, 23, 0.2);
    border-color: rgba(24, 23, 23, 0.5);
}

.linkedin-link {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.5);
}

.contact-card-link:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

.gmail-link:hover {
    background: rgba(234, 67, 53, 0.3);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.2);
}

.twitter-link:hover {
    background: rgba(29, 161, 242, 0.3);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 0.3);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.youtube-link:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.github-link:hover {
    background: rgba(24, 23, 23, 0.3);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.2);
}

.linkedin-link:hover {
    background: rgba(0, 119, 181, 0.3);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}

.contact-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.meta-value {
    color: #4fc3f7;
    font-weight: 500;
    font-family: monospace;
    font-size: 0.95rem;
}

/* Contact Details - ИСПРАВЛЕНО: выравнивание текста по левому краю */
.contact-details {
    margin: 4rem 0;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left; /* Выравнивание по левому краю для всех плиток */
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #4fc3f7;
    font-size: 1.2rem;
}

.detail-content h4 {
    color: #aaccff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: left; /* Заголовок по левому краю */
}

.detail-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    text-align: left; /* Текст по левому краю */
}

.detail-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: left; /* Примечание по левому краю */
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Список по левому краю */
}

.support-list li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.2rem;
    text-align: left; /* Элементы списка по левому краю */
}

.support-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4fc3f7;
}

/* Social Connect */
.social-connect {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.connect-title {
    color: #aaccff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.connect-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Social icon colors */
.telegram-social {
    background: linear-gradient(135deg, #0088cc, #00aced);
}

.discord-social {
    background: linear-gradient(135deg, #5865f2, #7289da);
}

.gmail-social {
    background: linear-gradient(135deg, #EA4335, #d44e41);
}

.twitter-social {
    background: linear-gradient(135deg, #1DA1F2, #1A91DA);
}

.facebook-social {
    background: linear-gradient(135deg, #1877f2, #166FE5);
}

.youtube-social {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.github-social {
    background: linear-gradient(135deg, #181717, #333333);
}

.linkedin-social {
    background: linear-gradient(135deg, #0077b5, #006699);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.social-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid;
    animation: wave 2s infinite;
    opacity: 0;
}

/* Social wave colors */
.telegram-social .social-wave {
    border-color: #0088cc;
}

.discord-social .social-wave {
    border-color: #5865f2;
}

.gmail-social .social-wave {
    border-color: #EA4335;
}

.twitter-social .social-wave {
    border-color: #1DA1F2;
}

.facebook-social .social-wave {
    border-color: #1877f2;
}

.youtube-social .social-wave {
    border-color: #FF0000;
}

.github-social .social-wave {
    border-color: #181717;
}

.linkedin-social .social-wave {
    border-color: #0077b5;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-container {
        margin: 60px auto 1rem;
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}