/* About Page Scoped CSS Namespace */
.about-page {
    color: var(--color-primary);
}

.about-page .about-hero {
    background-color: var(--color-bg-main);
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.about-page .about-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-page .about-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 36px auto;
}

.about-page .about-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Sections Structure */
.about-page .about-section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--color-border);
}

.about-page .about-section:last-of-type {
    border-bottom: none;
}

.about-page .about-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.about-page .about-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.about-page .about-section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Split Layout */
.about-page .split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Simple HubNest Ecosystem Visual */
.about-page .ecosystem-visual {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-page .ecosystem-node {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.about-page .ecosystem-node:hover {
    transform: translateX(4px);
    border-color: var(--color-accent);
}

.about-page .ecosystem-node-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Color codes mapping to HubNest product accent colors */
.about-page .badge-jobnest { background-color: #f59e0b; }
.about-page .badge-hrms { background-color: #ef4444; }
.about-page .badge-crm { background-color: #3b82f6; }
.about-page .badge-calling { background-color: #10b981; }
.about-page .badge-notification { background-color: #8b5cf6; }
.about-page .badge-tollfree { background-color: #ec4899; }
.about-page .badge-meeting { background-color: #06b6d4; }

/* Grid Cards */
.about-page .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-page .about-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.about-page .about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-page .about-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.about-page .about-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Visual Workflows */
.about-page .flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    flex-wrap: wrap;
}

.about-page .flow-step {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 28px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    min-width: 140px;
    text-align: center;
}

.about-page .flow-arrow {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 900;
}

/* Horizontal Flow Visuals with Sequential Flow Animation */
.about-page .flow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.about-page .flow-row-step {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    animation: flowHighlight 4.5s infinite ease-in-out;
}

.about-page .flow-row-arrow {
    color: var(--color-border);
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: arrowHighlight 4.5s infinite ease-in-out;
}

/* Sequential timing using nth-child */
.about-page .flow-row > *:nth-child(1) { animation-delay: 0s; }
.about-page .flow-row > *:nth-child(2) { animation-delay: 0.4s; }
.about-page .flow-row > *:nth-child(3) { animation-delay: 0.8s; }
.about-page .flow-row > *:nth-child(4) { animation-delay: 1.2s; }
.about-page .flow-row > *:nth-child(5) { animation-delay: 1.6s; }
.about-page .flow-row > *:nth-child(6) { animation-delay: 2.0s; }
.about-page .flow-row > *:nth-child(7) { animation-delay: 2.4s; }
.about-page .flow-row > *:nth-child(8) { animation-delay: 2.8s; }
.about-page .flow-row > *:nth-child(9) { animation-delay: 3.2s; }

@keyframes flowHighlight {
    0%, 100% {
        background-color: var(--color-bg-main);
        border-color: var(--color-border);
        color: var(--color-text-muted);
        box-shadow: none;
        transform: translateY(0);
    }
    8%, 24% {
        background-color: rgba(37, 99, 235, 0.05);
        border-color: var(--color-accent);
        color: var(--color-primary);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15);
    }
    32% {
        background-color: var(--color-bg-main);
        border-color: var(--color-border);
        color: var(--color-text-muted);
        box-shadow: none;
        transform: translateY(0);
    }
}

@keyframes arrowHighlight {
    0%, 100% {
        color: var(--color-border);
        transform: scale(1);
    }
    8%, 24% {
        color: var(--color-accent);
        transform: scale(1.3) translateX(2px);
    }
    32% {
        color: var(--color-border);
        transform: scale(1) translateX(0);
    }
}

/* Large Typography Vision Section */
.about-page .vision-typography {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.about-page .vision-statement {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 16px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

/* Brand Statement banner */
.about-page .brand-statement-banner {
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
}

.about-page .brand-statement-banner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-page .brand-statement-banner p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .about-page .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-page .about-hero-title {
        font-size: 2.25rem;
    }
    .about-page .about-section-title {
        font-size: 1.8rem;
    }
    .about-page .vision-statement {
        font-size: 1.8rem;
    }
    .about-page .brand-statement-banner {
        padding: 48px 24px;
    }
    .about-page .brand-statement-banner h2 {
        font-size: 1.75rem;
    }
}

/* Horizontal Marquee Scroll for About Page Cards */
.about-grid-marquee {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, white 8%, white 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 8%, white 92%, transparent);
    padding: 10px 0;
}

.about-marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.about-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

/* Row 1 scrolls left */
.row-left .about-marquee-track {
    animation: aboutMarqueeLeft 30s linear infinite;
}

/* Row 2 scrolls right */
.row-right .about-marquee-track {
    animation: aboutMarqueeRight 26s linear infinite;
}

.about-page .about-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    width: 320px; /* fixed size for smooth marquee looping */
    white-space: normal;
}

@keyframes aboutMarqueeLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes aboutMarqueeRight {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Why Choose HubNest Cards Special Animations */
.about-page .choose-card-wrapper {
    height: 100%;
}

.about-page .choose-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-page .choose-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(249, 115, 22, 0.04) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.about-page .choose-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-primary) 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-page .choose-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03) !important;
}

.about-page .choose-card:hover::before {
    opacity: 1;
}

.about-page .choose-card:hover::after {
    transform: scaleY(1);
}

.about-page .choose-card .about-card-title {
    transition: color 0.3s ease;
}

.about-page .choose-card:hover .about-card-title {
    color: var(--color-accent);
}

/* Teams Grid Layout */
.about-page .teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .about-page .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .about-page .teams-grid {
        grid-template-columns: 1fr;
    }
}

/* Teams Card Style */
.about-page .teams-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.015);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.about-page .teams-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--accent-rgb), 0.3) !important;
}

