/* ===== RESPONSIVE DVA FOOTER - SYNCSOFT STYLE ===== */

.syncsoft-footer {
    background: var(--syncsoft-dark);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

/* ✅ CRITICAL: Box-sizing for all footer elements */
.syncsoft-footer *,
.syncsoft-footer *::before,
.syncsoft-footer *::after {
    box-sizing: border-box !important;
}

.footer-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.footer-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    filter: blur(40px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* ===== FOOTER MAIN CONTENT ===== */

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding: 60px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Section */
.footer-brand-section {
    max-width: 400px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-logo-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.logo-glow-footer {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--dva-gradient);
    border-radius: 14px;
    opacity: 0.4;
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--syncsoft-white);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--syncsoft-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--syncsoft-gray);
    margin: 0;
}

/* ===== QUICK LINKS SECTION ===== */

.footer-links-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--syncsoft-white);
    margin-bottom: 20px;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--dva-gradient);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--syncsoft-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--dva-primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--syncsoft-white);
    padding-left: 20px;
}

.footer-link:hover::before {
    width: 12px;
}

/* ===== CONTACT INFO SECTION - MOBILE OPTIMIZED ===== */

.footer-contact-section {
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    width: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.contact-icon {
    flex-shrink: 0;
    color: var(--dva-primary);
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--syncsoft-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--syncsoft-white);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    margin: 0;
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: var(--syncsoft-gray);
    line-height: 1.4;
}

.footer-inspired {
    font-size: 12px !important;
}

.highlight-text {
    color: var(--dva-primary);
    font-weight: 600;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--syncsoft-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.social-link:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--dva-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

/* ===== SCROLL TO TOP BUTTON ===== */

.scroll-to-top-modern {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--dva-gradient);
    border: none;
    border-radius: 50%;
    color: var(--syncsoft-white);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
}

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

.scroll-to-top-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets - 1024px and below */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-contact-section {
        grid-column: 1 / -1; /* Span full width */
    }
}

/* Tablets - 768px and below */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 24px 0;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .contact-info {
        gap: 12px;
        max-width: 100%;
    }
    
    .contact-item {
        padding: 12px 16px;
        text-align: left;
        max-width: 100%;
        /* ✅ Ensure proper mobile layout */
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .contact-text {
        text-align: left !important;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .scroll-to-top-modern {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
}

/* ✅ MOBILE PHONES - CRITICAL FIXES (480px and below) */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 12px !important;
    }
    
    .footer-main {
        gap: 20px !important;
        padding: 24px 0 16px 0 !important;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    
    .footer-brand-text {
        align-items: center;
        text-align: center;
    }
    
    .footer-brand-title {
        font-size: 20px !important;
    }
    
    .footer-tagline {
        font-size: 10px !important;
    }
    
    .footer-description {
        text-align: center;
        font-size: 13px !important;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .footer-links {
        gap: 8px !important;
        align-items: center;
    }
    
    .footer-link {
        font-size: 12px !important;
    }
    
    /* ✅ CRITICAL: Contact items mobile layout */
    .contact-info {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .contact-item {
        padding: 10px 12px !important;
        gap: 10px !important;
        /* ✅ Force horizontal layout on mobile */
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }
    
    .contact-icon {
        margin-top: 1px !important;
        width: 14px !important;
        flex-shrink: 0 !important;
        font-size: 14px !important;
    }
    
    .contact-text {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: left !important;
    }
    
    .contact-label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }
    
    .contact-value {
        font-size: 12px !important;
        line-height: 1.3 !important;
        /* ✅ Better text wrapping */
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin: 0 !important;
    }
    
    .footer-social {
        gap: 8px !important;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    .footer-copyright p {
        font-size: 11px !important;
        text-align: center;
    }
    
    .footer-inspired {
        font-size: 9px !important;
    }
    
    .scroll-to-top-modern {
        bottom: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* ✅ EXTRA SMALL MOBILE - 360px and below */
@media (max-width: 360px) {
    .footer-container {
        padding: 0 8px !important;
    }
    
    .footer-main {
        gap: 16px !important;
        padding: 20px 0 12px 0 !important;
    }
    
    .footer-brand-title {
        font-size: 18px !important;
    }
    
    .footer-description {
        font-size: 12px !important;
        padding: 0 2px;
    }
    
    .footer-section-title {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    .contact-item {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .contact-icon {
        width: 12px !important;
        font-size: 12px !important;
    }
    
    .contact-value {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .footer-bottom {
        padding: 12px 0 !important;
    }
    
    .social-link {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .footer-copyright p {
        font-size: 10px !important;
    }
}

/* ===== LANDSCAPE MODE FOR MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .footer-main {
        padding: 16px 0 12px 0 !important;
        gap: 16px !important;
    }
    
    .scroll-to-top-modern {
        bottom: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .scroll-to-top-modern,
    .footer-social,
    .footer-bg-effects {
        display: none;
    }
    
    .footer-main {
        display: block;
    }
    
    .footer-brand-section,
    .footer-links-section,
    .footer-contact-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .logo-glow-footer,
    .social-link::before,
    .scroll-to-top-modern,
    .contact-item {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .footer-main {
        border-bottom: 2px solid #FFFFFF;
    }
    
    .contact-item,
    .social-link {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: light) {
    .syncsoft-footer {
        background: #1a1f2e; /* Force dark footer even in light mode */
    }
}
