.mudflaps-features .features-text {
    text-align: center; /* Center all text */
}

.mudflaps-features .features-text h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
}

.mudflaps-features .features-text p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
}

.mudflaps-features .features-list {
    list-style: none;
    text-align: center; /* Center the list */
    max-width: 500px; /* Constrain width for better centering */
    margin: 0 auto; /* Center the list container */
}

.mudflaps-features .features-list li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content within each item */
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-align: center;
    position: relative;
    padding-left: 0; /* Remove left padding since we're centering */
}

.mudflaps-features .features-list li:hover {
    transform: translateY(-2px); /* Change to vertical movement for centered layout */
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
    padding-left: 0;
    border-radius: 8px;
    border-bottom-color: var(--primary-blue);
}

.mudflaps-features .features-list li:last-child {
    border-bottom: none;
}

.mudflaps-features .features-list li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: 700;
    width: 24px;
    height: 24px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* Change from absolute to relative */
    margin-right: 1rem; /* Add margin instead of positioning */
}

.mudflaps-features .features-list li:hover::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.mudflaps-feature-image {
    background-image: url('rubber-mudflap.jpg');
    background-size: cover;
    background-position: center;
}

/* Side Guards Page Specific Styles */
.sideguards-hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sideguards-products {
    padding: 5rem 0;
    background: var(--white);
}

.single-product-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card.single-product {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    height: 500px;
    min-height: 500px;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
}

