/* ============================================================
   GLOBAL SAFEGUARDS (THE OVERFLOW FIX)
   ============================================================ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================================
   ABOUT PAGE - COMPLETE UNIFIED CSS
   ============================================================ */

/* ── UTILITIES & SPACING ── */
.pc-mb-4 { margin-bottom: 24px; }
.pc-float-slow { animation: pc-floatY 6s ease-in-out infinite; }
.pc-float-slow-reverse { animation: pc-floatY 7s ease-in-out infinite reverse; }

/* ── GLOBAL BACKGROUND ORBS (Pointer Events None to Fix Clicks) ── */
.pc-orb { position: absolute; pointer-events: none; z-index: -1; }
.pc-abth-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--color-indigo-100) 0%, rgba(99,102,241,0) 70%); top: -10%; left: -10%; }
.pc-abth-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--color-purple-100) 0%, rgba(139,92,246,0) 70%); bottom: -10%; right: -5%; animation-delay: 2s; }
.pc-ap-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--color-indigo-100) 0%, transparent 70%); top: 10%; right: -10%; }
.pc-ap-orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%); top: 30%; left: -15%; }
.pc-proc-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--color-indigo-200) 0%, transparent 70%); top: -5%; left: -5%; z-index: 1;}
.pc-proc-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--color-purple-200) 0%, transparent 70%); top: 40%; right: -5%; z-index: 1;}
.pc-proc-orb-3 { width: 600px; height: 600px; background: radial-gradient(circle, var(--color-pink-100) 0%, transparent 70%); bottom: -5%; left: 15%; z-index: 1;}
.pc-ap-cta-orb-1 { width: 400px; height: 400px; background: var(--color-indigo-200); top: -20%; left: -10%; animation-duration: 10s; }
.pc-ap-cta-orb-2 { width: 300px; height: 300px; background: var(--color-purple-200); bottom: -20%; right: -10%; animation-duration: 8s; animation-direction: reverse; }


/* ==========================================
   1. HERO SECTION
========================================== */
.pc-abth-section {
    position: relative;
    padding: calc(var(--section-px) * 3) 0 calc(var(--section-px) * 2) 0;
    background-color: #f0f4fd;
    background-image:
        radial-gradient(at 10% 40%,  rgba(200,240,255,0.7)  0px, transparent 50%),
        radial-gradient(at 80% 80%,  rgba(240,200,255,0.6)  0px, transparent 50%),
        radial-gradient(at 40% 70%,  rgba(210,190,255,0.5)  0px, transparent 50%),
        radial-gradient(at 90% 10%,  rgba(255,240,200,0.6)  0px, transparent 50%),
        radial-gradient(at 50% 30%,  rgba(255,210,230,0.5)  0px, transparent 50%);
    overflow-x: clip; 
    overflow-y: visible;
    z-index: 1;
}

.pc-abth-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.pc-abth-content { display: flex; flex-direction: column; position: relative; z-index: 2; }

.pc-abth-badge {
    display: inline-flex; align-items: center; gap: 8px; background: var(--color-indigo-50);
    color: var(--color-indigo-600); padding: 6px 14px; border-radius: 50px; font-size: var(--text-small);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; width: fit-content;
    border: 1px solid var(--color-indigo-100); margin-bottom: 24px;
}
.pc-abth-badge-dot { width: 8px; height: 8px; background: var(--gradient-primary); border-radius: 50%; display: block; }
.pc-abth-title { margin-bottom: 20px; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.pc-abth-subtitle { color: var(--color-gray-900); margin-bottom: 16px; border-left: 3px solid var(--color-indigo-500); padding-left: 16px; }
.pc-abth-desc { color: var(--color-gray-600); margin-bottom: 32px; max-width: 90%; }
.pc-abth-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* Hero Trust Metrics */
.pc-abth-metrics { display: flex; align-items: center; gap: 30px; padding-top: 30px; border-top: 1px dashed var(--color-indigo-200); width: max-content; }
.pc-abth-metric { display: flex; flex-direction: column; gap: 4px; }
.pc-abth-metric strong { font-size: 1.8rem; font-weight: 800; color: var(--color-gray-900); line-height: 1; }
.pc-abth-metric span { font-size: 0.85rem; font-weight: 600; color: var(--color-gray-500); text-transform: uppercase; letter-spacing: 0.02em; }
.pc-abth-metric-divider { width: 1px; height: 40px; background: var(--color-indigo-100); }

/* Hero Visual Composition */
.pc-abth-visual { position: relative; width: 100%; padding: 20px 20px 40px 0; z-index: 2; }
.pc-abth-img-wrapper { position: relative; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 60px rgba(17, 24, 39, 0.1); transform: translateZ(0); }
.pc-abth-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pc-abth-img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(17,24,39,0.3) 100%); z-index: 2; }

