:root {
    --primary-red: #CF2211;
    --primary-blue: #003B73;
    --white: #FFFFFF;
    --dark-text: #000000;
    --light-bg: #F7F9FC;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background: var(--white);
    padding-top: 86px;
}

section {
    scroll-margin-top: 100px;
}

/* Loader */
body.loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(circle at center, rgba(0, 59, 115, 0.08), transparent 38%),
        linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    display: grid;
    place-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.blueprint-box {
    position: relative;
    width: 320px;
    height: 220px;
    display: grid;
    place-items: center;
}

.blueprint-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
}

.blueprint-svg line,
.blueprint-svg circle,
.blueprint-svg path {
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawBlueprint 1.25s ease forwards;
}

.blueprint-svg circle:nth-of-type(1) {
    animation-delay: 0.25s;
}

.blueprint-svg circle:nth-of-type(2) {
    animation-delay: 0.45s;
}

.blueprint-svg path {
    animation-delay: 0.6s;
}

.metal-part {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.65) rotateX(65deg);
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #d9dde3 18%, #8f9aa6 42%, #4f5f6f 78%, #263445 100%);
    box-shadow:
        inset -10px -14px 24px rgba(0, 0, 0, 0.32),
        inset 10px 10px 22px rgba(255, 255, 255, 0.45),
        0 22px 50px rgba(0, 59, 115, 0.24);
    animation: formMetalPart 1.2s ease forwards 1.15s,
               rotateMetal 1.4s ease-in-out forwards 1.7s;
}

.metal-part::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: #f7f9fc;
    box-shadow:
        inset 5px 5px 12px rgba(0, 0, 0, 0.28),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.metal-part::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 59, 115, 0.18);
    filter: blur(0.2px);
}

.loader-logo {
    opacity: 0;
    transform: translateY(16px);
    animation: revealLoaderLogo 0.7s ease forwards 2.1s;
}

.loader-logo img {
    height: 58px;
    width: auto;
}

.page-ready .site-header {
    animation: navReveal 0.8s ease forwards;
}

.page-ready .hero-content {
    animation: heroFadeUp 1s ease forwards;
}

@keyframes drawBlueprint {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes formMetalPart {
    to {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

@keyframes rotateMetal {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    100% {
        transform: scale(1) rotateY(360deg);
    }
}

@keyframes revealLoaderLogo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navReveal {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .blueprint-box {
        width: 260px;
        height: 180px;
    }

    .metal-part {
        width: 78px;
        height: 78px;
    }

    .loader-logo img {
        height: 48px;
    }
}

.section-reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    backdrop-filter: blur(14px);
    z-index: 9999;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    border-bottom: 2px solid var(--dark-text);
}

.site-header.scrolled {
    box-shadow: 0 14px 35px rgba(0, 59, 115, 0.12);
}

.navbar {
    width: min(1350px, 92%);
    height: 100px;
    margin: auto;
    display: grid;
    grid-template-columns: 220px 1fr 100px;
    align-items: center;
    gap: 30px;
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.logo-tagline {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--primary-blue);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-blue);
    opacity: 0.75;
    white-space: nowrap;
}

.nav-center {
    position: relative;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(247, 249, 252, 0.9);
    border: 1px solid rgba(0, 59, 115, 0.08);
}

.nav-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: flex;
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 500;
    padding: 11px 18px;
    border-radius: 99px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
    color: rgb(248, 91, 91);
}

.nav-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    height: 42px;
    width: 80px;
    border-radius: 99px;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 8px 18px rgba(0, 59, 115, 0.22);
    z-index: 1;
    transition:
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rfq-btn {
    justify-self: end;
    text-decoration: none;
    background: var(--primary-red);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 90px;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rfq-btn:hover {
    /* box-shadow: 0 16px 30px rgba(200, 16, 46, 0.32); */
    background-color: var(--white);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary-blue);
    margin: 6px 0;
    border-radius: 10px;
}

