.underline {
    width: 3vw;
    border: 0.2vw solid red;
}

/* ===========HERO=========== */
.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-bottom: 2vw;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.caption {
    position: absolute;
    top: 15%;
    left: 5%;
    color: white;
    min-width: 55vw;
    font-size: 1.2vw;
}

.caption h1 {
    font-size: 4vw;
    padding-bottom: 1.6vw;
}

.actions {
    margin: 3.2vw 0;
    transition: 0.3s ease;
}

.actions a {
    font-size: 1vw;
    text-decoration: none;
    border-radius: 1.6vw;
    padding: 0.8vw 1vw;
    color: black;
    background-color: #18a0fb;
    box-shadow: 0.2vw 0.2vw 1vw rgba(0, 0, 0, 0.7);
    transition: 0.3s ease;
}

.actions a:hover {
    background-color: #1585cf;
}

.actions:hover {
    transform: translateY(-0.2vw);
}

/* ========= METAL FABRICATION SOLUTIONS ========= */
.fabrication-solutions {
    padding: 5% 8%;
}

.fabrication-solutions h1 {
    font-size: 3.2vw;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.fabrication_underline {
    width: 4vw;
    margin: 0 auto 2.5vw;
}

.fabrication-intro {
    font-size: 1.4vw;
    line-height: 2.4vw;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 2vw;
}

.fabrication-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    margin-bottom: 3vw;
}

.fabrication-list ul {
    list-style: none;
}

.fabrication-list li {
    font-size: 1.4vw;
    padding: 1.2vw 0;
    border-bottom: 0.15vw solid #e0e0e0;
}

.fabrication-note {
    font-size: 1.2vw;
    line-height: 2.4vw;
    max-width: 75%;
    border-left: 0.4vw solid red;
    padding-left: 1.5vw;
}

/* ========= MATERIALS SECTION ========= */
.materials-section {
    padding: 5% 8%;
}

.materials-section h1 {
    font-size: 3.2vw;
    text-align: center;
}

.materials_underline {
    width: 4vw;
    margin: 0 auto 2vw;
}

.materials-intro {
    text-align: center;
    font-size: 1.2vw;
    line-height: 2.6vw;
    margin-bottom: 2vw;
}

.materials-wrapper {
    position: relative;
    padding-left: 4vw;
}

.materials-line {
    position: absolute;
    left: 0;
    width: 0.4vw;
    height: 100%;
    background-color: red;
}

.material-item {
    font-size: 1.4vw;
    font-weight: 600;
    padding: 1.4vw 0 1.4vw 1.6vw;
    margin-bottom: 1vw;
    border-bottom: 0.2vw solid #e0e0e0;
}

.materials-note {
    font-size: 1vw;
    line-height: 2.4vw;
}

/* ===========APPLICATIONS=========== */
.cnc-applications {
    padding: 0 5%;
    margin-bottom: 5vw;
}

.cnc-applications h1 {
    font-size: 3.2vw;
    text-align: center;
}

.fab_applications_underline {
    margin: 0 auto 2vw;
}

.applications-intro {
    margin: 1vw 0 5vw 0;
    text-align: center;
    font-size: 1.2vw;
    line-height: 2.6vw;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
}

.application-card {
    padding: 2.5vw;
    border-radius: 1vw;
    border-left: 0.5vw solid red;
    box-shadow: 0.3vw 0.3vw 1.2vw rgba(0, 0, 0, 0.45);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-card::before {
    content: "CNC";
    position: absolute;
    top: 1vw;
    right: 1vw;
    font-size: 1vw;
    color: rgb(165, 165, 165);
    letter-spacing: 0.2vw;
}

.application-card:hover {
    transform: translateY(-0.6vw);
    box-shadow: 0.6vw 0.6vw 1.6vw rgba(0, 0, 0, 0.55);
}

.application-card h2 {
    font-size: 1.8vw;
    margin-bottom: 1.4vw;
}

.application-card p {
    font-size: 1.2vw;
    line-height: 2.4vw;
}

/* ===========ADVANTAGES/ WHY US=========== */
.AnB {
    padding: 5%;
    background-color: #f4f4f4;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 5vw;
    text-align: center;
}

.AnB-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.AnB h1 {
    font-size: 3.2vw;
    margin-bottom: 0.5vw;
}

.AnB-underline {
    width: 4vw;
    margin: 0 auto 1vw;
}

.AnB-intro {
    font-size: 1.2vw;
    line-height: 2.4vw;
    max-width: 80vw;
    margin: 0 auto 2vw auto;
}

.AnB-tabs {
    max-width: 70vw;
    margin: 0 auto;
}

.AnB-tabs input[type="radio"] {
    display: none;
}

.AnB-label {
    display: inline-block;
    font-size: 1.4vw;
    font-weight: 600;
    padding: 1vw 2vw;
    margin: 0 0.2vw 1vw 0;
    background-color: #e0e0e0;
    border-radius: 0.8vw;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.AnB-label:hover {
    background-color: #d0d0d0;
    transform: translateY(-0.3vw);
}

#tab1:checked~.tab1-content,
#tab2:checked~.tab2-content {
    display: block;
    animation: fadeSlide 0.4s ease;
}

#tab1:checked+.AnB-label,
#tab2:checked+.AnB-label {
    background-color: red;
    color: white;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 2vw;
    margin-top: 1vw;
    border-radius: 0.8vw;
    box-shadow: 0.3vw 0.3vw 1vw rgba(0, 0, 0, 0.2);
    font-size: 1.2vw;
    line-height: 2vw;
    text-align: left;
}

