/**
 * Formula Premium - About Us 1 Template Stylesheet (Pattern 3: Unique Sections)
 * 
 * Scoped styles for the modernized About page layouts.
 * Uses theme variables to align colors automatically.
 */

/* ==========================================================================
   Global & Utility Styles
   ========================================================================== */
.about-template-active .section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.about-template-active .section-title-wrap {
    margin-bottom: 50px;
    text-align: center;
}

.about-template-active .section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--thm-primary);
    margin-bottom: 12px;
}

.about-template-active .section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 0;
}

.theme-dark .about-template-active .section-title,
.about-template-active .theme-dark .section-title {
    color: #ffffff;
}

/* ==========================================================================
   1. Our Story Section (Split Grid & Collage)
   ========================================================================== */
.about-intro-section {
    background-color: #ffffff;
}

.about-story-content .story-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--thm-primary);
    background-color: rgba(97, 206, 112, 0.1);
    padding: 6px 16px;
    border-radius: var(--thm-badge-radius, 50px);
    margin-bottom: 20px;
}

@supports (background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent)) {
    .about-story-content .story-tag {
        background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent);
    }
}

.about-story-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 25px;
}

.about-story-content .lead-text {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.about-story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
}

.about-story-content .btn-story-cta {
    background-color: var(--thm-primary);
    color: #ffffff;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--thm-btn-radius, 30px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.about-story-content .btn-story-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    opacity: 0.95;
}

/* Image Collage */
.about-image-collage {
    position: relative;
    width: 100%;
    height: 480px;
}

.about-image-collage .collage-bg-shape {
    position: absolute;
    bottom: 20px;
    left: -20px;
    width: 250px;
    height: 250px;
    background-color: var(--thm-primary);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 1;
}