/* Tablet / Mobile */
@media (max-width: 992px) {
    body {
        padding-top: 76px;
    }

    .navbar {
        height: 100px;
        grid-template-columns: 1fr auto auto;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .rfq-btn {
        order: 2;
        padding: 11px 22px;
        font-size: 14px;
    }

    .nav-center {
        position: absolute;
        top: 76px;
        left: 4%;
        width: 92%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-radius: 24px;
        padding: 18px;
        box-shadow: 0 18px 45px rgba(0, 59, 115, 0.14);
    }

    .nav-center.show {
        display: flex;
    }

    .nav-link {
        color: var(--dark-text);
        padding: 14px 18px;
    }

    .nav-link.active,
    .nav-link:hover {
        color: var(--primary-blue);
        background: var(--light-bg);
    }

    .nav-pill {
        display: none;
    }
}

@media (max-width:576px){

    .navbar{
        grid-template-columns:1fr auto auto;
        gap:10px;
    }

    .rfq-btn{
        display:block;
        padding:10px 18px;
        font-size:13px;
    }
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 86px);
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    gap: 50px;
    padding: 50px 6% 60px;
    overflow: hidden;
    background:
        linear-gradient(120deg, #ffffff 0%, #ffffff 52%, #f3f7fb 52%, #f3f7fb 100%);
}

.hero-content {
    animation: heroFadeUp 1s ease forwards;
}

.hero-tagline {
    display: inline-block;
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.18;
    color: var(--primary-blue);
    margin-bottom: 22px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    max-width: 620px;
    margin-bottom: 32px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.hero-points div {
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(0, 59, 115, 0.08);
}

.hero-points h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.hero-points span {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-text);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-btn.primary {
    background: var(--primary-red);
    color: #ffffff;
    border: 1px solid var(--primary-red);
}

.hero-btn.secondary {
    background: #ffffff;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.hero-btn.primary:hover {
    color: var(--primary-red);
    background-color: var(--white);
    border: 1px solid var(--primary-red);
}

.hero-btn.secondary:hover{
    color: var(--white);
    background-color: var(--primary-blue);
}

.hero-gallery {
    height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    overflow: hidden;
    position: relative;
}

.hero-gallery::before,
.hero-gallery::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 5;
    pointer-events: none;
}

.hero-gallery::before {
    top: 0;
    background: linear-gradient(to bottom, #f3f7fb, transparent);
}

.hero-gallery::after {
    bottom: 0;
    background: linear-gradient(to top, #f3f7fb, transparent);
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.image-column img {
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(0, 59, 115, 0.08);
    box-shadow: 0 18px 40px rgba(0, 59, 115, 0.16);
}

.image-column img:nth-child(1) {
    height: 260px;
}

.image-column img:nth-child(2) {
    height: 360px;
}

.image-column img:nth-child(3) {
    height: 300px;
}

.image-column img:nth-child(4) {
    height: 420px;
}

.scroll-up {
    animation: scrollUp 22s linear infinite;
}

.scroll-down {
    animation: scrollDown 26s linear infinite;
}

.scroll-up.slow {
    animation-duration: 30s;
}

.hero-gallery:hover .image-column {
    animation-play-state: paused;
}

@keyframes scrollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-45%);
    }
}

@keyframes scrollDown {
    from {
        transform: translateY(-45%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 60px 6%;
        background: #ffffff;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-gallery {
        height: 620px;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-gallery .image-column:nth-child(3) {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        height: 520px;
        grid-template-columns: 1fr;
    }

    .hero-gallery .image-column:nth-child(2),
    .hero-gallery .image-column:nth-child(3) {
        display: none;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* Products / Components */

.capability-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-text);
    background: #f4f7fb;
    border: 1px solid var(--dark-text);
    padding: 9px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
}

.product-explorer-section {
    min-height: 80vh;
    padding: 50px 6%;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    overflow: hidden;
}

.product-explorer-wrap {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 56px;
    align-items: center;
}

.product-visual-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    height: 520px;
    width: auto;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 59, 115, 0.16);
    border: 1px solid rgba(0, 59, 115, 0.08);
}

.product-main-image img,
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 0.45s ease,
        transform 0.65s ease,
        filter 0.45s ease;
}

.product-main-image:hover img {
    transform: scale(1.04);
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-thumb {
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 14px 35px rgba(0, 59, 115, 0.12);
    border: 1px solid rgba(0, 59, 115, 0.08);
    cursor: pointer;
}

.product-thumb:hover img {
    transform: scale(1.08);
}

.product-category-side {
    max-width: 520px;
}

.product-category-side h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 34px;
}

.product-explorer-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explorer-category {
    position: relative;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-text);
    padding: 18px 20px 18px 28px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.explorer-category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 99px;
    background: var(--primary-red);
    transform: translateY(-50%);
    transition: height 0.35s ease;
}

.explorer-category:hover {
    color: var(--primary-blue);
    background: rgba(0, 59, 115, 0.04);
    transform: translateX(6px);
}

.explorer-category.active {
    color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 59, 115, 0.1);
}

.explorer-category.active::before {
    height: 60%;
}

.product-main-image.changing img,
.product-thumb.changing img {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(8px);
}