/* Hero Floating Glass Panels */
.pc-abth-float-card {
    position: absolute; z-index: 5; padding: 16px 24px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15); display: flex; align-items: center; gap: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pc-abth-float-1 { top: 40px; right: -40px; animation: pc-floatY 6s ease-in-out infinite; }
.pc-abth-float-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--color-indigo-50); color: var(--color-indigo-600); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.pc-abth-float-text strong, .pc-abth-float-text span { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.pc-abth-float-text strong { color: var(--color-gray-900); }
.pc-abth-float-text p { margin: 0; font-size: 0.85rem; color: var(--color-gray-600); font-weight: 500; }
.pc-abth-float-2 { bottom: -20px; left: -40px; animation: pc-floatY 7s ease-in-out infinite reverse; }

.pc-abth-service-icons { display: flex; align-items: center; }
.pc-abth-s-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--color-indigo-50); color: var(--color-indigo-600); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; margin-left: -12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.pc-abth-s-icon:first-child { margin-left: 0; background: var(--gradient-primary); color: #fff; border: none; }


/* ==========================================
   2 & 3. WHO WE ARE & MISSION/VISION
========================================== */
.pc-ap-identity { 
    position: relative; padding: calc(var(--section-px) * 2) 0; overflow: visible; 
    background: linear-gradient(135deg, var(--color-indigo-50) 0%, #ffffff 50%, #f3e8ff 100%);
    background-size: 200% 200%; animation: pc-bg-shift 12s ease infinite;
}
@keyframes pc-bg-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.pc-ap-identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.pc-ap-mv-cards { display: flex; flex-direction: column; gap: 30px; }
.pc-ap-mv-stagger { margin-top: 40px; }

.pc-ap-mv-card {
    padding: 40px 35px; border-radius: 24px; display: flex; flex-direction: column; gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-ap-mv-card:hover { box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15), inset 0 0 0 1px var(--color-indigo-200); transform: translateY(-5px) scale(1.02); }
.pc-ap-mv-icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 8px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); transition: transform 0.3s ease;
}
.pc-ap-mv-card:hover .pc-ap-mv-icon { transform: scale(1.1) rotate(-5deg); }
.pc-ap-mv-card p { color: var(--color-gray-600); line-height: 1.7; margin: 0; }


/* ==========================================
   4 & 5. EXPERIENCE & WHY CHOOSE US (DARK)
========================================== */
.pc-dark-section { 
    position: relative; padding: calc(var(--section-px) * 2) 0; overflow: hidden; background: var(--color-gray-900); 
}
.pc-dark-section .text-display, .pc-dark-section .text-body-lg { color: #ffffff; }

.pc-ap-value-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.pc-ap-skills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pc-ap-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; font-size: 0.9rem; font-weight: 600; color: var(--color-gray-100); transition: all 0.3s ease;
}
.pc-ap-pill:hover { background: var(--color-indigo-600); border-color: var(--color-indigo-500); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); transform: translateY(-3px);}
.pc-ap-pill i { color: var(--color-indigo-400); }
.pc-ap-pill:hover i { color: #fff; }

.pc-ap-reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pc-ap-reason { 
    padding: 24px 20px; border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: all 0.3s ease; 
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px);
}
.pc-ap-reason:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); border-color: var(--color-indigo-500); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2); }
.pc-ap-reason i { font-size: 1.8rem; }
.pc-ap-reason strong { color: #ffffff; font-size: 1.05rem; }


/* ==========================================
   6. OUR PROCESS (REDESIGNED BENTO GRID)
========================================== */
.pc-ap-process { position: relative; padding: calc(var(--section-px) * 2) 0; background: #f8fafc; overflow-x: clip; }
.pc-ap-process-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; position: relative; z-index: 2;}

.pc-proc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.pc-proc-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-top: 4px solid var(--color-indigo-100);
}

