/* --- ASYMMETRIC MODERN HERO --- */
.about-hero-modern {
    padding: 120px 0;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.modern-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 100px;
}

/* --- Left Content --- */
.content-side {
    flex: 1;
}

.since-tag {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.main-heading {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    color: #090d16;
    margin-bottom: 40px;
}

.blue-highlight {
    color: #0052cc;
}

.description-box p {
    font-size: 1.1rem;
    color: #5e6c84;
    line-height: 1.8;
    max-width: 500px;
    border-left: 3px solid #f1f5f9;
    padding-left: 25px;
    margin-bottom: 50px;
}

/* Horizontal Stats */
.stats-line {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.line-stat .val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #090d16;
}

.line-stat .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Button */
.cta-liquid {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #0052cc;
    color: white;
    padding: 20px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.2);
    transition: 0.4s;
}

.cta-liquid:hover {
    background: #090d16;
    transform: translateX(10px);
}

/* --- Right Image Side --- */
.image-side {
    flex: 1.2;
    position: relative;
}

.diagonal-frame {
    width: 100%;
    height: 600px;
    background: #f1f7ff;
    border-radius: 40px 200px 40px 40px;
    /* Custom Shape */
    overflow: hidden;
    position: relative;
}

.diagonal-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Light theme blend */
    opacity: 0.9;
}

.watermark-text {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(0, 82, 204, 0.03);
    pointer-events: none;
}

/* Floating Card over Image */
.floating-info-card {
    position: absolute;
    top: 20%;
    left: -40px;
    background: #ffffff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: #00df89;
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-txt strong {
    display: block;
    font-size: 1.1rem;
    color: #090d16;
}

.card-txt p {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .split-layout {
        flex-direction: column;
        gap: 60px;
    }

    .main-heading {
        font-size: 3.5rem;
    }

    .image-side {
        width: 100%;
    }

    .diagonal-frame {
        border-radius: 40px;
        height: 400px;
    }
}

/* Ensure the section is positioned for absolute children */
.about-hero-modern {
    padding: 120px 0;
    background: #ffffff;
    /* Fallback */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Crucial for background layering */
    overflow: hidden;
    /* Keeps shapes/images contained */
}

/* ADDED: Full-width Background Image Layer Styling */
.hero-bg-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace with your catalogue plant image path */
    background-image: url('/images/aboutus.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Crucial for Light Theme: Very low opacity (3%) keeps it as a subtle watermark */
    opacity: 0.40;

    /* Puts it behind all other content (z-index of other content defaults to auto/1) */
    z-index: 0;
    pointer-events: none;
    /* User cannot interact with the background */
}

/* Ensure existing content is positioned relative so z-index works correctly */
.modern-container {
    position: relative;
    z-index: 1;
    /* Puts all text and cards above the background image */
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ... (Keep all your existing CSS for split-layout, headings, stats, diagonal-frame, etc., exactly as it was) ... */


/* ==========================================
   APPLICATIONS SECTION BASE STYLING
   ========================================== */
.app-matrix-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Animation */
.app-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.app-header .tag {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 12px;
}

.app-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.2;
    margin-bottom: 20px;
}

.app-header .blue-text {
    color: #0052cc;
    position: relative;
}

.app-header p {
    font-size: 1.1rem;
    color: #5e6c84;
    line-height: 1.7;
}

/* ==========================================
   BENTO GRID & INTERACTIVE HOVER STYLES
   ========================================== */
.app-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 30px;
}

/* Base Card Styling with Premium Glassmorphism */
.app-item {
    background: #f8fbff;
    border-radius: 35px;
    padding: 45px;
    border: 1px solid rgba(0, 82, 204, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* Smooth transition for every interactive element */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Scroll Reveal Initial State */
    opacity: 0;
    transform: translateY(50px);
}

/* 3D Lifting & Magnetic Hover Effect */
.app-item:hover {
    transform: translateY(-12px) scale(1.01);
    background: #ffffff;
    border-color: #0052cc;
    box-shadow: 0 40px 80px rgba(0, 82, 204, 0.12);
}

/* Hover Shine Effect (Gloss layer running inside the card) */
.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 204, 0.03), transparent);
    transition: 0.5s;
}