.product-capability-note {
    align-self: center;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    padding: 15px 28px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.12);
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 14px 35px rgba(0, 59, 115, 0.08);
}

@media (max-width: 992px) {
    .product-explorer-section {
        min-height: auto;
        padding: 80px 6%;
    }

    .product-explorer-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-main-image {
        height: 460px;
    }

    .product-category-side {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .product-main-image {
        height: 330px;
        border-radius: 26px;
    }

    .product-thumbnails {
        gap: 12px;
    }

    .product-thumb {
        height: 95px;
        border-radius: 18px;
    }

    .product-category-side h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .explorer-category {
        font-size: 14px;
        padding: 15px 16px 15px 24px;
    }

    .product-capability-note {
        font-size: 13px;
        padding: 13px 18px;
        border-radius: 22px;
    }
}

/* Industry */
.industries-section {
    padding: 50px 6%;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    position: relative;
}

.industries-header p {
    margin: 0 auto;
    margin-bottom: 20px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.industry-card {
    position: relative;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 18px 45px rgba(0, 59, 115, 0.12);
    transition: all 0.4s ease;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.industry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 20, 45, 0.85),
        rgba(0, 59, 115, 0.25),
        rgba(0, 0, 0, 0.05)
    );
    transition: all 0.4s ease;
}

.industry-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
    width: 100%;
}

.industry-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.industry-card:hover {
    box-shadow: 0 28px 70px rgba(0, 59, 115, 0.2);
}

.industry-card:hover img {
    transform: scale(1.08);
}

.industry-card:hover::after {
    background: linear-gradient(
        to top,
        rgba(0, 20, 45, 0.92),
        rgba(200, 16, 46, 0.26),
        rgba(0, 0, 0, 0.04)
    );
}

.industries-more {
    margin-top: 20px;

    display: flex;
    justify-content: flex-end;

    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.industries-more::before {
    content: "→";
    margin-right: 8px;
    color: var(--primary-red);
}

@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .industries-section {
        padding: 30px 6%;
    }

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

    .industry-card {
        height: 150px;
    }

    .industry-overlay h3 {
        font-size: 15px;
    }
}

/* Materials Section */

.materials-matrix-section {
    min-height: 80vh;
    padding: 50px 6%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.materials-matrix-header {
    max-width: 780px;
    margin-bottom: 40px;
}

.materials-matrix-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.materials-matrix-header p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
}

.materials-matrix-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 34px;
    align-items: stretch;
}

.product-forms-column {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 18px;
}

.form-card {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 150px;
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.09);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 59, 115, 0.07);
    transition: all 0.35s ease;
}

.form-card:hover {
    box-shadow: 0 24px 55px rgba(0, 59, 115, 0.14);
}

.form-img {
    width: 35%;
    height: 100%;
    min-height: 145px;
    overflow: hidden;
    flex-shrink: 0;
}

.form-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.form-card:hover .form-img img {
    transform: scale(1.08);
}

.form-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.material-family-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.material-cap-card {
    min-height: 305px;
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.09);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 59, 115, 0.07);
    transition: all 0.35s ease;
}

.material-cap-card:hover {
    box-shadow: 0 24px 55px rgba(0, 59, 115, 0.14);
}

.material-banner {
    height: 118px;
    overflow: hidden;
    background: #f7f9fc;
}

.material-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.material-cap-card:hover .material-banner img {
    transform: scale(1.08);
}

.material-cap-content {
    padding: 24px;
}

.material-cap-content h3 {
    font-size: 23px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.material-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid rgba(0, 59, 115, 0.1);
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.material-tags span:hover {
    transform: translateY(-2px);
    border-color: rgba(207, 34, 17, 0.22);
    color: var(--primary-red);
    background: rgba(207, 34, 17, 0.06);
}

.material-tags .more-tag {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

.material-tags .more-tag:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

@media (max-width: 1100px) {
    .materials-matrix-section {
        min-height: auto;
        padding: 50px 6%;
    }

    .materials-matrix-layout {
        grid-template-columns: 1fr;
    }

    .product-forms-column {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
    }

    .form-card {
        min-height: 130px;
    }

    .form-img {
        min-height: 130px;
    }
}

@media (max-width: 768px) {

    .material-family-column {
        grid-template-columns: 1fr;
    }

    /* 2 cards per row */
    .product-forms-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .form-card {
        flex-direction: column;
        height: auto;
        gap: 0;
        overflow: hidden;
    }

    .form-img {
        width: 100%;
        height: 120px;
        min-height: 120px;
    }

    .form-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .form-card h3 {
        width: 100%;
        padding: 14px;
        text-align: center;
        font-size: 18px;
    }

    .materials-matrix-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .materials-matrix-header h2 {
        font-size: 28px;
    }

    .materials-matrix-header p {
        font-size: 15px;
    }

    .form-card {
        gap: 16px;
        border-radius: 22px;
    }

    .form-card h3 {
        font-size: 20px;
    }

    .material-cap-card {
        min-height: auto;
    }

    .material-cap-content h3 {
        font-size: 21px;
    }
}

/* Machines & Operations */
.capabilities-section {
    width: 100%;
    padding: 50px 6%;
    background: #ffffff;
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 50px;
    align-items: center;
    overflow: hidden;
}

.capabilities-left h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 34px;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.operations-grid div {
    background: #f7f9fc;
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 18px;
    padding: 20px 18px;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 12px 28px rgba(0, 59, 115, 0.06);
    transition: all 0.3s ease;
}

.operations-grid div:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 59, 115, 0.16);
}