.pc-proc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-top-color: var(--color-indigo-500);
    background: #fff;
}

/* Watermark Number in background */
.pc-proc-num {
    position: absolute;
    top: -15px;
    right: 15px;
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(99, 102, 241, 0.08);
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.pc-proc-card:hover .pc-proc-num {
    -webkit-text-stroke: 2px rgba(99, 102, 241, 0.15);
    transform: scale(1.05) translate(-5px, 5px);
}

.pc-proc-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-indigo-50);
    color: var(--color-indigo-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.pc-proc-card:hover .pc-proc-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.pc-proc-card h3, .pc-proc-card p {
    position: relative;
    z-index: 1;
}

.pc-proc-card h3 { margin-bottom: 12px; color: var(--color-gray-900); }
.pc-proc-card p { color: var(--color-gray-600); line-height: 1.6; margin: 0; }


/* ==========================================
   7. INDUSTRIES WE SERVE (FLEX GALLERY)
========================================== */
.pc-ap-industries { padding: calc(var(--section-px) * 2) 0; overflow: hidden; background: #fff;}
.pc-ap-ind-header { text-align: center; margin-bottom: 60px; }

.pc-ind-gallery { display: flex; gap: 16px; height: 450px; max-width: 1200px; margin: 0 auto; }

.pc-ind-panel {
    flex: 1; border-radius: 24px; padding: 30px;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    position: relative; overflow: hidden; cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pc-ind-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 1; transition: all 0.8s ease; filter: grayscale(0.8) brightness(0.6);
}
.pc-ind-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,0.95), rgba(17,24,39,0.2));
    z-index: 2; transition: opacity 0.5s ease;
}

.pc-ind-panel.active { flex: 4; align-items: flex-start; }
.pc-ind-panel.active .pc-ind-bg { filter: grayscale(0) brightness(0.9); transform: scale(1.05); }

.pc-ind-icon {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    transition: all 0.6s ease; z-index: 3; margin-bottom: auto; backdrop-filter: blur(5px);
}
.pc-ind-panel.active .pc-ind-icon { background: var(--gradient-primary); border-color: transparent; transform: scale(1.1); margin-bottom: 20px; }

.pc-ind-content { opacity: 0; transform: translateY(20px); transition: all 0.4s ease; white-space: nowrap; z-index: 3; position: relative; }
.pc-ind-content h3 { color: #fff; margin-bottom: 8px; font-size: 1.5rem;}
.pc-ind-content p { color: rgba(255,255,255,0.85); margin: 0; white-space: normal;}
.pc-ind-panel.active .pc-ind-content { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }


/* ==========================================
   8 & 9. TRUST & FINAL CTA
========================================== */
.pc-ap-cta-section { padding: calc(var(--section-px) * 2) 0 calc(var(--section-px) * 5) 0; }
.pc-ap-cta-box {
    position: relative; padding: 100px 40px; border-radius: 32px; background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 40px 80px rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); overflow: hidden; text-align: center;
}
.pc-ap-cta-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pc-ap-cta-content .text-display { margin: 10px 0; }
.pc-ap-cta-content p { max-width: 700px; color: var(--color-gray-700); margin: 0; }
.pc-ap-cta-actions { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.pc-btn-glow { position: relative; overflow: hidden; border: none; }
.pc-btn-glow::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-25deg); animation: pc-btn-sweep 3s infinite;
}
@keyframes pc-btn-sweep { 0% { left: -100%; } 20%, 100% { left: 200%; } }


/* ==========================================
   RESPONSIVE DESIGN (ALL SECTIONS)
========================================== */

