/* Footer Component - Dark Theme (Restored) */

.footer {
    background: radial-gradient(circle at 50% 0%, #020617 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 5rem 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.6fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.75rem;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.1);
    font-size: 1.5rem;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

.company-name-container {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.company-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.text-web { color: #fff; }
.text-dev { color: #93c5fd; }
.text-soft { color: #60a5fa; }

.next-gen-text {
    font-size: .9rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.certification-ids {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.cert-id {
    font-size: .75rem;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(30, 41, 59, 0.5);
    padding: .25rem .75rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.company-description {
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    font-size: .95rem;
    max-width: 450px;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: .75rem; }

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .95rem;
    transition: all .2s ease;
    padding: .25rem 0;
}

.link-icon {
    color: #64748b;
    width: 1rem;
    display: flex;
    align-items: center;
    transition: color .2s ease;
}

.link-with-icon:hover {
    color: #60a5fa;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.link-with-icon:hover .link-icon { color: #60a5fa; }

.newsletter-form {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: .75rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: .75rem;
    color: #fff;
    font-size: .9rem;
    transition: all .3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.subscribe-btn {
    padding: .75rem 1.25rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
}

.subscribe-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.newsletter-note { font-size: .8rem; color: #64748b; margin-bottom: 2rem; }

.social-title {
    font-size: .9rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: .75rem;
    color: #94a3b8;
    transition: all .3s ease;
    font-size: 1.1rem;
    text-decoration: none;
}

.social-link:hover {
    background: var(--social-color, #3b82f6);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* Partners Section - Dark */
.partners-section {
    margin: 3rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    width: 150px;
    height: 150px;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0, transparent 100%);
    opacity: 0;
    transition: opacity .4s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.partner-logo:hover::before { opacity: 1; }

.partner-logo-img {
    width: 100%;
    height: 100%;
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
    opacity: .9;
    transition: all .4s ease;
}

.partner-logo:hover .partner-logo-img {
    opacity: 1;
    transform: scale(1.1);
}

.partner-name {
    font-size: .8rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
    transition: color .3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.partner-logo:hover .partner-name { color: #fff; }

.bottom-bar {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright { display: flex; align-items: center; }

.homepage-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    margin: 0 .25rem;
}

.homepage-link:hover { text-decoration: underline; }

/* Back to top & Whatsapp */
.back-to-top-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: #1d4ed8; transform: translateY(-4px); }

.whatsapp-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    z-index: 900;
    transition: all .3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.whatsapp-popup.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.whatsapp-popup:hover { background: #16a34a; transform: translateY(-4px); }

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    padding: 1rem;
}

.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-content {
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 1.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Layout Fixes */
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Limit height */
    overflow: hidden; /* Prevent outer scrollbar */
}

/* Gradient Border Glow */
.popup-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.popup-overlay.active .popup-content { transform: scale(1) translateY(0); opacity: 1; }

/* Decorative Background Orb inside modal */
.popup-effect-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    top: -100px; /* Adjusted to sit behind header */
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    z-index: 20; /* Ensure strictly above everything */
}

.close-popup:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.popup-header { 
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5; /* Above effects */
    flex-shrink: 0; /* Keep header static */
}

.popup-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    font-size: 1.75rem;
    color: white;
}

.popup-header h3 { 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: white; 
    margin: 0 0 0.5rem; 
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.popup-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.popup-body { 
    color: #cbd5e1; 
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
    flex-grow: 1; /* Take up remaining space */
    overflow-y: auto; /* Scrollable content area */
    padding-right: 0.5rem; /* Space for scrollbar */
    
    /* Thin Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Scrollbar styling for Webkit */
.popup-body::-webkit-scrollbar { width: 6px; }
.popup-body::-webkit-scrollbar-track { background: transparent; }
.popup-body::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.1); border-radius: 3px; }

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.benefit-icon { color: #06b6d4; flex-shrink: 0; }

.popup-cta-text {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
}

.popup-footer { 
    display: flex; 
    gap: 1rem; 
    position: relative;
    z-index: 5;
    flex-shrink: 0; /* Keep footer static */
    flex-wrap: wrap; /* Allow wrapping on weird sizes */
}

.apply-btn {
    flex: 1;
    min-width: 140px; /* Prevent crushing */
    padding: .85rem;
    background: linear-gradient(to right, #2563eb, #06b6d4);
    color: white;
    border: none;
    border-radius: .75rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.apply-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.later-btn {
    flex: 0.8;
    min-width: 100px;
    padding: .85rem;
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.later-btn:hover { background: rgba(255, 255, 255, 0.05); color: white; border-color: rgba(255, 255, 255, 0.2); }

@media (max-width: 1200px) {
    .main-content { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
    .brand-block { grid-column: span 3; margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .brand-block { grid-column: span 1; }
    .footer { padding: 4rem 0 0; }
    .footer-container { padding: 0 1.5rem; }
    .brand-block, .footer-section { text-align: left; }
    .partner-logo { min-width: 7rem; height: 7rem; padding: 1rem; }
    .partner-name { font-size: .75rem; position: static; margin-top: .5rem; }
    .bottom-bar { flex-direction: column; text-align: center; gap: 1.25rem; }
    .made-in-india { justify-content: center; }
    .company-description { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .popup-footer {
        flex-direction: column;
    }
    .popup-content {
        padding: 1.5rem;
    }
    .popup-header h3 {
        font-size: 1.5rem;
    }
}

/* FAQ Section */
.faq-section {
    background: radial-gradient(circle at 50% 100%, #1e293b 0%, #0f172a 100%);
    padding: 5rem 0;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-number {
    color: #3b82f6;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.faq-text { flex: 1; }

.faq-chevron {
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 3rem;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer-line { margin-bottom: 0.5rem; }
.faq-answer-line:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .faq-title { font-size: 2rem; }
    .faq-question { padding: 1.25rem; font-size: 1rem; }
    .faq-answer-content { padding: 0 1.25rem 1.25rem; }
}
