.section-services {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-width: 280px;
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

}

.service-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #eef0f2;
}

.service-content {
    padding: 32px;
}

.service-header {
    margin-bottom: 24px;
    text-align: center;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.service-subtitle {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-features {
    margin-top: 24px;
}

.feature-group {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: #5a6c7d;
}

.feature-item i {
    color: #007bff;
    margin-top: 4px;
}

.service-cta {
    margin-top: 32px;
    text-align: center;
}

.service-link {
    display: inline-block;
    padding: 12px 28px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.service-link:hover {
    background: #0056b3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Forces exactly 2 columns */
    gap: 32px;
    padding: 20px 0;
    max-width: 1200px;
    /* Ensures cards don't get too wide */
    margin: 0 auto;
    /* Centers the grid */
}



.hero {
    height: 100vh;
    background: radial-gradient(circle at center, rgba(175, 175, 175, 1) 0%, rgba(50, 50, 50, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero.avif') no-repeat center center/cover;
    animation: moveBackground 10s forwards ease-in-out;
    opacity: 0.2;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 400px;
    perspective: 1500px;
    overflow: hidden;

}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition)
}


@media(hover:hover) {
    .card:hover::before {
        transform: scaleX(1);
    }

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

    /* Cards-specific height animation */

    #pu-card.expanded {
        height: 600px;

    }

    #coatings-card.expanded {
        height: 475px;
    }

    #paste-card.expanded {
        height: 1000px;
    }
}


.cards-grid {
    display: inline-grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* .card {
    position: relative;
    height: 400px;
    perspective: 1500px;
    overflow: hidden;
} */

.card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    /* Prevents interaction with video */
    -webkit-tap-highlight-color: transparent;
    /* Removes tap highlight on iOS */
    touch-action: none;
    /* Prevents touch interactions */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    z-index: 1;
    /* Ensures card content is above video */
}

.card.expanded .card-inner {
    transform: rotateY(180deg);
}


.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    background-position: center;
    background-size: cover;
}

.card-front {
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.5);
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
    border-radius: 15px;
    opacity: 0;
    transition: var(--transition);
}

.card[data-background]::before {
    opacity: 1;
}

.card-back {
    background-color: var(--white);
    transform: rotateY(180deg);
    overflow-y: auto;
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.5);

}

.expand-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.card:hover .expand-icon {
    transform: rotate(45deg);
}

.card-list {
    list-style: none;
    margin-bottom: 1rem;
}

.card-list-item {
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.card-link:hover {
    background-color: var(--primary-lighter);
    /* color: black; */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}


/* Section styling */
.section {
    position: relative;
    padding: var(--section-padding);
    transition: background-color 0.3s ease;
}

.section-about {
    background-color: var(--section-light);
}

.section-services {
    background-color: var(--section-accent);
}

.section-sectors {
    background-color: var(--section-dark);
}

.section-products {
    background-color: var(--section-light);
    padding: var(--section-padding);
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-category {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-category:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.product-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.product-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: var(--secondary-color);
}

.product-link:hover i {
    transform: translateX(5px);
}

/* Update section transitions */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.section-cta-highlight {
    background: linear-gradient(120deg, #e0e7ef 0%, #f8fafc 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-highlight-content {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 48px 32px 32px 32px;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 28px;
    color: #333;
}

.cta-main-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 32px;
    font-size: 1.1rem;
    margin-bottom: 28px;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-main-button:hover {
    background: #0056b3;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #007bff;
    font-size: 1.05rem;
}

.cta-benefits li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


@keyframes moveBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

@media (max-width: 1037px) {
    :root {
        --navbar-height: 80px;
        --navbar-height-scrolled: 60px;
    }

    /* Layout & Spacing */
    .section {
        padding: 3rem 1rem;
    }

    .container,
    .hero-content,
    .navbar-content {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .products-grid,
    .services,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        padding: 1rem 0;
    }

    .footer-section,
    .certifications,
    .contact-info {
        text-align: center;
        justify-content: center;
    }

    /* Typography */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p,
    .card-front p,
    .card-back {
        font-size: 0.9rem;
    }

    .card-front h3 {
        font-size: 1.3rem;
    }

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

    /* Cards */
    .card {
        height: 350px;
    }

    .card-back {
        padding: 1.5rem;
    }

    .card-list {
        margin-bottom: 1rem;
    }

    .product-image {
        height: 150px;
    }

    /* Navbar & Menu */
    .navbar {
        height: var(--navbar-height-mobile);
    }

    .navbar-content {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - var(--navbar-height));
        background: var(--navbar-gradient);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
        left: 0;
    }

    .navbar.scrolled .nav-links {
        background: var(--navbar-bg);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        top: var(--navbar-height-scrolled);
    }

    .navbar:not(.scrolled) .nav-links {
        background: var(--navbar-gradient);
    }

    .navbar:not(.scrolled) .nav-links .nav-link {
        color: white;
    }

    .nav-link {
        width: 100%;
        font-size: 1.2rem;
        padding: 1rem 0;
        text-align: center;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-cta {
        display: none;
    }

    /* Logo */
    .logo-img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 2px 0;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Phone Link */
    .phone-link span {
        display: none;
    }

    .phone-link {
        padding: 0.8rem;
    }

    .service-card {
        margin-bottom: 24px;
    }

    .service.content {
        padding: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }


}