.app-item:hover::before {
    left: 150%;
    transition: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Icons Animation */
.app-item i {
    font-size: 2.2rem;
    color: #0052cc;
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: #090d16;
}

.app-item h3 {
    font-size: 1.6rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Large Card Layout adjustments */
.large-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0;
    /* Image sticks to bottom perfectly */
}

.large-card .app-content {
    z-index: 2;
}

.app-item ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.app-item ul li {
    margin-bottom: 14px;
    font-weight: 600;
    color: #5e6c84;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    transition: translateX 0.3s ease;
}

.app-item ul li::before {
    content: '➔';
    color: #0052cc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Micro-interaction on list hover */
.large-card:hover ul li {
    color: #090d16;
}

.large-card:hover ul li::before {
    color: #00df89;
    /* Checkmark turns vibrant green on hover */
}

/* Image scaling zoom animation inside the frame */
.app-visual {
    width: 100%;
    height: 240px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(0, 82, 204, 0.05);
}

.app-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.large-card:hover .app-visual img {
    transform: scale(1.08);
    /* Premium slow zoom */
}

/* Small Cards description tuning */
.small-card p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   SCROLL TRIGGER ANIMATIONS (PURE CSS / JS READY)
   ========================================== */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Classes for Scroll Trigger (Bina handle kiye direct apply hone wali delay framework) */
.app-bento-grid.animated .app-item {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay taaki pehle bada card aaye, fir chote cards ek-ek karke khulein */
.app-bento-grid.animated .app-item:nth-child(1) {
    animation-delay: 0.1s;
}

.app-bento-grid.animated .app-item:nth-child(2) {
    animation-delay: 0.3s;
}

.app-bento-grid.animated .app-item:nth-child(3) {
    animation-delay: 0.5s;
}


/* Modern Browsers Scroll-Driven Animation Fallback (Bina JS ke scroll trigger agar modern chrome h toh) */
@supports (animation-timeline: view()) {
    .app-item {
        animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-timeline: view();
        animation-range: entry 10% bottom 40%;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .app-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .large-card {
        grid-row: auto;
        padding-bottom: 40px;
    }

    .app-visual {
        height: 200px;
    }

    .app-header h2 {
        font-size: 2.2rem;
    }
}

/* --- INFRASTRUCTURE SECTION BASE --- */
.infra-structure-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.infra-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Animation Layer */
.infra-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px auto;
    opacity: 0;
    transform: translateY(40px);
    animation: infraRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.infra-badge {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.infra-header h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.1;
    margin-bottom: 20px;
}

.blue-glow-text {
    color: #0052cc;
}

.infra-header p {
    font-size: 1.15rem;
    color: #5e6c84;
    line-height: 1.8;
}

/* --- INFRA GRID & 3D INTERACTIVE HOVER --- */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.infra-card {
    background: #f8fbff;
    border-radius: 40px;
    padding: 50px;
    border: 1px solid rgba(0, 82, 204, 0.04);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;

    /* Smooth custom physics animation lock */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Scroll Initial State */
    opacity: 0;
    transform: translateY(60px);
}

/* 3D Moving Lift & Pop on Hover */
.infra-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: #ffffff;
    border-color: #0052cc;
    box-shadow: 0 45px 90px rgba(0, 82, 204, 0.1);
}

/* Icon Box Micro-Interaction */
.infra-icon-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0052cc;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.05);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.infra-card:hover .infra-icon-box {
    transform: scale(1.1) rotate(8deg);
    background: #090d16;
    color: #ffffff;
}

/* Info Elements */
.infra-info h3 {
    font-size: 1.5rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.infra-info p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

/* Glassmorphic Running Shine Layer on Hover */
.shine-layer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 204, 0.04), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.infra-card:hover .shine-layer {
    left: 150%;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- SCROLL REVEAL KEYFRAMES --- */
@keyframes infraRevealUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Automatically triggers trigger delays via classes */
.infra-grid.triggered .infra-card {
    animation: infraRevealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay Intervals */
.infra-grid.triggered .infra-card:nth-child(1) {
    animation-delay: 0.1s;
}

.infra-grid.triggered .infra-card:nth-child(2) {
    animation-delay: 0.25s;
}

.infra-grid.triggered .infra-card:nth-child(3) {
    animation-delay: 0.4s;
}

.infra-grid.triggered .infra-card:nth-child(4) {
    animation-delay: 0.55s;
}

/* Engine Fallback Trigger for Modern Desktop Browsers */
@supports (animation-timeline: view()) {
    .infra-card {
        animation: infraRevealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-timeline: view();
        animation-range: entry 15% bottom 45%;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .infra-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .infra-card {
        padding: 35px;
        flex-direction: column;
        gap: 20px;
    }

    .infra-header h2 {
        font-size: 2.3rem;
    }
}

/* --- CORE VALUES SECTION BASE --- */
.core-values-section {
    padding: 100px 0 140px 0;
    background: #f8fbff;
    /* Soft bluish-white to separate from previous white section */
    position: relative;
    overflow: hidden;
}

.values-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Animation styling */
.values-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 80px auto;
}

.values-badge {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.values-header h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.1;
    margin-bottom: 20px;
}

.blue-glow {
    color: #0052cc;
}

.values-header p {
    font-size: 1.15rem;
    color: #5e6c84;
    line-height: 1.8;
}

/* --- FLEX MATRIX & MAGNETIC GLOW HOVER --- */
.values-flex-matrix {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.value-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 45px;
    flex: 1;
    border: 1px solid rgba(0, 82, 204, 0.03);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.02);

    /* Scroll Reveal Initial Setup */
    opacity: 0;
    transform: translateX(-40px);
    /* Slides in horizontally from left to right */

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover State: Elevation with Light Inner Gradient */
.value-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 82, 204, 0.08);
}

.value-inner-content {
    position: relative;
    z-index: 2;
}

/* Icon Box Animation */
.val-icon-wrap {
    width: 65px;
    height: 65px;
    background: #f0f7ff;
    color: #0052cc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card:hover .val-icon-wrap {
    background: #0052cc;
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
}

.value-inner-content h3 {
    font-size: 1.45rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.value-inner-content p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

/* Micro-Glow Layer at the bottom of card on hover */
.card-border-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0052cc, #00df89);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.value-card:hover class .card-border-glow,
.value-card:hover .card-border-glow {
    transform: scaleX(1);
}

/* --- SCROLL TIMELINE ANIMATION SYSTEMS --- */
@keyframes valueRevealLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.values-flex-matrix.active .value-card {
    animation: valueRevealLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay Intervals */
.values-flex-matrix.active .value-card:nth-child(1) {
    animation-delay: 0.1s;
}

.values-flex-matrix.active .value-card:nth-child(2) {
    animation-delay: 0.3s;
}

.values-flex-matrix.active .value-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Modern CSS Engine Support without JS */
@supports (animation-timeline: view()) {
    .value-card {
        animation: valueRevealLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-timeline: view();
        animation-range: entry 10% bottom 40%;
    }
}

/* Responsive Grid adaptation */
@media (max-width: 992px) {
    .values-flex-matrix {
        flex-direction: column;
        gap: 25px;
    }

    .value-card {
        padding: 35px;
    }

    .values-header h2 {
        font-size: 2.3rem;
    }
}

/* --- CERTIFICATIONS SECTION BASE --- */
.cert-compliance-section {
    padding: 100px 0 120px 0;
    background: #ffffff;
    /* Back to solid white */
    position: relative;
    overflow: hidden;
}

.cert-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Styling */
.cert-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 70px auto;
}

.cert-badge {
    color: #0052cc;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.cert-header h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #090d16;
    line-height: 1.1;
    margin-bottom: 20px;
}

.blue-text-glow {
    color: #0052cc;
}

.cert-header p {
    font-size: 1.15rem;
    color: #5e6c84;
    line-height: 1.8;
}

/* --- CERT GRID & BORDER GLOW HOVER --- */
.cert-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.cert-card {
    background: #f8fbff;
    border-radius: 35px;
    padding: 45px 35px;
    border: 1px solid rgba(0, 82, 204, 0.03);
    position: relative;
    overflow: hidden;

    /* Scroll Reveal Initial Setup */
    opacity: 0;
    transform: translateY(40px);

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effect: Card Pop up & Pure White Background change */
.cert-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 35px 70px rgba(0, 82, 204, 0.07);
}

/* Icon Setup with Micro-interaction */
.cert-icon-layer {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #0052cc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.04);
    transition: all 0.4s ease;
}

.cert-card:hover .cert-icon-layer {
    background: #0052cc;
    color: #ffffff;
    transform: rotateY(180deg);
    /* Modern Flip effect on hover */
}

.cert-info h3 {
    font-size: 1.35rem;
    font-weight: 850;
    color: #090d16;
    margin-bottom: 12px;
}

.cert-info p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Glow Border Line coming from bottom corners */
.glow-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #0052cc;
    transition: width 0.4s ease;
}

.cert-card:hover .glow-border {
    width: 100%;
}

/* --- FINAL CTA ROW --- */
.cert-footer-cta {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 50px;
}

.cert-footer-cta p {
    font-size: 1.2rem;
    color: #090d16;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-download-specs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #090d16;
    color: white;
    padding: 18px 40px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s;
}

.btn-download-specs:hover {
    background: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.15);
}

/* --- SCROLL REVEAL TIMELINE ANIMATION --- */
@keyframes certRevealUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-bento-grid.visible .cert-card {
    animation: certRevealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cert-bento-grid.visible .cert-card:nth-child(1) {
    animation-delay: 0.1s;
}

.cert-bento-grid.visible .cert-card:nth-child(2) {
    animation-delay: 0.25s;
}

.cert-bento-grid.visible .cert-card:nth-child(3) {
    animation-delay: 0.4s;
}

@supports (animation-timeline: view()) {
    .cert-card {
        animation: certRevealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-timeline: view();
        animation-range: entry 10% bottom 40%;
    }
}

/* Responsive Grid */
@media (max-width: 992px) {
    .cert-bento-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cert-header h2 {
        font-size: 2.3rem;
    }
}

/* --- OUTER WRAPPER CONTAINER --- */
.outer-border-wrapper {
    padding: 10px;
    background: #ffffff;
    border: 2px solid #0052cc;
    /* AD DIGITAL Elite Accent Line */
    border-radius: 46px 206px 46px 46px;
    /* Outer border shape */
    box-shadow: 0 35px 70px rgba(0, 82, 204, 0.06);
    display: block;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* --- THE DIAGONAL FRAME (POSTER AS BACKGROUND) --- */
.diagonal-frame {
    width: 100%;
    height: 580px;
    /* Precise height for vertical alignment */
    border-radius: 40px 195px 40px 40px;
    /* Exact inner shape cut */
    position: relative;
    z-index: 2;
    overflow: hidden;

    /* FIX 1: Poster ko directly background mein set kiya taaki borders smooth rhen */
    background-image: url('/images/shiva\ about\ us.png');

    /* FIX 2: Poster ko bina cut kiye poore shape ke andar adjust karne ke liye */
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;

    /* Smooth scaling layer on card hover */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effect: Poora frame aur poster ek saath stretch bina smooth feel dega */
.diagonal-frame:hover {
    transform: scale(1.02);
    box-shadow: inset 0 0 40px rgba(0, 82, 204, 0.05);
}

/* --- WATERMARK EXTENSION --- */
.watermark-text {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 82, 204, 0.01);
    pointer-events: none;
    z-index: 1;
}

/* --- FLOATING INFO CARD GLOW INTERACTION --- */
.floating-info-card {
    position: absolute;
    top: 30%;
    left: -20px;
    /* Overlaps perfectly on the outer boundary line */
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(9, 13, 22, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    border: 1px solid rgba(0, 82, 204, 0.04);
    transition: transform 0.4s ease;
}

.outer-border-wrapper:hover .floating-info-card {
    transform: translateY(-5px);
    /* Card floating micro-movement */
}


/* ==========================================
   COMPLETE ABOUT PAGE ANIMATION SYSTEM
   EVERY SINGLE ELEMENT LEFT / RIGHT
========================================== */

/* COMMON BASE */
.about-hero-modern *,
.app-matrix-section *,
.infra-structure-section *,
.core-values-section *,
.cert-compliance-section * {

    opacity: 0;
    transition:
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform, opacity;
}

/* ==========================================
   LEFT SIDE ANIMATIONS
========================================== */

.since-tag,
.description-box,
.action-row,
.line-stat:nth-child(1),

.app-header .tag,
.app-header h2,
.large-card,
.large-card li:nth-child(1),
.large-card li:nth-child(3),

.infra-badge,
.infra-card:nth-child(1),
.infra-card:nth-child(3),

.values-badge,
.value-card:nth-child(1),

.cert-badge,
.cert-card:nth-child(1),
.cert-footer-cta {

    transform: translateX(-140px);
}

/* ==========================================
   RIGHT SIDE ANIMATIONS
========================================== */

.main-heading,
.stats-line,
.line-stat:nth-child(2),
.line-stat:nth-child(3),
.image-side,
.floating-info-card,

.small-card,

.app-header p,
.large-card li:nth-child(2),
.large-card li:nth-child(4),

.infra-header h2,
.infra-header p,
.infra-card:nth-child(2),
.infra-card:nth-child(4),

.values-header h2,
.values-header p,
.value-card:nth-child(2),
.value-card:nth-child(3),

.cert-header h2,
.cert-header p,
.cert-card:nth-child(2),
.cert-card:nth-child(3) {

    transform: translateX(140px);
}

/* ==========================================
   ACTIVE STATE
========================================== */

.about-hero-modern *.active,
.app-matrix-section *.active,
.infra-structure-section *.active,
.core-values-section *.active,
.cert-compliance-section *.active {

    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* ==========================================
   STAGGER DELAYS
========================================== */

.since-tag {
    transition-delay: .1s;
}

.main-heading {
    transition-delay: .2s;
}

.description-box {
    transition-delay: .3s;
}

.stats-line {
    transition-delay: .45s;
}

.action-row {
    transition-delay: .6s;
}

.image-side {
    transition-delay: .3s;
}

.floating-info-card {
    transition-delay: .7s;
}

.app-header .tag {
    transition-delay: .1s;
}

.app-header h2 {
    transition-delay: .2s;
}

.app-header p {
    transition-delay: .35s;
}

.large-card {
    transition-delay: .2s;
}

.small-card:nth-child(2) {
    transition-delay: .35s;
}

.small-card:nth-child(3) {
    transition-delay: .5s;
}

.infra-badge {
    transition-delay: .1s;
}

.infra-header h2 {
    transition-delay: .2s;
}

.infra-header p {
    transition-delay: .35s;
}

.infra-card:nth-child(1) {
    transition-delay: .2s;
}

.infra-card:nth-child(2) {
    transition-delay: .35s;
}

.infra-card:nth-child(3) {
    transition-delay: .5s;
}

.infra-card:nth-child(4) {
    transition-delay: .65s;
}

.values-badge {
    transition-delay: .1s;
}

.values-header h2 {
    transition-delay: .2s;
}

.values-header p {
    transition-delay: .35s;
}

.value-card:nth-child(1) {
    transition-delay: .2s;
}

.value-card:nth-child(2) {
    transition-delay: .4s;
}

.value-card:nth-child(3) {
    transition-delay: .6s;
}

.cert-badge {
    transition-delay: .1s;
}

.cert-header h2 {
    transition-delay: .2s;
}

.cert-header p {
    transition-delay: .35s;
}

.cert-card:nth-child(1) {
    transition-delay: .2s;
}

.cert-card:nth-child(2) {
    transition-delay: .4s;
}

.cert-card:nth-child(3) {
    transition-delay: .6s;
}

.cert-footer-cta {
    transition-delay: .7s;
}

.hero-bg-image-layer::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.20) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0.15) 100%);

    z-index: 1;
}

.description-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 20px 24px;
    border-radius: 14px;

    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    color: #1a1a1a;
}

