/* ======================
   Footer Styles
   ====================== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 6rem 0 0;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 1rem;
}

.footer-widget-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.5rem;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.contact-info-list i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.contact-info-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-list a:hover {
    color: white;
}

/* Newsletter */
.newsletter-form {
    margin-top: 1.5rem;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Social Links */
.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-menu li {
    display: inline-block;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-menu {
        margin-top: 1rem;
    }
}

/* Floating Elements */
.footer-floating-element {
    position: absolute;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 1;
}

.footer-floating-element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.footer-floating-element-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Brand Section */
.footer-brand {
    flex: 1 1 300px;
    max-width: 400px;
}

.footer .logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer .logo-link:hover {
    transform: translateX(5px);
}

.footer .logo-img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    object-fit: contain;
}

.footer .logo-text {
    display: flex;
    flex-direction: column;
}

.footer .logo-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.footer .logo-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    flex: 2 1 500px;
    justify-content: space-between;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-group {
    min-width: 160px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal span {
    color: #475569;
    font-size: 0.8rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-content {
        gap: 2rem;
    }
    
    .footer-links {
        padding-left: 0;
        border-left: none;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .footer-links-group {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 2.5rem;
    }
    
    .footer .logo-main {
        font-size: 1.5rem;
    }
    
    .footer .logo-sub {
        font-size: 0.8rem;
    }
    
    .footer p {
        font-size: 1rem;
    }
    
    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.25rem 0;
    }
    
    .footer-bottom p,
    .footer-legal a {
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Add animation to social icons */
.social-links a {
    animation: float 6s ease-in-out infinite;
}

.social-links a:nth-child(2) {
    animation-delay: 0.2s;
}

.social-links a:nth-child(3) {
    animation-delay: 0.4s;
}

.social-links a:nth-child(4) {
    animation-delay: 0.6s;
}
