/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Subtle background pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 110, 253, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(11, 110, 253, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding-block: 0;
    padding-inline: 5%;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    margin-bottom: 30px;
    min-width: 200px;
    flex: 1;
    animation: fadeInUp 0.6s ease-out;
    margin-left: 0;
    margin-right: 0;
}

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

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Animated underline for headings */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0b6efd, #60a5fa);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.footer-column:hover h3::after {
    width: 60px;
}

.footer-column p {
    margin: 8px 0;
    line-height: 1.6;
    transition: color 0.3s ease;
    padding: 0;
}

.footer-column p:hover {
    color: #f8fafc;
}

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

.footer-column ul li {
    margin-bottom: 8px;
    padding: 0;
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 2;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding-left: 0;
    margin: 0;
}

/* Animated arrow on hover */
.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #0b6efd;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 25px;
    transform: translateX(5px);
}

.footer-column ul li a:hover::before {
    left: 0;
    opacity: 1;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.social-icons a {
    color: #8a96a8;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.social-icons a:hover {
    color: #0b6efd;
    transform: translateY(-3px);
}

.social-icons a svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 0;
    padding: 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 25px 5%;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
    margin-top: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95em;
    color: #94a3b8;
    transition: color 0.3s ease;
    padding: 0;
}

.footer-bottom:hover p {
    color: #cbd5e1;
}

/* Loading animation for footer columns */
.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

/* Large Desktops (1920px - 2560px+) */
@media (min-width: 1920px) {
    .footer {
        padding-top: 80px;
    }
    
    .footer-container {
        max-width: 1800px;
        padding-inline: 8%;
        gap: 60px;
    }
    
    .footer-column {
        min-width: 250px;
    }
    
    .footer-column h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .footer-column p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .footer-column ul li a {
        font-size: 1.05rem;
    }
    
    .social-icons a {
        width: 48px;
        height: 48px;
    }
    
    .social-icons a svg {
        width: 34px;
        height: 34px;
    }
    
    .footer-bottom {
        padding: 30px 8%;
        margin-top: 50px;
    }
    
    .footer-bottom p {
        font-size: 1.05rem;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .footer {
        padding-top: 70px;
    }
    
    .footer-container {
        max-width: 1600px;
        padding-inline: 6%;
        gap: 50px;
    }
    
    .footer-column {
        min-width: 220px;
    }
    
    .footer-column h3 {
        font-size: 1.4rem;
        margin-bottom: 22px;
    }
    
    .footer-column p {
        font-size: 1.02rem;
        line-height: 1.7;
    }
    
    .footer-column ul li a {
        font-size: 1.02rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
    }
    
    .social-icons a svg {
        width: 32px;
        height: 32px;
    }
    
    .footer-bottom {
        padding: 28px 6%;
        margin-top: 45px;
    }
    
    .footer-bottom p {
        font-size: 1rem;
    }
}

/* Medium Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .footer {
        padding-top: 50px;
    }
    
    .footer-container {
        padding-inline: 4%;
        gap: 35px;
    }
    
    .footer-column {
        min-width: 180px;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .footer-column p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .footer-column ul li a {
        font-size: 0.95rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .social-icons a svg {
        width: 28px;
        height: 28px;
    }
    
    .footer-bottom {
        padding: 22px 4%;
        margin-top: 35px;
    }
    
    .footer-bottom p {
        font-size: 0.92rem;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        padding-top: 45px;
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        padding-inline: 4%;
        gap: 30px;
    }
    
    .footer-column {
        flex: 1 1 45%;
        min-width: 45%;
        margin-bottom: 25px;
    }
    
    .footer-column h3 {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }
    
    .footer-column p {
        font-size: 0.92rem;
        line-height: 1.5;
    }
    
    .footer-column ul li a {
        font-size: 0.92rem;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
    }
    
    .social-icons a svg {
        width: 26px;
        height: 26px;
    }
    
    .footer-bottom {
        padding: 20px 4%;
        margin-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .footer {
        padding-top: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 25px;
        padding-inline: 5%;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    
    .footer-column h3::after {
        left: 0;
        transform: none;
    }
    
    .footer-column:hover h3::after {
        left: 0;
        transform: none;
    }
    
    .footer-column p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-column ul li a {
        font-size: 0.9rem;
    }
    
    .footer-column ul li a::before {
        display: none;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
        transform: translateX(0);
    }
    
    .social-icons {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
    }
    
    .social-icons a svg {
        width: 26px;
        height: 26px;
    }
    
    .footer-bottom {
        padding: 20px 5%;
        margin-top: 25px;
    }
    
    .footer-bottom p {
        font-size: 0.88rem;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .footer {
        padding-top: 35px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding-inline: 5%;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: left;
        margin-bottom: 15px;
    }
    
    .footer-column h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .footer-column h3::after {
        left: 0;
        transform: none;
        width: 35px;
    }
    
    .footer-column:hover h3::after {
        left: 0;
        transform: none;
        width: 50px;
    }
    
    .footer-column p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 6px 0;
    }
    
    .footer-column ul li {
        margin-bottom: 6px;
    }
    
    .footer-column ul li a {
        font-size: 0.88rem;
        line-height: 1.8;
    }
    
    .footer-column ul li a::before {
        display: none;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
        transform: translateX(0);
    }
    
    .social-icons {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
    }
    
    .social-icons a svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-bottom {
        padding: 18px 5%;
        margin-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .footer {
        padding-top: 30px;
    }
    
    .footer-container {
        padding-inline: 4%;
        gap: 18px;
    }
    
    .footer-column {
        margin-bottom: 12px;
    }
    
    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .footer-column p {
        font-size: 0.82rem;
    }
    
    .footer-column ul li a {
        font-size: 0.82rem;
    }
    
    .social-icons a {
        width: 34px;
        height: 34px;
    }
    
    .social-icons a svg {
        width: 22px;
        height: 22px;
    }
    
    .footer-bottom {
        padding: 16px 4%;
        margin-top: 18px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}