.description-box p {
    color: #222;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.stats-line {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.line-stat {
    background: rgba(255, 255, 255, 0.85);
    padding: 16px 18px;
    border-radius: 12px;

    text-align: center;

    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

    min-width: 120px;
}

.line-stat .val {
    font-size: 22px;
    font-weight: 700;
    color: #0b3d91;
    /* blue highlight for numbers */
}

.line-stat .lbl {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
}


/* About Hero Container Layout Base */
.about-hero-modern {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Foreground Container Elements Layer Setup */
.about-hero-modern .modern-container {
    position: relative !important;
    z-index: 2 !important;
    /* Slider images ke upar float karne ke liye */
}

/* Background Slider Core Layer */
.about-hero-modern .hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Pure architecture ke sabse peeche */
}

/* Common Background Slider Properties */
.about-hero-modern .hero-slider-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: aboutHeroSliderAnim 15s infinite;
}

/* Individual Background Slide Setup with Uniform Gradients */
.about-hero-modern .hero-slider-bg .slide-1 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%), url('/images/aboutus1.png');
    animation-delay: 0s;
}

.about-hero-modern .hero-slider-bg .slide-2 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%), url('/images/aboutus2.png');
    animation-delay: 5s;
}

.about-hero-modern .hero-slider-bg .slide-3 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%), url('/images/aboutus.png');
    animation-delay: 10s;
}