.capabilities-right {
    display: flex;
    flex-direction: column;
    gap: 26px;
    overflow: hidden;
    position: relative;
}

.capabilities-right::before,
.capabilities-right::after {
    content: "";
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.capabilities-right::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.capabilities-right::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.machine-row {
    display: flex;
    gap: 22px;
    width: max-content;
}

.machine-track {
    display: flex;
    gap: 22px;
    animation: machineScrollLeft 30s linear infinite;
}

.row-right .machine-track {
    animation-name: machineScrollRight;
    animation-duration: 34s;
}

.capabilities-right:hover .machine-track {
    animation-play-state: paused;
}

.machine-card {
    width: 260px;
    height: 300px;
    flex: 0 0 auto;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 59, 115, 0.1);
    transition: all 0.35s ease;
}

.machine-card:hover {
    box-shadow: 0 24px 55px rgba(0, 59, 115, 0.18);
}

.machine-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.machine-card:hover img {
    transform: scale(1.08);
}

@keyframes machineScrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 22px));
    }
}

@keyframes machineScrollRight {
    from {
        transform: translateX(calc(-100% - 22px));
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 1100px) {
    .capabilities-section {
        grid-template-columns: 1fr;
    }

    .capabilities-right {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .capabilities-section {
        padding: 50px 6%;
    }

    .capabilities-left h2 {
        font-size: 28px;
    }

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

    .machine-card {
        width: 230px;
        height: 285px;
    }

    .machine-card img {
        height: 178px;
    }
}

/* About */

.about-story-section {
    padding: 50px 6%;
    background: #ffffff;
    overflow: hidden;
}

/* Intro */
.about-story-intro {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 56px;
    align-items: center;
    margin-bottom: 90px;
}

.about-story-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 28px;
}

.vision-block {
    background: #f7f9fc;
    border: 1px solid rgba(0, 59, 115, 0.1);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(0, 59, 115, 0.08);
}

.vision-block span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vision-block h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-top: 8px;
    line-height: 1.4;
}

.about-story-image {
    height: 560px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 59, 115, 0.18);
}

.about-story-image img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    transform: translateY(-20px);
    transition: transform 1.2s ease;
}

.about-story-image:hover img {
    transform: translateY(-35px) scale(1.04);
}

/* Approach */
.approach-story {
    margin-bottom: 70px;
}

.approach-header {
    margin-bottom: 42px;
}

.approach-header h2 {
    font-size: 36px;
    color: var(--primary-blue);
}

.timeline-wrap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.timeline-line {
    position: absolute;
    top: 98px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary-red);
    border-radius: 99px;
    z-index: 0;
    transition: width 1.4s ease;
}

.timeline-wrap.show-line .timeline-line {
    width: 100%;
}

.approach-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.09);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 59, 115, 0.08);
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.7s ease;
}

.approach-card.show {
    opacity: 1;
    transform: translateY(0);
}

.approach-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.approach-card:hover img {
    transform: scale(1.08);
}

.approach-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: -22px 20px 14px;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 16px;
}

.approach-card h3 {
    font-size: 17px;
    color: var(--primary-blue);
    padding: 0 20px;
    margin-bottom: 8px;
}

.approach-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--dark-text);
    padding: 0 20px 22px;
}

/* Values */
.company-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-card {
    text-align: center;
    background: #f7f9fc;
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 24px;
    padding: 28px 18px;
    transition: all 0.35s ease;
}

.value-card:hover {
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 59, 115, 0.12);
}

.value-card i {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.value-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
}

/* Responsive */
@media (max-width: 1200px) {
    .timeline-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-line {
        display: none;
    }
}

