/* Hero Video */
.hero-video {
    position: relative;
    height: 70vh;
    min-height: 400px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #0b1220;
    overflow: hidden;
}

.hero-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-video__content .btn {
    pointer-events: auto;
}

.hero-video__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.6s ease;
}

.hero-video__stack.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-video__title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw + 0.8rem, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__subtitle {
    margin: 0;
    font-size: clamp(2rem, 3.5vw + 0.6rem, 3rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__cta {
    margin-top: 0.25rem;
    padding: 14px 44px;
    font-size: 1.05rem;
    border-width: 2px;
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(11, 18, 32, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    transition: var(--transition);
}

.hero-video__cta:hover {
    background: rgba(11, 18, 32, 0.6);
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-video__scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f7f9fc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Short viewports: tighten hero and scroll button so it stays visible */
@media (max-height: 750px) {
    .hero-video {
        height: 65vh;
        min-height: 360px;
    }

    .hero-video__scroll {
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

.hero-video__scroll:hover {
    transform: translate(-50%, -6px);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-video__scroll-icon {
    width: 12px;
    height: 12px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(45deg);
    display: block;
}

/* Hide scroll down button when not visible */
.hero-video__scroll:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Back-to-top arrow (appears after leaving the hero) */
.hero-video__back-to-top {
    position: fixed;
    bottom: 40px;
    right: 22px;
    /* Adjust this to move the button left/right */
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(120%);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 20;
}

.hero-video__back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-video__back-to-top:hover {
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transform: translateX(0) translateY(-2px);
}

.hero-video__back-to-top-icon {
    width: 14px;
    height: 14px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(-135deg);
    /* Points the chevron up */
    display: block;
}

@media (max-width: 768px) {
    .hero-video__back-to-top {
        bottom: 28px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 70vh;
        min-height: 300px;
    }

    .hero-video__stack {
        gap: 0.9rem;
        padding-bottom: 100px;
        /* Make room for scroll button below text */
    }

    .hero-video__title {
        font-size: clamp(1.8rem, 6vw + 0.4rem, 2.6rem);
    }

    .hero-video__subtitle {
        font-size: clamp(1.5rem, 5vw + 0.3rem, 2.2rem);
    }

    .hero-video__cta {
        padding: 12px 36px;
        font-size: 1rem;
    }

    .hero-video__scroll {
        width: 50px;
        height: 50px;
        bottom: auto;
        top: 65%;
    }
}

/* Start of carousel */
.hero-carousel {
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-position: center 25%;
    object-fit: cover;
    display: block;
}

.carousel-item:nth-child(3) .hero-image {
    object-position: center 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    bottom: 30%;
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    padding-left: 50px;
    max-width: 700px;
    margin: 0;
    left: 15%;
    right: auto;
    backdrop-filter: none;
    animation: fadeInUp 1s ease;
    border-left: 5px solid #ffffff;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Carousel Caption Responsive Adjustments */
@media (max-width: 1536px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 1366px) {
    .carousel-caption {
        bottom: 25%;
        left: 12%;
        max-width: 650px;
        padding: 25px;
        padding-left: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        bottom: 20%;
        left: 10%;
        max-width: 80%;
        padding: 20px;
        padding-left: 30px;
        border-left-width: 4px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        max-width: 90%;
        padding: 15px;
        padding-left: 20px;
        border-left-width: 3px;
        animation: none;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .btn-outline-custom {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 3%;
        right: 3%;
        transform: translateY(-50%);
        max-width: 94%;
        padding: 12px;
        padding-left: 15px;
        border-left-width: 2px;
        animation: none;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .btn-outline-custom {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

.btn-outline-custom {
    background: var(--dark-gray);
    border: 2px solid var(--dark-gray);
    color: var(--bg-white);
    padding: 10px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--dark-gray);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Carousel arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70%;
}

/*End of carousel*/
 /* Instrumental Equipment Grid Section */
 .instrumental-equipment-grid-section {
     position: relative;
     min-height: 100vh;
     padding: 4rem 0;
 }

 /* Floating elements */
 /* Section styling */

 /* Text gradient */
 .text-gradient {
     background: linear-gradient(135deg, #2D5AA0, #4A90E2);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 /* Section Badge */
 .section-badge {
     display: inline-block;
 }

 .badge-text {
     background: linear-gradient(135deg, #2D5AA0, #4A90E2);
     color: white;
     padding: 8px 20px;
     border-radius: 25px;
     font-size: 0.9rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     position: relative;
     overflow: hidden;
 }

 .badge-text::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     animation: shimmer 3s infinite;
 }

 .title-underline {
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, #2D5AA0, #4A90E2);
     margin: 1rem auto 2rem;
     border-radius: 2px;
     position: relative;
 }

 .title-underline::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
     animation: shimmer 3s infinite;
 }

 /* Equipment Grid */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 2.5rem 0;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}


@media (min-width: 1400px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

 .instrumental-equipment-grid-section .container {
     max-width: 1600px;
 }

 .equipment-card {
     position: relative;
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     background: white;
     height: 100%;
     display: flex;
     flex-direction: column;
     transform: translateY(0);
 }

 .equipment-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 40px rgba(45, 90, 160, 0.2);
 }


.equipment-image-container {
    position: relative;
    height: 600px;
    /* Increased from 360px to 480px */
    overflow: hidden;
}



.equipment-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Ensures image is always at least 400px tall */
    object-fit: contain;
    object-position: center center;
    background: #f2f2f2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

 .equipment-card:hover .equipment-image {
     transform: scale(1.1);
 }

 .equipment-overlay {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(135deg, rgba(45, 90, 160, 0.9), rgba(74, 144, 226, 0.8));
     opacity: 0;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
 }

 .equipment-card:hover .equipment-overlay {
     opacity: 1;
 }

 .equipment-info {
     color: white;
     padding: 2rem;
     transform: translateY(20px);
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .equipment-card:hover .equipment-info {
     transform: translateY(0);
 }

 .equipment-info h4 {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 0.5rem;
 }

 .equipment-info p {
     font-size: 1rem;
     margin-bottom: 1.5rem;
 }

 .view-details-btn {
     display: inline-flex;
     align-items: center;
     cursor: pointer;
     padding: 0.5rem 1rem;
     border: 2px solid white;
     border-radius: 30px;
     transition: all 0.3s ease;
     background-color: transparent;
 }

 .view-details-btn span {
     margin-right: 10px;
     font-weight: 600;
 }

 .view-details-btn .icon-arrow {
     transition: transform 0.3s ease;
 }

 .view-details-btn:hover .icon-arrow {
     transform: translateX(5px);
 }

 .equipment-details {
    padding: 1.6rem;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
 }

 .equipment-details h4 {
     font-size: 1.3rem;
     font-weight: 600;
     margin-bottom: 0.75rem;
     color: #2D5AA0;
 }

 .equipment-details p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex-grow: 1;
 }

 .equipment-specs {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .spec-item {
     font-size: 0.85rem;
     background-color: rgba(45, 90, 160, 0.1);
     color: #2D5AA0;
     padding: 0.35rem 0.75rem;
     border-radius: 20px;
     display: inline-flex;
     align-items: center;
 }

 .spec-item i {
     margin-right: 5px;
     font-size: 0.75rem;
 }

 /* Animations */
 /* Removed float and spin animations */

 @keyframes shimmer {
     0% {
         left: -100%;
     }

     100% {
         left: 100%;
     }
 }

 /* Responsive adjustments */


@media (max-width: 1200px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    .equipment-image-container {
        height: 340px;
    }
    .equipment-image {
        min-height: 220px;
    }
}

@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .equipment-image-container {
        height: 320px;
    }
    .equipment-image {
        min-height: 200px;
    }
}



@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .equipment-image-container {
        height: 200px;
    }
    .equipment-image {
        min-height: 120px;
    }
}

 @media (max-width: 576px) {
     .equipment-grid {
         grid-template-columns: 1fr;
     }
 }
 /* End of Instrumental Equipment Grid Section */
/* Equipment Modal Styles */
.equipment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.equipment-modal .modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipment-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.equipment-modal .close-modal:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.equipment-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 80vh;
}

.equipment-modal .modal-image-container {
    position: relative;
    overflow: hidden;
}

.equipment-modal .modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-modal .modal-info {
    padding: 2rem;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.equipment-modal .modal-info h3 {
    color: #2D5AA0;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.equipment-modal .modal-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.equipment-modal .modal-specs,
.equipment-modal .modal-features {
    margin-bottom: 2rem;
}

.equipment-modal .modal-specs h4,
.equipment-modal .modal-features h4 {
    color: #2D5AA0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.equipment-modal .modal-specs ul,
.equipment-modal .modal-features ul {
    list-style: none;
    padding: 0;
}

.equipment-modal .modal-specs li,
.equipment-modal .modal-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.equipment-modal .modal-specs li::before,
.equipment-modal .modal-features li::before {
    content: '⚙️';
    position: absolute;
    left: 0;
    color: #2D5AA0;
    font-weight: bold;
}

/* Equipment Grid Hover Effects */
.equipment-card {
    cursor: pointer;
}

.equipment-card .view-details-btn:hover {
    background: white;
    color: #2D5AA0;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .equipment-modal .modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .equipment-modal .modal-image-container {
        height: 300px;
    }

    .equipment-modal .modal-info {
        max-height: 400px;
    }

    .equipment-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    .equipment-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* Dark theme support */
.navbar-dark~* .equipment-modal .modal-info {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #e9ecef;
}

.navbar-dark~* .equipment-modal .modal-info h3,
.navbar-dark~* .equipment-modal .modal-specs h4,
.navbar-dark~* .equipment-modal .modal-features h4 {
    color: #4A90E2;
}

.navbar-dark~* .equipment-modal .modal-info p {
    color: #e9ecef;
}

.navbar-dark~* .equipment-modal .modal-specs li,
.navbar-dark~* .equipment-modal .modal-features li {
    border-bottom-color: #4a5568;
}
/*end of dark theme support*/
/* Mechanical Welding Section Styles */
.mechanical-welding-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.mechanical-welding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 45, 18, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.mechanical-welding-section>.container {
    position: relative;
    z-index: 2;
}

/* Header Animations */
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #7C2D12;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animate-title {
    animation-delay: 0.2s;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #7C2D12, #EA580C);
    margin: 0 auto 2rem;
    border-radius: 2px;
    transform: scaleX(0);
    animation: scaleX 1s ease forwards;
    animation-delay: 0.8s;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.animate-text {
    animation-delay: 1s;
}

/* Machine Grid */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.machine-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
    background: white;
}

.animate-card:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-card:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-card:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-card:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-card:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-card:nth-child(6) {
    animation-delay: 0.6s;
}

.machine-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(124, 45, 18, 0.2);
}

.machine-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.machine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.machine-card:hover .machine-image {
    transform: scale(1.1);
}

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.8), rgba(234, 88, 12, 0.6));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.machine-card:hover .machine-overlay {
    opacity: 1;
}

.machine-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.machine-card:hover .machine-info {
    transform: translateY(0);
}

.machine-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.machine-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-details-btn:hover {
    background: white;
    color: #7C2D12;
    transform: scale(1.05);
}

.view-details-btn i {
    margin-right: 0.5rem;
}

/* Modal Styles */
.machine-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 80vh;
}

.modal-image-container {
    position: relative;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-info h3 {
    color: #7C2D12;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.modal-specs,
.modal-features {
    margin-bottom: 2rem;
}

.modal-specs h4,
.modal-features h4 {
    color: #7C2D12;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-specs ul,
.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-specs li,
.modal-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.modal-specs li::before,
.modal-features li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    color: #7C2D12;
    font-weight: bold;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scaleX {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .machines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .machine-card {
        margin: 0 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .modal-image-container {
        height: 300px;
    }

    .modal-info {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* Dark theme support */
.navbar-dark~* .mechanical-welding-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(124, 45, 18, 0.2));
}

.navbar-dark~* .section-title {
    color: #EA580C;
}

.navbar-dark~* .section-description {
    color: #e9ecef;
}

.navbar-dark~* .machine-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-dark~* .modal-info {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #e9ecef;
}

.navbar-dark~* .modal-info h3,
.navbar-dark~* .modal-specs h4,
.navbar-dark~* .modal-features h4 {
    color: #EA580C;
}
/*end of mechanical welding section styles*/
/*Start of Contact US section*/
.animated-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.animated-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.custom-btn {
    background: linear-gradient(90deg, #ff8800, #d33d10);
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 12px 30px;
}


.contact-hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}


.contact-hero-bg {
    /* background-image removed — set by HTML to make image source explicit in markup */
    background: none;
    background-color: #0b1220;
    /* dark fallback while image loads */
    background-position: center center;
    background-size: cover;
    filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    /* prevents edges from appearing after blur */
}


.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


.contact-hero-content {
    position: relative;
    z-index: 2;
}

/*End of contact us section*/

/*Header css for tool equipment section*/
.instrumental-equipment-grid-section .services-title {
    color: var(--light-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.instrumental-equipment-grid-section .services-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: #ff8800;
    border-radius: 999px;
}

/* Process Video Section */
.powder-coating-content {
    --pc-primary-blue: #0066cc;
    --pc-secondary-blue: #004499;
    --pc-accent-orange: #ff6b35;
    --pc-light-gray: #f8f9fa;
    --pc-medium-gray: #6c757d;
    --pc-dark-gray: #343a40;
    --pc-white: #ffffff;
    --pc-gradient-primary: linear-gradient(135deg, #0066cc, #004499);
    --pc-gradient-accent: linear-gradient(135deg, #ff6b35, #ff8c42);
    --pc-shadow-light: 0 4px 20px rgba(0, 102, 204, 0.1);
    --pc-shadow-medium: 0 8px 40px rgba(0, 102, 204, 0.15);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--pc-dark-gray);
    position: relative;
}

.powder-coating-content .animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #dee2e6, #f8f9fa);
    background-size: 400% 400%;
    animation: pc-gradientShift 15s ease infinite;
}

@keyframes pc-gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.powder-coating-content .main-content {
    position: relative;
    z-index: 1;
}

.powder-coating-content .process-section {
    padding: 4rem 0;
    background: var(--pc-light-gray);
}

.powder-coating-content .process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.powder-coating-content .process-header h2 {
    font-size: 2.5rem;
    color: var(--pc-primary-blue);
    margin-bottom: 1rem;
}

.powder-coating-content .process-header p {
    font-size: 1.1rem;
    color: var(--pc-medium-gray);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.process-video-section {
    padding: 80px 0;
    background: #f5f7fb;
}

.process-video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.process-video-header {
    margin-bottom: 40px;
}

.process-video-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0066d6;
    margin-bottom: 8px;
}

.process-video-subtitle {
    font-size: 1rem;
    color: #5f6b7a;
    margin: 0;
}

.process-video-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 35, 52, 0.08);
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    border-radius: 30px;
    overflow: hidden;
}

.process-video-frame iframe,
.process-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .process-video-section {
        padding: 60px 0;
    }

    .process-video-title {
        font-size: 1.8rem;
    }

    .process-video-frame {
        border-radius: 14px;
    }

    .powder-coating-content .process-header h2 {
        font-size: 2rem;
    }
}

/* ==================== About US Section (Tool Equipment Page) ==================================*/

/* Lightweight entrance animations for the About Us blocks */
@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes aboutFadeFromRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section 1: intro text slides up */
#about-us .about-us-lead h1,
#about-us .about-us-lead p {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#about-us .about-us-lead p {
    animation-delay: 0.24s;
}

/* Section 2: mirrored text glides in from the right */
#about-us-section-2 .about-us-lead h3,
#about-us-section-2 .about-us-lead p,
#about-us-section-2 .ul-about-us li {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#about-us-section-2 .about-us-lead p {
    animation-delay: 0.28s;
}

#about-us-section-2 .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
#about-us-section-2 .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
#about-us-section-2 .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }

/* JS-triggered scroll animations: prepare hidden state only when JS opts-in */
.about-animate #about-us .about-us-lead h1,
.about-animate #about-us .about-us-lead p {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.about-animate #about-us.is-visible .about-us-lead h1,
.about-animate #about-us.is-visible .about-us-lead p {
    animation: aboutFadeUp 1.3s ease forwards;
    animation-delay: 0.1s;
}

.about-animate #about-us.is-visible .about-us-lead p {
    animation-delay: 0.24s;
}

.about-animate #about-us-section-2 .about-us-lead h3,
.about-animate #about-us-section-2 .about-us-lead p,
.about-animate #about-us-section-2 .ul-about-us li {
    opacity: 0;
    transform: translateX(18px);
    will-change: transform, opacity;
}

.about-animate #about-us-section-2.is-visible .about-us-lead h3,
.about-animate #about-us-section-2.is-visible .about-us-lead p,
.about-animate #about-us-section-2.is-visible .ul-about-us li {
    animation: aboutFadeFromRight 1.3s ease forwards;
    animation-delay: 0.12s;
}

.about-animate #about-us-section-2.is-visible .about-us-lead p { animation-delay: 0.28s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
    #about-us .about-us-lead h1,
    #about-us .about-us-lead p,
    #about-us-section-2 .about-us-lead h3,
    #about-us-section-2 .about-us-lead p,
    #about-us-section-2 .ul-about-us li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Icon styling for mission and vision */
#about-us .fa-solid,
#about-us-section-2 .fa-solid {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 15px;
}

/* ==================== About Us Section 1 Background ==================================*/
#about-us {
    --about-us-shift: clamp(-18%, -11vw, -7%);
    position: relative;
    padding-top: 5%;
    padding-bottom: 8%;
    min-height: clamp(520px, 100vh, 900px);
    scroll-margin-top: 80px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 35%,
            rgba(255, 255, 255, 0.9) 42%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.2) 55%,
            rgba(255, 255, 255, 0) 60%),
        url('/static/images/tool_equipment/steps/step1.webp'); /* Change this image path for tool equipment */
    background-size: auto 100%, 65% 100%;
    background-position: left center, right top;
    background-repeat: no-repeat, no-repeat;
}