/* Smooth Fade & Gentle Structural Scale Transition Loop */
@keyframes aboutHeroSliderAnim {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    8% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    41.33% {
        opacity: 0;
        transform: scale(1.04);
        /* Subtle breathing zoom effect background me */
    }

    100% {
        opacity: 0;
    }
}
/* =========================================================
   EXECUTIVE / CEO SECTION
========================================================= */

.ceo-leadership-section {
    padding: clamp(60px, 8vw, 110px) 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* =========================================================
   CONTAINER
========================================================= */

.ceo-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* =========================================================
   SPLIT LAYOUT
========================================================= */

.ceo-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(35px, 5vw, 70px);
    width: 100%;
}

/* =========================================================
   IMAGE SIDE
========================================================= */

.ceo-image-side {
    position: relative;

    flex: 0 0 220px;
    max-width: 220px;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   IMAGE WRAPPER
========================================================= */

.ceo-outer-border-wrapper {
    width: 220px;
    height: 220px;

    border-radius: 50%;
    overflow: hidden;

    padding: 0px;

    background:transparent;
    border: none;

    box-shadow:
        0 12px 30px rgba(0, 82, 204, 0.12);

    position: relative;
}

/* =========================================================
   IMAGE FRAME
========================================================= */

.ceo-diagonal-frame {
    width: 100%;
    height: 100%;

    border-radius: 50%;
    overflow: hidden;

    background: #f1f7ff;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   IMAGE
========================================================= */

.ceo-contained-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    border-radius: 50%;

    display: block;
}

/* =========================================================
   WATERMARK
========================================================= */

.ceo-watermark-text {
    position: absolute;

    bottom: 8px;
    right: 10px;

    font-size: 2.5rem;
    font-weight: 900;

    color: rgba(0, 82, 204, 0.03);

    pointer-events: none;

    z-index: 1;
}

/* =========================================================
   FLOATING BADGE
========================================================= */

.ceo-floating-experience-card {
    position: absolute;

    top: 15px;
    left: -18px;

    background: #ffffff;

    padding: 6px 10px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 6px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(0, 82, 204, 0.08);

    z-index: 20;
}

/* =========================================================
   BADGE ICON
========================================================= */

.ceo-badge-icon {
    width: 26px;
    height: 26px;

    border-radius: 8px;

    background: #f0f7ff;
    color: #0052cc;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.72rem;
}

/* =========================================================
   BADGE TEXT
========================================================= */

.ceo-badge-txt strong {
    display: block;

    font-size: 0.72rem;
    line-height: 1.1;

    color: #090d16;
    font-weight: 800;
}

.ceo-badge-txt p {
    margin: 0;

    font-size: 0.60rem;
    line-height: 1.1;

    color: #64748b;
    font-weight: 600;
}

/* =========================================================
   IMAGE CAPTION
========================================================= */

.ceo-image-caption {
    text-align: center;
    margin-top: 18px;
}

.ceo-image-caption h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #090d16;

    margin-bottom: 4px;
    line-height: 1.2;
}

