/* =============== Root tokens =============== */
:root{
    --brand: #FFA500;            /* Header/footer orange */
    --brand-700: #cc8400;        /* Darker orange for gradient */
    --blue: #1e63ff;             /* Primary blue (CTA/footer button) */
    --blue-600: #1954d8;         /* Hover blue */
    --panel: rgba(15,17,21,0.6);     /* main dark overlay above bg image rgba(15,17,21,0.6)*/
    --cta-panel: rgba(15,17,21,0.15); /* Orange overlay for CTA & .about-hero rgba(255,165,0,0.35)*/
    --card-panel: rgba(30,34,40,0.78);
    --card-border: rgba(255,255,255,0.0);
    --muted: #e8eaf0;
}

/* =============== Base =============== */
html, body { margin: 0; padding: 0; min-height: 100%; }
* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0f1114; /* fallback */
}

header, footer { flex: 0 0 auto; }

/* Ensure footer always shows above main's overlays */
footer {
    position: relative;
    z-index: 10;
    background: #0f1114; /* ensure footer has its own background */
}

/* =============== Main with background image =============== */
.about-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 100vh;
    overflow-x: hidden;
    /* Wider than global --content-max so About sections use more width on large displays */
    --content-max: min(1720px, 94vw);
}

/* Fixed background image layer */
.about-main.has-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -3;
    background-image: url("/static/image/company-slide-1.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay over the image */
.about-main.has-bg::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: var(--panel);
}

/* Semi-transparent dark band for content readability */
.about-main > section {
    position: relative;
    background: var(--panel);
    z-index: 1;
}

/* =============== Layout helpers =============== */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(12px, 1.8vw, 22px);
}

/* =============== Spacing =============== */
.about-hero {
    padding: clamp(16px, 3vw, 28px) 0;
    text-align: center;
    color: #fff;
    background: var(--cta-panel) !important;
}

.about-intro,
.about-values,
.about-story,
.about-timeline,
.about-certs {
    padding-block: clamp(12px, 1.6vw, 18px);
}

/* =============== Typography =============== */
.page-title {
    font-family: 'Orbitron','Roboto Mono', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: clamp(1.02rem, 2.2vw, 1.16rem);
    opacity: 0.95;
    margin: 0;
}

.section-title {
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    color: #fff;
    margin-bottom: clamp(8px, 1.4vw, 14px);
    font-size: clamp(1.5rem, 3.1vw, 2rem);
}

.intro-text h2,
.story-text h2 {
    font-family: 'Orbitron','Roboto Mono', Arial, sans-serif;
    color: #fff;
    margin: 0 0 10px 0;
    font-size: clamp(1.5rem, 3.1vw, 2rem);
}

.intro-text p,
.story-text p,
.card p,
.story-points {
    color: var(--muted);
    line-height: 1.85;
    font-size: clamp(1.06rem, 2.3vw, 1.18rem);
}

.story-points {
    margin: 8px 0 0 18px;
}

/* =============== Mission and Story dark panels =============== */
.about-intro .grid-2,
.about-story .grid-2 {
    background: var(--card-panel);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    padding: 16px;
    backdrop-filter: blur(1px);
}

.intro-text,
.story-text {
    padding: clamp(8px, 1.4vw, 16px);
}

.intro-figure,
.story-figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    background: rgba(17, 19, 22, 0.5);
}

.intro-figure img,
.story-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =============== Values cards =============== */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.6vw, 18px);
}

.card {
    background: var(--card-panel);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

.card img {
    width: 100%;
    height: clamp(150px, min(22vw, 28vh), 260px);
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Clean font for card titles */
.cards .card h3 {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    margin: 10px 0 8px;
    border-radius: 10px;
    color: #fff;
    z-index: 0;

    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    font-size: 1.06rem;
}

/* Orange ribbon behind card titles */
.cards .card h3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--blue-600), var(--blue));
    border-radius: 10px;
    z-index: -2;
    box-shadow:
            0 8px 22px rgba(255,165,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Gloss on ribbon */
.cards .card h3::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 3px;
    height: 45%;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
    z-index: -1;
    pointer-events: none;
}

.cards .card p {
    margin-top: 10px;
}

/* =============== Company history timeline =============== */
.about-timeline .container {
    max-width: min(var(--content-max), 100%);
}

.timeline-track {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(10px, 1.8vw, 28px);
    padding-block: clamp(28px, 4vw, 56px);
    padding-inline: clamp(4px, 1vw, 12px);
}

.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--brand);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.timeline-node {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: clamp(260px, min(34vw, 32vh), 380px);
}

.timeline-node::before,
.timeline-node::after {
    content: "";
    flex: 1 1 0;
    min-height: clamp(8px, 1.5vw, 16px);
}

.timeline-node::before {
    order: 0;
}

.timeline-node:nth-child(odd) > .timeline-card {
    order: 1;
}

.timeline-node:nth-child(odd) > .timeline-dot {
    order: 2;
}

.timeline-node:nth-child(odd) > .timeline-year {
    order: 3;
}

.timeline-node:nth-child(odd)::after {
    order: 4;
}

.timeline-node:nth-child(even) > .timeline-dot {
    order: 1;
}

.timeline-node:nth-child(even) > .timeline-year {
    order: 2;
}

.timeline-node:nth-child(even) > .timeline-card {
    order: 3;
}