/* Theme Colors for Cards */
.about-page .teams-card.color-orange { --accent-rgb: 249, 115, 22; --accent-hex: #f97316; border-top: 4px solid #f97316; }
.about-page .teams-card.color-blue { --accent-rgb: 37, 99, 235; --accent-hex: #2563eb; border-top: 4px solid #2563eb; }
.about-page .teams-card.color-purple { --accent-rgb: 139, 92, 246; --accent-hex: #8b5cf6; border-top: 4px solid #8b5cf6; }
.about-page .teams-card.color-green { --accent-rgb: 34, 197, 94; --accent-hex: #22c55e; border-top: 4px solid #22c55e; }
.about-page .teams-card.color-yellow { --accent-rgb: 234, 179, 8; --accent-hex: #eab308; border-top: 4px solid #eab308; }
.about-page .teams-card.color-pink { --accent-rgb: 236, 72, 153; --accent-hex: #ec4899; border-top: 4px solid #ec4899; }
.about-page .teams-card.color-teal { --accent-rgb: 20, 184, 166; --accent-hex: #14b8a6; border-top: 4px solid #14b8a6; }

/* Icon Wrapper */
.about-page .teams-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-rgb), 0.08);
    margin-bottom: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    flex-shrink: 0;
}

.about-page .teams-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-hex);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Card Content styling */
.about-page .teams-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.about-page .teams-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Bottom Button styling */
.about-page .teams-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.about-page .teams-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-hex);
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.about-page .teams-card:hover .teams-btn {
    background-color: var(--accent-hex);
    border-color: var(--accent-hex);
}

.about-page .teams-card:hover .teams-btn svg {
    stroke: #ffffff;
    transform: translateX(2px);
}

/* Wide Card layouts */
.about-page .teams-card.wide-card {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.about-page .teams-card.wide-card .teams-icon-wrapper {
    margin-bottom: 0;
}

.about-page .teams-card.wide-card .teams-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    height: 100%;
}

@media (max-width: 1024px) {
    .about-page .teams-card.wide-card {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .about-page .teams-card.wide-card {
        flex-direction: column;
        gap: 16px;
    }
    .about-page .teams-card.wide-card .teams-icon-wrapper {
        margin-bottom: 12px;
    }
}
