/* ======================================= */
/* FOOTER SECTION - MOBILE VISIBILITY FIXED */
/* ======================================= */

.main-footer {
    background: linear-gradient(135deg, #2c1810, #1a0d4a);
    color: #ffffff;
    margin-top: 40px; /* Reduced from 80px for better mobile spacing */
    position: relative;
    overflow: hidden;
    
    /* FIXED: Ensure footer is always visible on mobile */
    display: block !important;
    visibility: visible !important;
    z-index: 100;
    
    /* Original Scroll Fade Animation Properties */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(128, 0, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 177, 78, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer visible state */
.main-footer.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Progressive fade states for smoother animation */
.main-footer.fade-partial {
    opacity: 0.3;
    transform: translateY(30px);
}

.main-footer.fade-almost {
    opacity: 0.7;
    transform: translateY(15px);
}

/* ======================================= */
/* FOOTER CONTAINER - MOBILE OPTIMIZED */
/* ======================================= */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-start;
    
    /* Original Working Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.2s,
                transform 0.6s ease-out 0.2s;
}

.footer-links:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    /* Original Working Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.4s,
                transform 0.6s ease-out 0.4s;
}

.footer-links:nth-child(3) {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    /* Original Working Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.6s,
                transform 0.6s ease-out 0.6s;
}

/* ======================================= */
/* COMPANY INFO SECTION */
/* ======================================= */

.company-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 10px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.company-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    
    /* Initially hide all logos */
    display: none;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.6s ease-out 0.1s,
                transform 0.6s ease-out 0.1s;
}

/* Theme-aware logo visibility */
body:not([data-theme="dark"]) .light-logo {
    display: block;
}

body:not([data-theme="dark"]) .dark-logo {
    display: none !important;
}

body[data-theme="dark"] .light-logo {
    display: none !important;
}

body[data-theme="dark"] .dark-logo {
    display: block;
}

/* Default fallback */
body .light-logo {
    display: block;
}

body .dark-logo {
    display: none;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s,
                transform 0.6s ease-out 0.3s;
}

.logo-container:hover .company-logo-img {
    transform: scale(1.05);
}

.logo-container:hover .logo-text {
    background: linear-gradient(135deg, #a855f7, #FFB14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-logo .logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    padding: 0;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #800080, #FFB14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-transform: uppercase;
    display: block;
}

.company-logo .logo-subtitle {
    font-size: 0.85rem;
    color: #cccccc;
    margin: 6px 0 0 2px;
    padding: 0;
    letter-spacing: 0.25em;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.9;
    display: block;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.75rem;
    color: #999999;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.contact-value {
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Ensure address text aligns left */
.contact-value p {
    text-align: left;
    margin: 0;
}

.contact-value:hover {
    color: #FFB14E;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #800080, #FFB14E);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 128, 0.3);
}

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

.links-title {
    font-size: 1rem;
    color: #FFB14E;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 2px solid #800080;
    padding-bottom: 8px;
    display: inline-block;
}

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

.links-list a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.links-list a:hover {
    color: #FFB14E;
    padding-left: 8px;
}

.links-list a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #800080;
    transition: width 0.3s ease;
}

.links-list a:hover::before {
    width: 6px;
}

/* ======================================= */
/* AWARDS SECTION */
/* ======================================= */

.awards-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.8s,
                transform 0.6s ease-out 0.8s;
}

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.award-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s ease-out,
                opacity 0.4s ease-out,
                transform 0.4s ease-out;
}

.award-badge:nth-child(1) { transition-delay: 1.2s; }
.award-badge:nth-child(2) { transition-delay: 1.3s; }
.award-badge:nth-child(3) { transition-delay: 1.4s; }
.award-badge:nth-child(4) { transition-delay: 1.5s; }
.award-badge:nth-child(5) { transition-delay: 1.6s; }

.badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #FFB14E;
    background: linear-gradient(135deg, rgba(128, 0, 128, 0.2), rgba(255, 177, 78, 0.1));
}

.clutch-badge {
    border-color: #FF6B6B;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
}

.trustpilot-badge {
    border-color: #00B67A;
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.2), rgba(0, 182, 122, 0.1));
}

.appfutura-badge {
    border-color: #FF4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
}