#about-us .about-us-lead {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.5rem, 5vw, 5rem);
    padding-right: clamp(0.5rem, 3vw, 2rem);
}

#about-us .about-us-lead h1,
#about-us .about-us-lead p {
    text-align: left;
}

#about-us .about-us-lead,
#about-us .container,
#about-us .btn-wrapper {
    position: relative;
    left: var(--about-us-shift);
}

#about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    background:
        radial-gradient(ellipse 120% 80% at 20% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 80% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

#about-us>* {
    position: relative;
    z-index: 1;
}

#about-us h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

#about-us h1 .highlight {
    color: #ff8c42;
    font-weight: 800;
}

#about-us p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

/* Button Wrapper */
.btn-wrapper {
    margin-top: 30px;
}

.btn-get-quote {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
    color: white;
    border: none;
    height: 50px;
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-get-quote:hover {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
    color: white;
}

@media (max-width: 768px) {
    #about-us h1 {
        font-size: 2rem;
    }

    #about-us p {
        font-size: 1rem;
    }

    #about-us .about-us-lead {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #about-us {
        --about-us-shift: 0px;
        padding-top: 8%;
        padding-bottom: 12%;
        min-height: auto;
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            url('/static/images/tool_equipment/steps/step1.webp'); /* Change this image path for tool equipment mobile */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* ===================== About Us Section 2 (mirrored layout) ============================== */
#about-us-section-2 {
    --about-us-section-2-shift: clamp(15%, 17vw, 25%);
    position: relative;
    padding-top: 5%;
    padding-bottom: 8%;
    min-height: clamp(520px, 100vh, 900px);
    scroll-margin-top: 80px;
    background: linear-gradient(270deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 1) 35%,
                rgba(255, 255, 255, 0.9) 48%,
                rgba(255, 255, 255, 0.6) 58%,
                rgba(255, 255, 255, 0.2) 72%,
                rgba(255, 255, 255, 0) 85%),
        url('/static/images/tool_equipment/steps/step2.webp'); /* Change this image path for tool equipment */
    background-size: auto 100%, 65% 100%;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
    display: flex;
    align-items: center;
}

#about-us-section-2 .container {
    width: 100%;
}

#about-us-section-2 .about-us-lead {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: clamp(0.75rem, 3vw, 2.25rem);
    padding-left: clamp(0.5rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 5vw, 5rem);
}

#about-us-section-2 .about-us-lead h3,
#about-us-section-2 .about-us-lead p,
#about-us-section-2 .ul-about-us {
    text-align: right;
}

#about-us-section-2 .ul-about-us {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-left: 0;
}

#about-us-section-2 .about-us-lead,
#about-us-section-2 .container,
#about-us-section-2 .btn-wrapper {
    position: relative;
    left: var(--about-us-section-2-shift);
}

#about-us-section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    background:
        radial-gradient(ellipse 120% 80% at 80% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 20% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

#about-us-section-2>* {
    position: relative;
    z-index: 1;
}

#about-us-section-2 h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #333;
}

#about-us-section-2 p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    #about-us-section-2 {
        --about-us-section-2-shift: 0px;
        padding-top: 8%;
        padding-bottom: 12%;
        min-height: auto;
        display: block;
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            url('/static/images/tool_equipment/steps/step2.webp'); /* Change this image path for tool equipment mobile */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #about-us-section-2 .about-us-lead {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/*End About Us Section*/