/* Company "About Us" Page Styles - Tech Theme */

/* Variables */
:root {
    --tech-blue-dark: #001529;
    --tech-blue-mid: #003366;
    --tech-blue-light: #0056B3;
    /* Matches Main Point Color */
    --tech-accent: #00A3E0;
    /* Matches Main Accent Color */
    --text-white: #ffffff;
    --text-gray: #b0b8c1;
    --bg-light: #f4f7f9;
}

.text-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    /* Fallback color */
}

/* General Layout */
.company-container {
    max-width: 1600px;
    /* Increased from 1400px for wider look */
    margin: 0 auto;
    padding: 0 50px 100px;
}

/* HERO SECTION */
.company-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--tech-blue-dark), var(--tech-blue-mid));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    /* Flush with main content if needed */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 170, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 170, 255, 0.1) 0%, transparent 20%);
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9ME0wIDQwaDQwVjBIMHY0MHptMS0xaDM4VjFIMXYzOHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L2c+PC9zdmc+');
    /* Subtle grid pattern */
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--tech-accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--tech-accent);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--tech-accent);
}

/* MAIN CONTENT WRAPPER (Split Layout) */
.company-content-wrapper {
    display: grid;
    grid-template-columns: 48% 50%;
    /* Widen left column slightly */
    gap: 2%;
    /* Use percentage gap for flexibility */
    margin-top: 80px;
    margin-bottom: 120px;
    align-items: start;
}

.section-label {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    display: block;
    /* Make sure it takes distinct line */
}

/* LEFT: Brand Story */
.brand-story-side {
    padding-right: 0;
    /* Removed padding to maximize text width */
}

.story-content-side.flex-row-layout {
    display: flex;
    flex-direction: row;
    /* Back to Row as per image */
    align-items: flex-start;
    gap: 30px;
}

.story-icon-side {
    flex-shrink: 0;
    width: 90px;
    /* Fixed width for icon column */
    text-align: center;
    padding-top: 10px;
    /* Slight visual alignment with text spacing */
}

.story-icon-side img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 50, 100, 0.1));
    transition: transform 0.3s;
}

.story-icon-side img:hover {
    transform: scale(1.05);
}

.story-text-box {
    flex: 1;
    /* Take remaining width */
}

.story-text-box h3 {
    font-size: 28px;
    /* Larger title */
    font-weight: 800;
    line-height: 1.3;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.story-text-box h3 strong {
    color: var(--tech-blue-mid);
}

.story-text-box p {
    font-size: 19px;
    /* Increased from 16px */
    line-height: 1.7;
    /* Adjusted for larger text */
    color: #333;
    /* Slightly darker for better readability at scale */
    font-weight: 500;
    /* Slightly heavier weight */
    margin-top: 15px;
    margin-top: 15px;
    white-space: pre-wrap;
}

#story-desc-mobile {
    display: none;
}


/* RIGHT: Competencies */
.competency-grid-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.comp-card-side {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.comp-card-side:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--tech-accent);
}

.comp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e3f2fd;
    color: var(--tech-blue-mid);
    font-size: 24px;
}

.comp-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.comp-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    word-break: keep-all;
}


/* MILESTONES (Arrow Style) */
.company-section.milestones {
    margin-top: 60px;
}

.milestone-timeline {
    display: flex;
    gap: 10px;
    /* Small gap between arrows */
    margin-top: 40px;
}

.milestone-card {
    flex: 1;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    position: relative;
}

/* The Arrow Header */
.milestone-card .phase-badge {
    display: none;
}

/* Hide old badge if present */

.milestone-card::before {
    /* This creates the arrow shape background */
    content: '';
    display: block;
    height: 60px;
    background: linear-gradient(to right, var(--tech-blue-mid), var(--tech-blue-light));
    clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%, 7% 50%);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* clip-path shadows don't work well directly, but let's keep it simple flat arrow first */
}

/* First arrow no tail */
.milestone-card:first-child::before {
    clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%);
    background: linear-gradient(to right, var(--tech-blue-dark), var(--tech-blue-mid));
}

/* Last arrow no point? Or keep point. Let's keep point for consistency */

/* Header Text inside Arrow */
.milestone-card .phase-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 10px;
    left: 40px;
    /* Adjust based on arrow tail */
    text-transform: uppercase;
}

.milestone-card .phase-title {
    font-size: 18px;
    color: #fff;
    position: absolute;
    top: 28px;
    left: 40px;
    margin: 0;
    border: none;
    padding: 0;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* List Style */
.milestone-card .phase-list {
    padding-left: 20px;
    border-left: 2px solid #eee;
    margin-left: 20px;
}

.milestone-card .phase-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .company-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .competency-grid-side {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .company-container {
        padding: 0 20px 60px;
    }

    .company-hero-banner {
        height: 175px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-sub {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .section-label {
        font-size: 19px;
    }

    .company-content-wrapper {
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .story-content-side.flex-row-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .story-icon-side {
        display: none;
    }

    .story-text-box h3 {
        font-size: 20px;
    }



    /* Toggle Desc */
    #story-desc {
        display: none;
    }

    #story-desc-mobile {
        display: block !important;
        font-size: 16px;
        line-height: 1.7;
        color: #333;
        font-weight: 500;
        margin-top: 15px;
        white-space: pre-wrap;
    }

    .story-text-box p {
        font-size: 16px;
    }

    .competency-grid-side {
        grid-template-columns: 1fr;
    }

    .comp-card-side {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        padding: 20px;
    }

    .comp-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
        margin: 0;
        flex-shrink: 0;
    }

    .comp-info h4 {
        margin-bottom: 4px;
    }

    .milestone-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .milestone-card::before {
        clip-path: none;
        border-radius: 8px;
    }

    .milestone-card:first-child::before {
        clip-path: none;
        background: linear-gradient(to right, var(--tech-blue-mid), var(--tech-blue-light));
        border-radius: 8px;
    }

    .milestone-card .phase-title,
    .milestone-card .phase-year {
        left: 20px;
    }
}