/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    padding-top: 85px; /* Match header height */
}

/* Section Title Styling */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.title-line {
    width: 80px;
    height: 3px;
    background-color: #e17108;
    margin: 0 auto;
}

.title-line.white {
    background-color: #fff;
}

/* Hero Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    height: 70vh;
}

.slide {
    display: none;
    position: relative;
    height: 100%;
    animation: fade 1.5s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 2;
}

.slide-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    animation: slideInLeft 1s ease-out;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    animation: slideInLeft 1.2s ease-out;
}

.hero-btn {
    display: inline-block;
    background-color: #e17108;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease-out;
}

.hero-btn:hover {
    background-color: #ff8000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 113, 8, 0.4);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(225, 113, 8, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dot-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.active {
    background-color: #000000;
    transform: scale(1.2);
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: center;
    padding: 15px;
    width: 220px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 24px;
    color: #e17108;
    margin-right: 15px;
}

.feature h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #333;
}

.feature p {
    font-size: 14px;
    margin: 0;
    color: #777;
}

/* Helmets Section */
.helmet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f8f8;
}

.helmet-size {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
}

.helmets {
    text-align: center;
    flex-basis: calc(25% - 30px);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.helmets a {
    text-decoration: none;
    display: block;
}

.helmet-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.helmets img {
    height: 200px;
    width: 200px;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.helmet-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(225, 113, 8, 0.8);
    color: white;
    padding: 10px 0;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.helmet-overlay span {
    font-weight: 600;
    letter-spacing: 1px;
}

.helmets:hover .helmet-overlay {
    bottom: 0;
    opacity: 1;
}

.helmets:hover img {
    transform: scale(1.1);
}

.helmets h2 {
    color: #333;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.helmets:hover h2 {
    color: #e17108;
}

/* Categories Section */
.categories-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0 50px;
    background-color: #f8f8f8;
}

.categories-container1 {
    width: 90%;
    max-width: 1200px;
}

.categories-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.categories-bar1 h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.categories-bar a {
    text-decoration: none;
    color: #e17108;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.categories-bar a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.categories-bar a:hover {
    color: #ff8000;
}

.categories-bar a:hover i {
    transform: translateX(5px);
}

.categories {
    display: flex;
    justify-content: center;
}

.categories1 {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.categories2 {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 220px;
}

.categories2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e17108;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.categories2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categories2:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
    background-color: white;
}

.categories2 h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    text-align: left;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.categories2 h5 {
    color: #e17108;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px 0;
    text-align: left;
}

.product-rating {
    display: flex;
    color: #ffc107;
    font-size: 14px;
    margin-top: 5px;
}

.quick-view {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.categories2:hover .quick-view {
    background-color: #e17108;
}

/* Brand Section */
.brands {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    white-space: nowrap;
    position: relative;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.brands:before,
.brands:after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    content: "";
    z-index: 1;
}

.brands:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.brands:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.brands:hover .logo-slides {
    animation-play-state: paused;
}

.logo-slides {
    display: inline-block;
    animation: 25s slide infinite linear;
}

.logo-slides img {
    width: 180px;
    margin: 0 40px;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-slides img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 0;
    background: #222;
    color: white;
    margin-bottom: 20px;
}

.about1 {
    width: 80%;
    max-width: 1200px;
}

.about1 h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.about2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-left {
    flex: 3;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

.about-left h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #e17108;
}

.about-left p {
    margin-bottom: 20px;
    color: #ddd;
}

.about-right {
    flex: 2;
    text-align: center;
}

.about-right img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-right img:hover {
    transform: scale(1.05);
}

/* Button styling */
.about-btn {
    margin: 25px 0;
}

.shop-btn {
    background-color: #e17108;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: skew(-15deg);
    display: inline-block;
    border-radius: 3px;
}

.shop-btn a {
    text-decoration: none;
    color: white;
}

.shop-btn span {
    display: block;
    transform: skew(15deg);
}

.shop-btn:hover {
    background-color: #ff8000;
    transform: scale(1.05) skew(-15deg);
    box-shadow: 0 5px 15px rgba(225, 113, 8, 0.4);
}

.shop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-15deg);
    transition: left 0.5s ease;
}

.shop-btn:hover::before {
    left: 100%;
}

/* Newsletter Section */
.newsletter {
    background-color: #f2f2f2;
    padding: 50px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.newsletter p {
    color: #666;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.newsletter-form button {
    background-color: #e17108;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff8000;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .helmets {
        flex-basis: calc(33.33% - 30px);
    }
    
    .about2 {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .slideshow-container {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .feature {
        width: 180px;
    }
    
    .helmets {
        flex-basis: calc(50% - 30px);
    }
    
    .about-left {
        font-size: 15px;
    }
    
    .about-right img {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 50vh;
    }
    
    .slide-content {
        left: 5%;
    }
    
    .slide-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .features-section {
        padding: 30px 2%;
    }
    
    .feature {
        width: 45%;
        margin-bottom: 20px;
    }
    
    .about2 {
        flex-direction: column;
        text-align: center;
    }
    
    .about-left, .about-right {
        width: 100%;
    }
    
    .about-btn {
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        padding: 12px;
    }
    
    .categories-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .categories-bar h4 {
        margin-top: 10px;
    }
    
    .categories1 {
        gap: 20px;
    }
    
    .categories2 {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .slideshow-container {
        height: 40vh;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }

    .main-content {
        padding-top: 70px; /* Match header height */
    }
    
    .slide-content h2 {
        font-size: 16px;
    }
    
    .feature {
        width: 100%;
    }
    
    .helmets {
        flex-basis: 100%;
    }
    
    .categories2 {
        width: 100%;
    }
    
    .about1 h1 {
        font-size: 24px;
    }
    
    .about-left h3 {
        font-size: 20px;
    }
    
    .about-left {
        font-size: 14px;
    }
    
    .shop-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .logo-slides img {
        width: 120px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 35vh;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 3px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .categories-bar1 h3 {
        font-size: 18px;
    }
}