/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections */
section {
    animation: fadeInUp 0.8s ease-out;
}

/* Card animations */
.product-card,
.material-card,
.gallery-item,
.cert-badge {
    animation: scaleIn 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.material-card:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image animations */
.product-image img,
.gallery-image img,
.material-icon img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

/* Button animations */
.btn,
button,
input[type="submit"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Link animations */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #8b6f47;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a,
.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Main Header & Navigation */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin: 0;
    margin-bottom: 0;
    animation: fadeIn 0.5s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav {
    background: transparent;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0.6rem;
    transition: color 0.3s;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: #8b6f47;
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.main-nav .dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
}

.main-nav .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-top: 0;
    z-index: 1000;
    padding: 0.9rem 0 0.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.25s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu {
    transition-delay: 0s, 0s, 0s;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu:hover {
    transition-delay: 0s, 0s, 0s;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    width: 100%;
}

.main-nav .dropdown-menu a {
    color: #333;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: normal;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.main-nav .dropdown-menu a:hover {
    background: #f5f5f5;
    color: #8b6f47;
    padding-left: 2rem;
}

/* Old header styles - kept for backward compatibility with other pages */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

nav {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
    border-radius: 5px;
    display: block;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu Styles */
nav .dropdown {
    position: relative;
}

nav .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav .dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
}

nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-top: 0.5rem;
    z-index: 1000;
    padding: 0.5rem 0;
}

nav .dropdown:hover .dropdown-menu {
    display: block;
}

nav .dropdown-menu li {
    width: 100%;
}

nav .dropdown-menu a {
    color: #333;
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    white-space: nowrap;
}

nav .dropdown-menu a:hover {
    background: #f0f0f0;
    color: #1e3c72;
}

/* Hero Section */
/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    margin-top: 0;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.slide.slide-in {
    display: block;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInFromRight 1s ease-in-out forwards;
}

.slide.slide-out {
    display: block;
    transform: translateX(0);
    animation: slideOutToLeft 1s ease-in-out forwards;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
    border-radius: 3px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

@keyframes slideInFromRight {
    0% { 
        transform: translateX(100%);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% { 
        transform: translateX(0);
        opacity: 1;
    }
    100% { 
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToLeft {
    from { 
        transform: translateX(0);
        opacity: 1;
    }
    to { 
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Keep old hero styles for other pages */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1920x600/1e3c72/ffffff?text=Exotic+Alloy+Bolting');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #e55a2b;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #ffffff;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

.product-image img[style*="object-fit: cover"] {
    object-fit: contain !important;
}

.product-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Features Grid */
.features {
    background: #f8f9fa;
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

.social-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon.twitter {
    background: #3b4a5a;
}

.social-icon.facebook {
    background: #3b4a5a;
}

.social-icon.pinterest {
    background: #3b4a5a;
}

.social-icon.linkedin {
    background: #3b4a5a;
}

.social-icon.tumblr {
    background: #3b4a5a;
}

.social-icon:hover {
    padding-left: 15px;
    width: 70px;
}

/* Coatings and Bolting Section */
.coatings-bolting-section {
    padding: 4rem 0;
    background: #f5f7fa;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-heading {
    font-size: 1.8rem;
    color: #3b4a5a;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: #ffc107;
}

.coatings-image-placeholder {
    max-width: 400px;
    margin-top: 1rem;
}

.coatings-image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.bolting-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bolting-list p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-sidebar {
        display: none;
    }
}

/* Product Gallery Section */
.product-gallery-section {
    padding: 4rem 0;
    background: white;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #3b4a5a;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.gallery-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px;
    height: 3px;
    background: #ffc107;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.gallery-info p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: #2c4875;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 2.5rem;
}

.feature-icon::before {
    color: white !important;
}

/* Coatings Section */
.coatings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.coating-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.3s;
}

.coating-item:hover {
    transform: scale(1.05);
}

/* Clients Section */
.clients {
    text-align: center;
}

.clients-image {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin: 2rem auto;
    overflow: hidden;
}

.clients-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cert-badge {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* Content Section */
.content {
    padding: 3rem 0;
}

.content h2 {
    color: #1e3c72;
    margin: 2rem 0 1rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

.spec-table th {
    background: #1e3c72;
    color: white;
}

.spec-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1e3c72;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Responsive */
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    /* Top bar mobile */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        font-size: 0.85rem;
    }
    
    /* Main header mobile */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        position: relative;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }
    
    /* Mobile navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Mobile dropdown styles */
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: #f8f8f8;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .main-nav .dropdown-toggle::after {
        float: right;
        transition: transform 0.3s ease;
    }
    
    .main-nav .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .main-nav .dropdown-menu a {
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .main-nav .dropdown-menu a:hover {
        padding-left: 3rem;
    }
    
    /* Overlay for mobile menu */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Old header mobile styles */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Global Image Constraints to prevent overflow */
.gallery-item img,
.material-card img,
.material-icon img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keep product catalog images fully visible inside fixed product-image boxes */
.product-card .product-image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

/* Ensure all images respect their container boundaries */
img {
    max-width: 100%;
    height: auto;
}
/* ===========================
   OUR CLIENTS SECTION
=========================== */

.clients{
    padding:80px 0;
    background:#ffffff;
    position:relative;
}

.clients .section-title{
    margin-bottom:50px;
}

/* Slider */

.clients-slider{
    width:100%;
    overflow:hidden;
    position:relative;
    margin:40px 0 50px;
}

/* Optional fade effect on left/right */

.clients-slider::before,
.clients-slider::after{
    content:"";
    position:absolute;
    top:0;
    width:120px;
    height:100%;
    z-index:2;
    pointer-events:none;
}

.clients-slider::before{
    left:0;
    background:linear-gradient(to right,#fff 0%,rgba(255,255,255,0) 100%);
}

.clients-slider::after{
    right:0;
    background:linear-gradient(to left,#fff 0%,rgba(255,255,255,0) 100%);
}

/* Track */

.clients-track{
    display:flex;
    align-items:center;
    width:max-content;
    animation:clientScroll 35s linear infinite;
}

/* Pause on hover */

.clients-slider:hover .clients-track{
    animation-play-state:paused;
}

/* Logo */

.clients-track img{

    width:220px;
    height:120px;

    object-fit:contain;
    object-position:center;

    margin:0 35px;

    display:block;

    background:transparent;
    border:none;
    outline:none;
    border-radius:0;

    box-shadow:none;

    filter:none;

    transition:transform .35s ease;

    flex-shrink:0;

    vertical-align:middle;
}

/* Hover */

.clients-track img:hover{
    transform:scale(1.08);
}

/* Animation */

@keyframes clientScroll{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }

}

/* Mobile */

@media (max-width:768px){

    .clients{
        padding:60px 0;
    }

    .clients-track img{

        width:150px;
        height:80px;

        margin:0 20px;

    }

    .clients-slider::before,
    .clients-slider::after{

        width:40px;

    }

}

/* =========================================================
   Global Smooth Edges
   Softens sharp corners site-wide (visual only - no layout impact)
   ========================================================= */
:root {
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;
}

/* Cards, panels, callouts, gallery items, media boxes */
.product-card,
.material-card,
.gallery-item,
.gallery-image,
.feature-box,
.cert-badge,
.industry-card,
.coating-card,
.stat-card,
.info-card,
.contact-form,
.card,
.panel,
.callout,
.testimonial,
.blog-card,
.pricing-card,
.spec-card,
.tech-card,
.about-card,
.icon-box,
.image-box,
.media-box,
.thumbnail,
.tile {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Inner image wrappers inside cards */
.product-image,
.gallery-image,
.material-image,
.feature-image,
.card-image,
.thumbnail img,
.tile img {
    border-radius: var(--radius-md);
}

/* Standalone images that aren't inside a rounded wrapper */
.rounded-img,
.about-img,
.hero-img,
.section-img,
figure img,
.content img:not(.no-round):not(.logo):not(.icon) {
    border-radius: var(--radius-md);
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button {
    border-radius: var(--radius-sm);
}

/* Pill-style CTAs (opt-in via class) */
.btn-pill,
.pill {
    border-radius: var(--radius-pill);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea,
.form-control {
    border-radius: var(--radius-sm);
}

/* Badges, tags, chips */
.badge,
.tag,
.chip,
.label-pill {
    border-radius: var(--radius-pill);
}

/* Tables with rounded outer edge */
table.rounded,
.table-rounded {
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

/* Iframes / maps / video embeds */
iframe,
video,
.map-container,
.video-container {
    border-radius: var(--radius-md);
}

/* Alerts / notices */
.alert,
.notice,
.message-box {
    border-radius: var(--radius-md);
}

/* Modals / dropdowns / tooltips */
.modal,
.modal-content,
.dropdown-menu,
.tooltip,
.popover {
    border-radius: var(--radius-md);
}

/* Override any lingering sharp corners in nav dropdowns */
.main-nav .dropdown-menu {
    border-radius: var(--radius-md);
}

/* Global interaction effects */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card,
.material-card,
.gallery-item,
.feature-box,
.cert-badge,
.industry-card,
.coating-card,
.info-card,
.contact-form {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover,
.material-card:hover,
.gallery-item:hover,
.feature-box:hover,
.cert-badge:hover,
.industry-card:hover,
.coating-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16, 48, 92, 0.16);
}

.product-card:hover img,
.material-card:hover img,
.gallery-item:hover img,
.industry-card:hover img,
.coating-card:hover img {
    transform: scale(1.035);
}

.main-nav > ul > li > a,
footer a:not(.btn) {
    text-underline-offset: 0.25em;
}

.main-nav > ul > li > a:hover,
footer a:not(.btn):hover {
    text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Kill accidental hard 0-radius overrides on generic buttons */
button.rounded-0,
.btn.rounded-0 {
    border-radius: 0 !important;
}