/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #05182d 0%, #05182d 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Footer Background Pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Mobile Portrait Layout */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        text-align: center;
    }
}

/* Footer Section */
.footer-section {
    position: relative;
}

/* Mobile Footer Section Styling */
@media (max-width: 768px) {
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.footer-section h3::after {
    display: none;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
    position: relative;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

/* Mobile Footer Links */
@media (max-width: 768px) {
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    position: relative;
}

/* Mobile Footer Links List Items */
@media (max-width: 768px) {
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ecf0f1;
    padding-left: 15px;
}

.footer-section ul li a:hover::before {
    width: 10px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
    margin-left: 0;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    background: linear-gradient(135deg, #05182d, #05182d);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Mobile Optimizations for Social Icons */
@media (max-width: 768px) {
    .social-icons {
        gap: 1rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0;
        margin-left: 0;
    }
    
    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0;
        margin-left: 0;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .social-icons a:hover {
        transform: translateY(-2px) scale(1.05);
    }
}

@media (max-width: 360px) {
    .social-icons {
        gap: 0.6rem;
        margin-bottom: 1rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0;
        margin-left: 0;
    }
    
    .social-icons a {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: transparent;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.newsletter-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
    position: relative;
}

.newsletter-section p {
    color: #bdc3c7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: #e74c3c;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.newsletter-form button:hover::before {
    left: 100%;
}

.newsletter-form button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.newsletter-form button:active {
    transform: translateY(-1px);
}

.newsletter-form button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
        padding: 0;
        margin-left: 0;
    }
    
    .newsletter-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .newsletter-section {
        padding: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
}

/* Animation for footer appearance */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    animation: slideUpFade 0.8s ease-out;
}

/* Hover effect for entire footer */
.footer:hover {
    background: linear-gradient(135deg, #05182d 0%, #05182d 100%);
}

/* Scroll indicator */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #05182d, #e74c3c, #27ae60);
    border-radius: 0 0 4px 4px;
    opacity: 0.7;
}