.google-badge {
    border-color: #4285F4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.1));
}

.badge-content {
    text-align: center;
    color: #ffffff;
}

.badge-content i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.rating-number {
    font-size: 2rem;
    font-weight: 800;
    color: #00B67A;
    line-height: 1;
}

.badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stars {
    color: #FFD700;
    font-size: 0.8rem;
    margin: 2px 0;
}

/* ======================================= */
/* COPYRIGHT SECTION */
/* ======================================= */

.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 0;
    
    /* FIXED: Ensure copyright is always visible */
    display: block !important;
    visibility: visible !important;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 1s,
                transform 0.6s ease-out 1s;
}

.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.copyright-text {
    font-size: 0.85rem;
    color: #999999;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.clients-text {
    font-size: 0.8rem;
    color: #777777;
    margin: 0;
    font-style: italic;
}

/* ======================================= */
/* ANIMATION TRIGGERS */
/* ======================================= */

.main-footer.fade-in .footer-company,
.main-footer.fade-in .footer-links:nth-child(2),
.main-footer.fade-in .footer-links:nth-child(3),
.main-footer.fade-in .awards-section,
.main-footer.fade-in .footer-bottom {
    opacity: 1;
    transform: translateY(0);
}

.main-footer.fade-in .company-logo-img,
.main-footer.fade-in .logo-text-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.main-footer.fade-in .award-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.main-footer.fade-in .award-badge:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ======================================= */
/* MOBILE VISIBILITY FIXES */
/* ======================================= */

/* Force footer visibility on all devices */
@media (max-width: 1024px) {
    .main-footer {
        margin-top: 30px;
        display: block !important;
        visibility: visible !important;
        position: relative;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 20px;
        transform: translateY(30px);
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 100 !important;
        
        /* Force footer to appear */
        opacity: 1 !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 20px;
    }
    
    .footer-company {
        align-items: center;
        text-align: center;
        gap: 30px;
        transform: translateY(20px);
        transition-delay: 0.1s;
    }
    
    .company-logo {
        align-items: center;
        text-align: center;
    }
    
    .company-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-container {
        gap: 12px;
    }
    
    .company-logo .logo-text {
        font-size: 2.5rem;
        letter-spacing: 0.08em;
    }
    
    .company-logo .logo-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        margin: 6px 0 0 0;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        align-items: center;
        text-align: center;
    }

    /* Left-align only the address block on mobile */
    .contact-info .contact-item:nth-child(3),
    .contact-info .contact-item:nth-child(3) .contact-value,
    .contact-info .contact-item:nth-child(3) .contact-value p {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links:nth-child(2) {
        transition-delay: 0.2s;
        align-items: center;
        text-align: center;
    }
    
    .footer-links:nth-child(3) {
        transition-delay: 0.3s;
        align-items: center;
        text-align: center;
    }
    
    .awards-section {
        transition-delay: 0.4s;
    }
    
    .footer-bottom {
        transition-delay: 0.5s;
        display: block !important;
        visibility: visible !important;
    }
    
    .awards-container {
        gap: 25px;
        padding: 0 20px;
    }
    
    .badge-circle {
        width: 70px;
        height: 70px;
    }
    
    .copyright-container {
        padding: 0 20px;
    }
    
    .award-badge {
        transition-delay: 0.6s;
    }
    
    .award-badge:nth-child(1) { transition-delay: 0.6s; }
    .award-badge:nth-child(2) { transition-delay: 0.7s; }
    .award-badge:nth-child(3) { transition-delay: 0.8s; }
    .award-badge:nth-child(4) { transition-delay: 0.9s; }
    .award-badge:nth-child(5) { transition-delay: 1s; }
}

