/* ==========================================================================
   SITE FOOTER - MODERN UNIFIED DESIGN
   Consistent footer across all pages with page-specific gradients
   Version: 2.0 - Compact spacing, no newsletter, redesigned copyright
   ========================================================================== */

/* ========================================
   FOOTER MAIN STRUCTURE
   ======================================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, #0a0f1e 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 20%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(59, 130, 246, 0.4) 80%, 
        transparent 100%);
}

/* ========================================
   PAGE-SPECIFIC GRADIENTS
   ======================================== */

/* Home Page - Blue (Updated to match theme) */
.home .site-footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.home .site-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 20%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(59, 130, 246, 0.4) 80%, 
        transparent 100%);
}

/* About Page - Blue */
.about-page .site-footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-page .site-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 20%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(59, 130, 246, 0.4) 80%, 
        transparent 100%);
}

/* Services Page - Green */
.services-page .site-footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Contact Page - Blue (consistent with site theme) */
.contact-page .site-footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-page .site-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 20%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(59, 130, 246, 0.4) 80%, 
        transparent 100%);
}

/* Certificate Verification Page - Amber/Orange */
.verification-page .site-footer::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.verification-page .site-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 158, 11, 0.4) 20%, 
        rgba(245, 158, 11, 0.8) 50%, 
        rgba(245, 158, 11, 0.4) 80%, 
        transparent 100%);
}

/* ========================================
   FOOTER MAIN CONTENT - COMPACT 3 COLUMNS
   ======================================== */
.footer-main {
    padding: 35px 0 30px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget {
    margin-bottom: 24px;
}

/* Company Info Widget */
.footer-company-info .footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-company-info .footer-logo img {
    max-width: 160px;
    height: auto;
}

.footer-company-desc {
    font-size: 0.875rem;
    color: var(--ang-text-secondary, #94a3b8);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-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: 8px;
    color: var(--ang-text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.footer-social-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.3);
    color: #0a66c2;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(193, 53, 132, 0.15));
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.footer-social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.footer-social-link.github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #f1f5f9;
}

.footer-social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

/* Widget Titles */
.footer-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ang-text-heading, #f1f5f9);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, transparent 100%);
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--ang-text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 18px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    color: #60a5fa;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 22px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Services Links */
.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.footer-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ang-text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-service-item i {
    font-size: 0.625rem;
    color: #60a5fa;
    transition: color 0.3s ease;
}

.footer-service-item:hover {
    color: #60a5fa;
    transform: translateX(3px);
}

.footer-service-item:hover i {
    color: #3b82f6;
}

/* Contact Info */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

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

.footer-contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.footer-contact-icon i {
    font-size: 0.875rem;
    color: #60a5fa;
}

.footer-contact-content {
    flex: 1;
}

.footer-contact-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--ang-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.footer-contact-value {
    font-size: 0.875rem;
    color: var(--ang-text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   FOOTER BOTTOM / COPYRIGHT - REDESIGNED
   ======================================== */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.footer-copyright-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright-divider {
    color: rgba(59, 130, 246, 0.3);
    margin: 0 4px;
}

.footer-copyright-designer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright-designer:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.footer-copyright-designer i {
    font-size: 0.875rem;
    color: #60a5fa;
}

.footer-copyright a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.footer-bottom-link:hover {
    color: #60a5fa;
}

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

/* ========================================
   LIGHT THEME
   ======================================== */
[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .site-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 20%, 
        rgba(59, 130, 246, 0.6) 50%, 
        rgba(59, 130, 246, 0.3) 80%, 
        transparent 100%);
}

[data-theme="light"] .footer-main {
    border-top-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(59, 130, 246, 0.12);
    background: transparent;
}

[data-theme="light"] .footer-social-link,
[data-theme="light"] .footer-contact-icon {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .footer-copyright {
    color: #475569;
}

[data-theme="light"] .footer-copyright-year {
    color: #334155;
}

[data-theme="light"] .footer-copyright-divider {
    color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .footer-copyright-designer {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #334155;
}

[data-theme="light"] .footer-copyright-designer:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .footer-copyright-designer i {
    color: #3b82f6;
}

[data-theme="light"] .footer-copyright a {
    color: #3b82f6;
}

[data-theme="light"] .footer-copyright a:hover {
    color: #2563eb;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 991px) {
    .footer-main {
        padding: 30px 0 25px;
    }

    .footer-widget {
        margin-bottom: 28px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 767px) {
    .footer-main {
        padding: 28px 0 24px;
    }

    .footer-widget {
        margin-bottom: 24px;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        font-size: 0.813rem;
    }
    
    .footer-copyright-designer {
        padding: 5px 12px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 16px;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-company-info {
        text-align: center;
    }

    .footer-company-info .footer-logo {
        margin-bottom: 14px;
    }

    .footer-copyright-designer {
        padding: 5px 14px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .footer-widget-title {
        font-size: 0.9375rem;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }

    .footer-contact-item {
        gap: 10px;
    }

    .footer-contact-icon {
        width: 34px;
        height: 34px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}
