:root {
    --primary-color: #4B0082;
    --secondary-color: #e6e6e6;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --font-family: 'Poppins', sans-serif;
    --top-bar-padding: 8px 0;
    --navbar-padding: 15px 0;
    --button-padding: 10px 20px;
    --border-radius: 5px;
    --primary-text-color: #ffffff;
    --secondary-text-color: #e0e0e0;
    --card-bg-color: rgba(255, 255, 255, 0.1);
    --card-border-color: #ff1493;
    --card-border-top-color: #1e90ff;
    --card-border-bottom-color: #ff1493;
    --card-hover-border: linear-gradient(90deg, #1e90ff, #8a2be2, #ff1493);
    --font-family: 'Poppins', sans-serif;
    --container-max-width: 1200px;
    --container-padding: 0 15px;
    --card-border-top-color: #1e90ff;
    --card-border-bottom-color: #ff1493;
    --card-border-side-color: #8a2be2;
    --card-border-width: 1px;
    --card-border-style: solid;
    --section-bg: #f5f5f5;
    --input-border: #ccc;
    --section-spacing: 50px 0;
    --header-spacing: 0 0 40px 0;
    --search-btn-hover: #5d00a3;
    --primary-text: #333;
    --secondary-text: #888;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --card-bg: #fff;
    --card-border: #e0e0e0;
    --button-border: #007bff;
    --button-text-color: #007bff;
    --button-hover-bg: #eaf5ff;
    --view-all-bg: #007bff;
    --view-all-hover-bg: #0056b3;
    --container-product-padding: 50px 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: #f0f0f0;
}


.dropdown-toggle::after {
    display: none !important;
}

.custom-arrow {
    margin-left: 5px;
    font-size: 12px;
    color: #FFF; /* change as needed */
}


.mobile-menu-icon{
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    color: var(--text-color-dark);
}

@media  (max-width: 992px) {
    .mobile-menu-icon{
        display: block;
    }
    .main-menu{
        display: none !important;
    }

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: var(--top-bar-padding);
}

.top-bar .top-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}

.top-bar .top-menu a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.top-bar .top-menu a img {
    margin-right: 5px;
    height: 14px;
}

.top-bar .top-menu .dropdown {
    position: relative;
    display: inline-block;
}

.top-bar .top-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #5d00a3;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    top: 100%;
}

.top-bar .top-menu .dropdown:hover .dropdown-content {
    display: block;
}

.top-bar .top-menu .dropdown-content a {
    color: var(--text-color-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.top-bar .top-menu .dropdown-content a:hover {
    background-color: #6a00b6;
}

.top-bar .top-menu .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.top-bar .top-menu .dropdown-toggle .arrow {
    margin-left: 5px;
}

.navbar {
    background-color: var(--secondary-color);
    padding: var(--navbar-padding);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 50px;
    margin-right: 10px;
}

.navbar .main-menu {
    display: flex;
    gap: 25px;
}

.navbar .main-menu a {
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar .main-menu a:hover {
    color: var(--primary-color);
}

.add-product-btn {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: var(--button-padding);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-product-btn:hover {
    background-color: #5d00a3;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-text-color);
    overflow: hidden;
    padding: 50px 15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_banner.jpg') no-repeat center center/cover;
    filter: brightness(30%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: var(--container-padding);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Service Cards */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: var(--card-border-width) var(--card-border-style) transparent;
    border-color: var(--card-border-top-color) var(--card-border-side-color) var(--card-border-bottom-color) var(--card-border-side-color);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    flex: 1 1 260px;
    max-width: 320px;
    min-height: 80px;    /* keep a decent min height */
    max-height: 120px;   /* enforce max height */
    display: flex;       /* center text vertically */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card span {
    position: relative;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .service-cards {
        flex-direction: column;
        align-items: stretch;
    }
    .service-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .service-card {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    .hero-content p {
        font-size: 0.85rem;
    }
    .service-card {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}

.services-section {
    padding: var(--section-spacing);
}

.section-header {
    text-align: center;
    margin-bottom: var(--header-spacing);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

.search-bar-container {
    text-align: center;
    width: 100%;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
}

.search-dropdown-wrapper {
    position: relative;
    border: 1px solid var(--input-border);
    overflow: hidden;
    width: 260px;
    height: 40px;
}

.search-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
    border: none;
    padding: 0 30px 0 10px;
    height: 100%;
    font-size: 1rem;
    cursor: pointer;
    background-color: #fff;
    outline: none;
    width: 100%;
}

.search-input-wrapper {
    border: 1px solid var(--input-border);
    overflow: hidden;
    height: 40px;
}

.search-input {
    width: 260px;
    height: 40px;
    border: none;
    padding: 0 10px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    height: 40px;
}

.search-btn svg {
    height: 20px;
    width: 20px;
}

.search-btn:hover {
    background-color: var(--search-btn-hover);
}

.search-example {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 10px;
}

.products-section {
    padding: var(--section-spacing);
}


@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 0px;
    }
    .search-dropdown-wrapper,
    .search-input-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .search-btn {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
}


.section-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-product-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.view-all-btn {
    background-color: var(--view-all-bg);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-btn:hover {
    background-color: var(--view-all-hover-bg);
    color: var(--text-color-light);
}

@media (max-width: 768px) {
    .view-all-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
}

.material-card {
    width: 250px;
    background-color: transparent;
    border-radius: 10px;
    padding: 15px 0px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-image-container {
    width: 80%;
    height: 120px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.material-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 5px;
}

.material-sold {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.request-btn {
    display: block;
    width: 70%;
    padding: 8px 10px;
    border: 1px solid var(--button-border);
    border-radius: 1px;
    color: var(--button-text-color);
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 auto;
    text-align: center;
}

.request-btn:hover {
    background-color: var(--button-hover-bg);
    color: var(--link-color);
}


@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .material-card {
        padding: 10px 0px;
    }
    .material-image-container {
        height: 100px;
    }
    .material-title {
        font-size: 0.9rem;
    }
    .material-sold {
        font-size: 0.75rem;
    }
    .request-btn {
        width: 90%;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}
