/* =====================================================
   FRONT.CSS — UPDATED ABOUT + SERVICES SECTIONS
   Drop these rules into your front.css (replace the old
   .sectors, .homeabout, .numbersection, .sectorheading,
   .sectorcontent blocks entirely)
===================================================== */

/* =====================================================
   ABOUT SECTION
===================================================== */
.about-section {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Subtle dot grid atmosphere */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(4, 47, 101, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 47, 101, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ---- Left Column ---- */
.about-left {
    position: relative;
}

.about-kicker {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(4, 47, 101, 0.10);
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: -20px;
    left: -20px;
    letter-spacing: -0.02em;
}

/* SEBI badge */
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary, #252429);
    color: #fff;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 2px;
    margin-bottom: 40px;
    position: relative;
}

.about-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--color-orange, #e97238);
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(233, 114, 56, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(233, 114, 56, 0);
    }
}

/* Image wrapper */
.about-img-wrap {
    position: relative;
    margin-top: 60px;
    /* keeps the floating stat card contained on small screens */
    overflow: hidden;
    border-radius: 4px;
}

.about-img-wrap img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ── Styled placeholder — shown instead of <img> when photo not yet available ── */
.about-img-placeholder {
    width: 100%;
    height: 460px;
    border-radius: 4px;
    background: var(--color-primary, #252429);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

/* radial atmosphere */
.about-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(233, 114, 56, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* subtle dot grid on placeholder */
.about-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.about-img-placeholder .eg-monogram {
    font-size: 5.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.06em;
    line-height: 1;
    position: relative;
    z-index: 1;
    font-family: Georgia, serif;
}

.about-img-placeholder .eg-sub {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    position: relative;
    z-index: 1;
}

.about-img-placeholder .eg-bar {
    width: 48px;
    height: 2px;
    background: var(--color-orange, #e97238);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* SVG chart line inside placeholder */
.about-img-placeholder .chart-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.20;
    z-index: 1;
}

/* Floating stat card */
.about-stat-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #fff;
    border: 1px solid var(--color-border, #D2D5D9);
    border-radius: 4px;
    padding: 28px 32px;
    box-shadow: 0 24px 60px rgba(4, 47, 101, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.about-stat-card .stat-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-blue, #042f65);
    line-height: 1;
}

.about-stat-card .stat-num em {
    color: var(--color-orange, #e97238);
    font-style: normal;
}

.about-stat-card .stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted, #777A80);
    margin-top: 6px;
    line-height: 1.4;
}

/* ---- Right Column ---- */
.about-right {
    padding-top: 16px;
}

.about-headline {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary, #252429);
    margin-bottom: 28px;
    margin-top: 4px;
    letter-spacing: -0.01em;
}

.about-headline em {
    color: var(--color-blue, #042f65);
    font-style: italic;
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 36px;
}

/* Inline "Read More" link inside .about-body paragraph */
.about-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-orange, #e97238);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    margin-left: 6px;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.about-readmore:hover {
    color: var(--color-blue, #042f65);
    border-bottom-color: var(--color-blue, #042f65);
}

.about-readmore svg {
    transition: transform 0.25s ease;
}

.about-readmore:hover svg {
    transform: translateX(3px);
}

/* 2×2 pillar grid */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 44px;
}

.pillar-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg-light, #F7F8FA);
    border-radius: 4px;
    border-left: 3px solid var(--color-orange, #e97238);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pillar-item:hover {
    box-shadow: 0 8px 24px rgba(4, 47, 101, 0.10);
    transform: translateY(-2px);
}

.pillar-icon {
    width: 36px;
    height: 36px;
    background: var(--color-orange, #e97238);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.pillar-icon svg {
    width: 16px;
    height: 16px;
}

.pillar-text {
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary, #252429);
    line-height: 1.35;
    padding-top: 8px;
}

/* Section label shared style */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-orange, #e97238);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-orange, #e97238);
}

/* Animated ghost button (replaces .homeghostbutton) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--color-primary, #252429);
    padding: 16px 32px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary, #252429);
    transition: color 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary, #252429);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover::before {
    transform: scaleX(1);
}

.btn-ghost span, .btn-ghost svg {
    position: relative;
    z-index: 1;
}

.btn-ghost:hover {
    color: #fff;
}

.btn-ghost:hover svg {
    stroke: #fff;
}

/* =====================================================
   SERVICES SECTION  (dark, replaces .homeabout number blocks)
===================================================== */
.services-section {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, var(--color-blue, #042f65) 0%, #0a4a8c 60%, #1a6cb8 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 20%, rgba(233, 114, 56, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(4, 47, 101, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

/* Header row */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.services-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

.services-title em {
    color: var(--color-orange, #e97238);
    font-style: italic;
}

.services-subtitle {
    max-width: 360px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.75;
    text-align: right;
    margin: 0;
}

.services-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* 4-column card grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 25px 44px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.35s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-orange, #e97238), #f09060);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.service-card:hover::after {
    width: 100%;
}

.card-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    position: absolute;
    top: 24px;
    right: 28px;
    letter-spacing: -0.02em;
    user-select: none;
    transition: color 0.3s ease;
}

.service-card:hover .card-number {
    color: rgba(233, 114, 56, 0.15);
}

.card-icon {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--color-orange, #e97238);
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.service-card:hover .card-icon {
    background: var(--color-orange, #e97238);
    border-color: var(--color-orange, #e97238);
    color: #fff;
}

.card-title {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-desc {
    font-size: 0.88rem;
    color: #fff;
    line-height: 1.80;
    margin-bottom: 24px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.service-card:hover .card-tag {
    border-color: rgba(233, 114, 56, 0.40);
    color: #f09060;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-orange, #e97238);
    margin-top: 24px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.card-link svg {
    width: 14px;
    height: 14px;
}

.service-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

/* Footer CTA row */
.services-footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 18px 40px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-orange, #e97238);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-light:hover::before {
    transform: scaleX(1);
}

.btn-outline-light:hover {
    border-color: var(--color-orange, #e97238);
}

.btn-outline-light span, .btn-outline-light svg {
    position: relative;
    z-index: 1;
}

/* =====================================================
   REVEAL ANIMATION (requires IntersectionObserver JS)
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    border:1px solid rgba(255, 255, 255, 0.08);
}

.reveal-delay-1 {
    transition-delay: 0.10s;
}

.reveal-delay-2 {
    transition-delay: 0.20s;
}

.reveal-delay-3 {
    transition-delay: 0.30s;
}

.reveal-delay-4 {
    transition-delay: 0.40s;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* ── Tablet landscape (≤ 1100px) ── */
@media (max-width: 1100px) {
    .about-inner {
        gap: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tablet portrait (≤ 900px) ── */
@media (max-width: 900px) {
    /* About: stack columns */
    .about-section {
        padding: 80px 0 70px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-kicker {
        display: none;
    }

    /* Image */
    .about-img-wrap {
        margin-top: 0;
    }

    .about-img-wrap img,
    .about-img-placeholder {
        height: 360px;
    }

    /* Stat card — pull it inside the image, no negative right offset */
    .about-stat-card {
        position: absolute;
        bottom: 16px;
        right: 16px;
        padding: 20px 24px;
        min-width: 160px;
    }

    .about-stat-card .stat-num {
        font-size: 2.8rem;
    }

    /* Pillars: keep 2-col on tablet */
    .about-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Services */
    .services-section {
        padding: 80px 0 90px;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 50px;
    }

    .services-subtitle {
        text-align: left;
        max-width: 100%;
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    /* About section */
    .about-section {
        padding: 60px 0 50px;
    }

    /* Badge wraps gracefully */
    .about-badge {
        font-size: 0.60rem;
        letter-spacing: 0.12em;
        padding: 8px 14px;
        white-space: normal;
        line-height: 1.5;
    }

    /* Image shorter on small screens */
    .about-img-wrap {
        margin-top: 8px;
    }

    .about-img-wrap img,
    .about-img-placeholder {
        height: 280px;
    }

    /* Stat card: pull down & right but keep visible */
    .about-stat-card {
        position: absolute;
        bottom: 12px;
        right: 12px;
        padding: 16px 20px;
        min-width: 140px;
        box-shadow: 0 12px 30px rgba(4, 47, 101, 0.18);
    }

    .about-stat-card .stat-num {
        font-size: 2.2rem;
    }

    .about-stat-card .stat-label {
        font-size: 0.65rem;
    }

    /* Headline & body */
    .about-headline {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    .about-body {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 28px;
    }

    /* Pillars: single column */
    .about-pillars {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 32px;
    }

    .pillar-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .pillar-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .pillar-icon svg {
        width: 14px;
        height: 14px;
    }

    .pillar-text {
        font-size: 0.75rem;
    }

    /* Ghost button full-width on mobile */
    .btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }

    /* Services section */
    .services-section {
        padding: 60px 0 70px;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 24px 36px;
    }

    /* "Know More" always visible on touch (no hover) */
    .card-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Footer CTA full-width */
    .services-footer {
        margin-top: 40px;
    }

    .btn-outline-light {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
    .about-img-wrap img,
    .about-img-placeholder {
        height: 240px;
    }

    .about-stat-card {
        display: none;
    }

    /* hide if truly no room */
    .about-headline {
        font-size: 1.5rem;
    }
}