/* Hero Video */
.hero-video {
    position: relative;
    height: 95vh;
    min-height: 480px;
    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: 70vh;
        min-height: 440px;
    }

    .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;
    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);
    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: 320px;
    }

    .hero-video__stack {
        gap: 0.9rem;
        padding-bottom: 100px;
    }

    .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 */
:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004499;
    --accent-orange: #ff6b35;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066cc, #004499);
    --gradient-accent: linear-gradient(135deg, #ff6b35, #ff8c42);
}

/* Section Badge (scoped to friction welding gallery) */
.instrumental-equipment-grid-section .text-gradient {
    background: linear-gradient(135deg, #2d5aa0, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instrumental-equipment-grid-section .section-badge {
    display: inline-block;
}

.instrumental-equipment-grid-section .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;
}

.instrumental-equipment-grid-section .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;
}

.instrumental-equipment-grid-section .title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2d5aa0, #4a90e2);
    margin: 1rem auto 2rem;
    border-radius: 2px;
    position: relative;
}

.instrumental-equipment-grid-section .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;
}

.instrumental-equipment-grid-section .section-header h2::after {
    display: none;
}

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

    100% {
        left: 100%;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--accent-orange);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.comparison-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.comparison-item {
    padding: 1.5rem;
    position: relative;
}

.comparison-item:first-child {
    border-right: 1px solid #eee;
    background: rgba(0, 102, 204, 0.05);
}

.comparison-item h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* New advantages section styles */
.advantages-section {
    background: white;
    padding: 5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.advantage-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-blue);
}

.advantage-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.advantage-card ul {
    list-style: none;
    padding: 0;
}

.advantage-card li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.advantage-card li:last-child {
    border-bottom: none;
}

.advantage-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Gallery Section Styles */
.gallery-section {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(255, 107, 53, 0.03));
    padding: 5rem 0;
}

/* Offset scroll target a bit upward for better anchoring */
#scroll-anchor {
    scroll-margin-top: 120px;
}

.gallery-grid {
    display: none;
    /* Hide the original custom grid */
}

/* Ensure gallery items work well with Bootstrap grid */
.gallery-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    transform: translateY(0);
    height: 100%;
    /* Ensure equal height in Bootstrap columns */
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 2;
}

.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-content {
    padding: 1.5rem;
    flex-grow: 1;
    /* Make content area flexible to ensure equal heights */
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.gallery-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    /* Make description flexible */
}

/* Responsive adjustments for Bootstrap breakpoints */
@media (max-width: 1399.98px) {

    /* xl breakpoint */
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 1199.98px) {

    /* lg breakpoint - 3 per row */
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 991.98px) {

    /* md breakpoint - 2 per row */
    .gallery-image {
        height: 180px;
    }

    .gallery-content {
        padding: 1.2rem;
    }
}

@media (max-width: 575.98px) {

    /* sm breakpoint - 1 per row */
    .gallery-image {
        height: 200px;
    }

    .gallery-content {
        padding: 1rem;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: modalFadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.modal-title {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

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

/* Responsive Design */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .advantage-card {
        padding: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-item:first-child {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .gallery-image {
        height: 180px;
    }

    .gallery-content {
        padding: 1rem;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 3rem 0;
    }

    .advantages-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-title {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Ensure large screens show 6 columns */
@media (min-width: 1600px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* End of friction_welding.css */
/*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*/

/* Quality management Page Styles */
.practice-card {
    background-color: var(--bs-body-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.practice-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.practice-card:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bs-primary);
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-icon {
    transform: rotate(360deg);
}

.practices-container {
    opacity: 0;
    transform: translateY(20px);
}

.practices-container.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Staggered animation delays for practice cards */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--bs-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bs-body-bg);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--bs-body-bg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 24px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--bs-body-bg);
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: var(--bs-info);
    border: 5px solid var(--bs-primary);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -13px;
}

.timeline-content:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--bs-warning);
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    background-color: var(--bs-primary);
    color: white;
    left: -25px;
    top: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover .timeline-icon {
    transform: rotate(360deg);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-title {
    margin: 0;
    color: var(--bs-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        left: -15px;
        border-right: 15px solid var(--bs-body-bg);
        border-left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: 18px;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        transform: translateX(0);
    }
}

/* End Quality management Page Styles */
.machine-gallery {
    padding: 3rem 0;
}

.machine-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    height: 100%;
    /* opacity: 0; */
    transform: translateY(20px);
}

.machine-item.animate {
    animation: fadeInUp 0.6s forwards;
}

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

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

.machine-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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

.machine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.machine-item:hover .machine-image {
    transform: scale(1.05);
}

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.machine-content {
    padding: 14px 18px;
    background-color: var(--bs-body-bg);
}

.machine-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bs-primary);
    position: relative;
    padding-bottom: 10px;
}

.machine-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}

.machine-item:hover .machine-title::after {
    width: 80px;
}

.machine-description {
    font-size: 0.93rem;
    color: var(--bs-body-color);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.machine-specs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--bs-border-color);
    font-size: 0.9rem;
}

.machine-specs span {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.machine-specs i {
    color: var(--bs-primary);
    margin-right: 5px;
}

.machine-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--bs-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.machine-item:hover .machine-badge {
    transform: translateY(0);
    opacity: 1;
}

/* End Machine Gallery Styles */

/* Application hero section */
.application-hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.06), rgba(92, 105, 117, 0.05));
}

.quality-standards-section {
    background: #f2f2f2;
}