/* ── TABLET & SMALL LAPTOPS ── */
@media (max-width: 1024px) {
    .pc-abth-grid { gap: 40px; }
    .pc-abth-title { font-size: 2.8rem; }
    .pc-abth-float-1 { right: -20px; }
    .pc-abth-float-2 { left: -20px; }

    .pc-ap-identity-grid, .pc-ap-value-grid { gap: 50px; }
    
    .pc-proc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── MOBILE & TABLET (THE HERO VISUAL FIX) ── */
@media (max-width: 900px) {
    /* Hero Fixes */
    .pc-abth-section { padding-top: calc(var(--section-px) * 4); padding-bottom: calc(var(--section-px) * 2); }
    .pc-abth-grid { grid-template-columns: 1fr; gap: 50px; }
    .pc-abth-content { align-items: center; text-align: center; }
    .pc-abth-subtitle { border-left: none; padding-left: 0; border-bottom: 3px solid var(--color-indigo-500); padding-bottom: 12px; display: inline-block; }
    .pc-abth-desc { max-width: 100%; }
    .pc-abth-actions, .pc-abth-metrics { justify-content: center; }
    
    /* THE FIX: Change the visual area into a simple stacked column.
       This prevents the absolute cards from vanishing or overflowing! 
    */
    .pc-abth-visual { 
        display: flex; 
        flex-direction: column; 
        gap: 16px; 
        max-width: 100%; 
        padding: 0; 
        margin-top: 20px;
    }
    
    .pc-abth-img-wrapper { 
        border-radius: 24px; 
        width: 100%; 
    }
    
    /* Turn floating cards into standard, full-width content blocks below the image */
    .pc-abth-float-card { 
        position: relative; /* Removes absolute positioning */
        top: auto !important; 
        left: auto !important; 
        right: auto !important; 
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        width: 100%; 
        justify-content: flex-start;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    }

    /* Other Sections */
    .pc-ap-identity-grid, .pc-ap-value-grid { grid-template-columns: 1fr; gap: 50px; }
    .pc-ap-mv-stagger { margin-top: 0; } 

    /* Mobile Industries Gallery */
    .pc-ind-gallery { flex-direction: column; height: auto; }
    .pc-ind-panel { flex: none !important; min-height: 120px; align-items: flex-start; padding: 24px; }
    .pc-ind-panel.active { min-height: 220px; }
    .pc-ind-panel .pc-ind-icon { margin-bottom: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
    .pc-ind-content { opacity: 1; transform: translateY(0); white-space: normal;}
    .pc-ind-panel:not(.active) h3 { font-size: 1.2rem; margin: 0; }
    .pc-ind-panel:not(.active) p { display: none; }
}

/* ── STANDARD PHONES ── */
@media (max-width: 600px) {
    .pc-proc-grid { grid-template-columns: 1fr; gap: 20px; }
    .pc-proc-card { padding: 30px 24px; }
    .pc-proc-num { font-size: 6rem; top: 0; right: 10px; }
    
    .pc-ap-reasons { grid-template-columns: 1fr; gap: 16px; }
    
    .pc-ap-cta-box { padding: 50px 20px; border-radius: 24px; }
    .pc-ap-cta-content .text-display { font-size: 2.2rem; }
}

/* ── SMALL PHONES ── */
@media (max-width: 480px) {
    .pc-abth-section { padding-top: calc(var(--section-px) * 5); } 
    .pc-abth-title { font-size: clamp(2rem, 8vw, 2.4rem); line-height: 1.2; }
    .pc-abth-actions { flex-direction: column; width: 100%; gap: 12px; }
    .pc-abth-actions .btn { width: 100%; }
    
    .pc-abth-metrics { flex-direction: column; gap: 20px; border-top: none; padding-top: 20px; }
    .pc-abth-metric-divider { display: none; }
    .pc-abth-metric strong { font-size: 1.6rem; }
    .pc-abth-metric span { font-size: 0.8rem; }
    
    .pc-ap-cta-actions { flex-direction: column; width: 100%; }
    .pc-ap-cta-actions .btn { width: 100%; }
}