.timeline-node:nth-child(even)::after {
    order: 4;
}

.timeline-card {
    width: 100%;
    max-width: 100%;
    background: var(--card-panel);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    padding: clamp(14px, 1.6vw, 22px);
    min-height: clamp(160px, min(26vh, 28vw), 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-card-title {
    margin: 0 0 6px 0;
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(0.92rem, 1.1vw + 0.75rem, 1.18rem);
    color: #fff;
    line-height: 1.25;
}

.timeline-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.82rem, 1.6vw, 0.92rem);
    line-height: 1.55;
}

.timeline-card-img {
    display: block;
    width: 100%;
    max-height: clamp(130px, min(22vw, 26vh), 280px);
    margin-top: clamp(6px, 1vw, 12px);
    object-fit: contain;
    border-radius: 8px;
    background: rgba(17, 19, 22, 0.45);
}

.timeline-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 2;
    margin-block: clamp(6px, 1vw, 10px);
}

.timeline-year {
    font-family: "Orbitron", "Roboto Mono", Arial, sans-serif;
    font-weight: 700;
    color: var(--brand);
    font-size: clamp(0.88rem, 0.9vw + 0.72rem, 1.12rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* =============== Certificates wall =============== */
.about-certs-intro {
    text-align: center;
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.6;
    margin: 0 auto clamp(18px, 2.5vw, 26px);
    max-width: 42rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 24px);
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.cert-card {
    background: var(--card-panel);
    border-radius: 12px;
    padding: clamp(12px, 1.4vw, 18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    overflow: visible;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.cert-icon-placeholder {
    width: clamp(96px, 10vw, 152px);
    max-height: clamp(128px, 14vw, 208px);
    height: auto;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    background: #fff;
    color: var(--muted);
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 0.95rem;
}

.about-certs,
.about-certs .container {
    overflow: visible;
}

.about-main > .about-certs {
    position: relative;
    z-index: 2147483000;
}

.about-certs .cert-card img {
    transform-origin: center center;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 2;
}

.about-certs .cert-card:hover {
    z-index: 2147483646;
}

.about-certs .cert-card img:hover {
    transform: scale(7);
    z-index: 2147483647;
}

.cert-name {
    margin: 12px 0 0 0;
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1.3;
}

.cert-desc {
    margin: 8px 0 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cert-badge {
    margin-top: clamp(12px, 1.6vw, 16px);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: clamp(0.75rem, 1.4vw, 0.82rem);
    font-weight: 600;
    line-height: 1.2;
}

/* =============== CTA section =============== */
.about-cta {
    position: relative;
    padding: clamp(16px, 3vw, 28px) 0;
    background: var(--cta-panel) !important; /* darker for CTA */
}

.cta-box {
    text-align: center;
    color: #fff;
}

/* Blue CTA button */
.btn-primary {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    border-radius: 18px;
    text-decoration: none;
    font-family: 'Orbitron','Roboto Mono', Arial, sans-serif;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 99, 255, 0.35);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.btn-primary:hover {
    background: var(--brand);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 22px rgba(25, 84, 216, 0.42);
}

/* =============== Responsive =============== */
@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1050px) {
    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: min(920px, 100%);
    }

    .cert-icon-placeholder {
        width: clamp(108px, 28vw, 140px);
        max-height: clamp(148px, 36vw, 190px);
    }

    .cert-card {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .timeline-track {
        flex-direction: column;
        align-items: stretch;
        padding-left: clamp(12px, 3vw, 20px);
        gap: clamp(20px, 4vw, 28px);
    }

    .timeline-track::before {
        left: clamp(18px, 5vw, 26px);
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline-node {
        min-height: 0;
        display: grid;
        grid-template-columns: 24px 1fr;
        grid-template-rows: auto auto;
        column-gap: clamp(12px, 3vw, 18px);
        row-gap: clamp(6px, 1.2vw, 10px);
        align-items: start;
        text-align: left;
    }

    .timeline-node::before,
    .timeline-node::after {
        display: none;
    }

    .timeline-node > .timeline-card,
    .timeline-node > .timeline-dot,
    .timeline-node > .timeline-year {
        order: unset;
    }

    .timeline-dot {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: center;
        justify-self: center;
        margin-block: 0;
    }

    .timeline-card {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
    }

    .timeline-year {
        grid-column: 2;
        grid-row: 2;
    }

    .timeline-card-img {
        max-height: clamp(160px, 42vw, 240px);
    }
}

@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    .card img { height: clamp(160px, 48vw, 220px); }
    .grid-2 { grid-template-columns: 1fr; }
    .cert-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.applications-section {
  background-color: #1a1a1a;
  padding: clamp(48px, 7vw, 80px) 0;
}

.applications-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.applications-section .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.applications-section .section-header p {
  font-size: 1rem;
  color: #aaaaaa;
  max-width: 560px;
  margin: 0 auto;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.industry-tile {
  background-color: #242424;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.industry-tile:hover {
  background-color: #2e2e2e;
  border-color: #e87722;
}

.industry-icon-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(96px, 12vw, 132px);
  display: block;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: brightness(0.95);
  transition: filter 0.2s ease;
}

.industry-tile:hover .industry-icon-img {
  filter: brightness(1.15);
}

.industry-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #dddddd;
  text-align: center;
  line-height: 1.4;
}

.industry-tile:hover .industry-name {
  color: #ffffff;
}