.app-copy {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.08);
    max-width: 820px;
    margin: 0 auto;
}

.app-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.app-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 1rem 0 0.75rem;
}

.app-lead {
    color: var(--medium-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.app-points {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    margin: 0.5rem 0 0;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.app-points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-weight: 600;
    color: var(--dark-gray);
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.app-points i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.application-hero-frame {
    position: relative;
    border-radius: 26px;
    padding: 1.4rem;
    background: transparent;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 420px;
}

.application-hero-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    position: relative;
    z-index: 2;
    display: block;
}

.app-glow {
    display: none;
}

@media (max-width: 991.98px) {
    .application-hero-section {
        padding: 4rem 0;
    }

    .app-copy {
        text-align: center;
        padding: 1.6rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .application-hero-frame {
        margin-top: 0.5rem;
        min-height: 360px;
    }

    .application-hero-image {
        min-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .application-hero-section {
        padding: 3.5rem 0;
    }

    .app-copy {
        padding: 1.5rem;
    }

    .app-title {
        font-size: 1.8rem;
    }

    .application-hero-image {
        min-height: 260px;
    }
}

/* FSW introduction section */
.fsw-intro-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(27, 94, 194, 0.08));
    padding: 5rem 0;
}

.fsw-intro-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-blue);
}

.fsw-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 92, 146, 0.12);
    color: var(--light-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.fsw-intro-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.fsw-lead {
    color: var(--medium-gray);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.fsw-highlight-stack {
    display: grid;
    gap: 0.6rem;
    margin: 1.2rem 0 1.6rem;
}

.fsw-marker {
    display: block;
    background: linear-gradient(120deg, rgba(11, 92, 146, 0.18), rgba(52, 152, 219, 0.12));
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: var(--dark-gray);
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.fsw-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.fsw-meta-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-orange);
    box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.18);
}

.fsw-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--bg-white);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.fsw-visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.services-section .services-title {
    color: var(--primary-blue);
}

.fsw-visual-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--primary-orange);
    color: var(--bg-white);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 107, 26, 0.35);
}

.fsw-main-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.fsw-subgrid {
    margin-top: 2.5rem;
}

.fsw-subcard {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.fsw-subcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.fsw-subimage {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.fsw-subtitle {
    padding: 1rem 1.25rem 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* FSW Images Column Layout */
.fsw-images-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fsw-column-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fsw-column-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.fsw-column-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    padding: 0.5rem;
    background: #fff;
}

.fsw-column-subtitle {
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-gray);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .fsw-intro-section {
        padding: 4rem 0;
    }

    .fsw-intro-card {
        padding: 2rem;
    }

    .fsw-intro-card h2 {
        font-size: 1.7rem;
    }

    .fsw-lead {
        font-size: 1rem;
    }

    .fsw-images-column {
        margin-top: 2rem;
    }

    .fsw-column-image {
        max-height: 160px;
    }
}

@media (max-width: 768px) {
    .fsw-intro-card {
        text-align: center;
    }

    .fsw-meta {
        justify-content: center;
    }

    .fsw-visual-badge {
        top: 12px;
        right: 12px;
    }

    .fsw-images-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fsw-column-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .fsw-column-image {
        max-height: 120px;
    }
}

/* Services Section - matches actual HTML structure */

/* Services Section Container */
.services-section {
    background-color: #f5f5f5;
}

.services-section h1 {
    color: black;
}

.services-section>.container>.row>p {
    color: black;
}

/* Section heading and paragraph */
#services h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: black;
    margin-bottom: 20px;
}

#services~.container p,
.container-fluid p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 50px;
}

/* Service Cards */
.service-card {
    height: 550px;
    background-color: white;
    border-radius: 10px;
}

#services .card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    animation: fadeInUp 0.6s ease;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card image container */
.card-image-container {
    width: 100%;
    height: 75%;
    overflow: hidden;
    background-color: white;
    border-radius: 10px 10px 0 0;
}

#services .card>div:first-child {
    position: relative;
}

#services .card>div:first-child a {
    display: block;
    width: 100%;
    height: 100%;
}

#services .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border: 0;
}

#services .card:hover img {
    transform: scale(1.1);
}

/* Card content */
.card-content {
    width: 100%;
    height: 25%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding-top: 15px;
}

#services .card .row {
    background: white;
}

#services .card h4 {
    color: black;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: 100%;
}

#services .card p {
    color: black;
    width: 100%;
}

/* Card link styling - make entire card clickable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Service Card Button - targeting the actual button classes */
#services .card .btn-warning {
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    padding: 12px 50px !important;
    width: 100%;
    display: inline-block;
    pointer-events: none;
}

.card-link:hover .btn-warning {
    background: var(--dark-orange);
    color: var(--bg-white);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #services .card {
        height: 480px;
    }

    #services .card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    #services h1 {
        font-size: 2rem;
    }

    .container-fluid p {
        font-size: 1rem;
    }

    #services .card {
        height: 450px;
    }
}

@media (max-width: 768px) {
    #services h1 {
        font-size: 1.8rem;
    }

    #services .card {
        height: 400px;
        margin: 0 auto 20px !important;
    }

    #services .card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    #services .card .btn-warning {
        padding: 8px 25px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #services h1 {
        font-size: 1.5rem;
    }

    .container-fluid p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    #services .card {
        height: 380px;
    }

    #services .card h4 {
        font-size: 1rem;
    }

    #services .card .btn-warning {
        padding: 7px 20px !important;
        font-size: 0.85rem;
    }
}

/*End of Service Section*/