@media (max-width: 992px) {
    .about-story-intro {
        grid-template-columns: 1fr;
    }

    .about-story-image {
        height: 460px;
    }

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

@media (max-width: 576px) {
    .about-story-section {
        padding: 50px 6%;
    }

    .about-story-content h2,
    .approach-header h2 {
        font-size: 28px;
    }

    .vision-block h3 {
        font-size: 20px;
    }

    .about-story-image {
        height: 340px;
        border-radius: 26px;
    }

    .timeline-wrap {
        grid-template-columns: 1fr;
    }

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

/* Contact */
.contact-section {
    padding: 50px 6%;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 40px;
    align-items: stretch;
    overflow: hidden;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 34px;
    padding: 42px;
    box-shadow: 0 22px 60px rgba(0, 59, 115, 0.11);
}

.contact-form-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.contact-form-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-text);
    margin-bottom: 30px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--dark-text);
    background: #f7f9fc;
    border: 1px solid rgba(0, 59, 115, 0.1);
    border-radius: 16px;
    padding: 18px 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 17px;
    font-size: 14px;
    color: var(--dark-text);
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 59, 115, 0.08);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -9px;
    left: 14px;
    font-size: 12px;
    color: var(--primary-blue);
    background: #ffffff;
    padding: 0 6px;
}

.file-upload-group {
    position: relative;
}

.file-upload-group input[type="file"] {
    display: none;
}

.file-upload-label {
    position: static !important;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    background: #f7f9fc;
    border: 2px dashed rgba(0, 59, 115, 0.18);
    border-radius: 16px;
    cursor: pointer;
}

.file-upload-label:hover {
    border-color: var(--primary-red);
    background: rgba(200, 16, 46, 0.03);
}

.upload-icon {
    font-size: 22px;
}

.upload-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
}

.upload-text small {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.submit-btn {
    margin-top: 8px;
    border: none;
    cursor: pointer;
    background: var(--primary-red);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 99px;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background-color: var(--white);
}

.form-message {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(0, 59, 115, 0.08);
    color: var(--primary-blue);
}

.form-message.error {
    display: block;
    background: rgba(207, 34, 17, 0.08);
    color: var(--primary-red);
}

.contact-map-card {
    position: relative;
    min-height: 650px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 59, 115, 0.14);
    border: 1px solid rgba(0, 59, 115, 0.08);
}

.contact-map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%) contrast(1.05);
}

.map-info-card {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: 310px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 59, 115, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0, 59, 115, 0.14);
}

.map-info-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.map-info-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6b7a;
    margin-bottom: 14px;
}

.map-info-card a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 8px;
}

@media (max-width: 992px) {
    .contact-section {
        grid-template-columns: 1fr;
        padding: 80px 6%;
    }

    .contact-map-card {
        min-height: 480px;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 28px;
        border-radius: 26px;
    }

    .contact-form-card h2 {
        font-size: 28px;
    }

    .contact-map-card {
        min-height: 420px;
        border-radius: 26px;
    }

    .map-info-card {
        width: calc(100% - 32px);
        left: 16px;
        bottom: 16px;
        padding: 20px;
    }
}

/* Footer */
.premium-footer {
    background: #071a33;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-gradient {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 16, 46, 0.8),
        rgba(255, 255, 255, 0.4),
        rgba(0, 59, 115, 0.9),
        transparent
    );
}

.footer-main {
    padding: 76px 6%;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-brand img {
    height: 58px;
    width: auto;
    margin-bottom: 24px;
    /* filter: brightness(0) invert(1); */
}

.footer-brand p {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact h4,
.footer-connect h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.contact-person {
    margin-bottom: 22px;
}

.contact-person h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.contact-person span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.footer-contact li span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-red);
    font-size: 14px;
    transition: all 0.3s ease;
}


.footer-contact li:hover span {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-contact a,
.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-connect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.linkedin-link span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0A66C2;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
}

.linkedin-link:hover {
    /* transform: translateY(-3px); */
    background: rgba(10, 102, 194, 0.18);
    border-color: rgba(10, 102, 194, 0.45);
}

.footer-rfq-btn {
    text-decoration: none;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 99px;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.footer-rfq-btn:hover {
    background-color: #071a33;
    border: 2px solid var(--white);
}

.sub-footer {
    padding: 22px 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sub-footer p,
.sub-footer a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
}

.sub-footer a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.sub-footer a:hover {
    color: #ffffff;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-connect {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 60px 6%;
    }

    .footer-connect {
        grid-column: span 1;
    }

    .sub-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}