@charset "UTF-8";

/**
 * Modern Apple-Style Footer
 * 
 * Purpose: Clean, minimal footer design inspired by Apple
 * Features:
 * - Responsive grid layout
 * - Clean typography
 * - Smooth animations
 * - Modern spacing
 * - Payment gateway showcase
 * - Social media integration
 * 
 * @version 1.0.0
 * @date 2026-01-25
 */

/* ============================================================
   FOOTER CONTAINER
   ============================================================ */

.nx-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 50%, #fafafa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5rem 0 2.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.nx-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.2), transparent);
}

.nx-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(13, 110, 253, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .nx-footer {
        padding: 3.5rem 0 1.5rem;
        margin-top: 2rem;
    }
    
    .nx-footer-grid {
        gap: 2.5rem 1.5rem;
    }
}

/* ============================================================
   FOOTER CONTENT GRID
   ============================================================ */

.nx-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nx-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3.5rem 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .nx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .nx-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   FOOTER WIDGET
   ============================================================ */

.nx-footer-widget {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.nx-footer-widget::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nx-footer-widget:hover::before {
    opacity: 1;
}

.nx-footer-widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
}

.nx-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--bs-primary, #0d6efd);
    border-radius: 2px;
}

/* ============================================================
   FOOTER LOGO & COMPANY INFO
   ============================================================ */

.nx-footer-company {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .nx-footer-company {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .nx-footer-company {
        grid-column: span 1;
    }
}

.nx-footer-logo {
    margin-bottom: 1.5rem;
}

.nx-footer-logo a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.nx-footer-logo a {
    transition: all 0.3s ease;
}

.nx-footer-logo a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.nx-footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: all 0.3s ease;
}

.nx-footer-logo:hover img {
    filter: drop-shadow(0 4px 16px rgba(13, 110, 253, 0.2));
}

.nx-footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 1.5rem;
}

.nx-footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nx-footer-address-item:hover {
    background: rgba(13, 110, 253, 0.03);
    padding-left: 0.75rem;
}

.nx-footer-address-item:last-child {
    margin-bottom: 0;
}

.nx-footer-address-item:last-child::after {
    display: none;
}

.nx-footer-address-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--bs-primary, #0d6efd);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.nx-footer-address-item:hover .nx-footer-address-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nx-footer-address-text {
    flex: 1;
    color: #6e6e73;
}

.nx-footer-address-text a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nx-footer-address-text a:hover {
    color: var(--bs-primary, #0d6efd);
    padding-left: 4px;
}

.nx-footer-address-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bs-primary, #0d6efd);
    transition: width 0.3s ease;
}

.nx-footer-address-text a:hover::after {
    width: 100%;
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */

.nx-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.nx-footer-links li {
    position: relative;
}

.nx-footer-link {
    font-size: 0.875rem;
    color: #6e6e73;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
    position: relative;
    padding: 0.25rem 0;
}

.nx-footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bs-primary, #0d6efd);
    transition: width 0.3s ease;
}

.nx-footer-link:hover {
    color: var(--bs-primary, #0d6efd);
    padding-left: 4px;
}

.nx-footer-link:hover::after {
    width: 100%;
}

/* ============================================================
   SOCIAL MEDIA LINKS
   ============================================================ */

.nx-footer-social {
    margin-top: 1rem;
}

.nx-footer-social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nx-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nx-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 247, 0.9));
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nx-footer-social-link:hover {
    background: var(--bs-primary, #0d6efd);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* Platform-specific hover colors */
.nx-footer-social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.nx-footer-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.3);
}

.nx-footer-social-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
}

.nx-footer-social-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.nx-footer-social-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.nx-footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* ============================================================
   PAYMENT METHODS
   ============================================================ */

.nx-footer-payments {
    margin-top: 1.5rem;
}

.nx-footer-payments-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nx-footer-payments-grid {
    display: block;
    width: 100%;
}

.nx-footer-payment-item {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    backdrop-filter: none;
    overflow: hidden;
}

.nx-footer-payment-item:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.1);
    background: transparent;
}

.nx-footer-payment-img {
    width: 100%;
    max-width: 100%;
    max-height: 50px;
    height: auto;
    display: block;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 576px) {
    .nx-footer-payment-img {
        max-height: 40px;
    }
}

.nx-footer-payment-item:hover .nx-footer-payment-img {
    filter: grayscale(0);
    transform: scale(1.01);
}