.product-card.single-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.product-card.single-product .product-image {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.product-card.single-product .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.product-card.single-product:hover .product-image img {
    transform: scale(1.05);
}

.product-card.single-product .product-content {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.product-card.single-product h3 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1.2rem;
}

.product-card.single-product:hover h3 {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.product-card.single-product .product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 350px;
    overflow-y: auto;
}

.product-card.single-product .product-features::-webkit-scrollbar {
    width: 6px;
}

.product-card.single-product .product-features::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.product-card.single-product .product-features::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.product-card.single-product .product-features::-webkit-scrollbar-thumb:hover {
    background: var(--deep-blue);
}

.product-card.single-product .product-features li {
    padding: 0.8rem 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.product-card.single-product .product-features li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 18px;
    height: 18px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.product-card.single-product:hover .product-features li {
    color: var(--dark-gray);
    transform: translateX(4px);
}

.product-card.single-product:hover .product-features li::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* Side Guards specific features section */
.sideguards-features {
    background: var(--light-gray);
}

.sideguards-feature-image {
    background-image: url('Side Guard.jpg');
    background-size: cover;
    background-position: center;
}

/* Mobile responsiveness for mud flaps - Updated for 3-card layout */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .product-card {
        min-height: 620px;
    }
    
    .product-image {
        height: 240px;
        padding: 1.5rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .product-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        margin-bottom: 0.3rem;
        padding-left: 1.6rem;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .product-card {
        min-height: 580px;
    }
    
    .product-image {
        height: 260px;
        padding: 1.8rem;
    }
    
    .product-content {
        padding: 1.8rem;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1.3rem;
    }
    
    .product-features li {
        font-size: 0.88rem;
        padding: 0.6rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mudflaps-hero {
        background-attachment: scroll;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .product-card {
        min-height: auto; /* Allow natural height on mobile */
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-image {
        height: 240px;
        padding: 1.5rem;
    }
    
    .product-content {
        padding: 2rem;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .product-features {
        padding-right: 0;
    }
    
    .product-features li {
        padding: 0.7rem 0;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-left: 2rem;
        line-height: 1.5;
    }
    
    .product-features li::before {
        width: 16px;
        height: 16px;
        top: 0.7rem;
        font-size: 10px;
    }
    
    .mudflaps-products {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.3rem;
    }
    
    .product-features li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
    
    .product-features li::before {
        width: 14px;
        height: 14px;
        top: 0.6rem;
        font-size: 9px;
    }
    
    .product-image {
        height: 200px;
        padding: 1rem;
    }
}

/* Accessories Page Specific Styles */
.accessories-hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.accessories-products {
    padding: 5rem 0;
    background: var(--white);
}

/* Accessories Grid - 4 Cards per Row */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.accessory-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.accessory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.accessory-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.accessory-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.accessory-card:hover .accessory-image img {
    transform: scale(1.05);
}

.accessory-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.accessory-card h3 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessory-card:hover h3 {
    color: var(--primary-blue);
}

.accessory-card p {
    color: var(--medium-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
}

.accessory-card:hover p {
    color: var(--dark-gray);
}

/* Accessories specific features section */
.accessories-features {
    background: var(--light-gray);
}

/* Accessories Mobile Responsiveness */
@media (max-width: 1400px) {
    .accessories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .accessory-card {
        min-height: 380px;
    }
    
    .accessory-content {
        padding: 1.3rem;
    }
    
    .accessory-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .accessory-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .accessories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .accessory-card {
        min-height: 360px;
    }
    
    .accessory-image {
        height: 180px;
        padding: 1.3rem;
    }
    
    .accessory-content {
        padding: 1.5rem;
    }
    
    .accessory-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .accessory-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .accessory-card {
        min-height: 380px;
    }
    
    .accessory-image {
        height: 200px;
        padding: 1.5rem;
    }
    
    .accessory-content {
        padding: 1.5rem;
    }
    
    .accessory-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .accessory-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .accessories-hero {
        background-attachment: scroll;
    }
    
    .accessories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .accessory-card {
        min-height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .accessory-image {
        height: 200px;
        padding: 1.5rem;
    }
    
    .accessory-content {
        padding: 1.5rem;
    }
    
    .accessory-card h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .accessory-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .accessories-products {
        padding: 3rem 0;
    }
}

/* Mounting Page Specific Styles - FIXED */
.mounting-hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mounting-products {
    padding: 5rem 0;
    background: var(--white);
}

/* Mounting Grid - 4 Cards per Row - FIXED */
.mounting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.mounting-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.mounting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.mounting-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.mounting-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.mounting-card:hover .mounting-image img {
    transform: scale(1.05);
}

.mounting-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.mounting-card h3 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mounting-card:hover h3 {
    color: var(--primary-blue);
}

.mounting-card p {
    color: var(--medium-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
}

.mounting-card:hover p {
    color: var(--dark-gray);
}

/* Mounting specific features section */
.mounting-features {
    background: var(--light-gray);
}

/* Mounting Mobile Responsiveness - FIXED */
@media (max-width: 1400px) {
    .mounting-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .mounting-card {
        min-height: 380px;
    }
    
    .mounting-content {
        padding: 1.3rem;
    }
    
    .mounting-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .mounting-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .mounting-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .mounting-card {
        min-height: 360px;
    }
    
    .mounting-image {
        height: 180px;
        padding: 1.3rem;
    }
    
    .mounting-content {
        padding: 1.5rem;
    }
    
    .mounting-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .mounting-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .mounting-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mounting-card {
        min-height: 380px;
    }
    
    .mounting-image {
        height: 200px;
        padding: 1.5rem;
    }
    
    .mounting-content {
        padding: 1.5rem;
    }
    
    .mounting-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .mounting-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mounting-hero {
        background-attachment: scroll;
    }
    
    .mounting-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .mounting-card {
        min-height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .mounting-image {
        height: 200px;
        padding: 1.5rem;
    }
    
    .mounting-content {
        padding: 1.5rem;
    }
    
    .mounting-card h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .mounting-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .mounting-products {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .mounting-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .mounting-content {
        padding: 1.2rem;
    }
    
    .mounting-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .mounting-card p {
        font-size: 0.85rem;
    }
    
    .mounting-image {
        height: 180px;
        padding: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .single-product-container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .product-card.single-product {
        height: 450px;
        min-height: 450px;
    }
    
    .product-card.single-product .product-image {
        width: 45%;
        padding: 2.5rem;
    }
    
    .product-card.single-product .product-content {
        width: 55%;
        padding: 2.5rem;
    }
    
    .product-card.single-product h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .product-card.single-product .product-features {
        max-height: 300px;
    }
    
    .product-card.single-product .product-features li {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 768px) {
    .sideguards-hero {
        background-attachment: scroll;
    }
    
    .single-product-container {
        padding: 0 1rem;
    }
    
    .product-card.single-product {
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-width: 100%;
    }
    
    .product-card.single-product .product-image {
        width: 100%;
        height: 300px;
        padding: 2rem;
    }
    
    .product-card.single-product .product-content {
        width: 100%;
        padding: 2.5rem;
    }
    
    .product-card.single-product h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1.2rem;
    }
    
    .product-card.single-product .product-features {
        max-height: none;
        overflow-y: visible;
    }
    
    .product-card.single-product .product-features li {
        padding: 0.8rem 0;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-left: 2rem;
    }
    
    .product-card.single-product .product-features li::before {
        width: 18px;
        height: 18px;
        top: 0.8rem;
    }
    
    .sideguards-products {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .product-card.single-product .product-content {
        padding: 2rem;
    }
    
    .product-card.single-product h3 {
        font-size: 1.3rem;
        margin-bottom: 1.8rem;
        padding-bottom: 1rem;
    }
    
    .product-card.single-product .product-features li {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
    
    .product-card.single-product .product-features li::before {
        width: 16px;
        height: 16px;
        top: 0.7rem;
    }
    
    .product-card.single-product .product-image {
        height: 250px;
        padding: 1.5rem;
    }
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

:root {
    --primary-blue: #2563eb;
    --deep-blue: #1e40af;
    --teal: #0891b2;
    --slate: #475569;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --dark-gray: #334155;
    --white: #ffffff;
    --border-light: #e2e8f0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Header - Fixed styling with improved navbar spacing */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    will-change: background, backdrop-filter, box-shadow;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px; /* Increased from 1400px */
    margin: 0 auto;
    padding: 3rem 2rem; /* Reduced horizontal padding for more space */
    height: auto;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: padding, transform;
}

header.scrolled nav {
    padding: 1.5rem 2rem; /* Reduced horizontal padding when scrolled */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

header.scrolled .logo {
    transform: scale(0.75);
}

.logo-img {
    height: 90px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

header.scrolled .logo-img {
    height: 55px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img:hover {
    transform: scale(1.05);
}

/* IMPROVED NAVBAR SPACING */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.8rem; /* Increased from 2rem/3rem for better spacing */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    align-items: center;
    margin: 0;
    padding: 0;
}

header.scrolled .nav-links {
    gap: 2.2rem; /* Better spacing when scrolled */
    transform: scale(0.95); /* Less aggressive scale reduction */
}

.nav-links li {
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem; /* Slightly reduced for better fit */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0.6rem; /* Added horizontal padding for better click area */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    letter-spacing: 0.3px; /* Reduced letter spacing */
    display: block;
}

header.scrolled .nav-links a {
    color: var(--dark-gray);
    text-shadow: none;
    font-size: 0.95rem; /* Smaller when scrolled */
    padding: 0.75rem 0.5rem;
    letter-spacing: 0.1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.6rem; /* Align with text padding */
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .nav-links a::after {
    background: var(--primary-blue);
    left: 0.5rem; /* Adjust for scrolled state */
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

header.scrolled .nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: calc(100% - 1.2rem); /* Account for padding */
}

/* Active navigation state */
.nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
}

header.scrolled .nav-links a.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.nav-links a.active::after {
    width: calc(100% - 1.2rem);
    background: rgba(255, 255, 255, 0.9);
}

header.scrolled .nav-links a.active::after {
    background: var(--primary-blue);
    width: calc(100% - 1rem);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 1rem 2.2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2px;
    will-change: background, padding, font-size, transform;
    margin-left: 1rem; /* Add some space from nav links */
}

header.scrolled .contact-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    text-shadow: none;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header.scrolled .contact-btn:hover {
    background: var(--deep-blue);
    border-color: var(--deep-blue);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* RESPONSIVE NAVBAR ADJUSTMENTS */
@media (min-width: 1400px) {
    nav {
        max-width: 1800px;
        padding: 3rem 3rem;
    }
    
    header.scrolled nav {
        padding: 1.5rem 3rem;
    }
    
    .nav-links {
        gap: 3.5rem; /* More spacing on large screens */
    }
    
    header.scrolled .nav-links {
        gap: 2.8rem;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0.8rem;
    }
    
    header.scrolled .nav-links a {
        font-size: 1rem;
        padding: 0.75rem 0.6rem;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .nav-links {
        gap: 2.2rem;
    }
    
    header.scrolled .nav-links {
        gap: 1.8rem;
    }
    
    .nav-links a {
        font-size: 1.05rem;
        padding: 1rem 0.5rem;
    }
    
    header.scrolled .nav-links a {
        font-size: 0.9rem;
        padding: 0.75rem 0.4rem;
    }
}

@media (max-width: 1100px) and (min-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    header.scrolled .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 1rem 0.3rem;
        letter-spacing: 0.1px;
    }
    
    header.scrolled .nav-links a {
        font-size: 0.85rem;
        padding: 0.75rem 0.2rem;
        letter-spacing: 0;
    }
    
    .contact-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
    
    header.scrolled .contact-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced CTA buttons */
.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-primary::before, .cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before, .cta-secondary:hover::before {
    left: 100%;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.cta-primary:hover {
    background: var(--deep-blue);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}

.service-image-1 {
    background-image: url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.38.29_e842b8f4-510x382.jpg');
}

.service-image-2 {
    background-image: url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
}

.service-content {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.service-card:hover p {
    color: var(--dark-gray);
}

/* Features Section - COMPLETE REDESIGN FOR CENTERING */
.features {
    padding: 5rem 0;
    background: var(--light-gray);
    text-align: center;
}

.features .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.features-content {
    display: block !important; /* Override grid completely */
    text-align: center !important;
    width: 100%;
}

.features-text {
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
}

.features-text h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center !important;
    width: 100%;
}

.features-text p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 3rem;
}

.features-list {
    list-style: none !important;
    text-align: left !important;
    max-width: 600px;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
}

.features-list li {
    padding: 1rem 0 !important;
    display: flex !important; /* Change to flex for better alignment */
    align-items: flex-start !important;
    text-align: left !important;
    font-size: 0.95rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.5;
    gap: 1rem; /* Space between checkmark and text */
}

.features-list li:hover {
    transform: translateY(-2px);
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border-bottom-color: var(--primary-blue);
    padding-left: 1rem;
    padding-right: 1rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: 700;
    width: 20px;
    height: 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Prevent checkmark from shrinking */
    margin-top: 0.1rem; /* Slight adjustment for better alignment */
}

.features-list li:hover::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.features-visual {
    display: none !important; /* Completely hide the image section */
}

.features-visual {
    position: relative;
}

.features-image {
    width: 100%;
    height: 400px;
    background-image: url('assets/uploads/2024/01/dreamstime_l_109705457-510x375.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
    border-radius: 8px;
}

/* Enhanced Hamburger Menu System - FIXED */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}

header.scrolled .hamburger-line {
    background-color: var(--dark-gray);
}

/* Hamburger Animation States */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay - FIXED */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu li {
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    color: var(--white) !important;
    font-size: 1.5rem !important;
    text-shadow: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    display: block;
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transform: scale(1.05);
}

.mobile-menu a::after {
    display: none !important;
}

/* Mobile menu close button */
.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

.mission {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.mission-content h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.mission-content p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic;
}

/* Contact Info Section */
.contact-info {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--deep-blue);
}

.stats {
    padding: 3rem 0;
    background: var(--primary-blue);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    animation: smoothFloat 8s ease-in-out infinite;
    will-change: transform;
}

.stat-item:nth-child(2) { animation-delay: 2s; }
.stat-item:nth-child(3) { animation-delay: 4s; }
.stat-item:nth-child(4) { animation-delay: 6s; }

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.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: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    padding: 0.6rem 1rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.newsletter-form .btn:hover {
    background: var(--deep-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}

/* Scroll Reveal Animations - FIXED */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

.scroll-reveal.revealed {
    opacity: 1;
}

/* Stagger animations */
.service-card.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.service-card.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.service-card.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }

.stat-item.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.stat-item.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.stat-item.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.stat-item.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }

.features-list li.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.features-list li.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.features-list li.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.features-list li.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.features-list li.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.features-list li.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Smooth floating animation */
@keyframes smoothFloat {
    0%, 100% { 
        transform: translateY(0px) translateZ(0); 
    }
    50% { 
        transform: translateY(-8px) translateZ(0); 
    }
}

/* Enhanced Mobile responsiveness and cross-browser compatibility */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 2rem;
    }
    
    nav {
        padding: 2rem 2rem;
    }
    
    header.scrolled nav {
        padding: 1rem 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2, .features-text h2, .cta-section h2, .mission-content h2, .contact-content h2 {
        font-size: 2rem;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 2rem 1rem;
        position: relative;
    }
    
    header.scrolled nav {
        padding: 1.25rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 70px;
    }
    
    header.scrolled .logo-img {
        height: 50px;
    }

    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    header.scrolled .contact-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1rem 2rem;
    }

    /* Services */
    .services {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .service-image {
        height: 200px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }

    /* Contact */
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 280px;
        margin: 0 auto 1rem;
    }
    
    .newsletter-form input {
        margin-bottom: 0.5rem;
    }

    /* Mission */
    .mission {
        padding: 3rem 0;
    }
    
    .mission-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title h2, .features-text h2, .cta-section h2, .mission-content h2, .contact-content h2 {
        font-size: 1.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Cross-browser compatibility fixes */
.hero, .service-card, .contact-item, .stat-item {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure smooth scrolling works across browsers */
html {
    scroll-behavior: smooth;
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure backdrop-filter fallbacks */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

@supports not (backdrop-filter: blur(20px)) {
    header.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Print styles */
@media print {
    header {
        position: static;
        background: white;
        box-shadow: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .back-to-top, .mobile-menu-toggle {
        display: none;
    }
}

/* Mudguards Page - UPDATED 4 Cards Horizontal Layout */
.mudguards-products {
    padding: 5rem 0;
    background: var(--white);
}

/* Mudguards Products Grid - IMPROVED Proportions */
.mudguards-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.mudguards-products .product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px; /* Reduced from 650px */
}

.mudguards-products .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.mudguards-products .product-image {
    width: 100%;
    height: 220px; /* Reduced from 280px */
    overflow: hidden;
    position: relative;
    padding: 1.5rem; /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.mudguards-products .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.mudguards-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.mudguards-products .product-content {
    padding: 1.8rem; /* Reduced padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.mudguards-products .product-card h3 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    color: var(--dark-gray);
    margin-bottom: 1.2rem; /* Reduced margin */
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.8rem; /* Reduced padding */
    flex-shrink: 0;
}

.mudguards-products .product-card:hover h3 {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.mudguards-products .product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 260px; /* Set max height to control length */
    padding-right: 0.5rem;
}

.mudguards-products .product-features li {
    padding: 0.5rem 0; /* Reduced from 0.8rem */
    color: var(--medium-gray);
    font-size: 0.88rem; /* Reduced from 0.95rem */
    line-height: 1.5; /* Tighter line height */
    position: relative;
    padding-left: 1.8rem; /* Reduced from 2rem */
    transition: all 0.3s ease;
    margin-bottom: 0.3rem; /* Reduced margin */
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
}

.mudguards-products .product-features li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 16px; /* Reduced from 18px */
    height: 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.mudguards-products .product-card:hover .product-features li {
    color: var(--dark-gray);
    transform: translateX(4px);
}

.mudguards-products .product-card:hover .product-features li::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* Mudguards Mobile Responsiveness */
@media (max-width: 1400px) {
    .mudguards-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .mudguards-products .product-card {
        min-height: 620px;
    }
    
    .mudguards-products .product-content {
        padding: 2rem;
    }
    
    .mudguards-products .product-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1.3rem;
    }
    
    .mudguards-products .product-features li {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 1200px) {
    .mudguards-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mudguards-products .product-card {
        min-height: 580px;
    }
    
    .mudguards-products .product-image {
        height: 260px;
        padding: 1.8rem;
    }
    
    .mudguards-products .product-content {
        padding: 2rem;
    }
    
    .mudguards-products .product-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1.4rem;
    }
    
    .mudguards-products .product-features li {
        font-size: 0.92rem;
        padding: 0.7rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mudguards-hero {
        background-attachment: scroll;
    }
    
    .mudguards-products .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .mudguards-products .product-card {
        min-height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .mudguards-products .product-image {
        height: 240px;
        padding: 1.5rem;
    }
    
    .mudguards-products .product-content {
        padding: 2rem;
    }
    
    .mudguards-products .product-card h3 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .mudguards-products .product-features {
        padding-right: 0;
    }
    
    .mudguards-products .product-features li {
        padding: 0.7rem 0;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-left: 2rem;
        line-height: 1.5;
    }
    
    .mudguards-products .product-features li::before {
        width: 16px;
        height: 16px;
        top: 0.7rem;
        font-size: 10px;
    }
    
    .mudguards-products {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .mudguards-products .product-content {
        padding: 1.5rem;
    }
    
    .mudguards-products .product-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1.3rem;
    }
    
    .mudguards-products .product-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
    
    .mudguards-products .product-features li::before {
        width: 14px;
        height: 14px;
        top: 0.6rem;
        font-size: 9px;
    }
    
    .mudguards-products .product-image {
        height: 200px;
        padding: 1rem;
    }
}

/* Mud Flaps Page - UPDATED LAYOUT */
.mudflaps-hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mudflaps-products {
    padding: 5rem 0;
    background: var(--white);
}

/* IMPROVED Products Grid for Mud Flaps - Better Proportions */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px; /* Reduced from 650px */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.product-image {
    width: 100%;
    height: 220px; /* Reduced from 280px */
    overflow: hidden;
    position: relative;
    padding: 1.5rem; /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.8rem; /* Reduced padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.product-card h3 {
    font-size: 1.3rem; /* Slightly smaller */
    color: var(--dark-gray);
    margin-bottom: 1.2rem; /* Reduced margin */
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.8rem; /* Reduced padding */
    flex-shrink: 0;
}

.product-card:hover h3 {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 280px; /* Set a max height to control length */
    padding-right: 0.5rem;
}

.product-features li {
    padding: 0.5rem 0; /* Reduced from 0.7rem */
    color: var(--medium-gray);
    font-size: 0.88rem; /* Slightly smaller text */
    line-height: 1.5; /* Tighter line height */
    position: relative;
    padding-left: 1.8rem; /* Reduced from 2rem */
    transition: all 0.3s ease;
    margin-bottom: 0.3rem; /* Reduced margin */
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
}

.product-features li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 16px; /* Slightly smaller */
    height: 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.product-card:hover .product-features li {
    color: var(--dark-gray);
    transform: translateX(4px);
}

.product-card:hover .product-features li::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* Ensure scrollbar styling for overflow content */
.product-features::-webkit-scrollbar {
    width: 4px;
}

.product-features::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 2px;
}

.product-features::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

.product-features::-webkit-scrollbar-thumb:hover {
    background: var(--deep-blue);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-shrink: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.product-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.product-btn:hover::before {
    left: 100%;
}

.product-btn.primary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.product-btn.primary:hover {
    background: var(--deep-blue);
    border-color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.product-btn.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.product-btn.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Mudguards specific features section */
.mudguards-features {
    background: var(--light-gray);
}

.mudguards-feature-image {
    background-image: url('THERMOPLASTIC-MUDGUARD.png');
}

/* Mud Flaps specific features section - CENTERED TEXT */
.mudflaps-features {
    background: var(--light-gray);
}

.mudflaps-features .features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.mudflaps-features .features-text {
    text-align: center;
}

/* FENCING PAGE COMPLETE STYLES */

/* Fencing Hero Section */
.fencing-hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('assets/uploads/2024/01/WhatsApp-Image-2024-01-21-at-17.33.55_6ffb412f-1-780x675.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Fencing Products Section */
.fencing-products {
    padding: 5rem 0;
    background: var(--white);
}

/* Fencing Grid - CONSISTENT WITH MUDFLAPS STYLE */
.fencing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.fencing-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}

.fencing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.fencing-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.fencing-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.fencing-card:hover .fencing-image img {
    transform: scale(1.05);
}

.fencing-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.fencing-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.8rem;
    flex-shrink: 0;
}

.fencing-card:hover h3 {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* SIMPLIFIED Security Level Badges - CONSISTENT WITH MUDFLAPS */
.security-level {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.high-security {
    background: rgba(220, 38, 127, 0.1);
    color: #dc267f;
    border: 1px solid rgba(220, 38, 127, 0.3);
}

.medium-security {
    background: rgba(255, 193, 7, 0.1);
    color: #f57c00;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.low-security {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* SIMPLIFIED Aperture Info - CONSISTENT WITH MUDFLAPS */
.fencing-content p {
    color: var(--primary-blue);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* SIMPLIFIED Feature Lists - CONSISTENT WITH MUDFLAPS */
.fencing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 0.5rem;
}

.fencing-features li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.8rem;
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
}

.fencing-features li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.fencing-card:hover .fencing-features li {
    color: var(--dark-gray);
    transform: translateX(4px);
}

.fencing-card:hover .fencing-features li::before {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* WHY CHOOSE US SECTION - FIXED OVERLAP ISSUE */
.why-choose-us {
    background: var(--light-gray);
    padding: 5rem 0;
}

.why-choose-us .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.why-choose-us .features-content {
    display: block;
    text-align: center;
    width: 100%;
}

.why-choose-us .features-text {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 3rem; /* Add proper spacing */
}

.why-choose-us .features-text h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

.why-choose-us .features-text p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 0; /* Remove bottom margin to prevent overlap */
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-us .features-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    display: block;
    margin-top: 0; /* Ensure no top margin */
}

.why-choose-us .features-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    text-align: left;
    font-size: 0.95rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.5;
    gap: 1rem;
}

.why-choose-us .features-list li:hover {
    transform: translateY(-2px);
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border-bottom-color: var(--primary-blue);
    padding-left: 1rem;
    padding-right: 1rem;
}

.why-choose-us .features-list li:last-child {
    border-bottom: none;
}

.why-choose-us .features-list li::before {
    content: "✓";
    color: var(--white);
    font-weight: 700;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.why-choose-us .features-list li:hover::before {
    background: var(--deep-blue);
    transform: scale(1.1);
}

/* FENCING ACCESSORIES SECTION - PROPER CARD LAYOUT */
.fencing-accessories {
    padding: 5rem 0;
    background: var(--white);
}

.fencing-accessories .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.fencing-accessories .section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.fencing-accessories .section-title p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.accessory-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

.accessory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.accessory-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    flex-shrink: 0;
}

.accessory-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.accessory-card:hover .accessory-image img {
    transform: scale(1.05);
}

.accessory-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.accessory-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.8rem;
}

.accessory-card:hover h3 {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.accessory-card .subtitle {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.accessory-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.accessory-features li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.8rem;
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.accessory-features li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    flex-shrink: 0;
}

.accessory-card:hover .accessory-features li {
    color: var(--dark-gray);
    transform: translateX(4px);
}

.accessory-card:hover .accessory-features li::before {
    background: var(--deep-blue);
    transform: scale(1.1);
}

/* TECHNICAL SPECIFICATIONS - FIXED TO ONE ROW */
.fencing-specs {
    padding: 6rem 0;
    background: var(--white);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    align-items: stretch;
}

.specs-card {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.specs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.specs-card h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.specs-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--deep-blue));
    border-radius: 2px;
}

.specs-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.specs-card ul li {
    padding: 1rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.specs-card ul li:last-child {
    border-bottom: none;
}

.specs-card ul li:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* APPLICATIONS SECTION */
.fencing-applications {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f8fafc 100%);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.application-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.application-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.application-card h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.application-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--deep-blue));
    border-radius: 2px;
}

.application-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-card ul li {
    padding: 0.8rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.application-card ul li:last-child {
    border-bottom: none;
}

.application-card ul li::before {
    content: "→";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
    transition: all 0.3s ease;
}

.application-card ul li:hover {
    color: var(--primary-blue);
    transform: translateX(8px);
}

.application-card ul li:hover::before {
    transform: translateX(4px);
}

/* FIXED CTA BUTTON FOR FENCING AND MOUNTING PAGES */
.contact-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 1rem 2.2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2px;
    will-change: background, padding, font-size, transform;
    margin-left: 1rem;
    white-space: nowrap; /* Prevent text wrapping */
    min-width: fit-content; /* Ensure button doesn't shrink too much */
}

header.scrolled .contact-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    text-shadow: none;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0;
    white-space: nowrap; /* Prevent text wrapping when scrolled */
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header.scrolled .contact-btn:hover {
    background: var(--deep-blue);
    border-color: var(--deep-blue);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ADDITIONAL RESPONSIVE FIXES FOR CTA BUTTON */
@media (max-width: 1100px) and (min-width: 768px) {
    .contact-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        margin-left: 0.5rem;
        white-space: nowrap;
    }
    
    header.scrolled .contact-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .contact-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    header.scrolled .contact-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}
@media (max-width: 1200px) {
    .fencing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .fencing-card {
        min-height: 620px;
    }
    
    .fencing-image {
        height: 240px;
        padding: 1.5rem;
    }
    
    .fencing-content {
        padding: 1.5rem;
    }
    
    .fencing-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .fencing-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        margin-bottom: 0.3rem;
        padding-left: 1.6rem;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .accessory-card {
        min-height: 380px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .specs-card {
        padding: 2rem;
    }
    
    .specs-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .specs-card ul li {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }
}

@media (max-width: 992px) {
    .fencing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .fencing-card {
        min-height: 580px;
    }
    
    .fencing-image {
        height: 260px;
        padding: 1.8rem;
    }
    
    .fencing-content {
        padding: 1.8rem;
    }
    
    .fencing-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1.3rem;
    }
    
    .fencing-features li {
        font-size: 0.88rem;
        padding: 0.6rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .accessory-card {
        min-height: 380px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .specs-card {
        padding: 1.8rem;
    }
    
    .specs-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1.3rem;
    }
    
    .specs-card ul li {
        font-size: 0.85rem;
        padding: 0.7rem 0;
    }
}

/* Mobile Responsiveness for Why Choose Us and Accessories */
@media (max-width: 768px) {
    .fencing-hero {
        background-attachment: scroll;
    }
    
    .fencing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .fencing-card {
        min-height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .fencing-image {
        height: 240px;
        padding: 1.5rem;
    }
    
    .fencing-content {
        padding: 2rem;
    }
    
    .fencing-card h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .fencing-features {
        padding-right: 0;
    }
    
    .fencing-features li {
        padding: 0.7rem 0;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-left: 2rem;
        line-height: 1.5;
    }
    
    .fencing-features li::before {
        width: 16px;
        height: 16px;
        top: 0.7rem;
        font-size: 10px;
    }
    
    .fencing-products {
        padding: 3rem 0;
    }
    
    .fencing-accessories {
        padding: 3rem 0;
    }
    
    .fencing-specs {
        padding: 3rem 0;
    }
    
    .why-choose-us {
        padding: 3rem 0;
    }
    
    .why-choose-us .container {
        padding: 0 1rem;
    }
    
    .why-choose-us .features-text h2 {
        font-size: 1.8rem;
    }
    
    .why-choose-us .features-text p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .why-choose-us .features-list {
        max-width: 100%;
    }
    
    .why-choose-us .features-list li {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.8rem 0;
        gap: 0.8rem;
    }
    
    .why-choose-us .features-list li::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .accessories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .accessory-card {
        min-height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .accessory-image {
        height: 160px;
        padding: 1.2rem;
    }
    
    .accessory-content {
        padding: 1.5rem;
    }
    
    .accessory-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }
    
    .accessory-card .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .accessory-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        margin-bottom: 0.2rem;
        padding-left: 1.6rem;
    }
    
    .accessory-features li::before {
        width: 14px;
        height: 14px;
        top: 0.4rem;
        font-size: 7px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .specs-card {
        padding: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .specs-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .specs-card ul li {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .application-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fencing-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .fencing-content {
        padding: 1.5rem;
    }
    
    .fencing-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.3rem;
    }
    
    .fencing-features li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        margin-bottom: 0.4rem;
        padding-left: 1.8rem;
    }
    
    .fencing-features li::before {
        width: 14px;
        height: 14px;
        top: 0.6rem;
        font-size: 9px;
    }
    
    .fencing-image {
        height: 200px;
        padding: 1rem;
    }
    
    .security-level {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .why-choose-us .features-text h2 {
        font-size: 1.6rem;
    }
    
    .why-choose-us .features-list li {
        font-size: 0.85rem;
        padding: 0.7rem 0;
        gap: 0.6rem;
    }
    
    .why-choose-us .features-list li::before {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .accessories-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .accessory-content {
        padding: 1.2rem;
    }
    
    .accessory-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .accessory-card .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .accessory-features li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
        padding-left: 1.4rem;
    }
    
    .accessory-features li::before {
        width: 12px;
        height: 12px;
        top: 0.3rem;
        font-size: 6px;
    }
    
    .accessory-image {
        height: 140px;
        padding: 1rem;
    }
    
    .specs-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .specs-card {
        padding: 1.2rem;
    }
    
    .specs-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .specs-card ul li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }
    
    .application-card {
        padding: 1.2rem;
    }
    
    .application-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .application-card ul li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }
}

/* FENCING APPLICATIONS - FORCE ONE ROW OVERRIDE */
.fencing-applications .applications-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns */
    gap: 2.5rem !important;
    margin-top: 4rem !important;
    max-width: 1400px !important; /* Increased width to accommodate 3 cards */
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 2rem !important;
    align-items: stretch !important; /* Equal height */
}

/* Ensure cards have equal height */
.fencing-applications .application-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Responsive overrides to maintain one row on larger screens */
@media (min-width: 769px) {
    .fencing-applications .applications-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Always 3 columns above 768px */
        gap: 2rem !important;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .fencing-applications .applications-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.8rem !important;
        padding: 0 1.5rem !important;
    }
    
    .fencing-applications .application-card {
        padding: 2rem !important;
    }
    
    .fencing-applications .application-card h3 {
        font-size: 1.2rem !important;
    }
    
    .fencing-applications .application-card ul li {
        font-size: 0.9rem !important;
        padding: 0.7rem 0 !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .fencing-applications .applications-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .fencing-applications .application-card {
        padding: 1.8rem !important;
    }
    
    .fencing-applications .application-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .fencing-applications .application-card ul li {
        font-size: 0.85rem !important;
        padding: 0.6rem 0 !important;
    }
}

/* Only stack vertically on mobile (768px and below) */
@media (max-width: 768px) {
    .fencing-applications .applications-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .fencing-applications .application-card {
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
    }
}
/* MOBILE LAYOUT FIXES - Add this to your CSS file */

/* MUDFLAPS PAGE MOBILE FIXES */
@media (max-width: 768px) {
    /* Fix mudflaps product cards mobile layout */
    .mudflaps-products .products-grid,
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .mudflaps-products .product-card,
    .product-card {
        min-height: auto !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .mudflaps-products .product-image,
    .product-image {
        height: 200px !important;
        padding: 1.5rem !important;
    }
    
    .mudflaps-products .product-content,
    .product-content {
        padding: 1.5rem !important;
    }
    
    .mudflaps-products .product-card h3,
    .product-card h3 {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    .mudflaps-products .product-features,
    .product-features {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    .mudflaps-products .product-features li,
    .product-features li {
        padding: 0.6rem 0 !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        padding-left: 1.8rem !important;
        line-height: 1.5 !important;
    }
    
    .mudflaps-products .product-features li::before,
    .product-features li::before {
        width: 16px !important;
        height: 16px !important;
        top: 0.6rem !important;
        font-size: 10px !important;
    }
}

/* FENCING PAGE MOBILE FIXES */
@media (max-width: 768px) {
    /* Fix fencing product cards mobile layout */
    .fencing-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .fencing-card {
        min-height: auto !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .fencing-image {
        height: 200px !important;
        padding: 1.5rem !important;
    }
    
    .fencing-content {
        padding: 1.5rem !important;
    }
    
    .fencing-card h3 {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    .fencing-features {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    .fencing-features li {
        padding: 0.6rem 0 !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        padding-left: 1.8rem !important;
        line-height: 1.5 !important;
    }
    
    .fencing-features li::before {
        width: 16px !important;
        height: 16px !important;
        top: 0.6rem !important;
        font-size: 10px !important;
    }
    
    /* Fix fencing applications mobile layout */
    .fencing-applications .applications-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .fencing-applications .application-card {
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .fencing-applications .application-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .fencing-applications .application-card ul li {
        font-size: 0.9rem !important;
        padding: 0.7rem 0 !important;
        line-height: 1.5 !important;
    }
    
    /* Fix accessories section on fencing page */
    .fencing-accessories .accessories-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .fencing-accessories .accessory-card {
        max-width: 400px !important;
        margin: 0 auto !important;
        min-height: auto !important;
        width: 100% !important;
    }
    
    .fencing-accessories .accessory-image {
        height: 160px !important;
        padding: 1.2rem !important;
    }
    
    .fencing-accessories .accessory-content {
        padding: 1.5rem !important;
    }
    
    /* Fix specs section mobile layout */
    .fencing-specs .specs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .fencing-specs .specs-card {
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
        width: 100% !important;
    }
}

/* SMALLER MOBILE SCREENS */
@media (max-width: 480px) {
    /* Mudflaps smaller mobile fixes */
    .mudflaps-products .products-grid,
    .products-grid {
        padding: 0 0.5rem !important;
        gap: 1.5rem !important;
    }
    
    .mudflaps-products .product-card,
    .product-card {
        max-width: 100% !important;
    }
    
    .mudflaps-products .product-content,
    .product-content {
        padding: 1.2rem !important;
    }
    
    .mudflaps-products .product-card h3,
    .product-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .mudflaps-products .product-features li,
    .product-features li {
        font-size: 0.85rem !important;
        padding: 0.5rem 0 !important;
        padding-left: 1.6rem !important;
    }
    
    .mudflaps-products .product-features li::before,
    .product-features li::before {
        width: 14px !important;
        height: 14px !important;
        top: 0.5rem !important;
        font-size: 9px !important;
    }
    
    .mudflaps-products .product-image,
    .product-image {
        height: 180px !important;
        padding: 1.2rem !important;
    }
    
    /* Fencing smaller mobile fixes */
    .fencing-grid {
        padding: 0 0.5rem !important;
        gap: 1.5rem !important;
    }
    
    .fencing-card {
        max-width: 100% !important;
    }
    
    .fencing-content {
        padding: 1.2rem !important;
    }
    
    .fencing-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .fencing-features li {
        font-size: 0.85rem !important;
        padding: 0.5rem 0 !important;
        padding-left: 1.6rem !important;
    }
    
    .fencing-features li::before {
        width: 14px !important;
        height: 14px !important;
        top: 0.5rem !important;
        font-size: 9px !important;
    }
    
    .fencing-image {
        height: 180px !important;
        padding: 1.2rem !important;
    }
    
    /* Fencing applications smaller mobile */
    .fencing-applications .applications-grid {
        padding: 0 0.5rem !important;
        gap: 1.2rem !important;
    }
    
    .fencing-applications .application-card {
        max-width: 100% !important;
        padding: 1.2rem !important;
    }
    
    .fencing-applications .application-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .fencing-applications .application-card ul li {
        font-size: 0.85rem !important;
        padding: 0.6rem 0 !important;
    }
}

/* GENERAL MOBILE CONTAINER FIXES */
@media (max-width: 768px) {
    /* Ensure all page containers are properly centered */
    .container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Fix section spacing on mobile */
    .mudflaps-products,
    .fencing-products,
    .fencing-accessories,
    .fencing-specs,
    .fencing-applications {
        padding: 3rem 0 !important;
    }
    
    /* Fix hero sections on mobile */
    .mudflaps-hero,
    .fencing-hero {
        background-attachment: scroll !important;
        min-height: 60vh !important;
    }
}