.search-container {
    position: relative;
    max-width: 500px;
    margin: 40px auto;
    animation: fadeInUp 1s ease 0.6s both;
    z-index: 10000;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none;
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    transform: translateZ(0);
}

.search-results::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.search-results {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.search-bar::-webkit-outer-spin-button,
.search-bar::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-bar[type=number] {
    -moz-appearance: textfield;
}

.hero-animation>* {
    z-index: 1 !important;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .search-results {
    z-index: 10001 !important;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10002;
}

.search-result-item:hover {
    background: rgba(42, 107, 204, 0.1);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    z-index: 10003;
}

.search-result-category {
    font-size: 0.85rem;
    color: var(--gray);
    background: rgba(0, 168, 150, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 10003;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    animation: fadeInUp 1s ease 0.9s both;
    position: relative;
    z-index: 3;
}

.search-bar {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10000;
}

.search-bar:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.search-results::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
}

.global-search-container {
    position: fixed;
    top: 130px;
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    z-index: 20;
}


.hero .global-search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 30px auto 0 auto;
    z-index: 10;
}

.global-search-bar {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

.global-search-bar:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.global-search-bar::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.global-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.global-search-container:hover .global-search-icon {
    transform: translateY(-50%) scale(1.1);
    color: var(--secondary);
}

.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none;
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    transform: translateZ(0);
}

.global-search-results::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.global-search-results {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.hero .search-container {
    display: none;
}

body.modal-open .global-search-container {
    opacity: 0;
    pointer-events: none;
}

body.modal-open .global-search-icon {
    opacity: 0;
    pointer-events: none;
}