.about-image-collage .main-img-wrap {
    position: absolute;
    width: 75%;
    height: 80%;
    top: 0;
    left: 10%;
    border-radius: var(--thm-card-radius, 12px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.about-image-collage .main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-collage:hover .main-img-wrap img {
    transform: scale(1.05);
}

.about-image-collage .floating-img-wrap {
    position: absolute;
    width: 48%;
    height: 50%;
    bottom: 0;
    right: 0;
    border-radius: var(--thm-card-radius, 12px);
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.about-image-collage .floating-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-collage .experience-badge {
    position: absolute;
    left: 0;
    bottom: 40px;
    background-color: var(--thm-primary);
    color: #ffffff;
    padding: 20px;
    border-radius: var(--thm-card-radius, 12px);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 4;
    min-width: 130px;
}

.about-image-collage .experience-badge span {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.about-image-collage .experience-badge p {
    margin: 4px 0 0 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

/* ==========================================================================
   2. Mission, Vision & Core Values (Tabbed & Video Showcase)
   ========================================================================== */
.about-mission-section {
    background-color: #f8fafc;
}

/* Video/Image Showcase Card */
.video-showcase-card {
    position: relative;
    border-radius: var(--thm-card-radius, 16px);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    height: 400px;
}

.video-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-showcase-card .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-showcase-card .play-btn-wrap {
    width: 84px;
    height: 84px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--thm-primary);
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(123, 64, 192, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding-left: 6px;
    /* Perfect centering for play icon */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.video-showcase-card .play-btn-wrap:hover {
    transform: scale(1.12);
    background: linear-gradient(135deg, var(--thm-primary) 0%, #9c5cfa 100%);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(123, 64, 192, 0.45), 0 0 0 6px rgba(123, 64, 192, 0.15);
    border-color: transparent;
}

/* Double pulsating premium wave effect */
.video-showcase-card .play-btn-wrap::before,
.video-showcase-card .play-btn-wrap::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.video-showcase-card .play-btn-wrap::before {
    animation: pulsePlayDouble 2.4s cubic-bezier(0.25, 0, 0, 1) infinite;
}

.video-showcase-card .play-btn-wrap::after {
    animation: pulsePlayDouble 2.4s cubic-bezier(0.25, 0, 0, 1) infinite;
    animation-delay: 1.2s;
}

@keyframes pulsePlayDouble {
    0% {
        transform: scale(1);
        opacity: 0.8;
        border-color: rgba(255, 255, 255, 0.8);
    }

    50% {
        border-color: rgba(123, 64, 192, 0.5);
    }

    100% {
        transform: scale(1.92);
        opacity: 0;
        border-color: rgba(123, 64, 192, 0);
    }
}

/* Interactive Tabs */
.about-tabs-container {
    background-color: #ffffff;
    padding: 35px;
    border-radius: var(--thm-card-radius, 12px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.about-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
    gap: 15px;
}

.about-tabs-nav button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    color: #64748b;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-tabs-nav button:hover {
    color: #1e293b;
}

.about-tabs-nav button.active {
    color: var(--thm-primary);
}

.about-tabs-nav button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--thm-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-tabs-nav button.active::after {
    transform: scaleX(1);
}

.about-tab-pane {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

.about-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-tab-pane h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.about-tab-pane p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

.about-tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-tab-pane ul li {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-tab-pane ul li i {
    color: var(--thm-primary);
    font-size: 16px;
}

/* ==========================================================================
   3. Company History Timeline Section
   ========================================================================== */
.about-timeline-section {
    background-color: #ffffff;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

/* Vertical Center Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #e2e8f0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
    box-sizing: border-box;
}

/* Alternating Alignment */
.timeline-item.left-aligned {
    left: 0;
    text-align: right;
}

.timeline-item.right-aligned {
    left: 50%;
    text-align: left;
}

/* Milestones Pulsing Node Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--thm-primary);
    border: 4px solid #ffffff;
    top: 6px;
    z-index: 2;
}

.timeline-item.left-aligned::after {
    right: -9px;
}

.timeline-item.right-aligned::after {
    left: -9px;
}

/* Timeline Card */
.timeline-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-card-radius, 12px);
    padding: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border-color: var(--thm-primary);
}

.timeline-card .year-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--thm-primary);
    padding: 4px 12px;
    border-radius: var(--thm-badge-radius, 30px);
    margin-bottom: 12px;
}

.timeline-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.timeline-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0;
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item::after {
        left: 11px;
    }
}

/* ==========================================================================
   4. Culture & Pillars Section
   ========================================================================== */
.about-culture-section {
    background-color: #ffffff;
}

.about-culture-section .row > div {
    margin-bottom: 30px;
}

.culture-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: var(--thm-card-radius, 12px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.culture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--thm-primary);
}

.culture-card .culture-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: rgba(97, 206, 112, 0.15);
    color: var(--thm-primary);
    font-size: 24px;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@supports (background-color: color-mix(in srgb, var(--thm-primary) 15%, transparent)) {
    .culture-card .culture-icon-box {
        background-color: color-mix(in srgb, var(--thm-primary) 15%, transparent);
    }
}

.culture-card:hover .culture-icon-box {
    background-color: var(--thm-primary);
    color: #ffffff;
}

.culture-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.culture-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   5. CTA Banner Section
   ========================================================================== */
.about-cta-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.about-cta-banner {
    background: linear-gradient(135deg, var(--thm-primary) 0%, #3b82f6 100%);
    border-radius: var(--thm-card-radius, 24px);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(123, 64, 192, 0.15);
    position: relative;
    overflow: hidden;
}

.about-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.about-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.about-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.about-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--thm-primary);
    padding: 16px 36px;
    border-radius: var(--thm-btn-radius, 12px);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.about-cta-btn:hover {
    background-color: var(--thm-black, #020617);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.about-cta-btn i {
    transition: transform 0.2s ease;
}

.about-cta-btn:hover i {
    transform: translateX(3px);
}

/* Dark Mode overrides */
.theme-dark .about-cta-section {
    background-color: var(--thm-black-rgb);
}

.theme-dark .about-cta-banner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Inline Video Iframe Playback */
.video-showcase-card iframe.video-iframe-inline {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   Light Theme Overrides (Exclusive Design)
   ========================================================================== */
.about-template-active.theme-light .about-intro-section,
.about-template-active.theme-light .about-cta-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.about-template-active.theme-light .about-mission-section,
.about-template-active.theme-light .about-timeline-section,
.about-template-active.theme-light .about-culture-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.about-template-active.theme-light .section-title,
.about-template-active.theme-light .about-story-content h2,
.about-template-active.theme-light .about-tab-pane h3,
.about-template-active.theme-light .timeline-card h3,
.about-template-active.theme-light .culture-card h3 {
    color: #0f172a;
    letter-spacing: -0.5px;
}

.about-template-active.theme-light .about-story-content p,
.about-template-active.theme-light .about-story-content .lead-text,
.about-template-active.theme-light .about-tab-pane p,
.about-template-active.theme-light .about-tab-pane ul li,
.about-template-active.theme-light .timeline-card p,
.about-template-active.theme-light .culture-card p {
    color: #334155;
    font-weight: 500;
}

/* Glassmorphism Cards */
.about-template-active.theme-light .about-tabs-container,
.about-template-active.theme-light .timeline-card,
.about-template-active.theme-light .culture-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.about-template-active.theme-light .culture-card:hover,
.about-template-active.theme-light .timeline-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #ffffff;
    transform: translateY(-8px) scale(1.02);
}

/* Timeline specific premium styling */
.about-template-active.theme-light .timeline-item::after {
    background: var(--thm-primary);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4), 0 10px 20px rgba(15, 23, 42, 0.15);
    border: 2px solid #ffffff;
    transition: all 0.4s ease;
}

.about-template-active.theme-light .timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8), 0 15px 30px rgba(15, 23, 42, 0.2);
}

.about-template-active.theme-light .timeline-wrapper::before {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.1) 10%, rgba(15, 23, 42, 0.1) 90%, transparent);
}

/* Nav tabs */
.about-template-active.theme-light .about-tabs-nav button:hover,
.about-template-active.theme-light .about-tabs-nav button.active {
    color: var(--thm-primary);
}