/* Footer Styles */
.footer {
  position: relative;
  z-index: 10;
  background: #28282a;
  border-top: 1px solid rgba(107, 124, 225, 0.3);
  padding: 48px 0 32px 0;
  margin-top: 8px;
  height: fit-content;
  border-radius: 35px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); */
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(107, 124, 225, 0.2);
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 124, 225, 0.15);
    border-color: rgba(107, 124, 225, 0.4);
}

.footer-title {
    color: #6b7ce1;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6b7ce1, #4f46e5);
    border-radius: 2px;
}

.footer-text {
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-text:last-child {
    margin-bottom: 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6b7ce1;
    transition: all 0.3s ease;
    transform: translateX(-5px);
    opacity: 0;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-nav a:hover::before {
    transform: translateX(0);
    opacity: 1;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.footer-contact .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #6b7ce1;
    flex-shrink: 0;
}

.footer-contact a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(107, 124, 225, 0.2);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(107, 124, 225, 0.1);
    border-color: rgba(107, 124, 225, 0.3);
}

/* Telegram Icon */
.icon-telegram::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7ce1'%3E%3Cpath d='M12 0C5.374 0 0 5.373 0 12s5.374 12 12 12 12-5.373 12-12S18.626 0 12 0zm5.568 8.16l-1.61 7.56c-.12.56-.44.7-.9.44l-2.47-1.82-1.19 1.14c-.13.13-.24.24-.5.24l.18-2.51 4.62-4.18c.2-.18-.04-.28-.32-.1L9.37 11.9l-2.43-.76c-.53-.16-.54-.53.11-.79l9.49-3.66c.44-.16.83.11.68.79z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

/* Email Icon */
.icon-email::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7ce1'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

/* Dark theme support */
.dark-theme .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark-theme .footer-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 124, 225, 0.3);
}

.dark-theme .footer-section:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 24px 0;
        margin-top: 60px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .footer-section {
        padding: 20px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .footer-text,
    .footer-nav a,
    .footer-contact a {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 12px;
    }

    .footer-section {
        padding: 16px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-text,
    .footer-nav a,
    .footer-contact a {
        font-size: 13px;
    }

    .footer-nav a {
        padding-left: 16px;
    }

    .footer-contact .contact-icon {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover effects for the entire footer */
.footer:hover .footer-section:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

.footer-section:hover {
    opacity: 1 !important;
    transform: scale(1.02) translateY(-2px) !important;
}