@media (max-width: 600px) {
    .main-footer {
        margin-top: 15px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-container {
        padding: 30px 15px 15px;
        gap: 35px;
    }
    
    .footer-company {
        gap: 25px;
    }
    
    .company-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-container {
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text-container {
        align-items: center;
    }
    
    .company-logo .logo-text {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
    
    .company-logo .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        margin: 8px 0 0 0;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-value {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .awards-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .badge-circle {
        width: 65px;
        height: 65px;
    }
    
    .badge-content i {
        font-size: 1.3rem;
    }
    
    .badge-text {
        font-size: 0.55rem;
    }
    
    .copyright-container {
        padding: 0 15px;
    }
    
    .copyright-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .clients-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        margin-top: 10px;
        min-height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 999 !important;
    }
    
    .footer-bottom {
        padding: 20px 0;
        display: block !important;
        visibility: visible !important;
    }
}

/* ======================================= */
/* LIGHT THEME OVERRIDES */
/* ======================================= */

body:not([data-theme="dark"]) .main-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333333;
}

body:not([data-theme="dark"]) .main-footer::before {
    background: radial-gradient(circle at 20% 80%, rgba(128, 0, 128, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 177, 78, 0.05) 0%, transparent 50%);
}

body:not([data-theme="dark"]) .company-logo .logo-text {
    -webkit-text-fill-color: transparent;
    color: #333333;
}

body:not([data-theme="dark"]) .company-logo .logo-subtitle {
    color: #666666;
}

body:not([data-theme="dark"]) .contact-value {
    color: #333333;
}

body:not([data-theme="dark"]) .contact-label {
    color: #666666;
}

body:not([data-theme="dark"]) .links-list a {
    color: #555555;
}

body:not([data-theme="dark"]) .social-link {
    background: rgba(128, 0, 128, 0.1);
    color: #333333;
    border-color: rgba(128, 0, 128, 0.2);
}

body:not([data-theme="dark"]) .awards-section {
    background: rgba(128, 0, 128, 0.05);
    border-color: rgba(128, 0, 128, 0.1);
}

body:not([data-theme="dark"]) .badge-content {
    color: #333333;
}

body:not([data-theme="dark"]) .footer-bottom {
    background: rgba(128, 0, 128, 0.08);
}

body:not([data-theme="dark"]) .copyright-text {
    color: #666666;
}

body:not([data-theme="dark"]) .clients-text {
    color: #888888;
}

/* ======================================= */
/* FORCE FOOTER VISIBILITY - FINAL OVERRIDE */
/* ======================================= */

/* Ensure footer is never hidden on any device */
.main-footer,
.footer-bottom,
.awards-section,
.copyright-container {
    display: block !important;
    visibility: visible !important;
}

/* Mobile specific final override */
@media (max-width: 768px) {
    .main-footer {
        position: relative !important;
        z-index: 1000 !important;
        margin-top: 0 !important;
        padding-top: 30px !important;
    }
}
/* ======================================= */
/* AGGRESSIVE MOBILE FOOTER VISIBILITY FIX */
/* ======================================= */

/* Remove problematic min-height from all sections on mobile */
@media (max-width: 768px) {
    /* Force remove min-height from all sections */
    .contact-section,
    .careers-section,
    .hero-section,
    .introduction-section,
    .projects-section,
    section {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Specific contact section fix */
    .contact-section {
        min-height: auto !important;
        height: auto !important;
        padding: 40px 20px 20px 20px !important;
        margin-bottom: 0 !important;
    }
    
    /* Force body layout */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto !important;
        min-height: 100vh;
    }
    
    body {
        display: flex !important;
        flex-direction: column !important;
    }
    
    main {
        flex: 1 0 auto !important;
    }
    
    /* Force footer to bottom and make visible */
    .main-footer {
        flex-shrink: 0 !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
        position: relative !important;
        z-index: 9999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        
        /* Override any conflicting styles */
        background: linear-gradient(135deg, #2c1810, #1a0d4a) !important;
        color: #ffffff !important;
        width: 100% !important;
        min-height: 200px !important;
    }
    
    .footer-container {
        padding: 30px 20px 20px 20px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .footer-company,
    .footer-links,
    .awards-section,
    .footer-bottom {
        opacity: 1 !important;
        transform: translateY(0) !important;
        display: block !important;
        visibility: visible !important;
    }
}

/* Extra aggressive fix for very small screens */
@media (max-width: 480px) {
    .contact-section {
        padding: 30px 15px 15px 15px !important;
        min-height: auto !important;
    }
    
    .main-footer {
        margin-top: 0 !important;
        padding-top: 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10000 !important;
        min-height: 150px !important;
    }
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .contact-section {
            min-height: auto !important;
            height: auto !important;
        }
        
        .main-footer {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            z-index: 99999 !important;
        }
    }
}