/* Ensure payment widget spans full width */
.nx-footer-widget[style*="grid-column"] {
    grid-column: 1 / -1 !important;
    width: 100%;
}

@media (max-width: 991px) {
    .nx-footer-widget[style*="grid-column"] {
        grid-column: 1 / -1 !important;
    }
}

/* ============================================================
   FOOTER COPYRIGHT
   ============================================================ */

.nx-footer-copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
    margin-top: 3rem;
    position: relative;
}

.nx-footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--bs-primary, #0d6efd);
}

.nx-footer-copyright-content {
    text-align: center;
    font-size: 0.8125rem;
    color: #6e6e73;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.nx-footer-copyright-link {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.nx-footer-copyright-link:hover {
    color: var(--bs-primary, #0d6efd);
    padding-left: 2px;
}

.nx-footer-copyright-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--bs-primary, #0d6efd);
    transition: width 0.3s ease;
}

.nx-footer-copyright-link:hover::after {
    width: 100%;
}

/* ============================================================
   SUBSCRIBE SECTION
   ============================================================ */

.nx-subscribe-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(13, 110, 253, 0.05) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.nx-subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.3), transparent);
}

@media (max-width: 991px) {
    .nx-subscribe-section {
        padding: 2rem 0;
    }
}

.nx-subscribe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.nx-subscribe-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, 
        var(--bs-primary, #0d6efd) 0%, 
        #6366f1 15%,
        #8b5cf6 30%,
        var(--bs-primary, #0d6efd) 45%,
        #06b6d4 60%,
        var(--bs-primary, #0d6efd) 75%,
        #3b82f6 90%,
        var(--bs-primary, #0d6efd) 100%);
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    position: relative;
    display: inline-block;
}

.nx-subscribe-title::before {
    content: 'Subscribe Now!';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(13, 110, 253, 0.5) 0%, 
        rgba(99, 102, 241, 0.4) 15%,
        rgba(139, 92, 246, 0.35) 30%,
        rgba(13, 110, 253, 0.5) 45%,
        rgba(6, 182, 212, 0.4) 60%,
        rgba(13, 110, 253, 0.5) 75%,
        rgba(59, 130, 246, 0.4) 90%,
        rgba(13, 110, 253, 0.5) 100%);
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    z-index: -1;
    animation: gradient-shift 5s ease infinite;
    opacity: 0.8;
}

.nx-subscribe-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, 
        rgba(13, 110, 253, 0.2) 0%, 
        rgba(99, 102, 241, 0.15) 30%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 70%);
    z-index: -2;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    25% {
        background-position: 50% center;
    }
    50% {
        background-position: 100% center;
    }
    75% {
        background-position: 50% center;
    }
    100% {
        background-position: 0% center;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@media (max-width: 576px) {
    .nx-subscribe-title {
        font-size: 1.75rem;
    }
}

.nx-subscribe-note {
    font-size: 1rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nx-subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .nx-subscribe-form {
        flex-direction: column;
    }
}

.nx-subscribe-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #ffffff;
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nx-subscribe-input:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1), 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.nx-subscribe-input::placeholder {
    color: #86868b;
}

.nx-subscribe-btn {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--bs-primary, #0d6efd);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nx-subscribe-btn::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;
}

.nx-subscribe-btn:hover {
    background: var(--bs-primary, #0d6efd);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.nx-subscribe-btn:hover::before {
    left: 100%;
}

.nx-subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 576px) {
    .nx-footer-widget-title {
        font-size: 0.8125rem;
    }
    
    .nx-footer-link {
        font-size: 0.8125rem;
    }
    
    .nx-footer-address {
        font-size: 0.8125rem;
    }
    
    .nx-subscribe-title {
        font-size: 1.75rem;
    }
    
    .nx-subscribe-note {
        font-size: 0.875rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.nx-footer-link:focus-visible,
.nx-footer-social-link:focus-visible,
.nx-subscribe-btn:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.nx-footer-widget {
    animation: fadeInUp 0.6s ease-out;
}

.nx-footer-widget:nth-child(1) { animation-delay: 0.1s; }
.nx-footer-widget:nth-child(2) { animation-delay: 0.2s; }
.nx-footer-widget:nth-child(3) { animation-delay: 0.3s; }
.nx-footer-widget:nth-child(4) { animation-delay: 0.4s; }
.nx-footer-widget:nth-child(5) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .nx-footer-widget {
        animation: none;
    }
}