.tab-content ul {
    list-style: none;
}

.tab-content li {
    margin-bottom: 1.2vw;
    padding-left: 2vw;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-1vw);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FEATURED PROJECTS ================= */

.featured-projects {
    margin-bottom: 6vw;
    text-align: center;
}

.featured-projects-header h1 {
    font-size: 3.2vw;
}

.fp_underline {
    margin: 0 auto 3vw;
}

.projects-slide {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    animation: fadeSlide 0.5s ease;
}

.projects-slide.active {
    display: grid;
}

.projects-slide img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 1vw;
    box-shadow: 0.3vw 0.3vw 1vw rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-slide img:hover {
    transform: translateY(-0.4vw);
    box-shadow: 0.6vw 0.6vw 1.4vw rgba(0, 0, 0, 0.45);
}

/* ----- Controls ----- */

.projects-slider-controls {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 3vw;
}

.projects-slider-controls button {
    font-size: 2.2vw;
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.projects-slider-controls button:hover {
    background-color: red;
    transform: translateY(-0.2vw);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(1vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= CTA ========= */
.cta {
    padding: 10%;
    background-color: black;
    color: white;
    text-align: center;
}

.cta h1 {
    font-size: 3.2vw;
}

.cta-underline {
    width: 4vw;
    margin: 0 auto 2vw;
}

.cta p {
    font-size: 1.2vw;
    line-height: 2.4vw;
    max-width: 70vw;
    margin: 0 auto 3vw auto;
}

.cta-btn {
    display: inline-block;
    padding: 1.2vw 3vw;
    font-size: 1.4vw;
    font-weight: 600;
    color: white;
    background-color: red;
    border-radius: 3vw;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-0.2vw);
    background-color: rgb(222, 0, 0);
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media screen and (max-width: 768px) {

    .fabrication-solutions,
    .materials-section,
    .cnc-applications,
    .AnB,
    .featured-projects {
        margin-bottom: 7vw;
    }

    .underline {
        width: 6vw;
        border: 0.4vw solid red;
    }

    /* ---------- HERO ---------- */
    .slider {
        min-height: 70vh;
    }

    .caption {
        top: 10%;
        left: 5%;
        min-width: 90vw;
    }

    .caption h1 {
        font-size: 6vw;
        line-height: 8vw;
    }

    .caption h2 {
        font-size: 4.2vw;
    }

    .caption p {
        font-size: 3.4vw;
        line-height: 5vw;
    }

    .actions {
        margin: 7vw 0;
    }

    .actions a {
        font-size: 3.5vw;
        padding: 2.5vw 5vw;
        border-radius: 6vw;
    }

    /* ---------- FABRICATION SOLUTIONS ---------- */
    .fabrication-solutions h1 {
        margin: 0 -10vw;
        font-size: 6vw;
        max-width: unset;
    }

    .fabrication_underline {
        margin: 0 auto 5vw;
    }

    .fabrication-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 6vw;
        max-width: 100%;
    }

    .fabrication-list {
        grid-template-columns: 1fr;
        gap: 6vw;
    }

    #ul2 {
        margin-top: -5.2vw;
    }

    .fabrication-list li {
        font-size: 4vw;
        padding: 3vw 0;
    }

    .fabrication-note {
        font-size: 3vw;
        line-height: 6vw;
        max-width: 100%;
    }

    /* ---------- MATERIALS ---------- */
    .materials-section h1 {
        margin: 0 -10vw;
        font-size: 6vw;
    }

    .materials-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 6vw;
    }

    .materials-wrapper {
        padding: 0;
    }

    .materials-line {
        display: none;
    }

    .material-item {
        font-size: 4vw;
        padding-left: 0;
        text-align: center;
    }

    .materials-note {
        font-size: 3vw;
        line-height: 6vw;
        text-align: center;
    }

    /* ---------- CNC APPLICATIONS ---------- */
    .cnc-applications h1 {
        font-size: 6vw;
    }

    .applications-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 6vw;
    }

    .applications-grid {
        grid-template-columns: 1fr;
        gap: 6vw;
    }

    .application-card {
        padding: 6vw;
    }

    .application-card h2 {
        font-size: 4vw;
    }

    .application-card p {
        font-size: 3.6vw;
        line-height: 6vw;
    }

    .application-card::before {
        font-size: 3vw;
        top: 3vw;
        right: 3vw;
    }

    /* ---------- ADVANTAGES /WHY US ---------- */
    .AnB h1 {
        font-size: 6vw;
    }

    .AnB-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 6vw;
    }

    .AnB-label {
        display: block;
        width: 100%;
        font-size: 4vw;
        padding: 3vw;
        margin-bottom: 2vw;
    }

    .tab-content {
        font-size: 3.4vw;
        line-height: 5.6vw;
        padding: 5vw;
    }

    .tab-content li {
        margin-bottom: 3vw;
    }

    /* ---------- LATEST METAL WORKS ---------- */
    .metalWorks-header h1 {
        font-size: 6vw;
    }

    .metalWorks-content {
        grid-template-columns: 1fr;
        gap: 6vw;
    }


    /* ===== FEATURED PROJECTS ===== */

    .featured-projects-header h1 {
        font-size: 6vw;
    }

    .fp_underline {
        margin-bottom: 6vw;
    }

    .projects-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }

    .projects-slide img {
        border-radius: 2vw;
    }

    .projects-slider-controls button {
        font-size: 5vw;
        width: 9vw;
        height: 9vw;
    }

    /* ---------- CTA ---------- */
    .cta h1 {
        font-size: 7vw;
    }

    .cta p {
        text-align: justify;
        font-size: 3.6vw;
        line-height: 6vw;
        max-width: 90vw;
    }

    .cta-btn {
        font-size: 4vw;
        padding: 3vw 8vw;
        border-radius: 8vw;
    }
}


