/* ===== Container ===== */
.search-section {
    padding: 3rem 1rem 4rem;
    text-align: center;
}

/* ===== Floating Search Input ===== */
.floating-input {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}
.floating-input input {
    width: 100%;
    max-width: 680px;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    border: 1px solid rgba(200,200,200,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #111827;
}

.floating-input input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.floating-input label {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    color: #c9c9c9;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.25s ease all;
}
.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    top: -10px;
    left: 1rem;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.5);
    padding: 0 6px;
    border-radius: 4px;
}

/* ===== Buttons ===== */
.advanced-btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}
.advanced-btn:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.advanced-btn i {
    transition: all 0.3s ease;
}
.advanced-btn:hover i {
    transform: translateY(-1px);
}

/* ===== Buttons Container ===== */
.search-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
}

/* ===== Subtitle text ===== */
.search-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* ===== Overlay ===== */
.category-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.category-overlay.active { display: flex; }

.category-modal {
    width: 100%;
    max-width: 760px;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), opacity 0.35s;
}
.category-overlay.active .category-modal {
    transform: translateY(0);
    opacity: 1;
}
.category-grid {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 6px;
}
.category-grid::-webkit-scrollbar { width: 6px; }
.category-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
}
.category-checkbox:checked + label {
    font-weight: 600;
}

/* ===== Overlay Buttons ===== */
#selectAllBtn, #clearAllBtn, #applyOverlayBtn {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    color: #111827;
}
#selectAllBtn:hover, #clearAllBtn:hover, #applyOverlayBtn:hover {
    background: rgba(255,255,255,0.55);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===== Floating effect for Icons ===== */
#openOverlay, .advanced-btn i {
    transition: all 0.3s ease;
}
#openOverlay:hover, .advanced-btn:hover i {
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-input input { padding: 0.65rem 1.2rem; font-size: 0.92rem; }
    .floating-input label { font-size: 0.92rem; }
    .advanced-btn { padding: 0.45rem 1rem; font-size: 0.92rem; min-width: 120px; }
    .search-buttons { gap: 0.75rem; margin-top: 1.5rem; }
    .search-subtitle { font-size: 0.88rem; }
}
.sthome {
  position: relative;
  overflow: hidden; /* خیلی مهمه! */
}

canvas#webgl-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;
  z-index: 1; /* پشت عکس و متن باشه */
  pointer-events: none; /* تا کلیک روی عکس و متن مشکلی نداشته باشه */
}
.sthome {
    box-shadow: 0rem 0rem 3rem rgba(200, 200, 200, 0.42);
}