/* =================================================================
   FOOTER STYLES - VelTechLab
   Professional, symmetrical design with dark theme
   ================================================================= */

.footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(11, 17, 32, 1) 100%);
    color: rgba(226, 232, 240, 0.9);
    padding: clamp(2.1rem, 4.2vw, 2.8rem) 0 clamp(0.85rem, 2vw, 1.1rem);
    position: relative;
    overflow: hidden;
}

/* Top gradient line */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 25%, 
        rgba(139, 92, 246, 0.6) 50%, 
        rgba(59, 130, 246, 0.5) 75%, 
        transparent 100%
    );
}

/* Subtle background pattern */
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* =================================================================
   FOOTER MAIN - Two columns layout
   ================================================================= */

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.05rem, 2.2vw, 1.5rem);
    margin-bottom: clamp(0.9rem, 2vw, 1.2rem);
    padding-bottom: clamp(0.9rem, 2vw, 1.2rem);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

@media (min-width: 640px) {
    .footer-main {
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(3rem, 6vw, 5rem);
        align-items: start;
    }
}

/* =================================================================
   FOOTER BRAND
   ================================================================= */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: clamp(0.45rem, 1.1vw, 0.7rem);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.footer-logo-text {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.08rem, 2.1vw, 1.28rem);
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: clamp(0.8rem, 1.6vw, 0.88rem);
    color: rgba(148, 163, 184, 0.85);
    line-height: 1.45;
    max-width: 320px;
    margin: 0;
}

/* =================================================================
   FOOTER CONTACT INFO
   ================================================================= */

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.5vw, 0.35rem);
}

.footer-contact-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.86rem, 1.3vw, 0.92rem);
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
    margin: 0 0 clamp(0.18rem, 0.5vw, 0.3rem) 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(0.73rem, 1.15vw, 0.78rem);
    color: rgba(148, 163, 184, 0.9);
    transition: all 0.3s ease;
    padding: 0;
}

.footer-contact-item:hover {
    color: rgba(226, 232, 240, 1);
    transform: translateX(4px);
}

.footer-contact-item i {
    width: 14px;
    min-width: 14px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #60a5fa;
    font-size: 0.78rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.footer-contact-item a,
.footer-contact-item span {
    display: block;
    line-height: 1.35;
}

.footer-contact-item:hover i {
    transform: translateY(0);
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #60a5fa;
}

/* =================================================================
   FOOTER BOTTOM - Copyright & Links
   ================================================================= */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.1vw, 0.75rem);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: clamp(0.72rem, 1.2vw, 0.78rem);
    color: rgba(148, 163, 184, 0.7);
    margin: 0;
}

.footer-copyright span {
    color: #60a5fa;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.35rem, 0.8vw, 0.55rem);
}

@media (min-width: 640px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.68rem, 1.2vw, 0.73rem);
    color: rgba(148, 163, 184, 0.8);
    text-decoration: none;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: rgba(248, 250, 252, 1);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* =================================================================
   BACK TO TOP BUTTON
   ================================================================= */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(59, 130, 246, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* =================================================================
   RESPONSIVE - Mobile optimizations
   ================================================================= */

@media (max-width: 639px) {
    .footer {
        padding: clamp(1.7rem, 3.8vw, 2.1rem) 0 clamp(0.7rem, 1.7vw, 0.9rem);
    }
    
    .footer-main {
        text-align: center;
        gap: 0.7rem;
        margin-bottom: 0.65rem;
        padding-bottom: 0.75rem;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-tagline {
        max-width: 260px;
        margin: 0 auto;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-contact-item:hover {
        transform: none;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    .footer-logo:hover,
    .footer-contact-item:hover,
    .footer-links a:hover,
    .back-to-top {
        transform: none;
        transition: none;
    }
}