.ceo-image-caption p {
    margin: 0;

    font-size: 0.82rem;
    color: #0052cc;

    font-weight: 700;
    letter-spacing: 0.4px;
}

/* =========================================================
   TEXT SIDE
========================================================= */

.ceo-text-side {
    flex: 1;
    width: 100%;
}

/* =========================================================
   MINI TAG
========================================================= */

.ceo-mini-tag {
    color: #0052cc;

    font-weight: 800;
    text-transform: uppercase;

    letter-spacing: 2px;
    font-size: 0.78rem;

    display: inline-block;

    margin-bottom: 10px;
}

/* =========================================================
   NAME
========================================================= */

.ceo-name-title {
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);

    font-weight: 900;
    color: #090d16;

    line-height: 1.15;

    margin-bottom: 5px;
}

/* =========================================================
   DESIGNATION
========================================================= */

.ceo-designation-subtitle {
    font-size: 0.95rem;

    color: #0052cc;
    font-weight: 700;

    margin-bottom: 18px;
}

/* =========================================================
   LEAD STATEMENT
========================================================= */

.ceo-lead-statement {
    font-size: 0.96rem;

    color: #090d16;
    font-weight: 700;

    line-height: 1.65;

    border-left: 4px solid #0052cc;

    padding-left: 16px;

    margin-bottom: 18px;
}

/* =========================================================
   BODY TEXT
========================================================= */

.ceo-body-para {
    font-size: 0.92rem;

    color: #5e6c84;

    line-height: 1.7;

    margin-bottom: 22px;
}

/* =========================================================
   MILESTONES
========================================================= */

.ceo-milestones-grid {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-bottom: 24px;
}

/* =========================================================
   MILESTONE ITEM
========================================================= */

.milestone-pillar {
    display: flex;

    gap: 14px;

    align-items: flex-start;
}

.milestone-pillar i {
    color: #0052cc;

    font-size: 1.05rem;

    margin-top: 4px;
}

.pillar-info h4 {
    font-size: 0.95rem;

    font-weight: 800;

    color: #090d16;

    margin-bottom: 4px;
}

.pillar-info p {
    font-size: 0.86rem;

    color: #5e6c84;

    line-height: 1.45;

    margin: 0;
}

/* =========================================================
   FOOTER SIGNATURE
========================================================= */

.ceo-footer-signature {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #f1f5f9;

    padding-top: 20px;

    flex-wrap: wrap;
}

/* =========================================================
   SIGNATURE
========================================================= */

.handwritten-font {
    font-family: 'Georgia', serif;

    font-style: italic;

    font-size: 1.5rem;

    font-weight: 700;

    color: #090d16;

    margin-bottom: 2px;
}

.signature-graphic span {
    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #94a3b8;

    font-weight: 700;
}

/* =========================================================
   EMAIL
========================================================= */

.ceo-mail-trigger {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #5e6c84;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 700;

    transition: color 0.3s ease;
}

.ceo-mail-trigger i {
    color: #0052cc;
}

