/* ==================== FOOTER STYLES ==================== */

.footer-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    overflow: hidden;
}

/* Background overlay with subtle pattern */
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Logo and Brand Section */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo-container {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-logo-container:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.footer-logo-container:hover .footer-logo {
    filter: brightness(1.4) drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.footer-tagline {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Description Section */
.footer-description {
    margin-bottom: 2.5rem;
    padding: 0 2rem;
}

.footer-description p {
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Section */
.footer-social {
    margin-bottom: 2.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00c300 0%, #00b300 100%);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: linear-gradient(135deg, #00b300 0%, #009900 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 195, 0, 0.4);
}

.social-link i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.social-text {
    font-weight: 600;
}

/* Divider */
.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Bottom Section */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-copyright {
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-legal {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Floating Particles Animation */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
    background: rgba(147, 51, 234, 0.5);
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 20s;
    background: rgba(0, 195, 0, 0.4);
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 8s;
    animation-duration: 14s;
    background: rgba(59, 130, 246, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .footer-logo {
        width: 90px;
        height: 90px;
    }
    
    .footer-title {
        font-size: 2.4rem;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .footer-logo {
        width: 75px;
        height: 75px;
    }
    
    .footer-title {
        font-size: 2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-section {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-logo {
        width: 70px;
        height: 70px;
    }
    
    .footer-title {
        font-size: 1.9rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-description p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .social-link {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .footer-section {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2rem;
    }
    
    .footer-brand {
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-container {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-title {
        font-size: 1.7rem;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
    }
    
    .footer-description {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .footer-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
    
    .footer-divider {
        width: 80px;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .footer-section {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-description p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .social-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .footer-copyright,
    .footer-legal {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
    
    .footer-legal {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .footer-logo {
        width: 45px;
        height: 45px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-description p {
        font-size: 0.85rem;
    }
    
    .social-link {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .footer-logo-container:hover {
        transform: none;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    }
    
    .social-link:hover {
        transform: none;
        background: linear-gradient(135deg, #00c300 0%, #00b300 100%);
    }
}