/**
 * Footer Styles - TransMind Project
 * Professional footer styling and animations
 */

/* Footer Base Styles */
.footer {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4dd0e1, #26c6da, #00bcd4);
}

/* Footer Top Section - Left-Right Layout */
.footer-top-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 0;
    border-bottom: 1px solid rgba(77, 208, 225, 0.2);
    margin-bottom: 35px;
}

.footer-brand-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-right: 20px;
}

.footer-brand-left .d-flex {
    margin-bottom: 15px;
}

.footer-brand-left .logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
}

.footer-brand-left .brand-text h4 {
    font-size: 1.9rem;
    margin-bottom: 5px;
    color: #4dd0e1;
    font-weight: 700;
    line-height: 1.1;
}

.footer-brand-left .brand-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.footer-top-section .footer-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    margin: 0;
    padding-left: 20px;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-brand .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-brand .brand-text h4 {
    color: #4dd0e1;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-brand .brand-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer Section Titles */
.footer-section-title {
    color: #4dd0e1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(77, 208, 225, 0.3);
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #4dd0e1, #26c6da);
    transition: width 0.3s ease;
}

.footer-section-title:hover::after {
    width: 100%;
}

.footer-section-title i {
    color: #26c6da;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer-section-title:hover i {
    color: #4dd0e1;
    transform: scale(1.1);
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #4dd0e1;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-link i {
    width: 16px;
    font-size: 0.9rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tech-item:hover {
    background: rgba(77, 208, 225, 0.1);
    transform: translateX(5px);
}

.tech-item i {
    color: #4dd0e1;
    font-size: 1.1rem;
    width: 20px;
}

.tech-item span {
    color: rgba(255, 255, 255, 0.8);
}

/* TÜBİTAK Banner */
.tubitak-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0 30px;
    transition: all 0.3s ease;
}

.tubitak-banner:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 188, 212, 0.3);
    transform: translateY(-2px);
}

.tubitak-logo i {
    color: #4dd0e1;
    margin-bottom: 10px;
}

.tubitak-info h5 {
    color: #4dd0e1;
    font-weight: 600;
    margin-bottom: 10px;
}

.tubitak-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.status-badge {
    background: linear-gradient(45deg, #8bc34a, #4caf50);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Divider */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.5), transparent);
    margin: 30px 0 20px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.copyright small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Social Media Bottom */
.social-media-bottom h6 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    color: #ffffff;
    background: rgba(77, 208, 225, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(77, 208, 225, 0.3);
}

/* Footer Buttons */
.footer-btn {
    background: linear-gradient(45deg, #4dd0e1, #26c6da);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 5px;
}

.footer-btn:hover {
    background: linear-gradient(45deg, #26c6da, #00bcd4);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 208, 225, 0.4);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #1a237e, #283593);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.scroll-to-top:hover {
    background: linear-gradient(45deg, #283593, #3949ab);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-top-section {
        padding: 25px 0;
        margin-bottom: 35px;
    }

    .footer-brand-left .brand-text h4 {
        font-size: 1.9rem;
    }

    .footer-brand-left .brand-tagline {
        font-size: 0.95rem;
    }

    .footer-brand-left .logo {
        width: 60px;
        height: 60px;
    }

    .footer-top-section .footer-description {
        font-size: 0.95rem;
        line-height: 1.5;
        padding-left: 20px;
        letter-spacing: 0.2px;
        max-height: 80px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-top-section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .footer-top-section .row {
        text-align: center;
    }

    .footer-brand-left .d-flex {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-brand-left .brand-text h4 {
        font-size: 1.6rem;
    }

    .footer-brand-left .brand-tagline {
        font-size: 0.9rem;
    }

    .footer-brand-left .logo {
        width: 50px;
        height: 50px;
    }

    .footer-top-section .footer-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-left: 0;
        text-align: center;
    }

    .tech-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .tech-item {
        padding: 8px 10px;
        font-size: 0.9rem;
        flex: 1 1 45%;
        max-width: 45%;
    }

    .tubitak-banner {
        padding: 20px 15px;
        text-align: center;
    }

    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 15px;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .footer-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 2px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .footer-top-section {
        padding: 25px 10px;
        margin-bottom: 25px;
    }

    .footer-brand-left .brand-text h4 {
        font-size: 1.4rem;
    }

    .footer-brand-left .brand-tagline {
        font-size: 0.85rem;
    }

    .footer-brand-left .logo {
        width: 45px;
        height: 45px;
    }

    .footer-top-section .footer-description {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 5px;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .tubitak-info h5 {
        font-size: 1rem;
    }

    .tubitak-info p {
        font-size: 0.85rem;
    }
}