.ceo-mail-trigger:hover {
    color: #090d16;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .ceo-split-layout {
        flex-direction: column;

        text-align: center;

        gap: 40px;
    }

    .ceo-text-side {
        width: 100%;
    }

    .ceo-lead-statement {
        text-align: left;
    }

    .milestone-pillar {
        text-align: left;
    }

    .ceo-footer-signature {
        justify-content: center;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .ceo-leadership-section {
        padding: 60px 0;
    }

    .ceo-container {
        padding: 0 18px;
    }

    .ceo-image-side {
        flex: 0 0 180px;
        max-width: 180px;
    }

    .ceo-outer-border-wrapper {
        width: 180px;
        height: 180px;
    }

    .ceo-floating-experience-card {
        top: 10px;
        left: -12px;

        padding: 5px 8px;
    }

    .ceo-badge-icon {
        width: 22px;
        height: 22px;

        font-size: 0.65rem;
    }

    .ceo-badge-txt strong {
        font-size: 0.65rem;
    }

    .ceo-badge-txt p {
        font-size: 0.55rem;
    }

    .ceo-name-title {
        font-size: 1.9rem;
    }

    .ceo-footer-signature {
        flex-direction: column;

        align-items: center;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ceo-image-side {
        flex: 0 0 140px;
        max-width: 140px;
    }

    .ceo-outer-border-wrapper {
        width: 140px;
        height: 140px;
    }

     .ceo-floating-experience-card {

        bottom: 85px !important;
        /* ↑ BADGE UPER LANE KE LIYE
           value badhao = aur uper jayega
           value ghatao = niche jayega
        */

        left: -8px;

        padding: 3px 5px;

        transform: scale(0.85);
    }

    .ceo-badge-icon {
        width: 20px;
        height: 20px;

        font-size: 0.58rem;

        border-radius: 6px;
    }

    .ceo-badge-txt strong {
        font-size: 0.58rem;
    }

    .ceo-badge-txt p {
        font-size: 0.5rem;
    }

    .ceo-name-title {
        font-size: 1.55rem;
    }

    .ceo-lead-statement {
        font-size: 0.9rem;
    }

    .ceo-body-para {
        font-size: 0.88rem;
    }

    .ceo-image-caption h3 {
        font-size: 0.95rem;
    }

    .ceo-image-caption p {
        font-size: 0.72rem;
    }
}


/* =========================================
   FLOATING BADGE UPDATED
========================================= */

.ceo-floating-experience-card {
    position: absolute;

    bottom: 88px;   /* niche move */
    left: -14px;

    top: auto;

    background: #ffffff;

    padding: 4px 7px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    gap: 5px;

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(0, 82, 204, 0.08);

    z-index: 20;
}

/* ICON SMALL */

.ceo-badge-icon {
    width: 20px;
    height: 20px;

    border-radius: 6px;

    background: #f0f7ff;
    color: #0052cc;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.55rem;
}

/* TEXT SMALL */

.ceo-badge-txt strong {
    display: block;

    font-size: 0.56rem;
    line-height: 1.1;

    color: #090d16;
    font-weight: 800;
}

.ceo-badge-txt p {
    margin: 0;

    font-size: 0.48rem;
    line-height: 1.1;

    color: #64748b;
    font-weight: 600;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .ceo-floating-experience-card {

        bottom: 4px;
        left: -10px;

        padding: 4px 6px;

        transform: scale(0.92);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .ceo-floating-experience-card {

        bottom: 0;
        left: -8px;

        padding: 3px 5px;

        transform: scale(0.85);
    }

    .ceo-badge-icon {
        width: 18px;
        height: 18px;

        font-size: 0.5rem;
    }

    .ceo-badge-txt strong {
        font-size: 0.5rem;
    }

    .ceo-badge-txt p {
        font-size: 0.42rem;
    }
}

/* ==========================================================================
   FIX: STRICT MOBILE 375PX VIEWPORT ALIGNMENT FOR SHIVAYA HERO CONTENT
   ========================================================================== */

@media (max-width: 480px) {
    /* 1. Main sections wrapper boundaries reset */
    .about-hero-modern {
        padding: 40px 0 !important;
        min-height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Container standard padding space injection */
    .about-hero-modern .modern-container {
        padding: 0 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Text content wrapper box normalization */
    .about-hero-modern .content-side {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Forces items to stay dead center */
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* 4. Top Tagline (Shivaya Enterprises) text lock */
    .about-hero-modern .since-tag {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 5. FIX: Heading text wrap control (Preventions from clipping left/right) */
    .about-hero-modern .main-heading {
        font-size: 2.5rem !important; /* Scaled down perfectly to fit 375px screens */
        line-height: 1.2 !important;
        font-weight: 900 !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
    }

    /* 6. Description card block layout adjustment */
    .about-hero-modern .description-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important; /* Safe padding spaces */
        margin-bottom: 25px !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }

    .about-hero-modern .description-box p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
}

/* ==========================================================================
   FIX: STRICT MOBILE FOR STATS BOXES TO PREVENT RUNNING OUTSIDE THE SCREEN
   ========================================================================== */

@media (max-width: 480px) {
    /* 1. Purane horizontal display rules ko bypass kiya aur blocks ko flex wrap par dala */
    .about-hero-modern .stats-line {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* Forces row breaking */
        justify-content: center !important;
        gap: 12px !important; /* Perfect uniform margin gap */
        width: 100% !important;
        max-width: 100% !important;
        margin: 25px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Individual card shapes optimization (Barabar side-by-side spacing grid) */
    .about-hero-modern .line-stat {
        flex: 1 1 calc(50% - 12px) !important; /* 50% screen distribution layout matrix */
        max-width: calc(50% - 12px) !important;
        min-width: calc(50% - 12px) !important;
        padding: 12px 10px !important;
        background: rgba(255, 255, 255, 0.92) !important; /* Clean premium visible backdrop */
        border-radius: 14px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        display: block !important; /* Static layout behavior grid */
        margin: 0 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    /* 3. Third Card (Thermal Resistance) ko bottom layer par pure row width par lock kiya */
    .about-hero-modern .line-stat:nth-child(3) {
        flex: 1 1 100% !important; /* Takes full 100% layout line balance underneath */
        max-width: 100% !important;
        min-width: 100% !important;
    }

    /* 4. Font and text sizes calculation overrides inside cards to prevent breaks */
    .about-hero-modern .line-stat .val {
        font-size: 18px !important; /* High density display scale numbers */
        line-height: 1.2 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .about-hero-modern .line-stat .lbl {
        font-size: 11px !important;
        line-height: 1.3 !important;
        display: block !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   THE NUCLEAR OPTION: MASTER 375PX BREAKOUT OVERRIDE FOR BENTO SECTION
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Pure Outer Section Wrapper Framework Control */
    .app-matrix-section, 
    section[class*="matrix"] {
        padding: 40px 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .app-matrix-section .container {
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Grid Container Block Level Lock (Forces clean vertical stack row by row) */
    .app-bento-grid, 
    div[class*="bento-grid"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 24px !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* 3. Cards Boundary System Reset (Removes all broken widths and heights) */
    .app-item, 
    .large-card, 
    .small-card, 
    div[class*="app-item"],
    div[class*="-card"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        grid-row: auto !important;
        grid-column: auto !important;
        float: none !important;
        padding: 24px 16px !important;
        box-sizing: border-box !important;
        
        /* CANCELLING ALL UNSTABLE SCROLL REVEAL SHIFTS THAT PUSH TEXT RIGHT */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }

    /* 4. Text Master Block Core Alignment */
    .app-content {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* 5. UL List Box Level Reset */
    .app-item ul, 
    div[class*="app-item"] ul {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 20px 0 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        box-sizing: border-box !important;
    }

    /* 6. CRITICAL TEXT WRAPPING FORCE MACHINE (Brings clipped characters back to 375px) */
    .app-item ul li, 
    div[class*="app-item"] ul li {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 0 25px !important; /* Left channel strictly reserved for absolute arrow */
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        position: relative !important; /* Anchor node for arrow placement */
        text-align: left !important;
        
        /* TOTAL ROW CRASH PROTECTION OVERRIDES */
        display: block !important;
        white-space: normal !important;      /* Kills horizontal nowrap chaining */
        word-wrap: break-word !important;     /* Forces line-break at 375px bounds */
        word-break: break-word !important;     /* Cuts words safely if container hits wall */
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
        
        /* Cancelling reveal delay transform vectors */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 7. ARROW POSITION MATRIC CONTROL (Never pushes text, sits perfectly on the left margin) */
    .app-item ul li::before,
    div[class*="app-item"] ul li::before {
        content: '➔' !important;
        position: absolute !important;
        left: 0 !important;         /* Fixed left edge boundary zero lock */
        top: 0px !important;        /* Grid aligned precisely with first word baseline */
        color: #0052cc !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
    }

    /* 8. Bottom Illustration Vector Lock Protection */
    .app-visual, 
    div[class*="visual"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        margin-top: 20px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .app-visual img, 
    div[class*="visual"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


/* ==========================================================================
   PURE MOBILE ANIMATION TRANSITION OVERRIDE (ONLY SCROLL ENGINE VALUES)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. INITIAL ENTRY STATE (Scroll karne se pehle ki position reset) */
    .app-matrix-section .app-item,
    .app-matrix-section .large-card,
    .app-matrix-section .small-card,
    .app-matrix-section .reveal-item {
        /* Left/Right shifts ko kill karke safe clean vertical down-shift kiya */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(25px) !important; 
        
        /* Smooth cubic-bezier transition acceleration */
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* 2. ACTIVE TRIGGER STATE (Scroll tracker active hote hi smooth entry) */
    .app-matrix-section .app-item.active,
    .app-matrix-section .large-card.active,
    .app-matrix-section .small-card.active,
    .app-matrix-section .reveal-item.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important; /* Centers elements perfectly on zero vector */
    }

    /* 3. INNER ELEMENTS REVEAL OVERRIDE (Stops text lines from jumping right) */
    .app-matrix-section .app-item ul li,
    .app-matrix-section .app-item h3,
    .app-matrix-section .app-item i {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition-delay: 0s !important; /* Blocks inner texts delay clashing */
    }
}


/* PARENT IMAGE BOX */
.director-image{
    position:relative;
    width:260px;
    margin:auto;
}

/* IMAGE */
.director-image img{
    width:100%;
    border-radius:50%;
    display:block;
}

/* BADGE */
.director-badge{
    position:absolute;
    left:50%;
    transform:translateX(-50%);

    /* 👇 BADGE KO IMAGE KE PASS LANE KE LIYE */
    bottom:-12px;

    width:210px;
    padding:12px 18px;

    background:#fff;
    border-radius:18px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);

    display:flex;
    align-items:center;
    gap:10px;
}

/* MOBILE */
/* MOBILE FIX */
/* FINAL MOBILE FIX */

@media(max-width:768px){

    .director-badge{

        position:absolute !important;

        left:50% !important;

        top:130px !important;

        transform:translate(-50%, 0) !important;

        width:190px !important;

        padding:10px 14px !important;

        z-index:9999 !important;
    }

    .director-image{

        position:relative !important;

        overflow:visible !important;
    }
}

/* ==========================================================================
   CEO IMAGE AREA & MICRO-SIZE RESPONSIVE BADGE SYSTEM
   ========================================================================== */

.ceo-image-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- PERFECT ROUND IMAGE HOLDER --- */
.ceo-image-container {
    position: relative;
    width: 210px; /* PC पर संतुलित लुक के लिए */
    height: 210px;
    background: transparent;
    border: none;
    margin-bottom: 15px;
}

.ceo-img-round {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* --- SMALL FLOATING BADGE (PC/DESKTOP MODE) --- */
.ceo-floating-experience-card {
    position: absolute;
    bottom: 15px;       
    right: -20px;       
    background: #ffffff;
    padding: 6px 10px;   
    border-radius: 10px; 
    display: flex;
    align-items: center;
    gap: 6px;           
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 82, 204, 0.05);
    z-index: 10;
    width: max-content; 
}

.ceo-badge-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f0f7ff;
    color: #0052cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ceo-badge-txt strong {
    display: block;
    font-size: 0.72rem; 
    line-height: 1.1;
    color: #090d16;
    font-weight: 800;
}

.ceo-badge-txt p {
    margin: 0;
    font-size: 0.62rem; 
    line-height: 1.1;
    color: #64748b;
    font-weight: 600;
}

/* --- IMAGE CAPTION --- */
.ceo-image-caption {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.ceo-image-caption h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #090d16;
    margin-bottom: 4px;
}

.ceo-image-caption p {
    margin: 0;
    font-size: 0.82rem;
    color: #0052cc;
    font-weight: 700;
}

/* ==========================================================================
   MICRO BREAKPOINTS FOR MOBILE SCREENS (बैज को बहुत छोटा करने के लिए)
   ========================================================================== */

/* ==========================================================================
   FORCE MICRO-SIZE FOR MOBILE SCREENS
   ========================================================================== */

@media (max-width: 768px) {
    .ceo-image-container {
        width: 150px !important; /* इमेज को छोटा लॉक किया */
        height: 150px !important;
        margin-bottom: 20px !important; 
    }

    /* बैज को ज़बरदस्ती एकदम छोटा (Micro) करने के लिए !important */
    .ceo-floating-experience-card {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important; 
        bottom: -10px !important; 
        padding: 3px 6px !important; /* बेहद कम स्पेसिंग */
        border-radius: 6px !important;
        gap: 4px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
        width: max-content !important;
    }

    .ceo-badge-icon {
        width: 18px !important; /* एकदम छोटा आइकॉन */
        height: 18px !important;
        border-radius: 3px !important;
        font-size: 0.55rem !important;
    }

    .ceo-badge-txt strong {
        font-size: 0.6rem !important; /* बारीक और साफ फॉन्ट */
        letter-spacing: 0px !important;
    }

    .ceo-badge-txt p {
        font-size: 0.5rem !important;
        margin-top: 0 !important;
    }

    .ceo-image-caption {
        margin-top: 15px !important; 
    }
}

@media (max-width: 380px) {
    /* 375px जैसी स्क्रीन्स के लिए अल्टीमेट कॉम्पैक्ट मोड */
    .ceo-image-container {
        width: 135px;
        height: 135px;
    }

    .ceo-floating-experience-card {
        padding: 4px 6px;
        bottom: -10px;
    }

    .ceo-badge-icon {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }

    .ceo-badge-txt strong {
        font-size: 0.6rem;
    }

    .ceo-badge-txt p {
        font-size: 0.5rem;
    }
}

/* ==========================================================================
   THE ULTIMATE ULTRA-SPECIFIC OVERRIDE FOR CEO AREA
   ========================================================================== */

/* डेस्कटॉप और सभी साइज के लिए बेस रूट लॉकिंग */
section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* इमेज कंटेनर का साइज */
section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container {
    position: relative !important;
    width: 200px !important; /* PC पर भी छोटा और क्लीन */
    height: 200px !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 15px !important;
}

section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-img-round {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* पीसी/डेस्कटॉप मोड में छोटा बैज */
section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card {
    position: absolute !important;
    bottom: 10px !important;       
    right: -20px !important;       
    background: #ffffff !important;
    padding: 6px 10px !important;   
    border-radius: 10px !important; 
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;           
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 82, 204, 0.05) !important;
    z-index: 999 !important;
    width: max-content !important; 
}

section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px !important;
    background: #f0f7ff !important;
    color: #0052cc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
}

section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-txt strong {
    display: block !important;
    font-size: 0.7rem !important; 
    line-height: 1.1 !important;
    color: #090d16 !important;
    font-weight: 800 !important;
}

section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-txt p {
    margin: 0 !important;
    font-size: 0.6rem !important; 
    line-height: 1.1 !important;
    color: #64748b !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   FORCE MICRO-SIZE ON MOBILE (768PX & UNDER) - NO OVERLAP ESCAPE
   ========================================================================== */

@media (max-width: 768px) {
    /* मोबाइल पर इमेज और छोटी */
    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container {
        width: 140px !important; 
        height: 140px !important;
        margin-bottom: 20px !important; 
    }

    /* मोबाइल पर बैज का साइज़ ज़बरदस्ती एकदम छोटा (Micro) करने का फुल चैन लॉक */
    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important; 
        bottom: -12px !important; 
        padding: 4px 6px !important; /* सुपर कॉम्पैक्ट स्पेस */
        border-radius: 6px !important;
        gap: 4px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }

    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-icon {
        width: 16px !important; /* माइक्रो आइकॉन */
        height: 16px !important;
        border-radius: 3px !important;
        font-size: 0.5rem !important;
    }

    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-txt strong {
        font-size: 0.6rem !important; /* बारीक और साफ टेक्स्ट */
    }

    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card .ceo-badge-txt p {
        font-size: 0.5rem !important;
    }

    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-caption {
        margin-top: 20px !important; 
    }
}

@media (max-width: 768px) {
    /* ... बाकी कोड वैसे ही रहेगा ... */

    section.ceo-leadership-section .ceo-container .ceo-split-layout .ceo-image-side .ceo-image-container .ceo-floating-experience-card {
        right: auto !important;
        left: 50% !important;
        
        /* 1. बैज को ऊपर लेने के लिए: -12px से बढ़ाकर 5px या 10px कर दें (जितना ऊपर चाहिए उतनी वैल्यू बढ़ाएं) */
        bottom: 5px !important; 
        
        /* 2. बैज को लेफ्ट साइड में खिसकाने के लिए: यहाँ -25px या -30px लिख दें (जितना लेफ्ट चाहिए उतनी माइनस वैल्यू बढ़ाएं) */
        margin-left: -25px !important; 

        transform: translateX(-50%) !important; 
        padding: 4px 6px !important;
        border-radius: 6px !important;
        gap: 4px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }

    /* ... बाकी कोड वैसे ही रहेगा ... */
}