/* ===================== DESKTOP ===================== */
@media screen and (min-width: 1920px) {

    .underline {
        width: 2vw;
        border: 0.1vw solid red;
    }

    /* ---------- HERO ---------- */
    .slider {
        height: 45rem;
    }

    .caption {
        left: 30rem;
    }

    .caption h1 {
        font-size: 3rem;
        line-height: 2.8rem;
    }

    .caption h2 {
        font-size: 2rem;
    }

    .caption p {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }

    .actions a {
        font-size: 1.4rem;
        padding: 1rem 1.6rem;
        border-radius: 1.6rem;
    }

    /* ---------- FABRICATION SOLUTIONS ---------- */
    .fabrication-solutions {
        padding: 4rem 0;
    }

    .fabrication-solutions h1 {
        font-size: 2.4rem;
    }

    .fabrication-intro {
        font-size: 1.2rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    .fabrication-list {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .fabrication-list li {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .fabrication-note {
        font-size: 1rem;
        line-height: 1.8rem;
        max-width: 60rem;
        border-left-width: 0.2rem;
        padding-left: 0.8rem;
    }

    /* ---------- MATERIALS ---------- */
    .materials-section {
        padding: 4rem 0;
    }

    .materials-section h1 {
        font-size: 2.4rem;
    }

    .materials-intro {
        font-size: 1.2rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    .materials-line {
        width: 0.2vw;
    }

    .material-item {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .materials-note {
        font-size: 1rem;
        line-height: 2rem;
    }

    /* ---------- CNC APPLICATIONS ---------- */
    .cnc-applications {
        padding: 4rem 0;
        margin-bottom: 5rem;
    }

    .cnc-applications h1 {
        font-size: 2.4rem;
    }

    .applications-intro {
        font-size: 1.2rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    .applications-grid {
        gap: 3rem;
    }

    .application-card {
        padding: 2rem;
        border-left-width: 0.4rem;
    }

    .application-card h2 {
        font-size: 1.6rem;
    }

    .application-card p {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .application-card::before {
        top: 0.6vw;
        right: 0.6vw;
        font-size: 0.9rem;
    }

    /* ---------- ADVANTAGES / WHY US ---------- */
    .AnB h1 {
        font-size: 2.4rem;
    }

    .AnB-intro {
        font-size: 1.2rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    .AnB-label {
        font-size: 1.2rem;
        padding: 1rem 1.6rem;
    }

    .tab-content {
        font-size: 1.2rem;
        line-height: 1.6rem;
        padding: 1.2rem;
    }

    /* ---------- FEATURED PROJECTS ---------- */

    .featured-projects {
        margin-bottom: 4rem;
    }

    .featured-projects-header h1 {
        font-size: 2.4rem;
    }

    .projects-slide.active {
        gap: 2.5rem;
    }

    .projects-slide img {
        width: 100%;
        border-radius: 1rem;
    }

    .projects-slider-controls {
        gap: 2rem;
        margin-top: 3rem;
    }

    .projects-slider-controls button {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    /* ---------- CTA ---------- */
    .cta {
        padding: 10rem;
    }

    .cta h1 {
        font-size: 3rem;
    }

    .cta p {
        font-size: 1.2rem;
        line-height: 2rem;
        max-width: 60rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 1.6rem;
    }

}